diff --git a/src/views/productManagement/workorder2.vue b/src/views/productManagement/workorder2.vue
index a8e9873..e32495c 100644
--- a/src/views/productManagement/workorder2.vue
+++ b/src/views/productManagement/workorder2.vue
@@ -89,6 +89,7 @@
:data="workorder_table_data"
>
+
@@ -117,7 +118,7 @@
>
-
上移
下移
@@ -191,10 +192,10 @@
@@ -289,6 +290,7 @@ export default {
cylinderNumber: null,
remark1: '',
remark2: '',
+ sort:0,
year: new Date().getFullYear(),
week: null,
date: null,
@@ -400,13 +402,14 @@ export default {
},
//todo 新增生产工单
- addworkorder() {
+ addworkorder(row) {
this.dialog.title = '新增生产工单'
this.dialog.open = true
this.flag = 'insert'
this.workorderItem.year = this.search.year
this.workorderItem.week = this.search.week
this.workorderItem.date = this.search.date
+ this.workorderItem.sort = row.sort
},
//todo 新增或者修改 提交按钮
submitForm() {
@@ -418,7 +421,8 @@ export default {
(query.previousNumber = Number(query.previousNumber)),
(query.year = Number(query.year)),
(query.week = Number(query.week)),
- (query.date = Number(query.date))
+ (query.date = Number(query.date)),
+ (query.sort = Number(query.sort))
if (this.flag == 'insert') {
this.$refs['workorder'].validate((valid) => {
@@ -429,7 +433,7 @@ export default {
this.getList()
this.dialog.open = false
// 清空表单
- this.clearworkplanItem()
+ this.clearworkorderItem()
}
})
}
@@ -444,7 +448,7 @@ export default {
this.dialog.open = false
// 清空表单
//this.resetForm('workplan')
- this.clearworkplanItem()
+ this.clearworkorderItem()
}
})
}