From e5423f35d43042de23cb296429ee9c6be3813afe Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期三, 17 一月 2024 09:58:32 +0800
Subject: [PATCH] modified: src/views/plan/manufacturingorder/productorder-form.vue
---
src/views/plan/manufacturingorder/productorder-form.vue | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/src/views/plan/manufacturingorder/productorder-form.vue b/src/views/plan/manufacturingorder/productorder-form.vue
index 0fb9e74..50a0c0c 100644
--- a/src/views/plan/manufacturingorder/productorder-form.vue
+++ b/src/views/plan/manufacturingorder/productorder-form.vue
@@ -336,17 +336,14 @@
fallbackClass="fallbackStyle"
ghostClass="item_ghost"
@end="dragEnd"
+ :default-sort="{ prop: 'operationOrder' }"
+ @choose="operationRowClick"
>
<div
:class="{ dragItem: true, active: x.active }"
v-for="(x, i) in operations"
:key="i"
>
- <!-- <div class="dragBody">
- <div class="info">{{ x.operationNo }}</div>
- <div class="info">{{ x.operationName }}</div>
- <div class="info">{{ x.partName }}</div>
- </div> -->
<el-row>
<el-col :span="2" class="frame">{{ i+1 }}
</el-col>
@@ -370,10 +367,6 @@
</el-card>
</el-col>
</el-row>
-
-
-
-
@@ -1427,9 +1420,7 @@
operationOrder:el.operationOrder,
}
})
- console.log(data,"id");
changeOrder(data).then((res) =>{
- console.log(res,"鍥炶皟");
}).catch(error => {
console.error(error)
});
@@ -1771,7 +1762,8 @@
this.dataForm.bomId = null
},
// 鐐瑰嚮宸ヨ壓宸ュ簭琛岃Е鍙戞牎楠屽伐鑹烘槸鍚︿慨鏀癸紝鑻ヤ慨鏀瑰垯涓嶅彲鎿嶄綔锛岄渶鍏堜繚瀛橈紝鑻ユ湭淇敼锛屽垯鍙煡璇㈠嚭瀵瑰簲鐨勫弬鏁伴泦
- operationRowClick(row) {
+ operationRowClick(event) {
+ const row = this.operations[event.oldIndex]
if (this.dataForm.id != null && this.dataForm.id !== 0) {
this.routingOperationId = row.technologyRoutingOperationId
this.moRoutingOperationId = row.id
--
Gitblit v1.9.3