Browse Source

opt: 工单下发提示

master
李永德 1 year ago
parent
commit
d22a79cc9c
  1. 2
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/ext/record/service/dao/mapper/SysInteractRecordMapper.xml
  2. 10
      lms/nladmin-ui/src/views/wms/pdm/workerorder/index.vue

2
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/ext/record/service/dao/mapper/SysInteractRecordMapper.xml

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

10
lms/nladmin-ui/src/views/wms/pdm/workerorder/index.vue

@ -125,8 +125,8 @@
</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() {

Loading…
Cancel
Save