From 55ce32d235e02d20df64f444d8d07c1d37eaa6a0 Mon Sep 17 00:00:00 2001
From: Vergil <974548713@qq.com>
Date: Wed, 5 Feb 2020 10:59:16 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BA=8F=E9=97=B4=E5=A4=96=E5=8D=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Outsourcing/PreorderAssociation/index.vue | 73 ++-----------------
1 file changed, 5 insertions(+), 68 deletions(-)
diff --git a/src/views/Outsourcing/PreorderAssociation/index.vue b/src/views/Outsourcing/PreorderAssociation/index.vue
index 2eb8064b..50180b33 100644
--- a/src/views/Outsourcing/PreorderAssociation/index.vue
+++ b/src/views/Outsourcing/PreorderAssociation/index.vue
@@ -20,13 +20,8 @@
:value="item.value"/>
- 查询
+ 查询
-
{{ scope.row.零件图号 }}
@@ -42,11 +37,6 @@
{{ scope.row.材料 }}
-
-
-
-
-
{{ scope.row.批次数量 }}
@@ -68,7 +58,7 @@
- 保存
+ 保存
@@ -84,12 +74,6 @@
-
-
-
-
-
-
{{ scope.row.工艺名称 }}
@@ -125,6 +109,7 @@ export default {
count: 0, // 计数器 (表二是否有外协工序)
InOut: 1, // 工序间是否外协变量 1自家 2外协
index: 0, // 当前点击行(改变颜色不刷新用)
+ index2: 0, // 当前点击行(改变颜色不刷新用)
num1: '',
checkBox: [],
loading1: false,
@@ -217,6 +202,7 @@ export default {
this.loading2 = true
this.checkBox = []
this.tableData2 = []
+ this.index2 = row.index
searchTable2(row.工艺计划流水号).then(response => {
this.num1 = row.工艺计划流水号
if (response.data.length === 0) {
@@ -265,63 +251,14 @@ export default {
this.InOut = 2
edit(row.工序流水号, this.InOut).then(response => {
edit2(row.工序流水号, row.工艺计划流水号, 1).then(response => {
- this.$message.success('工序外协状态更改成功')
this.tableData2[this.index].工序间是否外协 = 2
- // this.loading2 = true
- // this.checkBox = []
- // this.tableData2 = []
- // searchTable2(this.num1).then(response => {
- // if (response.data.length === 0) {
- // this.loading0 = false
- // } else {
- // for (let i = 0; i < response.data.length; i++) {
- // if (response.data[i].工序间是否外协 === 1) {
- // this.checkBox.push(false)
- // } else {
- // this.checkBox.push(true)
- // }
- // }
- // for (let i = 0; i < response.data.length; i++) {
- // response.data[i].机加工开始时间 = response.data[i].机加工开始时间.split(' ')[0]
- // response.data[i].机加工结束时间 = response.data[i].机加工结束时间.split(' ')[0]
- // response.data[i].计划日期 = response.data[i].计划日期.split(' ')[0]
- // }
- // this.tableData2 = response.data
- // }
- // }).then(() => {
- // this.loading2 = false
- // })
+ this.tableData1[this.index2].工序间是否外协 = 2
})
})
} else {
this.InOut = 1
edit(row.工序流水号, this.InOut).then(response => {
- this.$message.success('工序外协状态更改成功')
this.tableData2[this.index].工序间是否外协 = 1
- // this.loading2 = true
- // this.checkBox = []
- // this.tableData2 = []
- // searchTable2(this.num1).then(response => {
- // if (response.data.length === 0) {
- // this.loading0 = false
- // } else {
- // for (let i = 0; i < response.data.length; i++) {
- // if (response.data[i].工序间是否外协 === 1) {
- // this.checkBox.push(false)
- // } else {
- // this.checkBox.push(true)
- // }
- // }
- // for (let i = 0; i < response.data.length; i++) {
- // response.data[i].机加工开始时间 = response.data[i].机加工开始时间.split(' ')[0]
- // response.data[i].机加工结束时间 = response.data[i].机加工结束时间.split(' ')[0]
- // response.data[i].计划日期 = response.data[i].计划日期.split(' ')[0]
- // }
- // this.tableData2 = response.data
- // }
- // }).then(() => {
- // this.loading2 = false
- // })
})
}
},