Commit c6cf02539f0dfa097252b59be9c414efb86019be

Authored by 史婷婷
1 parent 540e9a1f

feat: 资信详情按钮&订货单详情按钮逻辑更改

@@ -187,7 +187,6 @@ export default { @@ -187,7 +187,6 @@ export default {
187 genderOptions: [], 187 genderOptions: [],
188 categoryOptions: [], 188 categoryOptions: [],
189 historyList: [], 189 historyList: [],
190 - showExamine: false,  
191 buttons: [ 190 buttons: [
192 { text: '编辑', visible: true, variant: 'outline', event: 'edit' }, 191 { text: '编辑', visible: true, variant: 'outline', event: 'edit' },
193 { text: '审核详情', visible: true, variant: 'outline', event: 'auditDetail' }, 192 { text: '审核详情', visible: true, variant: 'outline', event: 'auditDetail' },
@@ -200,11 +199,12 @@ export default { @@ -200,11 +199,12 @@ export default {
200 computed: { 199 computed: {
201 statusFlags() { 200 statusFlags() {
202 const s = String((this.form && this.form.status) || '') 201 const s = String((this.form && this.form.status) || '')
  202 + const e = (this.form && this.form.showExamine) || false
203 return { 203 return {
204 isRefuse: s === 'REFUSE', 204 isRefuse: s === 'REFUSE',
205 isPass: s === 'PASS', 205 isPass: s === 'PASS',
206 isAudit: s === 'AUDIT', 206 isAudit: s === 'AUDIT',
207 - canExamine: !!this.showExamine, 207 + canExamine: e,
208 } 208 }
209 }, 209 },
210 displayButtons() { 210 displayButtons() {
@@ -225,8 +225,6 @@ export default { @@ -225,8 +225,6 @@ export default {
225 }, 225 },
226 onLoad(query) { 226 onLoad(query) {
227 const id = (query && (query.id || query.code)) || '' 227 const id = (query && (query.id || query.code)) || ''
228 - const se = (query && (query.todoType === 'WAIT' || query.showExamine === '1' || query.showExamine === true)) || false  
229 - this.showExamine = !!se  
230 if (id) this.loadDetail(id) 228 if (id) this.loadDetail(id)
231 }, 229 },
232 methods: { 230 methods: {
@@ -72,7 +72,6 @@ export default { @@ -72,7 +72,6 @@ export default {
72 genderOptions: [], 72 genderOptions: [],
73 categoryOptions: [], 73 categoryOptions: [],
74 historyList: [], 74 historyList: [],
75 - showExamine: false,  
76 buttons: [ 75 buttons: [
77 { text: '编辑', visible: true, variant: 'outline', event: 'edit' }, 76 { text: '编辑', visible: true, variant: 'outline', event: 'edit' },
78 { text: '审核详情', visible: true, variant: 'outline', event: 'auditDetail' }, 77 { text: '审核详情', visible: true, variant: 'outline', event: 'auditDetail' },
@@ -91,16 +90,18 @@ export default { @@ -91,16 +90,18 @@ export default {
91 statusFlags() { 90 statusFlags() {
92 const s = String((this.form && this.form.status) || '') 91 const s = String((this.form && this.form.status) || '')
93 const e = String((this.form && this.form.examineStatus) || '') 92 const e = String((this.form && this.form.examineStatus) || '')
  93 + const d = (this.form && this.form.showExamine) || false
94 return { 94 return {
95 isRefuse: e === 'REFUSE', 95 isRefuse: e === 'REFUSE',
96 isAudit: e === 'AUDIT', 96 isAudit: e === 'AUDIT',
97 - canExamine: !!this.showExamine, 97 + canExamine: d,
98 canDeliveryApply: s === 'ISSUED', 98 canDeliveryApply: s === 'ISSUED',
99 contractCreateBy: this.form.contractCreateBy 99 contractCreateBy: this.form.contractCreateBy
100 } 100 }
101 }, 101 },
102 displayButtons() { 102 displayButtons() {
103 const f = this.statusFlags; 103 const f = this.statusFlags;
  104 + console.log('displayButtons__f', f)
104 return [ 105 return [
105 { ...this.buttons[0], visible: f.isRefuse && f.contractCreateBy }, 106 { ...this.buttons[0], visible: f.isRefuse && f.contractCreateBy },
106 { ...this.buttons[1], visible: true }, 107 { ...this.buttons[1], visible: true },
@@ -115,8 +116,6 @@ export default { @@ -115,8 +116,6 @@ export default {
115 }, 116 },
116 onLoad(query) { 117 onLoad(query) {
117 const id = (query && (query.id || query.code)) || '' 118 const id = (query && (query.id || query.code)) || ''
118 - const se = (query && (query.todoType === 'WAIT' || query.showExamine === '1' || query.showExamine === true)) || false  
119 - this.showExamine = !!se  
120 if (id) this.loadDetail(id) 119 if (id) this.loadDetail(id)
121 }, 120 },
122 methods: { 121 methods: {