From 1be1b02ce28638c92076e4d40afec70a3f4c2249 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 07 五月 2024 14:37:02 +0800 Subject: [PATCH] 产品模块 启用多单位点击取消关闭复选框+点击确定的时候增加至少填写一项的校验 --- src/components/makepager/CommonFormTableView.vue | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue index 312b0db..7dc1284 100644 --- a/src/components/makepager/CommonFormTableView.vue +++ b/src/components/makepager/CommonFormTableView.vue @@ -89,7 +89,7 @@ size="mini" @select=" (val) => { - handleSelectClient(val, item.prop, scope.row) + handleSelectClient(val, item.prop, scope.row,scope) } " ></el-autocomplete> @@ -160,7 +160,7 @@ :controls="false" size="mini" style="width: 100%; margin-right: 5px" - :min="item.prop === 'minInventory' ? 0 : 1" + :min="item.prop === 'minInventory' ? 0 : 0" @change=" (val) => { commonInputChange(val, item.prop, scope.row) @@ -570,10 +570,19 @@ computed: {}, watch: { productTableList() { - this.tableList = this.productTableList + // this.showcol = this.productTableList.showcol + this.getTableInfo() } }, methods: { + getTableInfo(){ + this.tableList = this.productTableList + if (this.tableList.tableData.length === 1 && this.tableList.tableData[0].name === "") { + this.isRecalculate = false + } else { + this.isRecalculate = true + } + }, // 浜у搧鍚嶇О async getProductList() { await getProductList({ @@ -588,8 +597,8 @@ }) }, // 涓嬫媺鎼滅储 - async handleSelectClient(value, item) { - this.$emit("selProductClick", value, item) + async handleSelectClient(value, item,row,scope) { + this.$emit("selProductClick", value, item,row,scope) if (value === "product") { if (item.categoryId === 0 || item.categoryName === "") { this.productTypeNameOptions = [] -- Gitblit v1.8.0