Browse Source

不显示价格

chenrui 2 years ago
parent
commit
c0b1eba8f8

+ 5 - 5
src/views/numsGoodsShelves/customerAnalysis/list.vue

@@ -6,8 +6,8 @@
           <a-form-model layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
             <a-row :gutter="15">
               <a-col :md="6" :sm="24">
-                <a-form-model-item label="货架名称" prop="providerSn">
-                  <shelfSList v-model="queryParam.providerSn"></shelfSList>
+                <a-form-model-item label="货架名称" prop="shelfSn">
+                  <shelfSList v-model="queryParam.shelfSn"></shelfSList>
                 </a-form-model-item>
               </a-col>
               <a-col :md="6" :sm="24">
@@ -147,7 +147,7 @@ export default {
       orderTime: [],
       // 查询参数
       queryParam: {
-        providerSn: undefined,
+        shelfSn: undefined,
         beginDate: '',
         endDate: ''
         // qhslMin: undefined,
@@ -194,7 +194,7 @@ export default {
         }
       ],
       rules: {
-        'providerSn': [{ required: true, message: '请选择货架', trigger: 'change' }]
+        'shelfSn': [{ required: true, message: '请选择货架', trigger: 'change' }]
       },
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
@@ -228,7 +228,7 @@ export default {
     // 重置
     reset () {
       this.queryParam = {
-        providerSn: undefined,
+        shelfSn: undefined,
         beginDate: '',
         endDate: ''
         // qhslMin: undefined,

+ 25 - 18
src/views/numsGoodsShelves/shelfSet/basicInfoModal.vue

@@ -31,7 +31,7 @@
           </template>
           <custList ref="custList" :isEnabled="true" @change="custChange"></custList>
         </a-form-model-item>
-        <a-form-model-item prop="showPrice">
+        <!-- <a-form-model-item prop="showPrice">
           <template slot="label">
             <a-tooltip placement="top">
               <template slot="title">
@@ -50,7 +50,7 @@
               非铺货产品——不显示价格
             </a-select-option>
           </a-select>
-        </a-form-model-item>
+        </a-form-model-item> -->
       </a-form-model>
       <div class="btn-cont">
         <a-button type="primary" id="shelfSet-basicInfo-modal-save" @click="handleSave">保存</a-button>
@@ -64,7 +64,8 @@
 import { commonMixin } from '@/utils/mixin'
 import { VSelect } from '@/components'
 import custList from '@/views/common/custList.vue'
-import { shelfSave, updateShelfPriceShow } from '@/api/shelf'
+// , updateShelfPriceShow
+import { shelfSave } from '@/api/shelf'
 export default {
   name: 'ShelfSetBasicInfoModal',
   components: { VSelect, custList },
@@ -121,22 +122,28 @@ export default {
           _this.spinning = true
           shelfSave(form).then(res => {
             if (res.status == 200) {
+              _this.$message.success(res.message)
+              setTimeout(() => {
+                _this.isShow = false
+                _this.$emit('ok', res.data)
+                _this.spinning = false
+              }, 100)
               // 更新价格显示
-              updateShelfPriceShow({
-                shelfSn: form.shelfSn,
-                paramValue: form.showPrice
-              }).then(ret => {
-                if (ret.status == 200) {
-                  _this.$message.success(ret.message)
-                  setTimeout(() => {
-                    _this.isShow = false
-                    _this.$emit('ok', res.data)
-                    _this.spinning = false
-                  }, 100)
-                } else {
-                  _this.spinning = false
-                }
-              })
+              // updateShelfPriceShow({
+              //   shelfSn: form.shelfSn,
+              //   paramValue: form.showPrice
+              // }).then(ret => {
+              //   if (ret.status == 200) {
+              //     _this.$message.success(ret.message)
+              //     setTimeout(() => {
+              //       _this.isShow = false
+              //       _this.$emit('ok', res.data)
+              //       _this.spinning = false
+              //     }, 100)
+              //   } else {
+              //     _this.spinning = false
+              //   }
+              // })
             } else {
               _this.spinning = false
             }

+ 10 - 10
src/views/numsGoodsShelves/shelfSet/set.vue

@@ -28,7 +28,7 @@
                 </template>
                 {{ (basicInfoData&&basicInfoData.customerEntity&&basicInfoData.customerEntity.customerName) || '--' }}
               </a-descriptions-item>
-              <a-descriptions-item>
+              <!-- <a-descriptions-item>
                 <template slot="label">
                   <a-tooltip placement="top">
                     <template slot="title">
@@ -40,7 +40,7 @@
                   </a-tooltip>
                 </template>
                 非铺货产品——{{ showPrice == '1' ? '显示': '不显示' }}价格
-              </a-descriptions-item>
+              </a-descriptions-item> -->
             </a-descriptions>
           </a-collapse-panel>
         </a-collapse>
@@ -212,14 +212,14 @@ export default {
   },
   methods: {
     // 获取价格显示设置
-    getShelfPriceShow () {
-      getShelfPriceShow({ shelfSn: this.$route.params.sn }).then(res => {
-        if (res.status == 200) {
-          this.basicInfoData.showPrice = res.data.paramValue
-          this.showPrice = res.data.paramValue
-        }
-      })
-    },
+    // getShelfPriceShow () {
+    //   getShelfPriceShow({ shelfSn: this.$route.params.sn }).then(res => {
+    //     if (res.status == 200) {
+    //       this.basicInfoData.showPrice = res.data.paramValue
+    //       this.showPrice = res.data.paramValue
+    //     }
+    //   })
+    // },
     // 导入或新增货位
     addHW (type) {
       // 导入货位