From 00d1a771adb136642f67ce281c09d7c32cb1f697 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期五, 29 三月 2024 11:44:17 +0800 Subject: [PATCH] 发货数量限制大于0 --- src/views/other/commonDialog/SelectCommonDialog.vue | 41 +++++++++++++++++++---------------------- 1 files changed, 19 insertions(+), 22 deletions(-) diff --git a/src/views/other/commonDialog/SelectCommonDialog.vue b/src/views/other/commonDialog/SelectCommonDialog.vue index 30137a5..0b8671e 100644 --- a/src/views/other/commonDialog/SelectCommonDialog.vue +++ b/src/views/other/commonDialog/SelectCommonDialog.vue @@ -34,7 +34,6 @@ <PagerView class="page" :pager-options="pagerOptions" - :pagerCount="pagerCount" layout="total, sizes, prev, pager, next" v-on="pagerEvents" /> @@ -50,7 +49,7 @@ </template> <script> -// import { postGetMaterialList } from "@/api/ProductiveTask/productBom" +import { getMaterialList } from "@/api/common/other" import pageMixin from "@/components/makepager/pager/mixin/pageMixin" export default { name: "EditSelCommonDialog", @@ -85,8 +84,7 @@ bomParams: { keyword: "", page: 1, - pageSize: 10, - types: ["鍘熸潗鏂�", "鍗婃垚鍝�", "鎴愬搧"] + pageSize: 10 } } }, @@ -124,8 +122,7 @@ }, { label: "浜у搧缂栫爜", - prop: "id", - min: 110, + prop: "number", isShowColumn: true, default: true }, @@ -138,7 +135,6 @@ { label: "浜у搧鍨嬪彿", prop: "type", - width: 90, isShowColumn: showcol.includes("浜у搧鍨嬪彿"), default: false } @@ -166,21 +162,22 @@ }, // 浜у搧鍚嶇О async getProductList() { - this.bomParams.page = this.pagerOptions.currPage ? this.pagerOptions.currPage : 1 - this.bomParams.pageSize = this.pagerOptions.pageSize ? this.pagerOptions.pageSize : 15 - // let params = JSON.parse(JSON.stringify(this.bomParams)) - // await postGetMaterialList(params).then((res) => { - // console.log(res.data) - // if (res.code === 200) { - // if (res.data) { - // this.tableList.tableInfomation = res.data || [] - // this.pagerOptions.totalCount = res.total ? res.total : 0 - // } else { - // this.tableList.tableInfomation = [] - // } - // } - // this.loading = false - // }) + // this.bomParams.page = this.pagerOptions.currPage ? this.pagerOptions.currPage : 1 + // this.bomParams.pageSize = this.pagerOptions.pageSize ? this.pagerOptions.pageSize : 15 + let params = JSON.parse(JSON.stringify(this.bomParams)) + console.log(params) + await getMaterialList(params).then((res) => { + console.log(res.data) + if (res.code === 200) { + if (res.data) { + this.tableList.tableInfomation = res.data || [] + this.pagerOptions.totalCount = res.total ? res.total : 0 + } else { + this.tableList.tableInfomation = [] + } + } + this.loading = false + }) }, handleClose() { this.editConfig.editVisible = false -- Gitblit v1.8.0