diff --git a/src/views/contract/contractList.vue b/src/views/contract/contractList.vue index fc669bd..c211e9f 100644 --- a/src/views/contract/contractList.vue +++ b/src/views/contract/contractList.vue @@ -487,12 +487,7 @@ class="slot-btns-item" size="small" type="primary" - @click=" - $refs['paymentRegistration'].getContract(scope.row), - ($refs[ - 'paymentRegistration' - ].isShowPaymentRegistration = true) - " + @click="showPayment(scope.row)" > 付款登记 @@ -503,12 +498,7 @@ class="slot-btns-item" size="small" type="primary" - @click=" - $refs['paymentRegistration'].getContract(scope.row), - ($refs[ - 'paymentRegistration' - ].isShowPaymentRegistration = true) - " + @click="showPayment(scope.row)" >付款登记 @@ -1682,6 +1672,18 @@ export default { }; }, methods: { + // 一般采购从oa 付款登记 + showPayment(row){ + if(row.is_common_purchase){ + Message({ + type: "warning", + message: "一般采购请从综合办公平台发起", + }); + return + } + this.$refs['paymentRegistration'].getContract(row) + this.$refs['paymentRegistration'].isShowPaymentRegistration = true + }, // 一般采购 申购人 changeEdit(e){ console.log(e) diff --git a/src/views/contract/paymentRegistrationList.vue b/src/views/contract/paymentRegistrationList.vue index 818725d..8660d60 100644 --- a/src/views/contract/paymentRegistrationList.vue +++ b/src/views/contract/paymentRegistrationList.vue @@ -235,7 +235,6 @@ export default { align: "left", fixed: this.$store.getters.device === 'mobile'?false:'left', customFn: row => { - console.log("row",row) return ({ row.contract_id ? (row.contract?row.contract.name:'') : row.away.title }) } },