|
|
|
@ -203,6 +203,9 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="handleApplyRawOutstock(scope.row)"
|
|
|
|
|
v-if="scope.row.processType === PROCESS_TYPE.AUTO && scope.row.planId!=null && scope.row.planId!==''
|
|
|
|
|
&& scope.row.planStatus !== PLAN_STATUS.FINISHED
|
|
|
|
|
&& form.orderStatus!==ORDER_STATUS.FINISHED && form.orderStatus!==ORDER_STATUS.RECALLED && form.orderStatus!==ORDER_STATUS.DELETED"
|
|
|
|
|
>投料
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
@ -1201,7 +1204,7 @@ export default {
|
|
|
|
|
this.groupAttachFileList[this.addProductPlanObject.dispatchCode + "-" + this.addProductPlanObject.processId] = groupAttachFileList ? this.groupAttachFileList[this.addProductPlanObject.dispatchCode + "-" + this.addProductPlanObject.processId] : [];
|
|
|
|
|
this.groupAttachFileList[this.addProductPlanObject.dispatchCode + "-" + this.addProductPlanObject.processId].push(groupAttachFile);
|
|
|
|
|
this.$modal.closeLoading();
|
|
|
|
|
}, (err) => {
|
|
|
|
|
}, (err) => {
|
|
|
|
|
this.$refs.drawingUpload.clearFiles(); //上传失败后清除当前上传的图片
|
|
|
|
|
this.$modal.closeLoading();
|
|
|
|
|
}
|
|
|
|
@ -1323,7 +1326,7 @@ export default {
|
|
|
|
|
this.groupSopFileList[this.addProductPlanObject.dispatchCode + "-" + this.addProductPlanObject.processId] = groupSopFileList ? this.groupSopFileList[this.addProductPlanObject.dispatchCode + "-" + this.addProductPlanObject.processId] : [];
|
|
|
|
|
this.groupSopFileList[this.addProductPlanObject.dispatchCode + "-" + this.addProductPlanObject.processId].push(groupSopFile);
|
|
|
|
|
this.$modal.closeLoading();
|
|
|
|
|
}, (err) => {
|
|
|
|
|
}, (err) => {
|
|
|
|
|
this.$refs.drawingUpload.clearFiles(); //上传失败后清除当前上传的图片
|
|
|
|
|
this.$modal.closeLoading();
|
|
|
|
|
}
|
|
|
|
@ -1405,14 +1408,14 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleApplyRawOutstock(row) {
|
|
|
|
|
// if (row.processType === this.PROCESS_TYPE.AUTO) {
|
|
|
|
|
if (row.processType === this.PROCESS_TYPE.AUTO) {
|
|
|
|
|
this.applyRawOutstockOpen = true;
|
|
|
|
|
this.productPlanData.planCode = row.planCode;
|
|
|
|
|
this.productPlanData.planId = row.planId;
|
|
|
|
|
this.productPlanData.dispatchAmount = row.dispatchAmount;
|
|
|
|
|
this.productPlanData.saleOrderId = this.form.saleOrderId;
|
|
|
|
|
this.productPlanData.materialBomId = this.form.materialBomId;
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
closeRawOutstockDialog() {
|
|
|
|
|