祁鹏飞 3 месяцев назад
Родитель
Сommit
b29767ac99

+ 8 - 7
src/views/receivable/documentary/index.vue

@@ -549,7 +549,7 @@ let myRouter = useRouter()
 
 let activeName = ref('1')
 let subActiveName = ref('1')
-const  receivedAmountTotal = ref(0)
+const receivedAmountTotal = ref(0)
 const handleTabsClick = (e) => {
   activeName.value = e.props.name
   if (e.props.name == '1') {
@@ -618,7 +618,7 @@ const selectAll = (type: boolean) => {
     selectedList.value = []
   }
 }
-const  getreceivedAmountTotal = () => {
+const getreceivedAmountTotal = () => {
   let params = {
     licenseNo: receivableForm.value?.licenseNo,
     typeAttr: receivableForm.value?.typeAttr,
@@ -674,11 +674,11 @@ let options = ref([])
 const handleInvoice = () => {
   if (selectedList.value.length < 1) {
     myRouter.push({
-    name: 'HandingFeeTicket',
-    query: {
-      invoiceType: activeName.value == '1' ? '2' : activeName.value == '2' ? '4' : ''
-    }
-  })
+      name: 'HandingFeeTicket',
+      query: {
+        invoiceType: activeName.value == '1' ? '2' : activeName.value == '2' ? '4' : ''
+      }
+    })
   } else {
     if (selectedList.value.some((item: any) => item.invoiceStatusName == '已开票')) {
       ElMessage({
@@ -793,6 +793,7 @@ const handleAddSubmit = () => {
       })
       addShow.value = false
       getOtherReceivableList()
+      getreceivedAmountTotal()
       getJyOtherReceivableList()
     }
   })

+ 8 - 5
src/views/receivable/handingFee/index.vue

@@ -112,7 +112,7 @@
             </el-col>
           </el-row>
         </el-form>
-        <el-row  class="flex a-c " style="margin: 20px 0">
+        <el-row class="flex a-c " style="margin: 20px 0">
           <span class="flex col-160 m-r-8 bg-F9">
             <el-checkbox class="p-w-12" @change="selectAll" v-model="selectAllValue"></el-checkbox>&nbsp;
             <el-select class="select-all width-100" placeholder="全选" v-model="selectType" @change="selectTypeChange">
@@ -437,7 +437,8 @@
         <el-button type="primary" @click="handleAddSubmit">确定</el-button>
       </template>
     </el-dialog>
-    <el-dialog :close-on-click-modal="false" v-model="batchShow" width="800" :title="`选中修改(已选${selectedData.length}条数据)`">
+    <el-dialog :close-on-click-modal="false" v-model="batchShow" width="800"
+      :title="`选中修改(已选${selectedData.length}条数据)`">
       <div style="display: flex; align-items: center; justify-content: center; margin-bottom: 10px">
         下载「标准导入模板」,编辑后上传;系统将自动匹配相关字段
         <el-button link type="primary">下载模板</el-button>
@@ -459,7 +460,7 @@
         <el-button type="primary" @click="handleInvoiceSubmit">确定</el-button>
       </template>
     </el-dialog>
-    <el-dialog :close-on-click-modal="false" title="批量修改" v-model="batchEditShow"  width="700">
+    <el-dialog :close-on-click-modal="false" title="批量修改" v-model="batchEditShow" width="700">
       <el-tabs v-model="subActiveName" class="demo-tabs">
         <el-tab-pane label="User" name="first">
           <template #label>选中修改({{ selectedList.length }})</template>
@@ -551,10 +552,11 @@ let myRouter = useRouter()
 
 let activeName = ref('1')
 let subActiveName = ref('first')
-const  receivedAmountTotal = ref(0)//应收金额总计
+const receivedAmountTotal = ref(0)//应收金额总计
 const handleTabsClick = (e) => {
   if (e.props.name == '1') {
     getCommissionReceivableList()
+    getreceivedAmountTotal()
   } else if (e.props.name == '2') {
     getJyReceivableList()
   }
@@ -791,6 +793,7 @@ const handleAddSubmit = () => {
       })
       addShow.value = false
       getCommissionReceivableList()
+      getreceivedAmountTotal()
       getJyReceivableList()
     }
   })
@@ -954,7 +957,7 @@ const search = () => {
     getJyReceivableList()
   }
 }
-const  getreceivedAmountTotal = () => {
+const getreceivedAmountTotal = () => {
   let params = {
     invoiceId: receivableForm.value?.invoiceId,
     licenseNo: receivableForm.value?.licenseNo,