|
@@ -90,6 +90,25 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</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">
|
|
<template v-if="disposeForm.disposeType == 6">
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
@@ -217,7 +236,7 @@
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
import { unacceptedProductStatus } from '@/utils/util';
|
|
import { unacceptedProductStatus } from '@/utils/util';
|
|
|
import { deepClone } from '@/utils';
|
|
import { deepClone } from '@/utils';
|
|
|
- import { disposeApi } from '@/api/unacceptedProduct';
|
|
|
|
|
|
|
+ import { disposeApi, refluxTask } from '@/api/unacceptedProduct';
|
|
|
|
|
|
|
|
import {
|
|
import {
|
|
|
getDetail,
|
|
getDetail,
|
|
@@ -252,7 +271,8 @@
|
|
|
sampleRemark: '',
|
|
sampleRemark: '',
|
|
|
producerManufacturer: '',
|
|
producerManufacturer: '',
|
|
|
depotId: '',
|
|
depotId: '',
|
|
|
- depotName: ''
|
|
|
|
|
|
|
+ depotName: '',
|
|
|
|
|
+ taskId: ''
|
|
|
},
|
|
},
|
|
|
loading: false,
|
|
loading: false,
|
|
|
selection: [],
|
|
selection: [],
|
|
@@ -318,7 +338,8 @@
|
|
|
value: 8,
|
|
value: 8,
|
|
|
label: '回用'
|
|
label: '回用'
|
|
|
}
|
|
}
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
|
|
+ refluxTaskList: []
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -536,6 +557,9 @@
|
|
|
async created() {
|
|
async created() {
|
|
|
this.qualityType = this.$route.query.qualityType;
|
|
this.qualityType = this.$route.query.qualityType;
|
|
|
this.warehouseList = await getWarehouseList();
|
|
this.warehouseList = await getWarehouseList();
|
|
|
|
|
+ if (this.$route.query.workOrderCode) {
|
|
|
|
|
+ this.getRefluxTask();
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
@@ -553,6 +577,15 @@
|
|
|
// this.$refs.searchRef.reload({ page: 1, where: where });
|
|
// this.$refs.searchRef.reload({ page: 1, where: where });
|
|
|
// });
|
|
// });
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ async getRefluxTask() {
|
|
|
|
|
+ await refluxTask({
|
|
|
|
|
+ workOrderCode: this.$route.query.workOrderCode
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ this.refluxTaskList = res;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
remove(row) {
|
|
remove(row) {
|
|
|
let ids = row ? [row.id] : this.selection.map((item) => item.id);
|
|
let ids = row ? [row.id] : this.selection.map((item) => item.id);
|
|
|
deleteUnacceptedProductDetail(ids).then((res) => {
|
|
deleteUnacceptedProductDetail(ids).then((res) => {
|
|
@@ -584,7 +617,8 @@
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
let params = {
|
|
let params = {
|
|
|
disposeType: this.disposeForm.disposeType,
|
|
disposeType: this.disposeForm.disposeType,
|
|
|
- poList: []
|
|
|
|
|
|
|
+ poList: [],
|
|
|
|
|
+ refluxTask: null
|
|
|
};
|
|
};
|
|
|
if (this.all) {
|
|
if (this.all) {
|
|
|
params.poList = this.selection.map((item) => {
|
|
params.poList = this.selection.map((item) => {
|
|
@@ -595,6 +629,13 @@
|
|
|
{ ...deepClone(this.current), ...this.disposeForm }
|
|
{ ...deepClone(this.current), ...this.disposeForm }
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if (this.disposeForm.taskId) {
|
|
|
|
|
+ params.refluxTask = this.refluxTaskList.find(
|
|
|
|
|
+ (item) => item.taskId == this.disposeForm.taskId
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
console.log(params);
|
|
console.log(params);
|
|
|
await disposeApi(params);
|
|
await disposeApi(params);
|
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
@@ -652,6 +693,7 @@
|
|
|
this.disposeForm.producerManufacturer = '';
|
|
this.disposeForm.producerManufacturer = '';
|
|
|
this.disposeForm.depotId = '';
|
|
this.disposeForm.depotId = '';
|
|
|
this.disposeForm.depotName = '';
|
|
this.disposeForm.depotName = '';
|
|
|
|
|
+ this.disposeForm.taskId = '';
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|