外协零件到货

This commit is contained in:
zhangdingyu
2019-12-30 15:57:35 +08:00
parent 8f6c0c0b4d
commit 5b5a473592
3 changed files with 9 additions and 5 deletions

View File

@@ -167,6 +167,7 @@ export default {
},
data() {
return {
工艺计划流水号: [],
OutsouringNumber: [],
wancheng: '',
gongxulsh: [],
@@ -529,6 +530,7 @@ export default {
getProcedure(row) {
for (let i = 0; i < row.length; i++) {
getprocedure(row[i].工艺计划流水号, row[i].单件是否外协).then(response => {
this.List3[i].外协工序 = ''
this.procedure[i] = ''
for (let j = 0; j < response.data.length; j++) {
this.procedure[i] = this.procedure[i] + ' ' + response.data[j].工艺名称简称
@@ -597,13 +599,15 @@ export default {
},
handleSelectionChange(val) {
this.OutsouringNumber = []
this.工艺计划流水号 = []
for (let i = 0; i < val.length; i++) {
this.OutsouringNumber.push(val[i].外协加工任务单明细流水号)
this.工艺计划流水号.push(val[i].工艺计划流水号)
}
},
getSpareParts() { // 选入零件
getSpareParts() {
if (this.OutsouringNumber.length !== 0) {
Arrival(this.OutsouringNumber).then(response => {
Arrival(this.OutsouringNumber, this.工艺计划流水号).then(response => {
if (response.data[0].result === '1') {
this.$message.success('到货成功')
this.contrast = 3000000000000