|
@@ -36,7 +36,7 @@
|
|
|
</el-col>
|
|
|
|
|
|
<!-- 搜索 -->
|
|
|
- <el-col :span="4" style="width: 74px; margin-left: 10px">
|
|
|
+ <el-col :span="4" style="width: 54px">
|
|
|
<el-button
|
|
|
:size="searchSize"
|
|
|
type="primary"
|
|
@@ -44,19 +44,18 @@
|
|
|
icon="el-icon-search"
|
|
|
label=""
|
|
|
@click="searchList"
|
|
|
- >搜索</el-button
|
|
|
- >
|
|
|
+ ></el-button>
|
|
|
</el-col>
|
|
|
<!-- 重置 -->
|
|
|
<el-col
|
|
|
:span="4"
|
|
|
- style="width: 74px; margin-left: 10px"
|
|
|
+ style="width: 56px; margin-left: 10px"
|
|
|
class="mr5"
|
|
|
>
|
|
|
<el-button
|
|
|
:size="searchSize"
|
|
|
class="fr"
|
|
|
- icon="el-icon-refresh-right"
|
|
|
+ type="warning"
|
|
|
@click="restSearch"
|
|
|
>重置</el-button
|
|
|
>
|
|
@@ -125,7 +124,7 @@ import resToken from "@/mixins/resToken";
|
|
|
import statusList from "@/assets/js/statusList";
|
|
|
import asyncRequest from "@/apis/service/stock/productWeido";
|
|
|
import { mapGetters } from "vuex";
|
|
|
-
|
|
|
+import columns from "./columns";
|
|
|
export default {
|
|
|
name: "productWeido",
|
|
|
mixins: [mixinPage, resToken],
|
|
@@ -171,62 +170,7 @@ export default {
|
|
|
total: 0,
|
|
|
},
|
|
|
// 表格 - 列参数
|
|
|
- columns: [
|
|
|
- {
|
|
|
- type: "expand",
|
|
|
- _slot_: "expand",
|
|
|
- label: "",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "good_code",
|
|
|
- label: "商品编码",
|
|
|
- width: "150",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "type_code",
|
|
|
- label: "属性编码",
|
|
|
- width: "150",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "good_name",
|
|
|
- label: "商品名称",
|
|
|
- width: "120",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "sort_f",
|
|
|
- label: "分类",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "unit",
|
|
|
- label: "单位",
|
|
|
- width: "50",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "usable_stock",
|
|
|
- label: "当前库存",
|
|
|
- width: "80",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "wait_in_stock",
|
|
|
- label: "待入库",
|
|
|
- width: "80",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "wait_out_stock",
|
|
|
- label: "待出库",
|
|
|
- width: "80",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "intra_stock",
|
|
|
- label: "在途库存",
|
|
|
- width: "80",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "intra_stock",
|
|
|
- label: "预警库存",
|
|
|
- width: "80",
|
|
|
- },
|
|
|
- ],
|
|
|
+ columns: columns,
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -253,6 +197,7 @@ export default {
|
|
|
async searchList() {
|
|
|
this.loading = true;
|
|
|
// { type_code: "GY202104290049" }
|
|
|
+ console.log(this.parmValue);
|
|
|
const res = await asyncRequest.list(this.parmValue);
|
|
|
if (res && res.code === 0 && res.data) {
|
|
|
this.tableData = res.data.list;
|