【修改】 会员缴费新增设置默认值
This commit is contained in:
@@ -41,6 +41,10 @@ const queryContactByName = (param) => getAction('/company/payContactsManagement/
|
||||
|
||||
// 检查当前登录人是否是 理事会成员 或者分标委成员
|
||||
const checkMember = (param) => getAction('/meeting/payMeetingSituation/checkMember', param)
|
||||
// 会员一年期的缴费的费用
|
||||
const commonMemberCost = '2000'
|
||||
// 会员五年期的缴费的费用
|
||||
const vipMemberCost = '10000'
|
||||
|
||||
export {
|
||||
queryCommonProjectById,
|
||||
@@ -62,5 +66,7 @@ export {
|
||||
getContactsByCompany,
|
||||
getContactsByCompanyNoLimit,
|
||||
getAllUserList,
|
||||
queryContactByName
|
||||
queryContactByName,
|
||||
commonMemberCost,
|
||||
vipMemberCost
|
||||
}
|
||||
|
||||
@@ -258,7 +258,7 @@
|
||||
:disabled="checkFlag||detailFlag"
|
||||
@change="invoiceRequirementsChange"
|
||||
type="list"
|
||||
v-decorator="['invoiceRequirements']"
|
||||
v-decorator="['invoiceRequirements',{ initialValue:'2'}]"
|
||||
:trigger-change="true"
|
||||
dictCode="invoice_requirements"
|
||||
placeholder="请选择发票" />
|
||||
@@ -542,8 +542,9 @@ import {
|
||||
} from '@/api/standardsAssociationApi'
|
||||
import JUpload from '@/components/standardsAssociation/JUpload'
|
||||
import PreViewImgModal from './PreViewImgModal'
|
||||
import { USER_INFO } from '@/store/mutation-types'
|
||||
import Vue from 'vue'
|
||||
import {commonMemberCost,vipMemberCost} from '@api/incomePaymentsApi'
|
||||
// import { USER_INFO } from '@/store/mutation-types'
|
||||
// import Vue from 'vue'
|
||||
|
||||
export default {
|
||||
name: 'PaymentInfoModal',
|
||||
@@ -613,7 +614,8 @@ export default {
|
||||
pattern: /^[1-9](\d{1,10})?(\.\d{1,2})$|^0\.([1-9](\d{0,1})|\d[1-9])$|^[1-9]\d{0,8}$|^0$/,
|
||||
message: '请输入合法的金额数字,最多2位小数,11位正数'
|
||||
}
|
||||
], validateTrigger: 'blur'
|
||||
], validateTrigger: 'blur',
|
||||
initialValue:commonMemberCost
|
||||
|
||||
},
|
||||
paymentTime: {
|
||||
@@ -1206,10 +1208,10 @@ export default {
|
||||
if (Number(value) === 2) {
|
||||
// 5年
|
||||
this.typeFlag = true
|
||||
form.setFieldsValue({ 'paymentType': 1 })
|
||||
form.setFieldsValue({ 'paymentType': 1,'paymentAmount':vipMemberCost })
|
||||
} else {
|
||||
this.typeFlag = false
|
||||
form.setFieldsValue({ 'paymentType': 0 })
|
||||
form.setFieldsValue({ 'paymentType': 0 ,'paymentAmount':commonMemberCost})
|
||||
}
|
||||
if (this.addFlag) {
|
||||
this.model.address = this.address
|
||||
|
||||
Reference in New Issue
Block a user