rev:业务修改
This commit is contained in:
@@ -100,6 +100,17 @@
|
||||
>
|
||||
退料确认
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="primary"
|
||||
icon="el-icon-check"
|
||||
size="mini"
|
||||
:disabled="crud.selections.length !== 1"
|
||||
@click="empConfirm"
|
||||
>
|
||||
空料确认
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<!--表格渲染-->
|
||||
<el-table
|
||||
@@ -136,7 +147,7 @@
|
||||
<script>
|
||||
import crudCallMaterialDtl from '@/views/wms/pdm/callmaterialdtl/callmaterialdtl'
|
||||
import WeighDialog from '@/views/wms/pdm/callmaterialdtl/WeighDialog'
|
||||
import CRUD, {crud, form, header, presenter} from '@crud/crud'
|
||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
@@ -219,6 +230,16 @@ export default {
|
||||
this.crud.notify('操作成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
})
|
||||
},
|
||||
empConfirm() {
|
||||
const data = this.$refs.table.selection[0]
|
||||
if (data.bom_status === '2') {
|
||||
this.crud.notify('当前明细已确认!', CRUD.NOTIFICATION_TYPE.ERROR)
|
||||
}
|
||||
crudCallMaterialDtl.confirm(data).then(res => {
|
||||
this.crud.notify('操作成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user