|
|
|
@ -95,7 +95,30 @@
|
|
|
|
|
</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="findMethod1"
|
|
|
|
|
:loading="loading"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in fromOptionss"
|
|
|
|
|
: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
|
|
|
|
@ -247,7 +270,7 @@ import {
|
|
|
|
|
updateUnit, mergeOrder,
|
|
|
|
|
getOrderList
|
|
|
|
|
} from "../../api/inout/order";
|
|
|
|
|
import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain"
|
|
|
|
|
import {getBasicUnitMaintains, getCorrespondence} from "../../api/basic/basicUnitMaintain"
|
|
|
|
|
import draggable from "vuedraggable";
|
|
|
|
|
import addOrder from "./DialogCreateOrder";
|
|
|
|
|
import store from "../../store";
|
|
|
|
@ -273,6 +296,7 @@ export default {
|
|
|
|
|
limit: 10,
|
|
|
|
|
startTime: null,
|
|
|
|
|
endTime: null,
|
|
|
|
|
fromCorp: null,
|
|
|
|
|
// deptCode: this.$store.getters.locDeptCode,
|
|
|
|
|
invCode: this.$store.getters.locInvCode,
|
|
|
|
|
|
|
|
|
@ -280,6 +304,7 @@ export default {
|
|
|
|
|
viewType: 3,
|
|
|
|
|
corpLoading: false,
|
|
|
|
|
fromOptions: [],
|
|
|
|
|
fromOptionss: [],
|
|
|
|
|
checkStatus: {
|
|
|
|
|
1: "草稿",
|
|
|
|
|
2: "等待处理",
|
|
|
|
@ -386,6 +411,7 @@ export default {
|
|
|
|
|
limit: 10,
|
|
|
|
|
startTime: null,
|
|
|
|
|
endTime: null,
|
|
|
|
|
fromCorp: null,
|
|
|
|
|
invCode: this.$store.getters.locInvCode,
|
|
|
|
|
};
|
|
|
|
|
this.actDateRange = [];
|
|
|
|
@ -414,6 +440,7 @@ export default {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
getBasicUnitMaintains(params).then((res) => {
|
|
|
|
|
this.corpLoading = false;
|
|
|
|
|
this.fromOptions = res.data.list || [];
|
|
|
|
@ -421,6 +448,24 @@ export default {
|
|
|
|
|
this.corpLoading = false;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
findMethod1(query) {
|
|
|
|
|
this.fromOptionss = [];
|
|
|
|
|
let cQuery = {
|
|
|
|
|
key: query,
|
|
|
|
|
// corpType: 2,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
};
|
|
|
|
|
getCorrespondence(cQuery)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.fromOptionss = response.data.list || [];
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.fromOptionss = [];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
handleSizeChange(val) {
|
|
|
|
|
this.filterQuery.limit = val;
|
|
|
|
|
this.getList();
|
|
|
|
|