فهرست منبع

所属小程序下拉款

xw 3 روز پیش
والد
کامیت
ca76776de3
2فایلهای تغییر یافته به همراه18 افزوده شده و 9 حذف شده
  1. 8 0
      src/api/hisStore/storePayment.js
  2. 10 9
      src/views/hisStore/storePayment/index.vue

+ 8 - 0
src/api/hisStore/storePayment.js

@@ -76,3 +76,11 @@ export function setPayNotify(data) {
     data: data
   })
 }
+
+// 获取小程序列表
+export function getMiniProgramList() {
+  return request({
+    url: '/store/store/storePayment/getMiniProgramList',
+    method: 'get'
+  })
+}

+ 10 - 9
src/views/hisStore/storePayment/index.vue

@@ -133,7 +133,7 @@
             v-for="dict in appMallOptions"
             :key="dict.id"
             :label="dict.name + '(' + dict.appid + ')'"
-            :value="dict.id"
+            :value="dict.appid"
           />
         </el-select>
       </el-form-item>
@@ -187,7 +187,7 @@
       <el-table-column label="所属公司" align="center" prop="companyName" />
       <el-table-column label="所属部门" align="center" prop="deptName" />
       <el-table-column label="员工" align="center" prop="companyUserNickName" />
-      <el-table-column label="所属小程序" align="center" prop="name" />
+      <el-table-column label="所属小程序" align="center" prop="appName" />
       <el-table-column label="状态" align="center" prop="status" >
           <template slot-scope="scope">
               <el-tag prop="status" v-for="(item, index) in statusOptions"    v-if="scope.row.status==item.dictValue">{{item.dictLabel}}</el-tag>
@@ -303,9 +303,8 @@
 </template>
 
 <script>
-import { refundStorePayment,listStorePayment, getStorePayment, delStorePayment, addStorePayment, updateStorePayment, exportStorePayment,setPayNotify } from "@/api/hisStore/storePayment";
+import { refundStorePayment,listStorePayment, getStorePayment, delStorePayment, addStorePayment, updateStorePayment, exportStorePayment,setPayNotify,getMiniProgramList } from "@/api/hisStore/storePayment";
 import { getCompanyList } from "@/api/company/company";
-import {list as getAppMallOptions} from '@/api/course/coursePlaySourceConfig';
 export default {
   name: "HisStorePayment",
   data() {
@@ -402,7 +401,7 @@ export default {
       });
     this.getList();
     // 获取小程序选项列表
-    this.getAppMallOptions();
+    this.getMiniProgramList();
   },
   methods: {
     submitPayNotifyForm(){
@@ -591,10 +590,12 @@ export default {
         this.download(response.msg);
       }).catch(function() {});
     },
-    // 获取小程序选项列表
-    getAppMallOptions() {
-      getAppMallOptions({pageNum:1,pageSize:100,isMall:1}).then(response => {
-        this.appMallOptions = response.rows;
+    // 获取小程序列表
+    getMiniProgramList() {
+      getMiniProgramList().then(response => {
+        if (response.code === 200) {
+          this.appMallOptions = response.data;
+        }
       })
     },
   }