Commit 16eefcf085df4d288b6256f8cf20b522a28962fd
1 parent
911b5549
优化发票相关页面bug
Showing
6 changed files
with
45 additions
and
25 deletions
src/api/user/menuApi.js
| ... | ... | @@ -172,4 +172,30 @@ export function jumpToIot(url) { |
| 172 | 172 | reject(error) |
| 173 | 173 | }) |
| 174 | 174 | }) |
| 175 | +} | |
| 176 | + | |
| 177 | +export function jumpToPlugin(url) { | |
| 178 | + | |
| 179 | + return new Promise((resolve, reject) => { | |
| 180 | + request({ | |
| 181 | + url: '/plugin.getPluginToken', | |
| 182 | + method: 'get', | |
| 183 | + params: { | |
| 184 | + targetUrl: encodeURIComponent(url), | |
| 185 | + communityId: getCommunityId() | |
| 186 | + } | |
| 187 | + }).then(response => { | |
| 188 | + //发送get请求 | |
| 189 | + const res = response.data | |
| 190 | + if (res.code != 0) { | |
| 191 | + this.$message.warning(res.msg); | |
| 192 | + return; | |
| 193 | + } | |
| 194 | + let _url = res.data.url; | |
| 195 | + window.open(_url); | |
| 196 | + resolve(res) | |
| 197 | + }).catch(error => { | |
| 198 | + reject(error) | |
| 199 | + }) | |
| 200 | + }) | |
| 175 | 201 | } |
| 176 | 202 | \ No newline at end of file | ... | ... |
src/components/fee/invoiceApplyDetailFee.vue
| ... | ... | @@ -9,8 +9,8 @@ |
| 9 | 9 | <el-table-column :label="$t('invoiceApplyDetailFee.paymentId')" align="center"> |
| 10 | 10 | <template slot-scope="scope"> |
| 11 | 11 | {{ scope.row.itemObjId }} |
| 12 | - (<a href="javascript:void(0)" v-if="scope.row.itemType === '2002'" @click="viewFeeDetail(scope.row)">{{ $t('common.view') }}</a> | |
| 13 | - <a href="javascript:void(0)" v-else @click="viewAcctDetail(scope.row)">{{ $t('common.view') }}</a>) | |
| 12 | + <!-- (<a href="javascript:void(0)" v-if="scope.row.itemType === '2002'" @click="viewFeeDetail(scope.row)">{{ $t('common.view') }}</a> | |
| 13 | + <a href="javascript:void(0)" v-else @click="viewAcctDetail(scope.row)">{{ $t('common.view') }}</a>) --> | |
| 14 | 14 | </template> |
| 15 | 15 | </el-table-column> |
| 16 | 16 | </el-table> |
| ... | ... | @@ -91,7 +91,7 @@ export default { |
| 91 | 91 | this.loadData() |
| 92 | 92 | }, |
| 93 | 93 | viewFeeDetail(fee) { |
| 94 | - this.$router.push({ path: '/fee/feeDetail', query: { detailId: fee.itemObjId }}) | |
| 94 | + this.$router.push({ path: '/views/fee/feeDetail', query: { feeId: fee.feeId }}) | |
| 95 | 95 | }, |
| 96 | 96 | viewAcctDetail(fee) { |
| 97 | 97 | this.$router.push({ path: '/views/owner/ownerDetail', query: { ownerId: fee.ownerId, currentTab: 'ownerDetailAccountReceipt' }}) | ... | ... |
src/components/owner/AddOwnerCommittee.vue
| ... | ... | @@ -21,6 +21,7 @@ |
| 21 | 21 | v-model="formData.sex" |
| 22 | 22 | :placeholder="$t('addOwnerCommittee.required') + $t('addOwnerCommittee.sex')" |
| 23 | 23 | style="width:100%" |
| 24 | + clearable | |
| 24 | 25 | > |
| 25 | 26 | <el-option :label="$t('addOwnerCommittee.male')" value="B" /> |
| 26 | 27 | <el-option :label="$t('addOwnerCommittee.female')" value="G" /> | ... | ... |
src/views/fee/feeDetail.vue
| ... | ... | @@ -264,14 +264,14 @@ export default { |
| 264 | 264 | changeTab(tab) { |
| 265 | 265 | this.feeDetailInfo._currentTab = tab |
| 266 | 266 | setTimeout(() => { |
| 267 | - this.$refs[tab].open({ | |
| 268 | - feeId: this.feeDetailInfo.feeId, | |
| 269 | - payerObjId: this.feeDetailInfo.payerObjId, | |
| 270 | - configId: this.feeDetailInfo.configId, | |
| 271 | - state: this.feeDetailInfo.state, | |
| 272 | - ownerId: this.ownerId | |
| 273 | - }) | |
| 274 | - },500) | |
| 267 | + this.$refs[tab].open({ | |
| 268 | + feeId: this.feeDetailInfo.feeId, | |
| 269 | + payerObjId: this.feeDetailInfo.payerObjId, | |
| 270 | + configId: this.feeDetailInfo.configId, | |
| 271 | + state: this.feeDetailInfo.state, | |
| 272 | + ownerId: this.ownerId | |
| 273 | + }) | |
| 274 | + }, 500) | |
| 275 | 275 | }, |
| 276 | 276 | getDeadlineTime(fee) { |
| 277 | 277 | if (fee.amountOwed == 0 && fee.endTime == fee.deadlineTime) { | ... | ... |
src/views/fee/invoiceApplyList.vue
| ... | ... | @@ -137,6 +137,8 @@ import DeleteInvoiceApply from '@/components/fee/deleteInvoiceApply' |
| 137 | 137 | import UploadInvoicePhoto from '@/components/fee/uploadInvoicePhoto' |
| 138 | 138 | import WirteInvoiceEvent from '@/components/fee/wirteInvoiceEvent' |
| 139 | 139 | import AuditDialog from '@/components/fee/audit' |
| 140 | +import { jumpToPlugin } from '@/api/user/menuApi' | |
| 141 | +import {getUserName} from '@/api/user/userApi' | |
| 140 | 142 | |
| 141 | 143 | export default { |
| 142 | 144 | name: 'InvoiceApplyList', |
| ... | ... | @@ -241,16 +243,7 @@ export default { |
| 241 | 243 | this.$refs.writeEventDialog.open(row) |
| 242 | 244 | }, |
| 243 | 245 | _toOpenInvoicePlugin(row) { |
| 244 | - const userInfo = this.$store.getters.userInfo | |
| 245 | - this.$router.push({ | |
| 246 | - path: '/plugin', | |
| 247 | - query: { | |
| 248 | - pluginType: 'invoice', | |
| 249 | - orderNo: row.applyId, | |
| 250 | - staffName: userInfo.name, | |
| 251 | - communityId: this.communityId | |
| 252 | - } | |
| 253 | - }) | |
| 246 | + jumpToPlugin(`/#/pages/index/plugin?pluginType=invoice&orderNo=&orderNo=${row.applyId}&staffName=${getUserName()}&communityId=${this.communityId}`) | |
| 254 | 247 | }, |
| 255 | 248 | _openDeleteInvoiceApplyModel(row) { |
| 256 | 249 | this.$refs.deleteDialog.open(row) | ... | ... |
src/views/owner/addOwnerCommitteeList.vue
| ... | ... | @@ -23,8 +23,8 @@ |
| 23 | 23 | <el-select v-model="addOwnerCommitteeInfo.sex" :placeholder="$t('addOwnerCommittee.requiredSex')" |
| 24 | 24 | style="width:100%"> |
| 25 | 25 | <el-option disabled value="">{{ $t('addOwnerCommittee.requiredSex') }}</el-option> |
| 26 | - <el-option value="B">{{ $t('addOwnerCommittee.male') }}</el-option> | |
| 27 | - <el-option value="G">{{ $t('addOwnerCommittee.female') }}</el-option> | |
| 26 | + <el-option :label="$t('addOwnerCommittee.male')" value="B">{{ $t('addOwnerCommittee.male') }}</el-option> | |
| 27 | + <el-option :label="$t('addOwnerCommittee.female')" value="G">{{ $t('addOwnerCommittee.female') }}</el-option> | |
| 28 | 28 | </el-select> |
| 29 | 29 | </el-form-item> |
| 30 | 30 | </el-col> |
| ... | ... | @@ -94,8 +94,8 @@ |
| 94 | 94 | <el-select v-model="addOwnerCommitteeInfo.state" :placeholder="$t('addOwnerCommittee.requiredState')" |
| 95 | 95 | style="width:100%"> |
| 96 | 96 | <el-option disabled value="">{{ $t('addOwnerCommittee.requiredState') }}</el-option> |
| 97 | - <el-option value="1000">{{ $t('addOwnerCommittee.onJob') }}</el-option> | |
| 98 | - <el-option value="2000">{{ $t('addOwnerCommittee.leaveJob') }}</el-option> | |
| 97 | + <el-option :label="$t('addOwnerCommittee.onJob')" value="1000">{{ $t('addOwnerCommittee.onJob') }}</el-option> | |
| 98 | + <el-option :label="$t('addOwnerCommittee.leaveJob')" value="2000">{{ $t('addOwnerCommittee.leaveJob') }}</el-option> | |
| 99 | 99 | </el-select> |
| 100 | 100 | </el-form-item> |
| 101 | 101 | </el-col> | ... | ... |