lilei před 2 roky
rodič
revize
a7029ea735

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1679472539390
+  "version": 1679479068856
 }

+ 1 - 1
src/components/Select/index.js

@@ -28,7 +28,7 @@ export default {
     },
     isEnable: { // 是否只获取已启用的数据
       type: Boolean,
-      default: false
+      default: true
     }
   }),
   created () {

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

@@ -247,12 +247,12 @@ const app = {
     SetWinHeight ({ commit }, val) {
       commit('SET_WIN_HEIGHT', val)
     },
-    getReturnReasonData({ commit }, code, isEnable) {
+    getLookUpDataByCode({ commit }, params) {
       getLookUpData({
         pageNo: 1,
         pageSize: 1000,
-        lookupCode: code,
-        isEnable: isEnable || undefined
+        lookupCode: params.code,
+        isEnable: params.isEnable
       }).then(res => {
         if (res.status == 200) {
           commit('SET_returnReason', res.data.list)

+ 5 - 2
src/views/Home.vue

@@ -787,7 +787,7 @@ export default {
     }
   },
   methods: {
-    ...mapActions(['getReturnReasonData']),
+    ...mapActions(['getLookUpDataByCode']),
     hasNewProduct () {
       queryNewProductPage({ pageNo: 1, pageSize: 20, onlineFalg: this.onlineFalg }).then(res => {
         if (res.status == 200) {
@@ -901,7 +901,10 @@ export default {
         vm.openResetPwd = true
       }
       // 退货原因列表
-      vm.getReturnReasonData('RETURN_REASON')
+      vm.getLookUpDataByCode({
+        code: 'RETURN_REASON',
+        isEnable: 1
+      })
     })
   }
 }