|
|
@@ -64,6 +64,7 @@
|
|
|
|
|
|
<el-dialog
|
|
|
:visible.sync="dialogVisible"
|
|
|
+ v-if="dialogVisible"
|
|
|
width="35%"
|
|
|
@close="close"
|
|
|
title="处置"
|
|
|
@@ -90,6 +91,25 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
+ <template
|
|
|
+ v-if="disposeForm.disposeType == 1 || disposeForm.disposeType == 2"
|
|
|
+ >
|
|
|
+ <el-form-item label="回流工序" prop="taskId" align="center">
|
|
|
+ <el-select
|
|
|
+ style="width: 100%"
|
|
|
+ v-model="disposeForm.taskId"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in refluxTaskList"
|
|
|
+ :key="item.taskId"
|
|
|
+ :value="item.taskId"
|
|
|
+ :label="item.taskTypeName"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
+
|
|
|
<template v-if="disposeForm.disposeType == 6">
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
@@ -217,7 +237,7 @@
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
import { unacceptedProductStatus } from '@/utils/util';
|
|
|
import { deepClone } from '@/utils';
|
|
|
- import { disposeApi } from '@/api/unacceptedProduct';
|
|
|
+ import { disposeApi, refluxTask } from '@/api/unacceptedProduct';
|
|
|
|
|
|
import {
|
|
|
getDetail,
|
|
|
@@ -252,7 +272,8 @@
|
|
|
sampleRemark: '',
|
|
|
producerManufacturer: '',
|
|
|
depotId: '',
|
|
|
- depotName: ''
|
|
|
+ depotName: '',
|
|
|
+ taskId: ''
|
|
|
},
|
|
|
loading: false,
|
|
|
selection: [],
|
|
|
@@ -318,7 +339,8 @@
|
|
|
value: 8,
|
|
|
label: '回用'
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ refluxTaskList: []
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -524,6 +546,7 @@
|
|
|
async created() {
|
|
|
this.qualityType = this.$route.query.qualityType;
|
|
|
this.warehouseList = await getWarehouseLists();
|
|
|
+ this.getRefluxTask();
|
|
|
// console.log(this.warehouseList, 'this.warehouseList');
|
|
|
},
|
|
|
|
|
|
@@ -535,6 +558,15 @@
|
|
|
// where.unqualifiedProductsId = this.$route.query.id;
|
|
|
return arr.poList;
|
|
|
},
|
|
|
+
|
|
|
+ async getRefluxTask() {
|
|
|
+ await refluxTask({
|
|
|
+ workOrderCode: this.$route.query.workOrderCode
|
|
|
+ }).then((res) => {
|
|
|
+ this.refluxTaskList = res;
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
reload(where) {
|
|
|
this.key = Math.random();
|
|
|
// this.$nextTick(() => {
|
|
|
@@ -573,7 +605,8 @@
|
|
|
if (valid) {
|
|
|
let params = {
|
|
|
disposeType: this.disposeForm.disposeType,
|
|
|
- poList: []
|
|
|
+ poList: [],
|
|
|
+ refluxTask: {}
|
|
|
};
|
|
|
if (this.all) {
|
|
|
params.poList = this.selection.map((item) => {
|
|
|
@@ -584,6 +617,13 @@
|
|
|
{ ...deepClone(this.current), ...this.disposeForm }
|
|
|
];
|
|
|
}
|
|
|
+
|
|
|
+ if (this.disposeForm.taskId) {
|
|
|
+ params.refluxTask = this.refluxTaskList.find(
|
|
|
+ (item) => item.taskId == this.disposeForm.taskId
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
console.log(params);
|
|
|
await disposeApi(params);
|
|
|
this.dialogVisible = false;
|
|
|
@@ -641,6 +681,7 @@
|
|
|
this.disposeForm.producerManufacturer = '';
|
|
|
this.disposeForm.depotId = '';
|
|
|
this.disposeForm.depotName = '';
|
|
|
+ this.disposeForm.taskId = '';
|
|
|
}
|
|
|
}
|
|
|
}
|