浏览代码

收款管理

zhangyuewww 3 年之前
父节点
当前提交
1da651e8b2
共有 1 个文件被更改,包括 31 次插入22 次删除
  1. 31 22
      src/views/financialManagement/collectionManagementList.vue

+ 31 - 22
src/views/financialManagement/collectionManagementList.vue

@@ -68,8 +68,8 @@
       <el-table-column width='100' class="table_td" prop="outWeight" label="出货量(吨)"></el-table-column>
       <el-table-column width='120' class="table_td" prop="alreadyInvoice" label="已开发票(元)"></el-table-column>
       <el-table-column width='120' class="table_td" prop="notInvoice" label="未开发票(元)"></el-table-column>
-      <el-table-column class="table_td" prop="notInvoice" label="附">
-        <template slot-scope="scope">
+      <el-table-column class="table_td" prop="notInvoice" label="附">
+        <!-- <template slot-scope="scope">
             <img
               width="18"
               height="20"
@@ -78,17 +78,24 @@
               @click="fujian(scope.row)"
               alt=""
             />
-          </template>
+          </template> -->
+          <template slot-scope="scope">
+          <img
+            width="18"
+            height="20"
+            style="vertical-align: text-top; position: relative; top: -1px"
+            src="../../../public/img/fujian.png"
+            @click="fujian(scope.row)"
+            alt=""
+          />
+          <span v-if="scope.row.addressUrlArray.length > 0">{{
+            scope.row.addressUrlArray.length
+          }}</span>
+          <!-- <i @click="fujian(scope.row)" class="el-icon-paperclip iconCss"></i> -->
+        </template>
       </el-table-column>
       <el-table-column prop="status" label="状态">
             <template slot-scope="scope">
-              <el-popover
-                placement="left"
-                :width="285"
-                trigger="click"
-                visible-arrow="false"
-                @show="history(scope.row)"
-              >
                 <template>
                   <span slot="reference">
                     <span v-if="scope.row.status == '待回款'" class="executory"></span>
@@ -97,7 +104,6 @@
                     {{ scope.row.status }}
                   </span>
                 </template>
-              </el-popover>
             </template>
           </el-table-column>
       <el-table-column class="table_td" prop="updateDate" label="更新时间" width="130"></el-table-column>
@@ -252,7 +258,7 @@
     </el-dialog>
     <!-- 附件弹框 -->
     <el-dialog width="60%" :visible.sync="accessoryTFs" :before-close="handlefujianClose" :append-to-body="true">
-      <p>查看附件</p>
+      <p>添加附件</p>
       <el-upload
   class="avatar-uploader"
   action="https://www.zthymaoyi.com/upload/admin"
@@ -379,7 +385,6 @@ export default {
       id: '',
       contractList: [],
       deptBudgetList: {},
-      historyList: [],
       appendixIdss: [],
       fileList: [],
       dataList: {},
@@ -433,7 +438,9 @@ export default {
         this.getList()
       },
     fujian(row) {
-      this.addressUrls=row.addressUrl.split(',')
+      if(row.addressUrl!=null){
+         this.addressUrls=row.addressUrl.split(',')
+      }
       this.editlist.id=row.id
       this.accessoryTFs=true
     },
@@ -752,6 +759,16 @@ export default {
       })
         .toPromise()
         .then(response => {
+          for (var i = 0; i < response.records.length; i++) {
+            if (response.records[i].addressUrl != null) {
+              if(response.records[i].addressUrl){
+              response.records[i].addressUrlArray =
+                response.records[i].addressUrl.split(',')
+                }
+            } else {
+              response.records[i].addressUrlArray = []
+            }
+          }
           this.deptCircularPage.currentPage = response.current
           this.deptCircularPage.pageSize = response.size
           this.deptBudgetTotal = response.total
@@ -912,14 +929,6 @@ export default {
     handleCloe() {
       this.dialogViewSpareMoney = false
     },
-    history(row) {
-      console.log(row)
-      billoperatehis({ id: row.id })
-        .toPromise()
-        .then(response => {
-          this.historyList = response
-        })
-    },
     async exportlist() {
       const { data } = await export1(
         {