|
|
|
@ -64,6 +64,33 @@
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item class="query-form-item" label="供应商名称:" v-if="showSup">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="filterQuery.supId"
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
clearable="true"
|
|
|
|
|
reserve-keyword
|
|
|
|
|
placeholder="请选择供应商名称"
|
|
|
|
|
:remote-method="findMethod"
|
|
|
|
|
size="mini"
|
|
|
|
|
:loading="corpLoading"
|
|
|
|
|
@change="corpChange"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
@clear="clear"
|
|
|
|
|
>
|
|
|
|
|
<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-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
@ -110,6 +137,7 @@
|
|
|
|
|
import {getResultDetailList, getResultOrderList, verifyTemplateFile, printOrder} from '@/api/inout/orderDetailResult'
|
|
|
|
|
|
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
|
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "supInoutSearchOrder",
|
|
|
|
@ -117,8 +145,10 @@ export default {
|
|
|
|
|
return {
|
|
|
|
|
showSearch: true,
|
|
|
|
|
list: {},
|
|
|
|
|
corpLoading: false,
|
|
|
|
|
filterQuery: {
|
|
|
|
|
id: "",
|
|
|
|
|
supId: "",
|
|
|
|
|
orderIdFk: null,
|
|
|
|
|
fromCorpName: null,
|
|
|
|
|
coName: null,
|
|
|
|
@ -131,6 +161,7 @@ export default {
|
|
|
|
|
actionType: "norDetail",
|
|
|
|
|
},
|
|
|
|
|
loading: false,
|
|
|
|
|
fromOptions: [],
|
|
|
|
|
orderSelection: [],
|
|
|
|
|
total: 0,
|
|
|
|
|
showSup: false,
|
|
|
|
@ -184,6 +215,7 @@ export default {
|
|
|
|
|
coName: null,
|
|
|
|
|
spec: null,
|
|
|
|
|
batchNo: null,
|
|
|
|
|
supId: null,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
startAduditTime: null,
|
|
|
|
@ -211,6 +243,31 @@ export default {
|
|
|
|
|
hideSearch() {
|
|
|
|
|
this.showSearch = !this.showSearch;
|
|
|
|
|
},
|
|
|
|
|
findMethod(key) {
|
|
|
|
|
this.corpLoading = true;
|
|
|
|
|
this.fromOptions = [];
|
|
|
|
|
let params = {
|
|
|
|
|
key: key,
|
|
|
|
|
corpType: 2,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20
|
|
|
|
|
};
|
|
|
|
|
getBasicUnitMaintains(params).then((res) => {
|
|
|
|
|
this.corpLoading = false;
|
|
|
|
|
this.fromOptions = res.data.list || [];
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.corpLoading = false;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
corpChange(value) {
|
|
|
|
|
if (!isBlank(value)) {
|
|
|
|
|
this.findMethod(value);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
clear(){
|
|
|
|
|
this.findMethod();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
this.filterQuery.actionType = this.actionType;
|
|
|
|
|