Jelajahi Sumber

私有跟单应收结算记录增加关联发票按钮,直接查询对应开票记录

@dongkboy 2 bulan lalu
induk
melakukan
06a593965a

+ 4 - 1
src/views/receivable/documentary/documentaryRecord.vue

@@ -206,7 +206,10 @@ const reset = () => {
   size.value = 10
   initList()
 }
-
+const invoiceId = route.query.invoiceId
+  if(invoiceId){
+    form.value.recordId = invoiceId
+  }
 let countShow = ref(false)
 let countForm = ref({})
 let countRules = ref({

+ 11 - 3
src/views/receivable/documentary/documentaryReport.vue

@@ -142,10 +142,11 @@
           </el-table-column>
           <el-table-column prop="createBy" label="结算人" width="100"></el-table-column>
           <el-table-column prop="createTime" label="结算时间" width="200"></el-table-column>
-          <el-table-column prop="invoiceId" label="开票记录编号"></el-table-column>
-          <el-table-column label="操作" width="100">
+          <el-table-column prop="invoiceId" label="开票记录编号" width="200"></el-table-column>
+          <el-table-column label="操作" width="160" fixed="right">
             <template #default="scope">
               <el-button link type="primary" @click="handleDetail(scope.row)">删除</el-button>
+              <el-button link type="primary" @click="handleAssociateInvoice(scope.row)">关联发票</el-button>
             </template>
           </el-table-column>
         </el-table>
@@ -511,7 +512,14 @@ const initData3 = (invoiceTypes) => {
     }
   })
 }
-
+const handleAssociateInvoice = (row) => {
+  router.push({
+    path: '/receivable/documentary/documentaryRecord',
+    query: {
+      invoiceId: row.invoiceId
+    }
+  })
+}
 const handleSearch = (type) => {
   pages.value = 1
   size.value = 10