zhaigk 4 rokov pred
rodič
commit
3493aa932b

+ 26 - 6
front-vue/src/views/service/financeProduct/financeProduct.vue

@@ -83,6 +83,7 @@
       <el-table-column label="电子凭证类型" align="center" prop="zfpVoucherType" :formatter="voucherTypeFormat" :show-overflow-tooltip="true"  v-if="uncheckList.zfpVoucherType"/>
       <el-table-column label="服务费是否可退" align="center" prop="zfpCharge" :formatter="chargeFormat" :show-overflow-tooltip="true"  v-if="uncheckList.zfpCharge"/>
       <el-table-column label="产品状态" align="center" prop="zfpStatus" :formatter="statusFormat" :show-overflow-tooltip="true"  v-if="uncheckList.pifMold"/>
+   
       <el-table-column label="最小融资金额" align="center" prop="zfpMinimumAmount" :show-overflow-tooltip="true"  v-if="uncheckList.zfpMinimumAmount"/>
       <el-table-column label="最短账期" align="center" prop="zfpShortestPeriod" :show-overflow-tooltip="true"  v-if="uncheckList.zfpShortestPeriod"/>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
@@ -206,11 +207,11 @@ export default {
           value: "电子凭证类型"
         },
         {
-          label: "zfpStatus",
+          label: "zfpCharge",
           value: "服务费是否可退"
         },
         {
-          label: "zfpSplit",
+          label: "zfpStatus",
           value: "产品状态"
         },
         {     
@@ -256,6 +257,7 @@ export default {
     this.columnQuery();
   },
   methods: {
+    
     /** 查询融资产品列表 */
     getList() {
       this.loading = true;
@@ -310,10 +312,28 @@ export default {
     },
     /** 启用按钮操作 */
      handleChange(row) {
-       const zfpId = row.zfpId;
-       changeState(zfpId).then((response)=>{
-         this.getList();
-       })
+       
+         let text = row.zfpStatus === "01" ? "开启产品名称为" : "停用产品名称为";
+            this.$confirm(
+                "确认要" + text + '"' + row.zfpName + '"吗?',
+                "警告",
+                {
+                    confirmButtonText: "确定",
+                    cancelButtonText: "取消",
+                    type: "warning",
+                }
+            )
+                .then(function () {
+                    return changeState(row.zfpId);
+                })
+                .then(() => {
+                  this.getList();
+                    this.msgSuccess(text + "成功");
+                })
+                .catch(function () {
+                    row.zfpSplit = row.zfpSplit === "00" ? "01" : "00";
+                });
+       
      },
     //拆转融字典反显
     splitFormat(row, column) {