【update】-闫工提出最新需求的测试修改

This commit is contained in:
fengchenchen
2023-07-09 16:08:21 +08:00
parent 347c680253
commit 2700ab0406
3 changed files with 66 additions and 30 deletions
@@ -236,6 +236,9 @@
<a-button type="danger" icon="delete" @click="batchDel" v-has:[authorCode.batchDel]="'attendance:batchDel'"> <a-button type="danger" icon="delete" @click="batchDel" v-has:[authorCode.batchDel]="'attendance:batchDel'">
批量删除 批量删除
</a-button> </a-button>
<a-button type="danger" icon="delete" v-has:[authorCode.batchDel]="'attendance:batchDel'">
批量设置资料状态
</a-button>
<!--当会议费用为0不需要合并开票 --> <!--当会议费用为0不需要合并开票 -->
<!-- 变更将此功能添加到到账开票了 暂时注释 2021-09-16 --> <!-- 变更将此功能添加到到账开票了 暂时注释 2021-09-16 -->
<!-- <a-button type="primary" @click="batchInvoice" v-show="currentMeetingInfo.meetingCosts !== 0">合并开票</a-button>--> <!-- <a-button type="primary" @click="batchInvoice" v-show="currentMeetingInfo.meetingCosts !== 0">合并开票</a-button>-->
@@ -310,6 +313,7 @@
<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 v-has:[authorCode.delete]="'attendance:delete'">资料状态</a>
</span> </span>
</a-table> </a-table>
</div> </div>
@@ -8,26 +8,28 @@
@cancel="handleCancel" @cancel="handleCancel"
cancelText="关闭"> cancelText="关闭">
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<a-form :form="form"> <div class="table-operator">
<a-row> <a-button type="primary" icon="plus" >新增</a-button>
<a-col :span="24"> <a-button type="danger" icon="delete" >
<!--上传会议资料显示 --> 批量删除
<a-form-item label="会议文件" :labelCol="labelCol" :wrapperCol="wrapperCol" v-if="type === '2' "> </a-button>
<j-upload file-type-error-message="请上传会议文件" :multiple="true" </div>
:return-id="true" <a-table
v-decorator="['fileIds']" ref="table"
:trigger-change="true"></j-upload> size="middle"
</a-form-item> rowKey="id"
<!--上传会议纪要显示 --> :scroll="{x:auto}"
<a-form-item label="会议纪要" :labelCol="labelCol" :wrapperCol="wrapperCol" v-if="type === '1' "> :pagination="false"
<j-upload file-type-error-message="请上传会议纪要" :multiple="true" :columns="columns"
:return-id="true" :dataSource="fileList"
v-decorator="['fileIds']" class="j-table-force-nowrap"
:trigger-change="true"></j-upload> >
</a-form-item> <span slot="action" slot-scope="record" class="action-span-cell">
</a-col> <a class="color-blue" >下载</a>
</a-row> <a class="color-blue" >查看</a>
</a-form> <a class="color-blue" >删除</a>
</span>
</a-table>
</a-spin> </a-spin>
<email-error-msg-modal ref="emailError"></email-error-msg-modal> <email-error-msg-modal ref="emailError"></email-error-msg-modal>
</j-modal> </j-modal>
@@ -38,6 +40,28 @@ import JUpload from '@comp/jero/JUpload'
import {httpAction} from '@api/manage' import {httpAction} from '@api/manage'
import EmailErrorMsgModal from '@views/projectManagement/modules/EmailErrorMsgModal' import EmailErrorMsgModal from '@views/projectManagement/modules/EmailErrorMsgModal'
const columns = [
{
title: '文件名',
align: 'center',
dataIndex: 'name',
width: 200
},
{
title: '上传人',
align: 'center',
dataIndex: 'createTime',
width: 100
},
{
title: '操作',
align: 'center',
dataIndex: '',
scopedSlots: {customRender: 'action'},
width: 100
}
]
export default { export default {
name: 'UploadMeetFileModal', name: 'UploadMeetFileModal',
components: { components: {
@@ -47,7 +71,7 @@ export default {
data() { data() {
return { return {
title: '上传文件', title: '上传文件',
width: 400, width: 1000,
visible: false, visible: false,
confirmLoading: false, confirmLoading: false,
form: this.$form.createForm(this), form: this.$form.createForm(this),
@@ -66,7 +90,9 @@ export default {
// 已经上传的会议文件 // 已经上传的会议文件
meetingFileIds: '', meetingFileIds: '',
validatorRules: {}, validatorRules: {},
url: {} url: {},
columns,
fileList: [{}]
} }
}, },
methods: { methods: {
@@ -204,6 +230,7 @@ export default {
} }
</script> </script>
<style scoped> <style scoped lang="less">
@import '~@assets/less/common.less';
</style> </style>
@@ -288,13 +288,6 @@ export default {
width: 120, width: 120,
dataIndex: 'contactsTemporaryNameOne', dataIndex: 'contactsTemporaryNameOne',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, {
// 2021-10-22需求变更新加
title: '收费通知号',
align: 'center',
width: 280,
dataIndex: 'chargeNoticeNo',
scopedSlots: { customRender: 'text' }
}, { }, {
title: '应收金额', title: '应收金额',
align: 'center', align: 'center',
@@ -311,33 +304,45 @@ export default {
customRender: (text, record) => ( customRender: (text, record) => (
<j-ellipsis value={ record.paidAmount + '元' } length={ 15 }></j-ellipsis> <j-ellipsis value={ record.paidAmount + '元' } length={ 15 }></j-ellipsis>
) )
}, {
// 2021-10-22需求变更新加
title: '收费通知号',
align: 'center',
width: 280,
dataIndex: 'chargeNoticeNo',
scopedSlots: { customRender: 'text' }
}, { }, {
title: '打包', title: '打包',
align: 'center', align: 'center',
fixed: 'right',
width: 80, width: 80,
dataIndex: 'pack', dataIndex: 'pack',
scopedSlots: { customRender: 'status-pack' } scopedSlots: { customRender: 'status-pack' }
}, { }, {
title: '需要发票', title: '需要发票',
align: 'center', align: 'center',
fixed: 'right',
width: 80, width: 80,
dataIndex: 'needInvoice', dataIndex: 'needInvoice',
scopedSlots: { customRender: 'status-pack' } scopedSlots: { customRender: 'status-pack' }
}, { }, {
title: '到账', title: '到账',
align: 'center', align: 'center',
fixed: 'right',
width: 80, width: 80,
dataIndex: 'inAccount', dataIndex: 'inAccount',
scopedSlots: { customRender: 'status' } scopedSlots: { customRender: 'status' }
}, { }, {
title: '开票', title: '开票',
align: 'center', align: 'center',
fixed: 'right',
width: 80, width: 80,
dataIndex: 'makeInvoice', dataIndex: 'makeInvoice',
scopedSlots: { customRender: 'status-bill' } scopedSlots: { customRender: 'status-bill' }
}, { }, {
title: '邮寄', title: '邮寄',
align: 'center', align: 'center',
fixed: 'right',
width: 80, width: 80,
dataIndex: 'mail', dataIndex: 'mail',
scopedSlots: { customRender: 'status-mail' } scopedSlots: { customRender: 'status-mail' }