update 支出合同添加字段,合同邮寄样式调整,工作组统计详情字段调整
This commit is contained in:
@@ -134,7 +134,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-empty v-else></a-empty>
|
<a-empty v-else></a-empty>
|
||||||
</div>
|
</div>
|
||||||
<!-- <a-divider></a-divider>-->
|
<!-- <a-divider></a-divider>-->
|
||||||
|
|
||||||
<!-- 审核记录-->
|
<!-- 审核记录-->
|
||||||
<!-- <div>-->
|
<!-- <div>-->
|
||||||
@@ -227,6 +227,15 @@ export default {
|
|||||||
}, {
|
}, {
|
||||||
fieldName: 'signedContactsTemporaryName',
|
fieldName: 'signedContactsTemporaryName',
|
||||||
title: '签订联系人'
|
title: '签订联系人'
|
||||||
|
}, {
|
||||||
|
fieldName: 'phone',
|
||||||
|
title: '联系电话'
|
||||||
|
}, {
|
||||||
|
fieldName: 'address',
|
||||||
|
title: '邮寄地址'
|
||||||
|
}, {
|
||||||
|
fieldName: 'postCode',
|
||||||
|
title: '邮编'
|
||||||
}, {
|
}, {
|
||||||
fieldName: 'opening_dictText',
|
fieldName: 'opening_dictText',
|
||||||
title: '是否开口'
|
title: '是否开口'
|
||||||
|
|||||||
+67
@@ -46,6 +46,30 @@
|
|||||||
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</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-col :xxl="6" :xl="8" :sm="12">
|
||||||
<a-form-item label="是否开口" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="是否开口" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<j-dict-select-tag v-decorator="['opening']"
|
<j-dict-select-tag v-decorator="['opening']"
|
||||||
@@ -269,6 +293,7 @@ import JDate from '../../../../components/tools/JDate'
|
|||||||
import JYearDate from '../../../../components/jero/JYearDate'
|
import JYearDate from '../../../../components/jero/JYearDate'
|
||||||
import { money } from '../../../../utils/validate'
|
import { money } from '../../../../utils/validate'
|
||||||
import { addZero } from '../../../../utils/util'
|
import { addZero } from '../../../../utils/util'
|
||||||
|
import { phoneReg, postcode } from '../../../../utils/validate'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ExpenditureContractModule',
|
name: 'ExpenditureContractModule',
|
||||||
@@ -321,6 +346,18 @@ export default {
|
|||||||
rules: [{ required: true, message: '请输入签订联系人' }],
|
rules: [{ required: true, message: '请输入签订联系人' }],
|
||||||
validateTrigger: 'blur'
|
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: {
|
principalId: {
|
||||||
rules: [{ required: true, message: '请选择负责人' }],
|
rules: [{ required: true, message: '请选择负责人' }],
|
||||||
validateTrigger: 'change'
|
validateTrigger: 'change'
|
||||||
@@ -517,6 +554,36 @@ export default {
|
|||||||
callback('请输入合同编号')
|
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
|
// * @param rules
|
||||||
|
|||||||
@@ -65,7 +65,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template slot="text" slot-scope="text">
|
<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>
|
</template>
|
||||||
|
|
||||||
<span slot="print" slot-scope="text, record" class="action-span-cell">
|
<span slot="print" slot-scope="text, record" class="action-span-cell">
|
||||||
@@ -221,7 +224,7 @@ export default {
|
|||||||
})
|
})
|
||||||
window.open(routerUrl.href, '_blank')
|
window.open(routerUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
handleAdd (id) {
|
handleAdd(id) {
|
||||||
let param = {
|
let param = {
|
||||||
id: id
|
id: id
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-8
@@ -269,14 +269,7 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
// 总计数据
|
// 总计数据
|
||||||
footerDataSource: [
|
footerDataSource: [],
|
||||||
{
|
|
||||||
id: 1,
|
|
||||||
title: '总计',
|
|
||||||
allMoney: '500',
|
|
||||||
comeAllMoney: '600'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
filters: {
|
filters: {
|
||||||
id: this.$route.query.workGroupId
|
id: this.$route.query.workGroupId
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user