lilei 2 年之前
父节点
当前提交
f9a8b0766e
共有 2 个文件被更改,包括 9 次插入9 次删除
  1. 2 2
      src/store/modules/app.js
  2. 7 7
      src/views/Home.vue

+ 2 - 2
src/store/modules/app.js

@@ -162,12 +162,12 @@ const app = {
         }
       })
     },
-    getReturnReasonData({ commit }, code, isEnable) {
+    getReturnReasonData({ commit }, code) {
       getLookUpData({
         pageNo: 1,
         pageSize: 1000,
         lookupCode: code,
-        isEnable: isEnable||0
+        isEnable: 1
       }).then(res => {
         if (res.status == 200) {
           commit('SET_returnReason', res.data.list)

+ 7 - 7
src/views/Home.vue

@@ -107,14 +107,14 @@ export default {
       } else {
         vm.openResetPwd = true
       }
-      vm.getReturnReasonData('RETURN_REASON',1)
+      vm.getReturnReasonData('RETURN_REASON')
       vm.getYyMenuList()
-      vm.$store.state.app.priceAuthOptions=[
-        {label:'售价',value:'salesPrice'},
-        {label:'成本价',value:'costPrice'},
-        {label:'省级价',value:'provincePrice'},
-        {label:'市级价',value:'cityPrice'},
-        {label:'特约价',value:'specialPrice'}
+      vm.$store.state.app.priceAuthOptions = [
+        { label: '售价', value: 'salesPrice' },
+        { label: '成本价', value: 'costPrice' },
+        { label: '省级价', value: 'provincePrice' },
+        { label: '市级价', value: 'cityPrice' },
+        { label: '特约价', value: 'specialPrice' }
       ]
     })
   }