@dongkboy 4 сар өмнө
parent
commit
77d52aa872

+ 13 - 5
src/views/receivable/documentary/index.vue

@@ -137,7 +137,7 @@
                         <el-button class="radius-2px width-100" type="primary" @click="addShow = true">添加应收</el-button>
                     </div>
                     <div class="col-108 m-r-8">
-                        <el-button class="radius-2px width-100" type="primary" @click="invoiceShow = true">应收开票</el-button>
+                        <el-button class="radius-2px width-100" type="primary" @click="handleInvoice">应收开票</el-button>
                     </div>
                     <div class="col-108 m-r-8">
                         <el-button class="radius-2px width-100" type="primary" @click="handleExport(1)">导出</el-button>
@@ -188,7 +188,7 @@
                     <el-table-column prop="dockingPerson" label="对接人" width="100"></el-table-column>
                     <el-table-column label="操作" width="120" fixed="right">
                         <template #default="scope">
-                            <el-button link type="primary" @click="toEdit(scope)">编辑</el-button>
+                            <el-button link type="primary" @click="toEdit(scope.row)">编辑</el-button>
                         </template>
                     </el-table-column>
                 </el-table>
@@ -377,7 +377,7 @@
                     <el-table-column label="操作" width="180" fixed="right">
                         <template #default="scope">
                             <div style="display: flex; align-items: center; justify-content: center">
-                                <el-button link type="primary">编辑</el-button>
+                                <el-button link type="primary" @click="toEdit(scope.row)">编辑</el-button>
                                 <el-dropdown trigger="click" placement="bottom" @command="dropdownCommand">
                                     <el-button link type="primary">
                                         更多
@@ -668,7 +668,15 @@ const selectTypeChange = (type) => {
         selectedList.value =[]
     }
 }
-
+// 编辑
+const toEdit = (row: any) => {
+    myRouter.push({
+        path: '/insurancePolicy/order/insurancePolicyOrderDetail',
+        query: {
+            orderNo: row.orderNo
+        }
+    })
+}
 let options = ref([])
 const handleInvoice = () => {
     if(selectedList.value.length<1) {
@@ -799,7 +807,7 @@ let invoiceShow = ref(false)
 let invoiceRadio = ref(null)
 const handleInvoiceSubmit = () => {
     myRouter.push({
-        name: 'Ticket',
+        name: 'HandingFeeTicket',
         query: {
             id: invoiceRadio.value,
             selectedList: JSON.stringify(selectedList.value),