Commit c6cf02539f0dfa097252b59be9c414efb86019be

Authored by 史婷婷
1 parent 540e9a1f

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

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