|
|
@@ -32,10 +32,10 @@ Page({
|
|
|
{ code: 'contactPhone', type: 'str', title: mixins.$t('cpPhone'), required: false },
|
|
|
],
|
|
|
center: [
|
|
|
- { code: 'channelId', name: 'channelName', required: true, title: mixins.$t('saleChannel'), type: 'choose', urlKey: 'chooseChannel' },
|
|
|
- { code: 'staffId', name: 'staffName', type: 'choose', required: true, title: mixins.$t('saleStaff'), urlKey: 'chooseStaff' },
|
|
|
- { code: 'orgId', name: 'orgName', type: 'choose', required: true, title: mixins.$t('saleOrg'), urlKey: 'chooseOrg' },
|
|
|
- { code: 'initialPaymentId', name: 'initialPayment', type: 'choose', title: mixins.$t('initialPayment'), urlKey: 'chooseInitialPaymentType' },
|
|
|
+ // { code: 'channelId', name: 'channelName', required: true, title: mixins.$t('saleChannel'), type: 'choose', urlKey: 'chooseChannel' },
|
|
|
+ // { code: 'staffId', name: 'staffName', type: 'choose', required: true, title: mixins.$t('saleStaff'), urlKey: 'chooseStaff' },
|
|
|
+ // { code: 'orgId', name: 'orgName', type: 'choose', required: true, title: mixins.$t('saleOrg'), urlKey: 'chooseOrg' },
|
|
|
+ // { code: 'initialPaymentId', name: 'initialPayment', type: 'choose', title: mixins.$t('initialRPayment'), urlKey: 'chooseInitialPaymentType' },
|
|
|
],
|
|
|
remarks: [
|
|
|
{ code: 'remarks', type: 'textarea', title: mixins.$t('remarks') }
|
|
|
@@ -87,35 +87,17 @@ Page({
|
|
|
formData.initialPaymentId = data.id
|
|
|
formData.initialPayment = data.name
|
|
|
let contentObj = this.data.contentObj;
|
|
|
+ let center = contentObj.center
|
|
|
+ center = center.filter(it=>it.code != 'startAmount' && it.code != 'macId')
|
|
|
// 初始款项-欠款
|
|
|
if (data.id == Constants.initialPayType.debt) {
|
|
|
- contentObj.center = [
|
|
|
- { code: 'channelId', name: 'channelName', required: true, title: mixins.$t('saleChannel'), type: 'choose', urlKey: 'chooseChannel' },
|
|
|
- { code: 'staffId', name: 'staffName', type: 'choose', required: true, title: mixins.$t('saleStaff'), urlKey: 'chooseStaff' },
|
|
|
- { code: 'orgId', name: 'orgName', type: 'choose', required: true, title: mixins.$t('saleOrg'), urlKey: 'chooseOrg' },
|
|
|
- { code: 'initialPaymentId', name: 'initialPayment', type: 'choose', title: mixins.$t('initialPayment'), urlKey: 'chooseInitialPaymentType' },
|
|
|
- { code: 'startAmount', type: 'number', required: true, title: mixins.$t('initialDebtOwed') },
|
|
|
- ]
|
|
|
-
|
|
|
+ center.push({ code: 'startAmount', type: 'number', required: true, title: mixins.$t('initialDebtOwed') })
|
|
|
} else if (data.id == Constants.initialPayType.payment) {
|
|
|
// 初始款项-预收
|
|
|
- contentObj.center = [
|
|
|
- { code: 'channelId', name: 'channelName', required: true, title: mixins.$t('saleChannel'), type: 'choose', urlKey: 'chooseChannel' },
|
|
|
- { code: 'staffId', name: 'staffName', type: 'choose', required: true, title: mixins.$t('saleStaff'), urlKey: 'chooseStaff' },
|
|
|
- { code: 'orgId', name: 'orgName', type: 'choose', required: true, title: mixins.$t('saleOrg'), urlKey: 'chooseOrg' },
|
|
|
- { code: 'initialPaymentId', name: 'initialPayment', type: 'choose', title: mixins.$t('initialPayment'), urlKey: 'chooseInitialPaymentType' },
|
|
|
- { code: 'startAmount', type: 'number', required: true, title: mixins.$t('initialPayment') },
|
|
|
- { code: 'macId', name: 'macName', type: 'choose', required: true, title: mixins.$t('moneyAccount'), urlKey: 'chooseMoneyAccount' },
|
|
|
- ]
|
|
|
- } else {
|
|
|
- // 初始款项-无
|
|
|
- contentObj.center = [
|
|
|
- { code: 'channelId', name: 'channelName', required: true, title: mixins.$t('saleChannel'), type: 'choose', urlKey: 'chooseChannel' },
|
|
|
- { code: 'staffId', name: 'staffName', type: 'choose', required: true, title: mixins.$t('saleStaff'), urlKey: 'chooseStaff' },
|
|
|
- { code: 'orgId', name: 'orgName', type: 'choose', required: true, title: mixins.$t('saleOrg'), urlKey: 'chooseOrg' },
|
|
|
- { code: 'initialPaymentId', name: 'initialPayment', type: 'choose', title: mixins.$t('initialPayment'), urlKey: 'chooseInitialPaymentType' },
|
|
|
- ]
|
|
|
+ center.push({ code: 'startAmount', type: 'number', required: true, title: mixins.$t('initialPayment') })
|
|
|
+ center.push({ code: 'macId', name: 'macName', type: 'choose', required: true, title: mixins.$t('moneyAccount'), urlKey: 'chooseMoneyAccount' })
|
|
|
}
|
|
|
+ contentObj.center = center
|
|
|
this.setData({
|
|
|
contentObj: contentObj
|
|
|
})
|
|
|
@@ -238,7 +220,9 @@ Page({
|
|
|
{ code: 'contactName', type: 'str', required: false, title: mixins.$t('contactName') },
|
|
|
{ code: 'contactPhone', type: 'str', title: mixins.$t('cpPhone'), required: false },
|
|
|
]
|
|
|
-
|
|
|
+ contentObj.center = [
|
|
|
+ { code: 'initialPaymentId', name: 'initialPayment', type: 'choose', title: mixins.$t('initialRPayment'), urlKey: 'chooseInitialPaymentType' },
|
|
|
+ ]
|
|
|
|
|
|
} else if (this.data.gradeCode == Constants.gradeCode.PRO) {
|
|
|
|
|
|
@@ -251,6 +235,11 @@ Page({
|
|
|
{ code: 'contactName', type: 'str', required: false, title: mixins.$t('contactName') },
|
|
|
{ code: 'contactPhone', type: 'str', title: mixins.$t('cpPhone'), required: false },
|
|
|
]
|
|
|
+ contentObj.center = [
|
|
|
+ { code: 'staffId', name: 'staffName', type: 'choose', required: true, title: mixins.$t('reportStaff'), urlKey: 'chooseStaff' },
|
|
|
+ { code: 'orgId', name: 'orgName', type: 'choose', required: true, title: mixins.$t('reportOrg'), urlKey: 'chooseOrg' },
|
|
|
+ { code: 'initialPaymentId', name: 'initialPayment', type: 'choose', title: mixins.$t('initialRPayment'), urlKey: 'chooseInitialPaymentType' },
|
|
|
+ ]
|
|
|
}
|
|
|
this.setData({
|
|
|
contentObj: contentObj
|