2 次代码提交 30018cdb71 ... 8d4e271960

作者 SHA1 备注 提交日期
  Joe 8d4e271960 正式版 加气平台加余额 3 年之前
  Joe 67e3c1fa0e 2021.12.28 正式版 3 年之前
共有 4 个文件被更改,包括 14 次插入3 次删除
  1. 2 2
      .env.development
  2. 1 0
      src/views/lng/Lng_BalaceRecord.vue
  3. 10 1
      src/views/order/Order_Approval.vue
  4. 1 0
      vue.config.js

+ 2 - 2
.env.development

@@ -2,8 +2,8 @@
 ENV = 'development'
 
 # 智慧易加管理系统/开发环境
-VUE_APP_BASE_API = 'http://test.huijy.net/prod-api'
-#VUE_APP_BASE_API = '/dev-api'
+#VUE_APP_BASE_API = 'http://test.huijy.net/prod-api'
+VUE_APP_BASE_API = '/dev-api'
 
 # 路由懒加载
 VUE_CLI_BABEL_TRANSPILE_MODULES = true

+ 1 - 0
src/views/lng/Lng_BalaceRecord.vue

@@ -28,6 +28,7 @@
           <span class="badge" :class="scope.row.type == '+' ? 'badge-primary':'badge-danger'">{{ scope.row.type == '+' ? '增加' : '减少' }}</span>
         </template>
       </el-table-column>
+      <af-table-column label="操作前的金额" align="center" prop="nowAmt"  />
       <af-table-column label="变动金额" align="center" prop="amt" />
       <af-table-column label="站点名称" align="center" prop="stationName" v-if="jiBie==1" />
       <af-table-column label="调价时间" align="center" prop="createTime"  />

+ 10 - 1
src/views/order/Order_Approval.vue

@@ -1,7 +1,7 @@
 <template>
   <PermissionContainer
     :jiBieArr="[1, 2]"
-    :type="4"
+    :type="5"
     :tipArr="[
       ,
       '退款的审核只对集团和站点级别开放',
@@ -174,6 +174,7 @@
                 size="mini"
                 type="text"
                 icon="el-icon-plus"
+                :loading="examinRefundLoading"
                 >审核通过</el-button
               >
             </el-popconfirm>
@@ -248,6 +249,8 @@ export default {
       // 表单校验
       rules: {},
       reprint: false,
+      examinRefundLoading: false,
+
     };
   },
   created() {
@@ -277,9 +280,15 @@ export default {
   methods: {
     // 审批通过
     examinRefundSuccess(row) {
+      if(this.examinRefundLoading){
+        return;
+      }
+      this.examinRefundLoading = true;
       examinRefundSuccess(row).then((res) => {
         this.msgSuccess("退款成功");
         this.getList();
+      }).finally(()=>{
+        this.examinRefundLoading = false;
       });
     },
     // 驳回申请

+ 1 - 0
vue.config.js

@@ -36,6 +36,7 @@ module.exports = {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
         target: `http://localhost:8080`,
+        // target:'http://192.168.31.92:8080',
        // target: `http://localhost:8081`,
         // target:"http://www.huiyj.com:9002/prod-api",
         //target:"http://demo.huijy.net/prod-api",