Compare commits

...

2 Commits

3 changed files with 21 additions and 8 deletions

View File

@ -1,9 +1,17 @@
import request from '@/utils/request' import request from '@/utils/request'
export function queryContract(params) { export function queryContract(params) {
return request({ return new Promise((resolve, reject) => {
url: '/contract/queryContract', request({
method: 'get', url: '/contract/queryContract',
params 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') this.$router.push('/pages/admin/newContractManage')
}, },
_printContract(contract) { _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) { _viewContract(contract) {
this.$router.push(`/pages/contract/contractDetail?contractId=${contract.contractId}`) this.$router.push(`/views/contract/contractDetail?contractId=${contract.contractId}`)
}, },
clearContractInfoInfo() { clearContractInfoInfo() {
this.contractInfo = { this.contractInfo = {
@ -124,10 +124,11 @@ export default {
}, },
_openContractFee(contract) { _openContractFee(contract) {
this.$router.push({ this.$router.push({
path: '/pages/property/listContractFee', path: '/views/contract/contractDetail',
query: { query: {
contractId: contract.contractId, contractId: contract.contractId,
contractCode: contract.contractCode contractCode: contract.contractCode,
currentTab:'contractDetailFee'
} }
}) })
}, },

View File

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