fix 79942
This commit is contained in:
@@ -28,7 +28,10 @@ module.exports = {
|
|||||||
expenseReimbursement: '费用列支',
|
expenseReimbursement: '费用列支',
|
||||||
meetingMaterial: '会议资料',
|
meetingMaterial: '会议资料',
|
||||||
pleaseEnterCorrectPhone: '请输入正确格式的电话',
|
pleaseEnterCorrectPhone: '请输入正确格式的电话',
|
||||||
addUpToFourLevels: '该节点无法添加子节点'
|
addUpToFourLevels: '该节点无法添加子节点',
|
||||||
|
pleaseUploadGroupInfo: '请上传集团参与情况资料',
|
||||||
|
pleaseUploadPaymentInfo: '请上传支付信息资料',
|
||||||
|
pleaseUploadMeeting: '请上传参会记录会议资料'
|
||||||
},
|
},
|
||||||
// 问答库
|
// 问答库
|
||||||
questionAnswer: {
|
questionAnswer: {
|
||||||
|
|||||||
+12
-4
@@ -84,18 +84,20 @@
|
|||||||
|
|
||||||
<!--集团参与情况-->
|
<!--集团参与情况-->
|
||||||
<div class="header-text">{{ $t('businessSupport.standardizationActivity.groupParticipation') }}</div>
|
<div class="header-text">{{ $t('businessSupport.standardizationActivity.groupParticipation') }}</div>
|
||||||
<group-table :data-source="groupDataSource" :disabled="disabled" :need-row-selection="!disabled" @ok="groupModalOk" />
|
<group-table ref="groupTable" :data-source="groupDataSource" :disabled="disabled" :need-row-selection="!disabled" @ok="groupModalOk" />
|
||||||
|
|
||||||
<!--支付信息-->
|
<!--支付信息-->
|
||||||
<div class="header-text">{{ $t('businessSupport.standardizationActivity.paymentInfo') }}</div>
|
<div class="header-text">{{ $t('businessSupport.standardizationActivity.paymentInfo') }}</div>
|
||||||
<payment-table :data-source="paymentDataSource"
|
<payment-table ref="paymentTable"
|
||||||
|
:data-source="paymentDataSource"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:need-row-selection="!disabled"
|
:need-row-selection="!disabled"
|
||||||
@ok="paymentModalOk" />
|
@ok="paymentModalOk" />
|
||||||
|
|
||||||
<!--参会记录-->
|
<!--参会记录-->
|
||||||
<div class="header-text">{{ $t('businessSupport.standardizationActivity.attendanceRecord') }}</div>
|
<div class="header-text">{{ $t('businessSupport.standardizationActivity.attendanceRecord') }}</div>
|
||||||
<meeting-table :data-source="meetingDataSource"
|
<meeting-table ref="meetingTable"
|
||||||
|
:data-source="meetingDataSource"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:need-row-selection="!disabled"
|
:need-row-selection="!disabled"
|
||||||
@ok="meetingModalOk" />
|
@ok="meetingModalOk" />
|
||||||
@@ -103,8 +105,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="custom-drawer-style-bottom-btn">
|
<div class="custom-drawer-style-bottom-btn">
|
||||||
<a-button type="primary" @click="handleOk" v-if="!disabled">{{ $t('determine') }}</a-button>
|
|
||||||
<a-button @click="handleCancel">{{ $t('cancel') }}</a-button>
|
<a-button @click="handleCancel">{{ $t('cancel') }}</a-button>
|
||||||
|
<a-button type="primary" @click="handleOk" v-if="!disabled">{{ $t('determine') }}</a-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
@@ -263,6 +265,12 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleOk () {
|
handleOk () {
|
||||||
|
const groupValidateFlag = this.$refs.groupTable.validateTableData()
|
||||||
|
const paymentValidateFlag = this.$refs.paymentTable.validateTableData()
|
||||||
|
const meetingValidateFlag = this.$refs.meetingTable.validateTableData()
|
||||||
|
if (!groupValidateFlag || !paymentValidateFlag || !meetingValidateFlag) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.form.validateFields((errors, values) => {
|
this.form.validateFields((errors, values) => {
|
||||||
if (!errors) {
|
if (!errors) {
|
||||||
const formData = {
|
const formData = {
|
||||||
|
|||||||
@@ -186,6 +186,17 @@ export default {
|
|||||||
/** 赋值给当前对应的表单文件 */
|
/** 赋值给当前对应的表单文件 */
|
||||||
this.$set(this.realDataSource[this.uploadTable.index], this.uploadTable.dbFieldName, attIdList.join(','))
|
this.$set(this.realDataSource[this.uploadTable.index], this.uploadTable.dbFieldName, attIdList.join(','))
|
||||||
this.$emit('ok', this.realDataSource)
|
this.$emit('ok', this.realDataSource)
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 校验文件是否上传
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
validateTableData() {
|
||||||
|
if (this.realDataSource.some(tt => !tt.feeData)) {
|
||||||
|
this.$message.warning(this.$t('businessSupport.standardizationActivity.pleaseUploadGroupInfo'))
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -185,6 +185,17 @@ export default {
|
|||||||
},
|
},
|
||||||
handleTableChange (pagination) {
|
handleTableChange (pagination) {
|
||||||
this.ipagination = pagination
|
this.ipagination = pagination
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 校验文件是否上传
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
validateTableData() {
|
||||||
|
if (this.realDataSource.some(tt => !tt.meetingData)) {
|
||||||
|
this.$message.warning(this.$t('businessSupport.standardizationActivity.pleaseUploadMeeting'))
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -173,6 +173,17 @@ export default {
|
|||||||
/** 赋值给当前对应的表单文件 */
|
/** 赋值给当前对应的表单文件 */
|
||||||
this.$set(this.realDataSource[this.uploadTable.index], this.uploadTable.dbFieldName, attIdList.join(','))
|
this.$set(this.realDataSource[this.uploadTable.index], this.uploadTable.dbFieldName, attIdList.join(','))
|
||||||
this.$emit('ok', this.realDataSource)
|
this.$emit('ok', this.realDataSource)
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 校验文件是否上传
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
validateTableData() {
|
||||||
|
if (this.realDataSource.some(tt => !tt.feeData)) {
|
||||||
|
this.$message.warning(this.$t('businessSupport.standardizationActivity.pleaseUploadPaymentInfo'))
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user