|
@@ -172,16 +172,15 @@
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
- <template v-if="this.disposeForm.disposeType !== 8">
|
|
|
|
|
- <el-form-item
|
|
|
|
|
- label="入库仓库:"
|
|
|
|
|
- prop="depotId"
|
|
|
|
|
- align="center"
|
|
|
|
|
- >
|
|
|
|
|
- <el-select
|
|
|
|
|
- style="width: 100%"
|
|
|
|
|
- v-model="disposeForm.depotId"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <template
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ disposeForm.disposeType == 3 ||
|
|
|
|
|
+ disposeForm.disposeType == 6 ||
|
|
|
|
|
+ disposeForm.disposeType == 9
|
|
|
|
|
+ "
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-form-item label="入库仓库:" prop="depotId" align="center">
|
|
|
|
|
+ <el-select style="width: 100%" v-model="disposeForm.depotId">
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in warehouseList"
|
|
v-for="item in warehouseList"
|
|
|
:key="item.id"
|
|
:key="item.id"
|
|
@@ -477,10 +476,11 @@
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
width: '120',
|
|
width: '120',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
- formatter: (row, column, cellValue) => {
|
|
|
|
|
|
|
+ formatter: (row, column, cellValue) => {
|
|
|
console.log(this.allList.find((item) => item.value == cellValue));
|
|
console.log(this.allList.find((item) => item.value == cellValue));
|
|
|
-
|
|
|
|
|
- return this.allList.find((item) => item.value == cellValue)?.label;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ return this.allList.find((item) => item.value == cellValue)
|
|
|
|
|
+ ?.label;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -547,6 +547,9 @@
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
close() {
|
|
close() {
|
|
|
|
|
+ this.$refs.disposeForm.resetFields();
|
|
|
|
|
+ this.dialogVisible = false;
|
|
|
|
|
+ this.disposeType = '';
|
|
|
this.all = false;
|
|
this.all = false;
|
|
|
this.formData.disposalStatus = '';
|
|
this.formData.disposalStatus = '';
|
|
|
},
|
|
},
|
|
@@ -592,8 +595,6 @@
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
return;
|
|
return;
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
validate() {},
|
|
validate() {},
|
|
|
async save(data) {
|
|
async save(data) {
|
|
@@ -623,6 +624,13 @@
|
|
|
watch: {
|
|
watch: {
|
|
|
'disposeForm.disposeType': {
|
|
'disposeForm.disposeType': {
|
|
|
handler(newVal, oldVal) {
|
|
handler(newVal, oldVal) {
|
|
|
|
|
+ if (newVal == 6) {
|
|
|
|
|
+ this.rules.depotId = [];
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.rules.depotId = [
|
|
|
|
|
+ { required: true, message: '请选择仓库', trigger: 'change' }
|
|
|
|
|
+ ];
|
|
|
|
|
+ }
|
|
|
this.disposeForm.sampleCondition = '';
|
|
this.disposeForm.sampleCondition = '';
|
|
|
this.disposeForm.sampleDate = '';
|
|
this.disposeForm.sampleDate = '';
|
|
|
this.disposeForm.samplePlace = '';
|
|
this.disposeForm.samplePlace = '';
|