|
|
|
@ -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",
|
|
|
|
|