Compare commits

...

2 Commits

3 changed files with 21 additions and 8 deletions

View File

@ -1,9 +1,17 @@
import request from '@/utils/request'
export function queryContract(params) {
return request({
return new Promise((resolve, reject) => {
request({
url: '/contract/queryContract',
method: 'get',
params
})
.then(response => {
resolve(response.data)
})
.catch(error => {
reject(error)
})
})
}

View File

@ -101,10 +101,10 @@ export default {
this.$router.push('/pages/admin/newContractManage')
},
_printContract(contract) {
window.open(`/#/pages/admin/printContract?contractTypeId=${contract.contractType}&contractId=${contract.contractId}`)
window.open(`/#/views/contract/printContract?contractTypeId=${contract.contractType}&contractId=${contract.contractId}`)
},
_viewContract(contract) {
this.$router.push(`/pages/contract/contractDetail?contractId=${contract.contractId}`)
this.$router.push(`/views/contract/contractDetail?contractId=${contract.contractId}`)
},
clearContractInfoInfo() {
this.contractInfo = {
@ -124,10 +124,11 @@ export default {
},
_openContractFee(contract) {
this.$router.push({
path: '/pages/property/listContractFee',
path: '/views/contract/contractDetail',
query: {
contractId: contract.contractId,
contractCode: contract.contractCode
contractCode: contract.contractCode,
currentTab:'contractDetailFee'
}
})
},

View File

@ -356,6 +356,10 @@ export default {
this.$message.warning("请选择缴费周期");
return;
}
if (!this.payFeeOrderInfo.primeRate) {
this.$message.warning("请选择支付方式");
return;
}
//
if (!(/(^[1-9]\d*$)/.test(this.payFeeOrderInfo.cycles))) {