From 65201aa7d828dd1732400f62832d8828b21fe6dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Mon, 9 Jan 2023 15:26:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/goodsInfo/goodsInfojs.js | 65 ++++++++++++----------- src/views/system/goodsInfo/index.vue | 14 +++-- 2 files changed, 45 insertions(+), 34 deletions(-) diff --git a/src/views/system/goodsInfo/goodsInfojs.js b/src/views/system/goodsInfo/goodsInfojs.js index 1cea757..f9dd9e4 100644 --- a/src/views/system/goodsInfo/goodsInfojs.js +++ b/src/views/system/goodsInfo/goodsInfojs.js @@ -54,22 +54,22 @@ export default { nursetotal: 0, nurseStationId: null, goods: [{ - value: "BUSINESS", - label: "买卖", - }, - { - value: "LEASE", - label: "租赁", - }, + value: "BUSINESS", + label: "买卖", + }, + { + value: "LEASE", + label: "租赁", + }, ], options: [{ - value: 0, - label: "否", - }, - { - value: 1, - label: "是", - }, + value: 0, + label: "否", + }, + { + value: 1, + label: "是", + }, ], // goodAttributeDetailsLists:[], goodDetailsLists: [], @@ -129,7 +129,10 @@ export default { { required: true, message: "请输入商品度量单位", trigger: "blur" }, ], goodsPictureUrl: [ - { required: true, message: "请输入选择图片", trigger: "blur" }, + { required: true, message: "请选择图片", trigger: "blur" }, + ], + sort: [ + { required: true, message: "请输入商品顺序", trigger: "blur" }, ], }, }; @@ -193,7 +196,7 @@ export default { attributePitureUrl: "", goodsPrice: "", goodsStock: "", - sort: "", + sort: null, ids: this.ids, }; this.goodDetailsLists.push(obj); @@ -234,7 +237,7 @@ export default { }); } if (this.imgsurl.pictureUrlList.length > 0) { - updatePicture(this.imgsurl).then((res) => { }); + updatePicture(this.imgsurl).then((res) => {}); } this.imgsurl = { pictureUrlList: [] }; this.open = false; @@ -246,9 +249,9 @@ export default { attributePitureUrl: "", goodsPrice: "", goodsStock: "", - sort: "", - },], - },]; + sort: null, + }, ], + }, ]; }, handleQuery2() { @@ -267,7 +270,7 @@ export default { pageNum: 1, pageSize: 10, }), - this.handleQuery2(); + this.handleQuery2(); }, addcancel() { this.resetQuery2(); @@ -298,9 +301,9 @@ export default { attributePitureUrl: "", goodsPrice: "", goodsStock: "", - sort: "", + sort: null, ids: 9999999, - },]; + }, ]; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -341,9 +344,9 @@ export default { attributePitureUrl: "", goodsPrice: "", goodsStock: "", - sort: "", + sort: null, ids: 9999999, - },]; + }, ]; this.open = true; }, /** 修改按钮操作 */ @@ -413,10 +416,10 @@ export default { handleDelete(row) { console.log("row :>> ", row); this.$confirm("是否确认删除订单信息的数据项?", "提示", { - confirmButtonText: "确定", - cancelButtonText: "取消", - type: "warning", - }) + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) .then(() => { var obj = { pictureUrlList: [] }; obj.pictureUrlList.push(row.goodsPictureUrl); @@ -430,7 +433,7 @@ export default { // console.log('this.OrderDetailsList :>> ', this.OrderDetailsList); }); }) - .catch(() => { }); + .catch(() => {}); }, // handleDelete(row) { // const ids = row.id || this.ids; @@ -507,4 +510,4 @@ export default { }); }, }, -}; +}; \ No newline at end of file diff --git a/src/views/system/goodsInfo/index.vue b/src/views/system/goodsInfo/index.vue index 6419e87..c66c8fa 100644 --- a/src/views/system/goodsInfo/index.vue +++ b/src/views/system/goodsInfo/index.vue @@ -267,6 +267,13 @@ style="width: 210px" /> + + + - + @@ -349,7 +357,7 @@ style="margin-top: 20px" >