opt: 工单下发提示

This commit is contained in:
2023-10-25 18:41:51 +08:00
parent 96ff1a585e
commit d22a79cc9c
2 changed files with 10 additions and 4 deletions

View File

@@ -7,6 +7,6 @@
WHERE record_time <![CDATA[<=]]> DATE_SUB(NOW(), INTERVAL #{day} DAY); WHERE record_time <![CDATA[<=]]> DATE_SUB(NOW(), INTERVAL #{day} DAY);
</delete> </delete>
<delete id="deleteByRows"> <delete id="deleteByRows">
CALL DeleteRowsIfNeeded(#{maxRowsToKeep}, #{maxRowsToDelete}); CALL DeleteRowsIfNeeded(#{maxRowsToKeep}, #{maxRowsToDelete})
</delete> </delete>
</mapper> </mapper>

View File

@@ -123,10 +123,10 @@
<el-form-item label="物料规格"> <el-form-item label="物料规格">
<el-input v-model="form.material_spec" style="width: 240px;" disabled /> <el-input v-model="form.material_spec" style="width: 240px;" disabled />
</el-form-item> </el-form-item>
<el-form-item label="计划数量" prop="plan_qty" > <el-form-item label="计划数量" prop="plan_qty">
<el-input-number <el-input-number
:disabled="form.region_code === 'FJ'"
v-model.number="form.plan_qty" v-model.number="form.plan_qty"
:disabled="form.region_code === 'FJ'"
:min="0" :min="0"
style="width: 240px;" style="width: 240px;"
/> />
@@ -485,7 +485,8 @@ const defaultForm = {
custer_no: null, custer_no: null,
pack_method: null, pack_method: null,
order_subnum: 0, order_subnum: 0,
guadansum: 0 guadansum: 0,
show: false
} }
export default { export default {
name: 'PdmBdWorkorder', name: 'PdmBdWorkorder',
@@ -640,9 +641,14 @@ export default {
}, },
// 下发 // 下发
submits(row) { submits(row) {
this.crud.loading = true
crudPdmBdWorkorder.submits(row).then(res => { crudPdmBdWorkorder.submits(row).then(res => {
this.crud.notify('下发成功', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.notify('下发成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery() this.crud.toQuery()
}).catch(() => {
this.crud.loading = false
}).finally(() => {
this.crud.loading = false
}) })
}, },
synchronize() { synchronize() {