|
@@ -30,7 +30,7 @@
|
|
|
v-model="parmValue.order_type"
|
|
|
filterable
|
|
|
clearable
|
|
|
- placeholder="入库单来源"
|
|
|
+ placeholder="商品类型"
|
|
|
style="width: 100%"
|
|
|
@change="
|
|
|
pageInfo.curr = 1;
|
|
@@ -90,48 +90,8 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row style="padding: 10px 0 0 0">
|
|
|
- <!-- <el-col :span="4" style="width: 120px">
|
|
|
- <el-dropdown @command="handleClick($event)" :size="searchSize">
|
|
|
- <el-button :size="searchSize" style="width: 120px">
|
|
|
- {{ sselect }}
|
|
|
- <i
|
|
|
- class="el-icon-arrow-down el-icon--right"
|
|
|
- :size="searchSize"
|
|
|
- ></i>
|
|
|
- </el-button>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item
|
|
|
- v-for="item in options"
|
|
|
- :key="item"
|
|
|
- :command="item"
|
|
|
- >{{ item }}</el-dropdown-item
|
|
|
- >
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- </el-col> -->
|
|
|
- <el-col :span="4" style="width: 130px; margin-right:10px">
|
|
|
- <el-select
|
|
|
- :size="searchSize"
|
|
|
- v-model="parmValue.order_source"
|
|
|
- filterable
|
|
|
- clearable
|
|
|
- placeholder="订单来源"
|
|
|
- style="width: 100%"
|
|
|
- @change="
|
|
|
- pageInfo.curr = 1;
|
|
|
- parmValue.page = 1;
|
|
|
- searchList();
|
|
|
- "
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in cg_order_source_options"
|
|
|
- :key="'order_type' + item.id"
|
|
|
- :label="item.label"
|
|
|
- :value="item.id"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-col>
|
|
|
|
|
|
+ <el-row>
|
|
|
<el-col :span="6" style="width: 520px; padding: 0 0 0 0px">
|
|
|
<el-input
|
|
|
clearable
|
|
@@ -162,7 +122,7 @@
|
|
|
<el-option label="商品属性编号" value="4"></el-option>
|
|
|
<el-option label="产品名称" value="5"></el-option>
|
|
|
<el-option label="申请人" value="6"></el-option>
|
|
|
- <el-option label="采购供应商编号" value="7"></el-option>
|
|
|
+ <!-- <el-option label="采购供应商编号" value="7"></el-option> -->
|
|
|
<el-option label="申请人部门" value="8"></el-option>
|
|
|
</el-select>
|
|
|
<el-button
|
|
@@ -176,6 +136,7 @@
|
|
|
></el-button>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
+ </el-row>
|
|
|
|
|
|
<el-col :span="4" style="width: 66px; float: right">
|
|
|
<el-button
|
|
@@ -187,7 +148,69 @@
|
|
|
重置
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
+
|
|
|
+
|
|
|
+ <el-col :span="4" style="width: 130px; margin-top:10px">
|
|
|
+ <el-select
|
|
|
+ :size="searchSize"
|
|
|
+ v-model="parmValue.order_source"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ placeholder="订单来源"
|
|
|
+ style="width: 100%"
|
|
|
+ @change="
|
|
|
+ pageInfo.curr = 1;
|
|
|
+ parmValue.page = 1;
|
|
|
+ searchList();
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in cg_order_source_options"
|
|
|
+ :key="'order_type' + item.id"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="4">
|
|
|
+ <search-supplier
|
|
|
+ :size="'mini'"
|
|
|
+ style="width: 220px;margin-top:10px"
|
|
|
+ :value="supplierNo"
|
|
|
+ :disabled="false"
|
|
|
+ :placeholder="'供应商名称'"
|
|
|
+ :names="''"
|
|
|
+ :isDetail="false"
|
|
|
+ :noDisabled="true"
|
|
|
+ @searchChange="supplierChange"
|
|
|
+ />
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
+
|
|
|
+ <!-- <el-col :span="4" style="width: 120px">
|
|
|
+ <el-dropdown @command="handleClick($event)" :size="searchSize">
|
|
|
+ <el-button :size="searchSize" style="width: 120px">
|
|
|
+ {{ sselect }}
|
|
|
+ <i
|
|
|
+ class="el-icon-arrow-down el-icon--right"
|
|
|
+ :size="searchSize"
|
|
|
+ ></i>
|
|
|
+ </el-button>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item
|
|
|
+ v-for="item in options"
|
|
|
+ :key="item"
|
|
|
+ :command="item"
|
|
|
+ >{{ item }}</el-dropdown-item
|
|
|
+ >
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </el-col> -->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #good_name="{ scope }">
|
|
@@ -218,6 +241,19 @@
|
|
|
"
|
|
|
></el-tag>
|
|
|
</template>
|
|
|
+
|
|
|
+ <template #is_stock="{ scope }">
|
|
|
+ <el-tag
|
|
|
+ :size="tablebtnSize"
|
|
|
+ v-text="
|
|
|
+ (
|
|
|
+ is_stock.find((item) => item.id == scope.row.is_stock) ||
|
|
|
+ {}
|
|
|
+ ).label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
+
|
|
|
<template #status="{ scope }">
|
|
|
<el-tag
|
|
|
:size="tablebtnSize"
|
|
@@ -274,6 +310,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ supplierNo: "",
|
|
|
sitem: null,
|
|
|
select: "1",
|
|
|
input: "",
|
|
@@ -281,6 +318,7 @@ export default {
|
|
|
start: "", //起始时间
|
|
|
end: "", // 结束时间
|
|
|
},
|
|
|
+ supplierNo:[],
|
|
|
options: ["创建时间", "最晚入库时间"],
|
|
|
sselect: "创建时间",
|
|
|
cg_order_type_options,
|
|
@@ -324,6 +362,7 @@ export default {
|
|
|
wsm_code: [],
|
|
|
wsm_supplierNo: [],
|
|
|
parmValue: {
|
|
|
+ order_source: "",
|
|
|
order_type: "",
|
|
|
// bk_code: "", // 备库编码
|
|
|
wsm_in_code: "", // 入库单号
|
|
@@ -392,7 +431,12 @@ export default {
|
|
|
this.searchList();
|
|
|
},
|
|
|
|
|
|
- methods: {
|
|
|
+ methods: {
|
|
|
+ async supplierChange(e) {
|
|
|
+ const { code, label } = e;
|
|
|
+ this.supplierNo = code ? [code] : [];
|
|
|
+ this.searchList()
|
|
|
+ },
|
|
|
getRouter(toRouter, queryId) {
|
|
|
if (toRouter && queryId) {
|
|
|
let model = {
|
|
@@ -469,20 +513,20 @@ export default {
|
|
|
await this.searchList();
|
|
|
}
|
|
|
},
|
|
|
- async supplierChange(e) {
|
|
|
- if (e && e.id) {
|
|
|
- this.parmValue.wsm_supplierNo = e.code;
|
|
|
- this.wsm_supplierNo = [e.code];
|
|
|
- } else {
|
|
|
- this.parmValue.wsm_supplierNo = "";
|
|
|
- this.wsm_supplierNo = [];
|
|
|
- }
|
|
|
- this.parmValue.wsm_code = "";
|
|
|
- this.wsm_code = [];
|
|
|
- this.parmValue.page = 1;
|
|
|
- this.pageInfo.curr = 1;
|
|
|
- await this.searchList();
|
|
|
- },
|
|
|
+ // async supplierChange(e) {
|
|
|
+ // if (e && e.id) {
|
|
|
+ // this.parmValue.wsm_supplierNo = e.code;
|
|
|
+ // this.wsm_supplierNo = [e.code];
|
|
|
+ // } else {
|
|
|
+ // this.parmValue.wsm_supplierNo = "";
|
|
|
+ // this.wsm_supplierNo = [];
|
|
|
+ // }
|
|
|
+ // this.parmValue.wsm_code = "";
|
|
|
+ // this.wsm_code = [];
|
|
|
+ // this.parmValue.page = 1;
|
|
|
+ // this.pageInfo.curr = 1;
|
|
|
+ // await this.searchList();
|
|
|
+ // },
|
|
|
async stockChange(e) {
|
|
|
if (e && e.id) {
|
|
|
this.parmValue.wsm_code = e.code;
|
|
@@ -529,11 +573,12 @@ export default {
|
|
|
wsm_code: model.wsm_code,
|
|
|
good_name: model.good_name,
|
|
|
supplie: "",
|
|
|
- supplierNo: model.supplierNo,
|
|
|
+ supplierNo: Array.isArray(this.supplierNo) ? this.supplierNo[0] : this.supplierNo,
|
|
|
status: model.status,
|
|
|
page: model.page,
|
|
|
size: model.size,
|
|
|
company_name: model.company_name,
|
|
|
+ order_source: model.order_source,
|
|
|
needRela: true
|
|
|
};
|
|
|
const res = await asyncRequest.list(_model);
|