|
@@ -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: {
|