Преглед изворни кода

feat(发票管理): 添加未开票和已开票金额列并优化按钮点击

liujt пре 4 месеци
родитељ
комит
53230dd374

+ 2 - 1
src/views/contractManage/contractBook/components/addDialog.vue

@@ -706,10 +706,11 @@
       <el-button
         type="primary"
         v-if="isNeed_process_is_close"
+        v-click-once
         @click="save('sub')"
         >提交</el-button
       >
-      <el-button @click="cancel">返回</el-button>
+      <el-button v-click-once @click="cancel">返回</el-button>
     </div>
 
     <parentList ref="parentRef" @changeParent="changeParent"></parentList>

+ 1 - 0
src/views/financialManage/invoiceManage/components/addOrEditDialogNew.vue

@@ -679,6 +679,7 @@
       //从发票管理新增发票初始化
       async init(row = {}, type) {
         this.title = type == 'add' ? '新增' : '修改';
+        console.log('row', row, type);
         this.dialogType = type;
         if (type == 'add') {
           this.form.applyDeptId = this.user.info.groupId;

+ 13 - 1
src/views/financialManage/invoiceManage/components/detailDialog.vue

@@ -368,12 +368,24 @@
             label: this.form.type == 1 ? '计划收款金额' : '计划付款金额',
             align: 'center',
           },
+          {
+            width: 150,
+            prop: 'unInvoiceAmount',
+            label: '未开票金额',
+            align: 'center'
+          },
+          {
+            width: 150,
+            prop: 'invoicedAmount',
+            label: '已开票金额',
+            align: 'center'
+          },
           {
             width: 160,
             prop: 'invoiceAmount',
             label: '开票金额',
             align: 'center',
-            slot: 'invoiceAmount',
+            // slot: 'invoiceAmount',
             fixed: 'right'
           }
         ];