Sfoglia il codice sorgente

往来账款问题优化

dudm 3 anni fa
parent
commit
3fde46a5a5

+ 1 - 1
front-vue/src/views/service/bill/bill.vue

@@ -103,7 +103,7 @@
     </el-row>
 
     <el-table stripe 
-      v-loading.fullscreen.lock="loading" :data="billList" row-key="categoryId" 
+      v-loading="loading" :data="billList" row-key="categoryId" 
               default-expand-all  :tree-props="{children: 'children', hasChildren: 'hasChildren'}" border >
        <el-table-column label="序号" type="index" width="50" align="center">
         <template slot-scope="scope">

+ 13 - 3
front-vue/src/views/service/bill/billAdd.vue

@@ -44,8 +44,9 @@
                 prop="wplIsInput"
                 style="width: 300px"
               >
-                <el-radio-group v-model="type" prop="type" @change="changePayer">
+                <el-radio-group v-model="type" prop="type" @change="changePayer" :disabled="disabled">
                   <el-radio-button label="00"
+                  v-if="company.scyType != '02'"
                     >应付账款</el-radio-button
                   >
                   <el-radio-button label="01"
@@ -281,7 +282,7 @@
                   将文件拖到此处,或<em>点击选择文件</em>
                 </div>
                 <div class="el-upload__tip">
-                  按住Ctrl可同时多选,单个文件不能超过4mb
+                  按住Ctrl可同时多选,单个文件不能超过2mb
                 </div>
                 <div class="el-upload__tip">
                   严禁上传包含色情、暴力、反动等相关违法信息的文件。
@@ -641,6 +642,7 @@ export default {
       companyRelList:[],
       //链属企业
       company:{},
+      disabled:true
     };
   },
   created() {
@@ -649,7 +651,15 @@ export default {
     getOwnCompany().then((response) => {
       this.company = response.data;
     }).then((response) => {
-      this.changePayer("00")
+      if(this.company.scyType == '02'){
+        this.changePayer("01")
+        this.disabled = true
+        this.type = "01"
+      }else{
+        this.changePayer("00")
+        this.type = "00"
+        this.disabled = false
+      }
     });
     this.getCompanyRel()
     this.getDicts("zc_invoice_checkStt").then(response => {

+ 12 - 4
front-vue/src/views/service/bill/billDetail.vue

@@ -413,7 +413,9 @@ export default {
       } else if(this.active == 1) {
         //查询合同
         getFile("0",this.form.zbiId).then((response) => {
-          response.url = response.url + "/" + getToken()
+          response.data.forEach(element => {
+              element.url = element.url + "/" + getToken()
+          });
           this.contractList = response.data;
           this.fullscreenLoading = false
         }).catch(() => {
@@ -423,7 +425,9 @@ export default {
       } else if(this.active == 2) {
         //查询物流
         getFile("1",this.form.zbiId).then((response) => {
-          response.url = response.url + "/" + getToken()
+          response.data.forEach(element => {
+              element.url = element.url + "/" + getToken()
+          });
           this.logisticsList = response.data;
           this.fullscreenLoading = false
         }).catch(() => {
@@ -433,7 +437,9 @@ export default {
       } else if(this.active == 3) {
         //查询其他附件
         getFile("2",this.form.zbiId).then((response) => {
-          response.url = response.url + "/" + getToken()
+          response.data.forEach(element => {
+              element.url = element.url + "/" + getToken()
+          });
           this.otherList = response.data;
           this.fullscreenLoading = false
         }).catch(() => {
@@ -448,7 +454,9 @@ export default {
     //查询合同
     getInvoiceList(){
       getInvoice(this.form.zbiId).then((response) => {
-        response.url = response.url + "/" + getToken()
+        response.data.forEach(element => {
+            element.url = element.url + "/" + getToken()
+        });
         this.fileList = response.data;
         this.fullscreenLoading = false
       }).catch(() => {

+ 1 - 1
front-vue/src/views/service/bill/billEdit.vue

@@ -284,7 +284,7 @@
                   将文件拖到此处,或<em>点击选择文件</em>
                 </div>
                 <div class="el-upload__tip">
-                  按住Ctrl可同时多选,单个文件不能超过4mb
+                  按住Ctrl可同时多选,单个文件不能超过2mb
                 </div>
                 <div class="el-upload__tip">
                   严禁上传包含色情、暴力、反动等相关违法信息的文件。