update 支出合同添加字段,合同邮寄样式调整,工作组统计详情字段调整

This commit is contained in:
zhaoxiao
2022-04-01 15:10:04 +08:00
parent 269de4dc2a
commit 3bde0d61cd
4 changed files with 83 additions and 11 deletions
@@ -134,7 +134,7 @@
</div>
<a-empty v-else></a-empty>
</div>
<!-- <a-divider></a-divider>-->
<!-- <a-divider></a-divider>-->
<!-- 审核记录-->
<!-- <div>-->
@@ -227,6 +227,15 @@ export default {
}, {
fieldName: 'signedContactsTemporaryName',
title: '签订联系人'
}, {
fieldName: 'phone',
title: '联系电话'
}, {
fieldName: 'address',
title: '邮寄地址'
}, {
fieldName: 'postCode',
title: '邮编'
}, {
fieldName: 'opening_dictText',
title: '是否开口'
@@ -46,6 +46,30 @@
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
</a-form-item>
</a-col>
<a-col :xxl="6" :xl="8" :sm="12" style="margin-bottom: 0">
<a-form-item label="联系电话" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入联系电话"
v-decorator="['phone',validatorRules.phone]"
:maxLength='11'
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
</a-form-item>
</a-col>
<a-col :xxl="6" :xl="8" :sm="12" style="margin-bottom: 0">
<a-form-item label="邮寄地址" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入邮寄地址"
v-decorator="['address',validatorRules.address]"
:maxLength='50'
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
</a-form-item>
</a-col>
<a-col :xxl="6" :xl="8" :sm="12" style="margin-bottom: 0">
<a-form-item label="邮编" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入邮编"
v-decorator="['postCode',validatorRules.postCode]"
:maxLength='6'
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
</a-form-item>
</a-col>
<a-col :xxl="6" :xl="8" :sm="12">
<a-form-item label="是否开口" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-dict-select-tag v-decorator="['opening']"
@@ -269,6 +293,7 @@ import JDate from '../../../../components/tools/JDate'
import JYearDate from '../../../../components/jero/JYearDate'
import { money } from '../../../../utils/validate'
import { addZero } from '../../../../utils/util'
import { phoneReg, postcode } from '../../../../utils/validate'
export default {
name: 'ExpenditureContractModule',
@@ -321,6 +346,18 @@ export default {
rules: [{ required: true, message: '请输入签订联系人' }],
validateTrigger: 'blur'
},
phone: {
rules: [{ required: true, validator: this.checkPhone }],
validateTrigger: 'blur'
},
address: {
rules: [{ required: true, message: '请输入邮寄地址' }],
validateTrigger: 'blur'
},
postCode: {
rules: [{ required: true, validator: this.checkPostCode }],
validateTrigger: 'blur'
},
principalId: {
rules: [{ required: true, message: '请选择负责人' }],
validateTrigger: 'change'
@@ -517,6 +554,36 @@ export default {
callback('请输入合同编号')
}
},
/**
* 电话号码校验
* @param rules
* @param value
* @param callback
*/
checkPhone(rules, value, callback) {
if (!value) {
callback('请输入联系电话')
}
if (phoneReg(value)) {
callback()
}
callback('请输入正确格式的联系电话')
},
/**
* 邮编校验
* @param rules
* @param value
* @param callback
*/
checkPostCode(rules, value, callback) {
if (!value) {
callback('请输入邮编')
}
if (postcode(value)) {
callback()
}
callback('请输入正确格式的邮编')
},
// /**
// * 合同名称唯一性校验
// * @param rules
+5 -2
View File
@@ -65,7 +65,10 @@
</template>
<template slot="text" slot-scope="text">
<j-ellipsis :value="text" :length="25"></j-ellipsis>
<a-tooltip>
<template slot="title">{{ text }}</template>
<div class="table-text">{{ text }}</div>
</a-tooltip>
</template>
<span slot="print" slot-scope="text, record" class="action-span-cell">
@@ -221,7 +224,7 @@ export default {
})
window.open(routerUrl.href, '_blank')
},
handleAdd (id) {
handleAdd(id) {
let param = {
id: id
}
@@ -269,14 +269,7 @@ export default {
}
],
// 总计数据
footerDataSource: [
{
id: 1,
title: '总计',
allMoney: '500',
comeAllMoney: '600'
}
],
footerDataSource: [],
filters: {
id: this.$route.query.workGroupId
},