|
|
|
@ -132,6 +132,24 @@
|
|
|
|
|
></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="10" class="el-col">
|
|
|
|
|
<div class="text item">
|
|
|
|
|
<div class="itemTag">
|
|
|
|
|
<span>补单单据类型: </span>
|
|
|
|
|
</div>
|
|
|
|
|
<el-select :disabled="inputQuery.orderTypeEnable" v-model="inputQuery.supplementOrderType"
|
|
|
|
|
placeholder="单据类型">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in orderTypeList"
|
|
|
|
|
:key="item.name"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.action">
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
@ -287,6 +305,8 @@ import {
|
|
|
|
|
getLocalBusType,
|
|
|
|
|
} from "../../api/basic/busLocalType";
|
|
|
|
|
import {filterAll} from "@/api/basic/invWarehouse";
|
|
|
|
|
import {getJoinBussinessType} from "../../api/basic/bussinessType";
|
|
|
|
|
import {getCandidateBussinessType} from "../../api/receipts/bussinessType";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "inputQuery",
|
|
|
|
@ -304,6 +324,7 @@ export default {
|
|
|
|
|
isBuType: true,
|
|
|
|
|
},
|
|
|
|
|
storageList: [],
|
|
|
|
|
orderTypeList: [],
|
|
|
|
|
thirdSys: [],
|
|
|
|
|
localTypes: [],
|
|
|
|
|
options: [{
|
|
|
|
@ -349,11 +370,39 @@ export default {
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//获取单据类型
|
|
|
|
|
getOrderType() {
|
|
|
|
|
this.orderTypeList = [];
|
|
|
|
|
let query = {
|
|
|
|
|
id: this.inputQuery.id
|
|
|
|
|
};
|
|
|
|
|
getCandidateBussinessType(query).then((response) => {
|
|
|
|
|
this.orderTypeList = response.data || [];
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
corpType() {
|
|
|
|
|
return this.inputQuery.corpType;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
corpType: function (val) {
|
|
|
|
|
if (val != 1) {
|
|
|
|
|
this.inputQuery.orderTypeEnable = true;
|
|
|
|
|
this.inputQuery.supplementOrderType = null;
|
|
|
|
|
} else {
|
|
|
|
|
this.inputQuery.orderTypeEnable = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getStorage();
|
|
|
|
|
this.getOrderType();
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|