chenrui 9 місяців тому
батько
коміт
30d7f01f53

+ 1 - 1
src/views/easyPassManagement/shoppingManagement/chooseProductsModal.vue

@@ -224,7 +224,7 @@ export default {
       }
       const resultList = JSON.parse(JSON.stringify(this.rowSelectionInfo && this.rowSelectionInfo.selectedRows))
       this.$emit('ok', resultList)
-      this.isShow = false
+      // this.isShow = false
     },
     // 关闭弹框
     onClose () {

+ 6 - 2
src/views/easyPassManagement/shoppingProducts/editProductModal.vue

@@ -35,7 +35,7 @@
           <a-input-number
             style="width:100%;"
             id="edit-product-price"
-            :min="0"
+            :min="0.01"
             :max="99999999"
             :precision="2"
             :step="0.1"
@@ -120,7 +120,7 @@ export default {
     // 售价类型  change
     handlePriceType (val) {
       if (val === 'TERMINAL_PRICE') {
-        this.form.price = this.form && (this.form.oldPrice || this.form.oldPrice == 0) ? this.form.oldPrice : ''
+        this.form.price = this.form && (this.form.terminalPrice || this.form.terminalPrice == 0) ? this.form.terminalPrice : ''
       }
     },
     // 获取编辑详情
@@ -148,6 +148,10 @@ export default {
       const _this = this
       this.$refs.ruleForm.validate(valid => {
         if (valid) {
+          if (_this.form.price == _this.form.oldPrice) {
+            _this.$message.warning('产品售价未变更!')
+            return
+          }
           _this.spinning = true
           _this.form.shopProductSn = _this.itemSn
           shopProductSaveProduct(_this.form).then(res => {

+ 1 - 0
src/views/easyPassManagement/shoppingProducts/list.vue

@@ -341,6 +341,7 @@ export default {
         if (res.status == 200) {
           _this.$message.success(res.message)
           _this.$nextTick(() => {
+            _this.showProModal = false
             _this.$refs.table.refresh(true)
           })
         }