新增往来单位搜索代码备份

dev
黄泽腾 2 years ago
parent 1187779bb5
commit e1d2d66033

@ -7,6 +7,14 @@ export function getBasicUnitMaintains(query) {
params: query
});
}
export function getCorrespondence(query) {
return axios({
url: "/udiwms/basic/unit/maintain/filter2",
method: "get",
params: query
});
}
export function getCorpFilter(query) {
return axios({
url: "/sale/info/company/product/corp/filter",

@ -70,6 +70,34 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="往来单位:">
<el-select
v-model="filterQuery.fromCorp"
style="width: 90%"
filterable
remote
clearable="true"
reserve-keyword
placeholder="请选择往来单位"
:remote-method="findMethod"
:loading="loading"
>
<el-option
v-for="item in fromOptions"
:key="item.name"
:label="item.name"
:value="item.erpId"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item class="query-form-item" label="创建时间:">
<el-date-picker
@ -219,6 +247,7 @@ import errOrder from "./IoCreateErrorOrder";
import {getInvListByUser} from "@/api/system/invWarehouse";
import {getLocalJoinByUser} from "@/api/basic/busType";
import {selectSysParamByKey} from "@/api/param/systemParamConfig";
import {getCorrespondence} from "@/api/basic/basicUnitMaintain";
export default {
name: "IoCreateScanOrder",
@ -242,8 +271,10 @@ export default {
limit: 10,
startTime: null,
endTime: null,
fromCorp: null,
invCode: this.$store.getters.locInvCode,
},
fromOptions: [],
checkStatus: {
1: "草稿",
2: "等待处理",
@ -495,6 +526,24 @@ export default {
this.getBusType();
},
findMethod(query) {
this.fromOptions = [];
let cQuery = {
key: query,
// corpType: 2,
page: 1,
limit: 10,
};
getCorrespondence(cQuery)
.then((response) => {
this.loading = false;
this.fromOptions = response.data.list || [];
})
.catch(() => {
this.loading = false;
this.fromOptions = [];
});
},
statusFilterType(status) {
const statusMap = {
2: "warning",

Loading…
Cancel
Save