【fix-bug74252】-编辑会议信息,发票不回显的bug; 昨天报名相关问题

This commit is contained in:
fengchenchen
2023-07-28 11:40:50 +08:00
parent c928646d49
commit 093ba14059
5 changed files with 61 additions and 22 deletions
+8 -4
View File
@@ -13,11 +13,14 @@ window._CONFIG["onlinePreviewDomainURL"] = "http://139.9.235.66:8012/onlinePrevi
// todo 需要改为企业端的报名地址 --- 139 // todo 需要改为企业端的报名地址 --- 139
// 会议管理报名二维码地址 // 会议管理报名二维码地址
window._CONFIG["singUpQRCodeURL"] = "http://bxxt.hzwlsoft.com/signupentrance" // window._CONFIG["singUpQRCodeURL"] = "http://bxxt.hzwlsoft.com/signupentrance"
window._CONFIG["singUpQRCodeURL"] = "http://10.10.10.46:8066/signupentrance"
// 会议管理签到二维码地址 微信扫描二维码 跳转的 地址 要么全大写 要么全小写 // 会议管理签到二维码地址 微信扫描二维码 跳转的 地址 要么全大写 要么全小写
window._CONFIG["singInQRCodeURL"] = "http://bxxt.hzwlsoft.com/signinurl" // window._CONFIG["singInQRCodeURL"] = "http://bxxt.hzwlsoft.com/signinurl"
window._CONFIG["singInQRCodeURL"] = "http://10.10.10.46:8066/signinurl"
// 页面显示用的会议报名二维码连接 // 页面显示用的会议报名二维码连接
window._CONFIG["singInQRCodHref"]= 'http://139.9.235.66/signupentrance' // window._CONFIG["singInQRCodHref"]= 'http://139.9.235.66/signupentrance'
window._CONFIG["singInQRCodHref"]= 'http://10.10.10.46:8066/signupentrance'
// 票据打印--寄件人单位名称 // 票据打印--寄件人单位名称
window._CONFIG["sendCompanyName"] = "中国汽车标准化研究院" window._CONFIG["sendCompanyName"] = "中国汽车标准化研究院"
@@ -27,4 +30,5 @@ window._CONFIG["sendAddress"] = "天津市东丽区先锋东路68号"
window._CONFIG["sendPostCode"] = "300300" window._CONFIG["sendPostCode"] = "300300"
// 查看物流信息 // 查看物流信息
window._CONFIG["lookExpressDomainURL"] = "http://bxxt.hzwlsoft.com/lookExpressInfo"; // window._CONFIG["lookExpressDomainURL"] = "http://bxxt.hzwlsoft.com/lookExpressInfo";
window._CONFIG["lookExpressDomainURL"] = "http://10.10.10.46:8077/lookExpressInfo";
+5 -1
View File
@@ -124,6 +124,9 @@ const companyAdminResetPassword = (param) => postAction('/payManagerManagement/r
// 企业管理员启用禁用 // 企业管理员启用禁用
const companyAdminEnable= (param) => postAction('/payManagerManagement/frozenBatch', param) const companyAdminEnable= (param) => postAction('/payManagerManagement/frozenBatch', param)
// 通过企业id查询企业的相关发票信息
const queryCompanyInfoById= (param) => getAction('/company/payCompanyManagement/queryById', param)
// 加密获取key 与 iv // 加密获取key 与 iv
const getKeyIv = (param) => getAction('/sys/getEncryptedString',param) const getKeyIv = (param) => getAction('/sys/getEncryptedString',param)
@@ -193,7 +196,8 @@ export {
getContactsByCompanyNoLimit, getContactsByCompanyNoLimit,
loginIdmPlatform, loginIdmPlatform,
companyAdminResetPassword, companyAdminResetPassword,
companyAdminEnable companyAdminEnable,
queryCompanyInfoById
} }
@@ -319,7 +319,7 @@
<!-- 只有缴费方式为汇款并且上传了汇款凭证的的才会有审核按钮 审核报名信息通过后才能审核凭证 审核通过后不显示 审核凭证按钮 --> <!-- 只有缴费方式为汇款并且上传了汇款凭证的的才会有审核按钮 审核报名信息通过后才能审核凭证 审核通过后不显示 审核凭证按钮 -->
<a @click="handleAudit(record)" v-if="(record.payMode === 1 || record.payMode === 2 ) && record.paymentRecord && record.checkResult !== 1" <a @click="handleAudit(record)" v-if="(record.payMode === 1 || record.payMode === 2 ) && record.paymentRecord && record.checkResult !== 1"
v-has:[authorCode.auditRecord]="'attendance:auditCredentials'">审核凭证</a> v-has:[authorCode.auditRecord]="'attendance:auditCredentials'">审核凭证</a>
<!-- 只有工作组会议与分标委会议理事会会议才有审核报名信息--> <!-- 只有工作组会议与分标委会议理事会会议 才有审核报名信息-->
<a @click="handleAuditSignUp(record)" <a @click="handleAuditSignUp(record)"
v-show="(currentMeetingInfo.meetingType === '1' || currentMeetingInfo.meetingType === '5' || currentMeetingInfo.meetingType === '6') && record.registerCheckResult === 0 " v-show="(currentMeetingInfo.meetingType === '1' || currentMeetingInfo.meetingType === '5' || currentMeetingInfo.meetingType === '6') && record.registerCheckResult === 0 "
v-has:[authorCode.auditSignUpInfo]="'attendance:auditSignUp'">审核报名信息</a> v-has:[authorCode.auditSignUpInfo]="'attendance:auditSignUp'">审核报名信息</a>
@@ -327,8 +327,12 @@
<a @click="handleEdit(record)" v-if="record.registerCheckResult !== 2" v-has:[authorCode.edit]="'attendance:edit'">编辑</a> <a @click="handleEdit(record)" v-if="record.registerCheckResult !== 2" v-has:[authorCode.edit]="'attendance:edit'">编辑</a>
<!--删除参会人需要判断改参会人是否与合同关联--> <!--删除参会人需要判断改参会人是否与合同关联-->
<a @click="handleDelete(record.id)" v-has:[authorCode.delete]="'attendance:delete'">删除</a> <a @click="handleDelete(record.id)" v-has:[authorCode.delete]="'attendance:delete'">删除</a>
<!-- 只有嘉宾才可以设置 --> <!-- 只有嘉宾才可以设置 且报名信息不需要审核-->
<a @click="setGuestsUploadFileFlag(record)" v-show="record.identity === 1" v-has:[authorCode.guestsUploadFileFlag]="'attendance:guestsUploadFileFlag'">资料状态</a> <a
@click="setGuestsUploadFileFlag(record)"
v-show="record.identity === 1 && record.registerCheckResult !== 0"
v-has:[authorCode.guestsUploadFileFlag]="'attendance:guestsUploadFileFlag'"
>资料状态</a>
</span> </span>
</a-table> </a-table>
</div> </div>
@@ -954,7 +958,7 @@ export default {
// 行内 设置嘉宾是否可上传文件,只有参会方式是嘉宾的可以设置 // 行内 设置嘉宾是否可上传文件,只有参会方式是嘉宾的可以设置
setGuestsUploadFileFlag(record) { setGuestsUploadFileFlag(record) {
// 参会人员不是嘉宾,直接返回 // 参会人员不是嘉宾,直接返回
if(record.identity !== 1) return if(record.identity !== 1 || record.registerCheckResult === 0) return
this.$refs.setGuessUploadFlagModal.show(record) this.$refs.setGuessUploadFlagModal.show(record)
}, },
// 批量设置嘉宾是否可上传文件,只有参会方式是嘉宾的可以设置 // 批量设置嘉宾是否可上传文件,只有参会方式是嘉宾的可以设置
@@ -965,10 +969,10 @@ export default {
} }
// 判断只能身份为嘉宾的数据 设置资料状态 // 判断只能身份为嘉宾的数据 设置资料状态
let flag = this.selectionRows.some(item => { let flag = this.selectionRows.some(item => {
return item.identity !== 1 return item.identity !== 1 || item.registerCheckResult === 0
}) })
if(flag) { if(flag) {
this.$message.warn('只有身份为嘉宾的数据才可设置资料状态') this.$message.warn('只有身份为嘉宾且报名信息审核通过的数据才可设置资料状态')
return return
} }
this.$refs.setGuessUploadFlagModal.showBatch(this.selectedRowKeys) this.$refs.setGuessUploadFlagModal.showBatch(this.selectedRowKeys)
@@ -547,7 +547,7 @@ export default {
* */ * */
changeInvoice(val) { changeInvoice(val) {
this.selectedInvoiceType = Number(val) this.selectedInvoiceType = Number(val)
if (val === '0') { if (this.selectedInvoiceType === 0) {
// 不需要发票 // 不需要发票
this.needInvoiceBool = false this.needInvoiceBool = false
} else { } else {
@@ -133,6 +133,7 @@ import { judgeInternalEnterprise } from '../../../api/incomePaymentsApi'
import {httpAction} from '@api/manage' import {httpAction} from '@api/manage'
import pick from 'lodash.pick' import pick from 'lodash.pick'
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle' import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
import { queryCompanyInfoById } from '../../../api/api'
export default { export default {
name: 'SignUpInfoEdit', name: 'SignUpInfoEdit',
@@ -287,13 +288,28 @@ export default {
}, },
}, },
methods: { methods: {
// 通过企业的id获取企业管理中的基本信息,用于发票回显
queryCompanyInfoById(id) {
return new Promise(resolve => {
let result = {}
queryCompanyInfoById({id}).then(res => {
if(res.success) {
result = res.result || {}
result = pick(res.result, 'companyName', 'dutyCode', 'companyAddress', 'companyPhone', 'openingBank', 'bankAccount', 'linkBankNumber')
}
}).finally(() => {
resolve(result)
})
})
},
addContactsOk() { addContactsOk() {
this.$refs.selectContacts.getContactsList() this.$refs.selectContacts.getContactsList()
}, },
/* /*
* 编辑 * 编辑
* */ * */
edit(record){ async edit(record){
this.isInternalEnterprise = false this.isInternalEnterprise = false
this.form.resetFields() this.form.resetFields()
this.model = Object.assign({},record) this.model = Object.assign({},record)
@@ -310,15 +326,26 @@ export default {
} }
// 参会人回显 // 参会人回显
// this.selectedCompany = this.model.companyId // this.selectedCompany = this.model.companyId
this.selectedCompany = Object.assign({}, this.model.companyId, { // 如果当前的参会人信息中发票信息不全 则从企业管理中获取一下
// 写入发票的信息,因为需要回显 // if(!this.model.dutyCode && !this.model.companyAddress)
dutyCode:this.model.dutyCode, // 信用代码 // 从企业管理中获取全部的会议信息
companyAddress:this.model.companyAddress, // 公司地址 let companyInfo = await this.queryCompanyInfoById(this.model.companyId.id)
companyPhone:this.model.companyPhone, // 公司电话 // 判断当前数据中企业信息是否完整 将有数据的赋值到数据中
openingBank:this.model.openingBank, // 开户行 // 写入发票的信息,因为需要回显
bankAccount:this.model.bankAccount, // 银行账号 // dutyCode:this.model.dutyCode, // 信用代码
linkBankNumber:this.model.linkBankNumber // 联行号 // companyAddress:this.model.companyAddress, // 公司地址
// companyPhone:this.model.companyPhone, // 公司电话
// openingBank:this.model.openingBank, // 开户行
// bankAccount:this.model.bankAccount, // 银行账号
// linkBankNumber:this.model.linkBankNumber // 联行号
let invoiceKeys = ['dutyCode', 'companyAddress', 'companyPhone', 'openingBank', 'bankAccount', 'linkBankNumber']
let invoiceInfo = {}
invoiceKeys.map(key => {
if(this.model[key]) {
invoiceInfo[key] = this.model[key]
}
}) })
this.selectedCompany = Object.assign({}, companyInfo, this.model.companyId, invoiceInfo)
this.selectPerson = { this.selectPerson = {
id:this.model.companyContactTemporaryId, id:this.model.companyContactTemporaryId,
name:this.model.companyContactName name:this.model.companyContactName
@@ -444,7 +471,7 @@ export default {
this.guestType = null this.guestType = null
} }
this.$nextTick( ()=> { this.$nextTick( ()=> {
this.$refs.formother.setFormVal(this.model) this.$refs.formother.setFormVal(Object.assign({}, this.model, { identify: this.identifyType}))
}) })
}, },
/* /*