Commit 48a861238ae896de6f0d07a1dc604c4c258e9eee

Authored by wuxw
1 parent b999c641

v1.9 优化业务受理合同 bug

src/api/simplify/simplifyContractApi.js
1 1 import request from '@/utils/request'
2 2  
3 3 export function queryContract(params) {
4   - return request({
5   - url: '/contract/queryContract',
6   - method: 'get',
7   - params
  4 + return new Promise((resolve, reject) => {
  5 + request({
  6 + url: '/contract/queryContract',
  7 + method: 'get',
  8 + params
  9 + })
  10 + .then(response => {
  11 + resolve(response.data)
  12 + })
  13 + .catch(error => {
  14 + reject(error)
  15 + })
8 16 })
9 17 }
10 18 \ No newline at end of file
... ...
src/components/simplify/simplifyContract.vue
... ... @@ -101,10 +101,10 @@ export default {
101 101 this.$router.push('/pages/admin/newContractManage')
102 102 },
103 103 _printContract(contract) {
104   - window.open(`/#/pages/admin/printContract?contractTypeId=${contract.contractType}&contractId=${contract.contractId}`)
  104 + window.open(`/#/views/contract/printContract?contractTypeId=${contract.contractType}&contractId=${contract.contractId}`)
105 105 },
106 106 _viewContract(contract) {
107   - this.$router.push(`/pages/contract/contractDetail?contractId=${contract.contractId}`)
  107 + this.$router.push(`/views/contract/contractDetail?contractId=${contract.contractId}`)
108 108 },
109 109 clearContractInfoInfo() {
110 110 this.contractInfo = {
... ... @@ -124,10 +124,11 @@ export default {
124 124 },
125 125 _openContractFee(contract) {
126 126 this.$router.push({
127   - path: '/pages/property/listContractFee',
  127 + path: '/views/contract/contractDetail',
128 128 query: {
129 129 contractId: contract.contractId,
130   - contractCode: contract.contractCode
  130 + contractCode: contract.contractCode,
  131 + currentTab:'contractDetailFee'
131 132 }
132 133 })
133 134 },
... ...