|
|
|
|
@ -148,30 +148,24 @@ export default { |
|
|
|
|
this.$emit('updateDataChange', this.cardNo); |
|
|
|
|
getByCardNoByPlanAll({ cardNo: this.cardNo }) |
|
|
|
|
.then(res => { |
|
|
|
|
console.log(res.data, 'res.data'); |
|
|
|
|
// this.cardNo = ''; |
|
|
|
|
// if (Object.keys(res.data.data).length != 0) { |
|
|
|
|
// this.data = res.data.data; |
|
|
|
|
|
|
|
|
|
// this.loading = false; |
|
|
|
|
// } else { |
|
|
|
|
// this.loading = false; |
|
|
|
|
// this.$message.error('未找到该流程卡号!'); |
|
|
|
|
// } |
|
|
|
|
res.data.data.forEach(item => { |
|
|
|
|
if (item.receiveMan.userId) { |
|
|
|
|
item.receive = true; |
|
|
|
|
} else { |
|
|
|
|
item.receive = false; |
|
|
|
|
} |
|
|
|
|
this.plantList.push(item); |
|
|
|
|
}); |
|
|
|
|
this.prWorkOrder = this.plantList[0].prWorkOrder; |
|
|
|
|
this.data = res.data.data; |
|
|
|
|
this.loading = false; |
|
|
|
|
this.$message.success('操作成功'); |
|
|
|
|
}) |
|
|
|
|
.catch(err => { |
|
|
|
|
this.loading = false; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
returnThisProcess() { |
|
|
|
|
returnThisProcess(wpId) { |
|
|
|
|
this.$prompt('确定将订单退回至此工序,并输入退回理由:', '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|