代码更新

This commit is contained in:
2022-07-21 15:44:14 +08:00
parent 3c23807c4f
commit bf4154797d
7 changed files with 74 additions and 66 deletions

View File

@@ -311,16 +311,17 @@ export default {
executeRepair() {
const _selectData = this.$refs.table.selection
const data = _selectData[0]
if (data.invstatus !== '03') {
return this.crud.notify('只能对开始状态的单据执行', CRUD.NOTIFICATION_TYPE.INFO)
if (data.invstatus === '03' || data.invstatus === '04' || data.invstatus === '05') {
crudDevicerepairmst.getDtl(data).then(res => {
this.openParam = {
'form': data,
'tableData': res
}
this.executeDialog = true
})
} else {
return this.crud.notify('单据状态不正确', CRUD.NOTIFICATION_TYPE.INFO)
}
crudDevicerepairmst.getDtl(data).then(res => {
this.openParam = {
'form': data,
'tableData': res
}
this.executeDialog = true
})
},
confirmRepair() {
const _selectData = this.$refs.table.selection