Merge branch 'master' into confirmed

# Conflicts:
#	src/views/projectManagement/WorkingGroupMemberUnitMaintenance.vue
This commit is contained in:
fengchenchen
2022-05-12 09:15:48 +08:00
6 changed files with 27 additions and 13 deletions
+1 -1
View File
@@ -58,7 +58,7 @@
activePage: '', activePage: '',
menuVisible: false, menuVisible: false,
menuItemList: [ menuItemList: [
{ key: '4', icon: 'reload', text: '刷 新' }, // { key: '4', icon: 'reload', text: '刷 新' },
{ key: '1', icon: 'arrow-left', text: '关闭左侧' }, { key: '1', icon: 'arrow-left', text: '关闭左侧' },
{ key: '2', icon: 'arrow-right', text: '关闭右侧' }, { key: '2', icon: 'arrow-right', text: '关闭右侧' },
{ key: '3', icon: 'close', text: '关闭其它' } { key: '3', icon: 'close', text: '关闭其它' }
@@ -16,6 +16,11 @@
<j-dict-select-tag v-model="queryParam.status" placeholder="请选择状态" dictCode="company_aduit_status"/> <j-dict-select-tag v-model="queryParam.status" placeholder="请选择状态" dictCode="company_aduit_status"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="企业信用代码" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入企业信用代码" v-model="queryParam.dutyCode" :maxLength='50'></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="6" :lg="7" :md="8" :sm="24">
<span class="table-page-search-submitButtons"> <span class="table-page-search-submitButtons">
<a-button type="primary" icon="search" @click="searchQuery" v-has="'company:search'">查询</a-button> <a-button type="primary" icon="search" @click="searchQuery" v-has="'company:search'">查询</a-button>
@@ -295,11 +295,11 @@ export default {
*/ */
checkBankAccount(rules, value, callback) { checkBankAccount(rules, value, callback) {
if (value) { if (value) {
if (number(value)) { // if (number(value)) {
callback() callback()
} else { // } else {
callback('请输入数字') // callback('请输入数字')
} // }
return return
} }
callback('请输入银行账号') callback('请输入银行账号')
@@ -62,7 +62,7 @@
<j-dict-select-tag v-model="queryParam.pack" <j-dict-select-tag v-model="queryParam.pack"
placeholder="请选择是否打包" placeholder="请选择是否打包"
dictCode="yn" dictCode="yn"
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -168,6 +168,7 @@
<working-group-member-unit-module ref="modalForm" @ok="modalFormOk"></working-group-member-unit-module> <working-group-member-unit-module ref="modalForm" @ok="modalFormOk"></working-group-member-unit-module>
<working-group-member-set-charge-notice ref="setChargeNotic" <working-group-member-set-charge-notice ref="setChargeNotic"
@ok="modalFormOk"></working-group-member-set-charge-notice> @ok="modalFormOk"></working-group-member-set-charge-notice>
<email-error-msg-modal ref="emailError"></email-error-msg-modal> <email-error-msg-modal ref="emailError"></email-error-msg-modal>
</div> </div>
</template> </template>
@@ -382,7 +383,7 @@ export default {
id: this.workingGroupProjectId id: this.workingGroupProjectId
} }
getWorkingGroupById(param).then(res => { getWorkingGroupById(param).then(res => {
if(res.success) { if (res.success) {
this.workingGroupDetail = res.result || {} this.workingGroupDetail = res.result || {}
} }
}).finally(() => { }).finally(() => {
@@ -513,7 +514,7 @@ export default {
if (file && file.url) { if (file && file.url) {
const fileFullUrl = `${ window._CONFIG['domianWebSocketURL'] }/sys/common/download/${ file.id }?token=${ Vue.ls.get(ACCESS_TOKEN) }&fullfilename=${ file.fileName }` const fileFullUrl = `${ window._CONFIG['domianWebSocketURL'] }/sys/common/download/${ file.id }?token=${ Vue.ls.get(ACCESS_TOKEN) }&fullfilename=${ file.fileName }`
// let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(Base64.encode(fileFullUrl)) }` // let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(Base64.encode(fileFullUrl)) }`
let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}` let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(fileFullUrl) }`
window.open(url) window.open(url)
} }
} }
@@ -58,6 +58,7 @@
<span slot="action" class="action-span-cell" slot-scope="text, record" v-if="canOperate"> <span slot="action" class="action-span-cell" slot-scope="text, record" v-if="canOperate">
<a @click="handleDistribute(record.id)" v-has="'fileMaintenance:distribute'">分发</a> <a @click="handleDistribute(record.id)" v-has="'fileMaintenance:distribute'">分发</a>
<a @click="handleDownload(record)" v-has="'fileMaintenance:download'">下载</a>
<a @click="handleDelete(record.id)" v-has="'fileMaintenance:delete'">删除</a> <a @click="handleDelete(record.id)" v-has="'fileMaintenance:delete'">删除</a>
</span> </span>
</a-table> </a-table>
@@ -202,6 +203,13 @@ export default {
this.distributeModalVisible = true this.distributeModalVisible = true
this.isBatchDistribute = false this.isBatchDistribute = false
}, },
/**
* 下载
* @param record
*/
handleDownload(record) {
downloadFile(`sys/common/download/${record.fileId}`, record.fileName)
},
handleExportXls(fileName) { handleExportXls(fileName) {
if (!fileName || typeof fileName != 'string') { if (!fileName || typeof fileName != 'string') {
fileName = '导出文件' fileName = '导出文件'
@@ -84,7 +84,7 @@ import EmailErrorMsgModal from '@views/projectManagement/modules/EmailErrorMsgMo
export default { export default {
name: 'WorkingGroupMemberSetChargeNotice', name: 'WorkingGroupMemberSetChargeNotice',
components: { JUpload ,EmailErrorMsgModal}, components: { JUpload, EmailErrorMsgModal },
data() { data() {
return { return {
title: '设置收费通知', title: '设置收费通知',
@@ -135,11 +135,11 @@ export default {
if (res.success) { if (res.success) {
this.$message.success(res.message) this.$message.success(res.message)
// 是否有邮件发送失败 有就给出提示信息 // 是否有邮件发送失败 有就给出提示信息
if(Array.isArray(res.result) && res.result.length > 0){ if (Array.isArray(res.result) && res.result.length > 0) {
// msgWarn(this,res.result,0) // msgWarn(this,res.result,0)
that.$refs.emailError.open() that.$refs.emailError.open()
that.$refs.emailError.msgList = res.result that.$refs.emailError.msgList = res.result
console.log(that.$refs.emailError.msgList ,'that.$refs.emailError.msgList ') console.log(that.$refs.emailError.msgList, 'that.$refs.emailError.msgList ')
} }
this.$emit('ok') this.$emit('ok')
@@ -182,7 +182,7 @@ export default {
this.model.receivableAmount = item.yearCharge this.model.receivableAmount = item.yearCharge
this.model.chargeNoticeId = item.chargeNoticeId this.model.chargeNoticeId = item.chargeNoticeId
this.model.chargeNoticeNo = item.value this.model.chargeNoticeNo = item.value
} else if (item.type === 'chargeNoticeB' && key === 'b'){ } else if (item.type === 'chargeNoticeB' && key === 'b') {
this.selectedChargeNotice = 'B' this.selectedChargeNotice = 'B'
this.model.receivableAmount = item.yearCharge this.model.receivableAmount = item.yearCharge
this.model.chargeNoticeId = item.chargeNoticeId this.model.chargeNoticeId = item.chargeNoticeId