外协零件到货
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user