Browse Source

添加查看申请记录

lichao 3 years ago
parent
commit
dcb1ca0930
1 changed files with 35 additions and 1 deletions
  1. 35 1
      src/views/businessManagement/purchaseOrder/detailsPageEdit.vue

+ 35 - 1
src/views/businessManagement/purchaseOrder/detailsPageEdit.vue

@@ -23,6 +23,11 @@
         >
           申请货款
         </el-button>
+        <el-button type="info"
+                   size="small"
+                   @click="openApplicationDialog"
+        >查看申请记录
+        </el-button>
         <el-button type="warning"
                    size="small"
                    class="el-button--small-yh "
@@ -388,6 +393,24 @@
       >
       </apply-payment>
     </el-dialog>
+
+    <el-dialog
+      title="申请记录"
+      append-to-body
+      class="el-dialogDeep"
+      :visible.sync="applicationDialog"
+      width="60%"
+      :close-on-click-modal="false"
+      :destroy-on-close="true"
+      :close-on-press-escape="false"
+      v-dialog-drag
+    >
+      <bill-application
+        :billId="form.id"
+        @choceApplication="choceApplication"
+      >
+      </bill-application>
+    </el-dialog>
   </div>
 </template>
 
@@ -413,6 +436,7 @@ import {selectGoodsNum} from "@/api/basicData/inventoryAccount"
 import { contrastObj, contrastList } from "@/util/contrastData";
 //账单组件
 import ApplyPayment from "../../../components/finance/applyPayment";
+import  billApplication from "@/components/bill/billApplication";
 
 export default {
   name: "detailsPage",
@@ -425,7 +449,8 @@ export default {
     }
   },
   components:{
-    ApplyPayment
+    ApplyPayment,
+    billApplication
   },
   data() {
     return {
@@ -521,6 +546,7 @@ export default {
       billType:"申请",  //账单类型
       billData:{},     //账单需要数据
       applyPaymentDialog:false,//生成账单组件
+      applicationDialog: false,// 申请记录
       dialogVisible: false,
       advantageProjectForm: {},
       bankOfDepositForm: {},
@@ -1298,6 +1324,14 @@ export default {
         this.billData.srcId = -1
       }
     },
+    // 查看申请记录
+    openApplicationDialog(){
+      this.applicationDialog = true
+    },
+    //关闭申记录
+    choceApplication(){
+      this.applicationDialog = false
+    },
     //申请货款
     applyPayment(type){
       // if (contrastObj(this.form, this.oldForm) ||