Sfoglia il codice sorgente

修改提单号过长截取报错问题

lichao 3 anni fa
parent
commit
56436e6b0f

+ 3 - 3
src/views/finance/Invoicing/index.vue

@@ -749,7 +749,7 @@
                   ? scope.row.fBsdate.slice(0, 10)
                   : scope.row.fReviewDate
               }}</span>
-              <span v-if="item.label == 'fSrcdc' && login == 3">{{
+              <span v-else-if="item.label == 'fSrcdc' && login == 3">{{
                 scope.row.fSrcdc == "D" ? "收" : "付"
               }}</span>
               <span v-else>{{ scope.row[item.label] }}</span>
@@ -3566,7 +3566,7 @@ export default {
               if (!repeat) fMblnoList.push(e.fMblno)
             })
             this.queryParams.tMblno = fMblnoList.join(',');
-            if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno.slice(0, 199)
+            if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno = this.queryParams.tMblno.slice(0, 199)
             // this.queryParams.fBillstatus = '4'
             let formDate = new window.FormData();
             formDate.append("tFee", JSON.stringify(this.queryParams));
@@ -4248,7 +4248,7 @@ export default {
             if (!repeat) fMblnoList.push(e.fMblno)
           })
           this.queryParams.tMblno = fMblnoList.join(',');
-          if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno.slice(0, 199)
+          if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno = this.queryParams.tMblno.slice(0, 199)
           if (this.queryParams.fId == null) {
             // this.chargeList.fBillstatus = '1'
             this.queryParams.fBillstatus = "1";

+ 3 - 3
src/views/finance/charge/index.vue

@@ -721,7 +721,7 @@
         >
           <template slot-scope="scope">
             <span v-if="item.label == 'fBsdate'">{{scope.row.fBsdate ? scope.row.fBsdate.slice(0, 10) : scope.row.fReviewDate}}</span>
-            <span v-if="item.label == 'fSrcdc' && login == 3">{{ scope.row.fSrcdc == 'D' ? '收' : '付' }}</span>
+            <span v-else-if="item.label == 'fSrcdc' && login == 3">{{ scope.row.fSrcdc == 'D' ? '收' : '付' }}</span>
             <span v-else>{{ scope.row[item.label] }}</span>
           </template>
         </el-table-column>
@@ -2790,7 +2790,7 @@ export default {
               if (!repeat) fMblnoList.push(e.fMblno)
             })
             this.queryParams.tMblno = fMblnoList.join(',');
-            if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno.slice(0, 199)
+            if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno = this.queryParams.tMblno.slice(0, 199)
             // this.queryParams.fBillstatus = '4'
             let formDate = new window.FormData();
             formDate.append("tFee", JSON.stringify(this.queryParams));
@@ -3478,7 +3478,7 @@ export default {
             if (!repeat) fMblnoList.push(e.fMblno)
           })
           this.queryParams.tMblno = fMblnoList.join(',');
-          if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno.slice(0, 199)
+          if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno = this.queryParams.tMblno.slice(0, 199)
           if (!this.queryParams.fId) {
             // this.chargeList.fBillstatus = '1'
             this.queryParams.fBillstatus = "1";

+ 3 - 3
src/views/finance/contrast/index.vue

@@ -838,7 +838,7 @@
                   ? scope.row.fBsdate.slice(0, 10)
                   : scope.row.fReviewDate
               }}</span>
-              <span v-if="item.label == 'fSrcdc' && login == 3">{{
+              <span v-else-if="item.label == 'fSrcdc' && login == 3">{{
                 scope.row.fSrcdc == "D" ? "收" : "付"
               }}</span>
               <span v-else>{{ scope.row[item.label] }}</span>
@@ -3440,7 +3440,7 @@ export default {
               if (!repeat) fMblnoList.push(e.fMblno)
             })
             this.queryParams.tMblno = fMblnoList.join(',');
-            if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno.slice(0, 199)
+            if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno = this.queryParams.tMblno.slice(0, 199)
             // this.queryParams.fBillstatus = '4'
             let formDate = new window.FormData();
             formDate.append("tFee", JSON.stringify(this.queryParams));
@@ -4746,7 +4746,7 @@ export default {
             if (!repeat) fMblnoList.push(e.fMblno)
           })
           this.queryParams.tMblno = fMblnoList.join(',');
-          if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno.slice(0, 199)
+          if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno = this.queryParams.tMblno.slice(0, 199)
           if (!this.queryParams.fId || this.queryParams.fId == null) {
             // this.queryParams.fBillstatus = "1";
             let formData = new window.FormData();

+ 3 - 3
src/views/finance/payment/index.vue

@@ -749,7 +749,7 @@
                   ? scope.row.fBsdate.slice(0, 10)
                   : scope.row.fReviewDate
               }}</span>
-              <span v-if="item.label == 'fSrcdc' && login == 3">{{
+              <span v-else-if="item.label == 'fSrcdc' && login == 3">{{
                 scope.row.fSrcdc == "D" ? "收" : "付"
               }}</span>
               <span v-else>{{ scope.row[item.label] }}</span>
@@ -3566,7 +3566,7 @@ export default {
               if (!repeat) fMblnoList.push(e.fMblno)
             })
             this.queryParams.tMblno = fMblnoList.join(',');
-            if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno.slice(0, 199)
+            if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno = this.queryParams.tMblno.slice(0, 199)
             // this.queryParams.fBillstatus = '4'
             let formDate = new window.FormData();
             formDate.append("tFee", JSON.stringify(this.queryParams));
@@ -4250,7 +4250,7 @@ export default {
             if (!repeat) fMblnoList.push(e.fMblno)
           })
           this.queryParams.tMblno = fMblnoList.join(',');
-          if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno.slice(0, 199)
+          if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno = this.queryParams.tMblno.slice(0, 199)
           if (this.queryParams.fId == null) {
             // this.chargeList.fBillstatus = '1'
             this.queryParams.fBillstatus = "1";