Browse Source

中间证书修改

duy 1 year ago
parent
commit
c32d7dc11a

+ 2 - 2
src/views/debit-pay/admin/certificate.vue

@@ -162,8 +162,8 @@ const rowRecalculateClick = async (row) => {
 const pdfList = ref([])
 const rowViewPdf = (row)=>{
     pdfList.value = []
-    if (row.urlListData.length > 0) {
-        pdfList.value = row.urlListData
+    if (getArrValue(row?.urlListData).length > 0) {
+        pdfList.value = getArrValue(row?.urlListData)
         console.log(pdfList.value, 'pdfList.value')
         isReportDrawer.value = true
     } else {

+ 13 - 0
src/views/debit-pay/admin/components/middlepay/qualityRleation.vue

@@ -13,6 +13,7 @@
                         ref="qualTable" :column="tableColumn" :datas="tableData" is-new is-check is-reserve-selection :loading="tableLoading" row-key="selectId"
                         @select="tableSelect"
                         @selection-change="tableSelection"
+                        @select-all="tableSelectAll"
                     >
                         <template #appStatusName="{ row }">
                             <el-tag
@@ -251,6 +252,18 @@ const tableSelect = (rows)=>{
    if (!isDel) {
       cancelcheck.value.push( row.selectId)
    }
+}
+const tableSelectAll = (rows)=>{
+  console.log(rows, 'rows')
+  let arr = rows.filter(obj => obj.appStatusName !== '已审批')
+  console.log(arr, 'arr')
+  if (arr.length > 0) {
+    window.$message.warning('只能勾选已审批的数据')
+    qualTable.value?.clearSelection()
+    return
+  }
+
+
 }
 //之前选中的
 const saveQualModal = ()=>{