瀏覽代碼

修改bug

chenrui 2 年之前
父節點
當前提交
ac414ecd00

+ 0 - 18
src/api/approveStore.js

@@ -27,21 +27,3 @@ export const xprhStoreApplyDetail = (params) => {
     method: 'get'
     method: 'get'
   })
   })
 }
 }
-
-// 获取价格显示
-export const queryList = (params) => {
-  return axios({
-    url: `/bizparam/queryList`,
-    data: params,
-    method: 'post'
-  })
-}
-
-// 更新价格显示
-export const updateBatch = (params) => {
-  return axios({
-    url: `/bizparam/updateBatch`,
-    data: params,
-    method: 'post'
-  })
-}

+ 1 - 12
src/config/router.config.js

@@ -84,7 +84,7 @@ export const asyncRouterMap = [
                 }
                 }
               },
               },
               {
               {
-                path: 'authPass',
+                path: 'authPass/:sn',
                 name: 'approveStoreAuthPass',
                 name: 'approveStoreAuthPass',
                 component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/approveStore/authPass.vue'),
                 component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/approveStore/authPass.vue'),
                 meta: {
                 meta: {
@@ -310,17 +310,6 @@ export const asyncRouterMap = [
               icon: 'read',
               icon: 'read',
               permission: 'M_operateJournal'
               permission: 'M_operateJournal'
             }
             }
-          },
-          {
-            path: '/setting/equipmentManagement',
-            name: 'equipmentManagement',
-            component: () => import(/* webpackChunkName: "setting" */
-              '@/views/power/equipment/equipmentManagement.vue'),
-            meta: {
-              title: '设备管理',
-              icon: 'read'
-              // permission: 'M_operateJournal'
-            }
           }
           }
         ]
         ]
       }
       }

+ 7 - 127
src/views/numsGoodsShelves/approveStore/authPass.vue

@@ -143,65 +143,6 @@
                   placeholder="请输入大于100的数字(最多允许两位小数)"></a-input-number>
                   placeholder="请输入大于100的数字(最多允许两位小数)"></a-input-number>
               </a-form-model-item>
               </a-form-model-item>
             </a-col>
             </a-col>
-            <a-col :span="12" v-for="(con, index) in priceList" :key="index" v-if="priceList.length>0">
-              <a-form-model-item :prop="form[con.paramCode]" v-if="con.paramCode == 'shelf_price_show'">
-                <template slot="label">
-                  <a-tooltip placement="top">
-                    <template slot="title">
-                      修理厂登录修配易码通小程序后,
-                      <br />
-                      是否可以看见产品的车主价
-                    </template>
-                    车主价
-                    <a-icon type="question-circle" style="color: rgba(0,0,0,.65);font-size: 16px;margin-left: 2px;vertical-align: sub;cursor: pointer;" />
-                  </a-tooltip>
-                </template>
-                <a-radio-group @change="(e)=>onChangePriceType(e,index)" v-model="con.paramValue">
-                  <a-radio value="1">可见</a-radio>
-                  <a-radio value="0">不可见</a-radio>
-                </a-radio-group>
-                <span class="spanStyle">(修理厂的建议销售价)</span>
-              </a-form-model-item>
-              <a-form-model-item :prop="form[con.paramCode]" v-if="con.paramCode == 'shelf_cost_show'">
-                <template slot="label">
-                  <a-tooltip placement="top">
-                    <template slot="title">
-                      修理厂登录修配易码通小程序后,<br>
-                      是否可以看见产品的进货价
-                    </template>
-                    进货价<a-icon type="question-circle" style="color: rgba(0,0,0,.65);font-size: 16px;margin-left: 2px;vertical-align: sub;cursor: pointer;" />
-                  </a-tooltip>
-                </template>
-                <a-radio-group @change="(e)=>onChangePriceType(e,index)" v-model="con.paramValue">
-                  <a-radio value="1">
-                    可见
-                  </a-radio>
-                  <a-radio value="0">
-                    不可见
-                  </a-radio>
-                </a-radio-group>
-                <span class="spanStyle">(修理厂的进货价,即汽配商的销售价)</span>
-              </a-form-model-item>
-              <a-form-model-item :prop="form[con.paramCode]" v-if="flag && con.paramCode == 'shelf_not_distribute_show'">
-                <template slot="label">
-                  <a-tooltip placement="top">
-                    <template slot="title">
-                      非铺货产品指不是货架上的产品
-                    </template>
-                    非铺货产品价格<a-icon type="question-circle" style="color: rgba(0,0,0,.65);font-size: 16px;margin-left: 2px;vertical-align: sub;cursor: pointer;" />
-                  </a-tooltip>
-                </template>
-                <a-radio-group @change="(e)=>onChangePriceType(e,index)" v-model="con.paramValue">
-                  <a-radio value="1">
-                    显示
-                  </a-radio>
-                  <a-radio value="0">
-                    不显示
-                  </a-radio>
-                </a-radio-group>
-                <span class="spanStyle">(非铺货产品是否显示车主价和进货价)</span>
-              </a-form-model-item>
-            </a-col>
           </a-row>
           </a-row>
           <a-form-model-item :wrapper-col="{ span: 12, offset: 6 }" style="text-align: center;margin-top: 30px;">
           <a-form-model-item :wrapper-col="{ span: 12, offset: 6 }" style="text-align: center;margin-top: 30px;">
             <a-button type="primary" @click="saveForm" size="large" id="authPass-btn-submit" style="padding: 0 60px;">审核通过</a-button>
             <a-button type="primary" @click="saveForm" size="large" id="authPass-btn-submit" style="padding: 0 60px;">审核通过</a-button>
@@ -217,7 +158,7 @@ import { STable, VSelect, Upload } from '@/components'
 import { getAreaCgj } from '@/api/data'
 import { getAreaCgj } from '@/api/data'
 import dealerList from '@/views/common/dealerList.vue'
 import dealerList from '@/views/common/dealerList.vue'
 import customeList from '@/views/common/customeList.vue'
 import customeList from '@/views/common/customeList.vue'
-import { xprhStoreApplyDetail, xprhStoreApplyAudit, queryList, updateBatch } from '@/api/approveStore'
+import { xprhStoreApplyDetail, xprhStoreApplyAudit } from '@/api/approveStore'
 export default {
 export default {
   name: 'ApproveStoreAuthPass',
   name: 'ApproveStoreAuthPass',
   components: { STable, VSelect, dealerList, customeList, Upload },
   components: { STable, VSelect, dealerList, customeList, Upload },
@@ -246,10 +187,7 @@ export default {
         creditLimit: undefined, //  授信额度
         creditLimit: undefined, //  授信额度
         delearSn: undefined,
         delearSn: undefined,
         applySn: undefined,
         applySn: undefined,
-        auditStatus: 'PASS', // 通过
-        shelf_price_show: null,
-        shelf_cost_show: null,
-        shelf_not_distribute_show: null
+        auditStatus: 'PASS' // 通过
       },
       },
       rules: {
       rules: {
         storeImage: [{ required: true, message: '请上传门头照片', trigger: 'change' }],
         storeImage: [{ required: true, message: '请上传门头照片', trigger: 'change' }],
@@ -262,18 +200,12 @@ export default {
         settleType: [{ required: true, message: '请选择收结算方式', trigger: 'change' }],
         settleType: [{ required: true, message: '请选择收结算方式', trigger: 'change' }],
         delearSn: [{ required: true, message: '请选择绑定汽配商', trigger: 'change' }],
         delearSn: [{ required: true, message: '请选择绑定汽配商', trigger: 'change' }],
         customerSn: [{ required: true, message: '请选择关联客户', trigger: 'change' }],
         customerSn: [{ required: true, message: '请选择关联客户', trigger: 'change' }],
-        creditLimit: [{ required: true, message: '请输入授信额度', trigger: 'change' }],
-        shelf_price_show: [{ required: true, message: '请选择车主价权限', trigger: 'change' }],
-        shelf_cost_show: [{ required: true, message: '请选择进货价权限', trigger: 'change' }],
-        shelf_not_distribute_show: [{ required: true, message: '请非铺货价格显示', trigger: 'change' }]
+        creditLimit: [{ required: true, message: '请输入授信额度', trigger: 'change' }]
       },
       },
       addrProvinceList: [], //  省下拉
       addrProvinceList: [], //  省下拉
       addrCityList: [], //  市下拉
       addrCityList: [], //  市下拉
       addrDistrictList: [], //  区下拉
       addrDistrictList: [], //  区下拉
-      settleStyleList: [], //  收款方式  下拉数据
-      val: '',
-      priceList: [],
-      flag: false
+      settleStyleList: [] //  收款方式  下拉数据
     }
     }
   },
   },
   methods: {
   methods: {
@@ -334,7 +266,7 @@ export default {
             centered: true,
             centered: true,
             closable: true,
             closable: true,
             onOk () {
             onOk () {
-              _this.handleSubit()
+              _this.handleSubmit()
             }
             }
           })
           })
         } else {
         } else {
@@ -348,7 +280,8 @@ export default {
       xprhStoreApplyAudit(_this.form).then(res => {
       xprhStoreApplyAudit(_this.form).then(res => {
         if (res.status == 200) {
         if (res.status == 200) {
           _this.$message.success(res.message)
           _this.$message.success(res.message)
-          _this.handleSave()
+          _this.handleBack()
+          _this.spinning = false
         } else {
         } else {
           _this.spinning = false
           _this.spinning = false
         }
         }
@@ -430,64 +363,11 @@ export default {
       if (this.$route.params.sn) {
       if (this.$route.params.sn) {
         this.getDetail()
         this.getDetail()
       }
       }
-    },
-    getPriceList () {
-      queryList({ shelfSn: this.$route.params.shelfSn, bizType: 'xprh_shelf_price_show' }).then(res => {
-        if (res.status == 200) {
-          this.priceList = res.data
-          const isFlag = res.data.findIndex(r => {
-            return r.paramValue == 1
-          })
-          if (isFlag != -1) {
-            this.flag = true
-          }
-        } else {
-          this.priceList = []
-        }
-      })
-    },
-    onChangePriceType (e, i) {
-      this.$set(this.priceList[i], 'paramValue', e.target.value)
-      this.form[this.priceList[i].paramCode] = i.toString()
-      if (this.priceList[i].paramCode != 'xprh_shelf_price_show') {
-        const isFlag = this.priceList.findIndex(r => {
-          return r.paramValue == 1
-        })
-        if (isFlag != -1) {
-          this.flag = true
-        } else {
-          this.flag = false
-        }
-      }
-    },
-    handleSave () {
-      const _this = this
-      var newArr = []
-      for (var i = 0; i < this.priceList.length; i++) {
-        var obj = {
-          id: _this.priceList[i].id,
-          paramValue: _this.priceList[i].paramValue
-        }
-        newArr.push(obj)
-      }
-      updateBatch(newArr).then(ret => {
-        if (ret.status == 200) {
-          _this.$message.success(ret.message)
-          _this.handleBack()
-          _this.spinning = false
-        } else {
-          _this.spinning = false
-        }
-      })
     }
     }
   },
   },
   mounted () {
   mounted () {
     if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
     if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
       this.initPage()
       this.initPage()
-      // 获取价格显示 接口 (因为未审核通过状态下拿不到货架sn,暂时废弃掉的接口)
-      if (this.$route.query.shelfSn) {
-        this.getPriceList()
-      }
     }
     }
   },
   },
   activated () {
   activated () {

+ 1 - 1
src/views/numsGoodsShelves/approveStore/list.vue

@@ -158,7 +158,7 @@ export default {
     handleAudit (row, type) {
     handleAudit (row, type) {
       // 审核通过
       // 审核通过
       if (type == 1) {
       if (type == 1) {
-        this.$router.push({ path: '/numsGoodsShelves/approveStore/authPass', query: { sn: row.applySn, shelfSn: row.shelfSn ? row.shelfSn : '' } })
+        this.$router.push({ name: 'approveStoreAuthPass', params: { sn: row.applySn } })
       } else {
       } else {
         const _this = this
         const _this = this
         this.$confirm({
         this.$confirm({