2
3
Преглед на файлове

前端:银行拉取账单接口处控制交费时间

baichengfei преди 4 години
родител
ревизия
b484dea2e3
променени са 1 файла, в които са добавени 12 реда и са изтрити 8 реда
  1. 12 8
      src/dashoo.cn/frontend_web/src/pages/oilsupplier/paymentinfo/paymentsure.vue

+ 12 - 8
src/dashoo.cn/frontend_web/src/pages/oilsupplier/paymentinfo/paymentsure.vue

@@ -7,7 +7,7 @@
     <el-card class="box-card">
       <div slot="header">
         <span>
-          <i class="icon icon-table2"></i> 交费确认
+          <i class="icon icon-table2"></i> 交费确认 (<span style="color: #f13f40">每月2日至26日允许交费</span>)
         </span>
         <span style="float: right;">
           <el-form ref="form" :inline="true" style="margin-top: -10px">
@@ -208,13 +208,13 @@
         this.initDatas()
       },
       NoChange (val) {
-        let obj = {};
-        obj = this.NoOptions.find((item)=>{
-          if(item.Id === val){
+        let obj = {}
+        obj = this.NoOptions.find((item) => {
+          if (item.Id === val) {
             this.commercialNo = item.USCCode
             this.searchForm.commercialNo = item.USCCode
           }
-        });
+        })
       },
       GetNoOptions () {
         let _this = this
@@ -250,10 +250,14 @@
         api.BillSure(params, this.$axios).then(res => {
           this.initDatas()
           this.sureLoading = false
+          let type = 'success'
+          if (res.data.code === -1) {
+            type = 'warning'
+          }
           this.$message({
-                    duration: 10000,
-                    type: 'success',
-            message: '操作成功'
+            duration: 10000,
+            type: type,
+            message: res.data.message
           })
         }).catch(err => {
           console.error(err)