From 70c12f32f5741af1f4fe6bb2490ebbe2e6ece953 Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期五, 31 五月 2024 10:09:59 +0800
Subject: [PATCH] 1.修改工单下达时的bug
---
src/views/workOrder/workOrderList.vue | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/src/views/workOrder/workOrderList.vue b/src/views/workOrder/workOrderList.vue
index f09761b..dc528c5 100644
--- a/src/views/workOrder/workOrderList.vue
+++ b/src/views/workOrder/workOrderList.vue
@@ -2067,7 +2067,8 @@
deliverydate: '', // 浜や粯鏃堕棿
data_sources: '', // 鏁版嵁鏉ユ簮
- mesmaxqty: 0// 宸ュ崟鐨勬渶澶у��
+ mesmaxqty: 0, // 宸ュ崟鐨勬渶澶у��
+ mesqtyinit: 0// 宸ュ崟鏁伴噺鍒濆鍊�
},
ordertypeArr: [// 宸ュ崟绫诲瀷
{ code: 'PO', name: '鏍囧噯宸ュ崟' },
@@ -2536,6 +2537,8 @@
this.dialogForm.deliverydate = row.saleOrderDeliveryDate.substring(0, 11)
this.dialogForm.mesqty = row.plan_qty
+ this.dialogForm.mesqtyinit = row.plan_qty
+
const data = {
sourceid: this.dialogForm.sourceorderid,
sourcewo: this.dialogForm.sourceorder,
@@ -2577,6 +2580,9 @@
}
this.dialogVisible = true
+ this.$nextTick(() => {
+ this.setSort()
+ })
},
// 宸ュ崟鍏抽棴浜嬩欢
orderClose() {
@@ -2651,6 +2657,10 @@
return this.$message.info('婧愬崟鍗曞彿涓嶈兘涓虹┖锛�')
}
+ if (this.dialogForm.mesqty <= 0) {
+ return this.$message.info('宸ュ崟鏁伴噺涓嶈兘绛変簬闆讹紒')
+ }
+
if (this.dialogForm.data_sources === 'ERP' && this.dialogForm.mesmaxqty < this.dialogForm.mesqty) {
return this.$message.info('姝ゅ伐鍗曠殑鏈�澶т慨鏀规暟鍊间负锛�' + this.dialogForm.mesmaxqty)
}
@@ -2684,6 +2694,7 @@
deliverydate: this.dialogForm.deliverydate, // 浜や粯鏃堕棿
data_sources: this.dialogForm.data_sources, // 鏁版嵁鏉ユ簮
isstep: workListSub.length > 0 ? 'Y' : 'N', //
+ difference: this.dialogForm.mesqty - this.dialogForm.mesqtyinit, // 鏁版嵁宸��
workListSub
}
@@ -3516,3 +3527,9 @@
background: #f8f8fa;
}
</style>
+<style>
+.sortable-ghost{
+ opacity: .8;
+ color: #fff!important;
+ background: #42b983!important;
+}
--
Gitblit v1.9.3