优化
This commit is contained in:
@@ -100,17 +100,6 @@
|
||||
>
|
||||
委外维修
|
||||
</el-button>
|
||||
<!-- <el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="success"
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
:disabled="execu_flag"
|
||||
@click="executeRepair"
|
||||
>
|
||||
维修执行
|
||||
</el-button>-->
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
@@ -340,11 +329,16 @@ export default {
|
||||
},
|
||||
confirmRepair() {
|
||||
const _selectData = this.$refs.table.selection
|
||||
const data = _selectData[0]
|
||||
if (data.invstatus !== '06') {
|
||||
return this.crud.notify('只能对结束状态的单据确认', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
if (_selectData.length === 0) {
|
||||
return this.crud.notify('请选择需要确认的记录!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
}
|
||||
crudDevicerepairmst.confirmRepair(data).then(res => {
|
||||
for (let i = 0; i < _selectData.length; i++) {
|
||||
const now = _selectData[i]
|
||||
if (now.invstatus !== '06') {
|
||||
return this.crud.notify('只能对结束状态的单据确认:' + now.repair_code, CRUD.NOTIFICATION_TYPE.INFO)
|
||||
}
|
||||
}
|
||||
crudDevicerepairmst.confirmRepair({ invstatus: '07', rows: _selectData }).then(res => {
|
||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user