|
|
@@ -21,7 +21,7 @@ Page({
|
|
|
routeObjName: 'cusFollow',
|
|
|
cardList: ['main'],
|
|
|
buttonSaveList: [{ code: 'add', title: mixins.$t('save'), width: '120rpx' }],
|
|
|
- id:'10112024-0407-0000-0000-0000296189a7',
|
|
|
+ id: '10112024-0407-0000-0000-0000296189a7',
|
|
|
contentObj: {
|
|
|
main: [
|
|
|
{ code: 'cusName', type: 'str', required: true, title: mixins.$t('customerName') },
|
|
|
@@ -29,12 +29,39 @@ Page({
|
|
|
{ code: 'addressFull', type: 'address', title: mixins.$t('addressFull'), required: false },
|
|
|
{ code: 'addressNo', type: 'str', required: false, title: mixins.$t('addressNo') },
|
|
|
{ code: 'intention', name: 'intentionName', type: 'drop', required: true, dropType: 'customerIntention', title: mixins.$t('intention') },
|
|
|
+ { code: 'followType', name: 'followTypeName', type: 'textarea', dropType: 'followType', type: 'drop', required: true, title: mixins.$t('followType') },
|
|
|
{ code: 'followData', type: 'textarea', required: true, title: mixins.$t('followData') },
|
|
|
{ code: 'nextFollowTime', type: 'dateTime', required: true, title: mixins.$t('nextFollowTime') },
|
|
|
{ code: 'stayTimeLen', name: 'stayTimeLenName', required: true, title: mixins.$t('stayTimeLen'), dropType: 'storeRetentionTime', type: 'drop', },
|
|
|
],
|
|
|
},
|
|
|
},
|
|
|
+ chooseData(e) {
|
|
|
+
|
|
|
+ let code = e.detail.code
|
|
|
+ if (code == 'followType') {
|
|
|
+ let formData = JSON.parse(this.data.formData)
|
|
|
+ let contentObj = this.data.contentObj
|
|
|
+ //电话、微信时留店时长是非必输
|
|
|
+ if (formData.followType == '跟进方式-电话' || formData.followType == '跟进方式-微信') {
|
|
|
+ contentObj.main.forEach(res => {
|
|
|
+ if (res.code == 'stayTimeLen') {
|
|
|
+ res.required = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ contentObj.main.forEach(res => {
|
|
|
+ if (res.code == 'stayTimeLen') {
|
|
|
+ res.required = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ this.setData({
|
|
|
+ contentObj:contentObj
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
/**
|
|
|
* @desc : 设置保存参数
|
|
|
* @date : 2024/2/1 15:49
|
|
|
@@ -210,21 +237,22 @@ Page({
|
|
|
{ code: 'addressFull', type: 'address', title: mixins.$t('addressFull'), required: false },
|
|
|
{ code: 'addressNo', type: 'str', required: false, title: mixins.$t('addressNo') },
|
|
|
{ code: 'intention', name: 'intentionName', type: 'drop', required: true, dropType: 'customerIntention', title: mixins.$t('intention') },
|
|
|
-
|
|
|
+ { code: 'followType', name: 'followTypeName', type: 'textarea', dropType: 'followType', type: 'drop', required: true, title: mixins.$t('followType') },
|
|
|
{ code: 'followData', type: 'textarea', required: true, title: mixins.$t('followData') },
|
|
|
{ code: 'nextFollowTime', type: 'dateTime', required: true, title: mixins.$t('nextFollowTime') },
|
|
|
{ code: 'stayTimeLen', name: 'stayTimeLenName', required: true, title: mixins.$t('stayTimeLen'), dropType: 'storeRetentionTime', type: 'drop', },
|
|
|
]
|
|
|
|
|
|
let radioFollowUpList11 = [
|
|
|
- { code: 'cusName', type: 'str', required: false, title: mixins.$t('customerName'),readonly:true },
|
|
|
- { code: 'cusPhone', type: 'str', required: false, title: mixins.$t('cusPhone') ,readonly:true },
|
|
|
- { code: 'addressFull', type: 'str', required: false, title: mixins.$t('addressFull'),readonly:true },
|
|
|
- { code: 'addressNo', type: 'str', required: false, title: mixins.$t('addressNo'),readonly:true },
|
|
|
- { code: 'intentionName', type: 'str', required: false, title: mixins.$t('intention'),readonly:true },
|
|
|
- { code: 'followData', type: 'textarea', required: false, title: mixins.$t('followData'),readonly:true },
|
|
|
- { code: 'nextFollowTime', type: 'str', required: false, title: mixins.$t('nextFollowTime'),readonly:true },
|
|
|
- { code: 'stayTimeLenName', type: 'str', required: false, title: mixins.$t('stayTimeLen'),readonly:true },
|
|
|
+ { code: 'cusName', type: 'str', required: false, title: mixins.$t('customerName'), readonly: true },
|
|
|
+ { code: 'cusPhone', type: 'str', required: false, title: mixins.$t('cusPhone'), readonly: true },
|
|
|
+ { code: 'addressFull', type: 'str', required: false, title: mixins.$t('addressFull'), readonly: true },
|
|
|
+ { code: 'addressNo', type: 'str', required: false, title: mixins.$t('addressNo'), readonly: true },
|
|
|
+ { code: 'intentionName', type: 'str', required: false, title: mixins.$t('intention'), readonly: true },
|
|
|
+ { code: 'followData', type: 'textarea', required: false, title: mixins.$t('followData'), readonly: true },
|
|
|
+ { code: 'followName', type: 'textarea', required: false, title: mixins.$t('followType'), readonly: true },
|
|
|
+ { code: 'nextFollowTime', type: 'str', required: false, title: mixins.$t('nextFollowTime'), readonly: true },
|
|
|
+ { code: 'stayTimeLenName', type: 'str', required: false, title: mixins.$t('stayTimeLen'), readonly: true },
|
|
|
]
|
|
|
let radioFollowUpList2 = [
|
|
|
{ code: 'cusName', type: 'str', required: true, title: mixins.$t('customerName') },
|
|
|
@@ -234,19 +262,22 @@ Page({
|
|
|
{ code: 'inviteResult', name: 'inviteResultName', type: 'drop', required: true, dropType: 'inviteResult', title: mixins.$t('inviteResult') },
|
|
|
{ code: 'inviteTime', type: 'dateTime', required: true, title: mixins.$t('inviteResult') },
|
|
|
{ code: 'intention', name: 'intentionName', type: 'drop', required: true, dropType: 'customerIntention', title: mixins.$t('intention') },
|
|
|
+ { code: 'followType', name: 'followTypeName', type: 'textarea', dropType: 'followType', type: 'drop', required: true, title: mixins.$t('followType') },
|
|
|
{ code: 'followData', type: 'textarea', required: true, title: mixins.$t('followData') },
|
|
|
{ code: 'nextFollowTime', type: 'dateTime', required: true, title: mixins.$t('nextFollowTime') },
|
|
|
]
|
|
|
let radioFollowUpList22 = [
|
|
|
- { code: 'cusName', type: 'str', required: false, title: mixins.$t('customerName'),readonly:true },
|
|
|
- { code: 'cusPhone', type: 'str', required: false, title: mixins.$t('cusPhone') ,readonly:true },
|
|
|
- { code: 'addressFull', type: 'str', required: false, title: mixins.$t('addressFull'),readonly:true },
|
|
|
- { code: 'addressNo', type: 'str', required: false, title: mixins.$t('addressNo'),readonly:true },
|
|
|
- { code: 'inviteResult', type: 'str', required: false, title: mixins.$t('inviteResult'),readonly:true },
|
|
|
- { code: 'inviteTime', type: 'str', required: false, title: mixins.$t('inviteTime'),readonly:true },
|
|
|
- { code: 'intentionName', type: 'str', required: false, title: mixins.$t('intention'),readonly:true },
|
|
|
- { code: 'followData', type: 'textarea', required: false, title: mixins.$t('followData'),readonly:true },
|
|
|
- { code: 'nextFollowTime', type: 'str', required: false, title: mixins.$t('nextFollowTime'),readonly:true },
|
|
|
+ { code: 'cusName', type: 'str', required: false, title: mixins.$t('customerName'), readonly: true },
|
|
|
+ { code: 'cusPhone', type: 'str', required: false, title: mixins.$t('cusPhone'), readonly: true },
|
|
|
+ { code: 'addressFull', type: 'str', required: false, title: mixins.$t('addressFull'), readonly: true },
|
|
|
+ { code: 'addressNo', type: 'str', required: false, title: mixins.$t('addressNo'), readonly: true },
|
|
|
+ { code: 'inviteResult', type: 'str', required: false, title: mixins.$t('inviteResult'), readonly: true },
|
|
|
+ { code: 'inviteTime', type: 'str', required: false, title: mixins.$t('inviteTime'), readonly: true },
|
|
|
+ { code: 'intentionName', type: 'str', required: false, title: mixins.$t('intention'), readonly: true },
|
|
|
+ { code: 'followName', type: 'textarea', required: false, title: mixins.$t('followType'), readonly: true },
|
|
|
+
|
|
|
+ { code: 'followData', type: 'textarea', required: false, title: mixins.$t('followData'), readonly: true },
|
|
|
+ { code: 'nextFollowTime', type: 'str', required: false, title: mixins.$t('nextFollowTime'), readonly: true },
|
|
|
]
|
|
|
let radioFollowUpList3 = [
|
|
|
{ code: 'cusName', type: 'str', required: true, title: mixins.$t('customerName') },
|
|
|
@@ -261,29 +292,29 @@ Page({
|
|
|
|
|
|
]
|
|
|
let radioFollowUpList33 = [
|
|
|
- { code: 'cusName', type: 'str', required: false, title: mixins.$t('customerName'),readonly:true },
|
|
|
- { code: 'cusPhone', type: 'str', required: false, title: mixins.$t('cusPhone') ,readonly:true },
|
|
|
- { code: 'addressFull', type: 'str', required: false, title: mixins.$t('addressFull'),readonly:true },
|
|
|
- { code: 'addressNo', type: 'str', required: false, title: mixins.$t('addressNo'),readonly:true },
|
|
|
- { code: 'designStaffName', type: 'str', required: false, title: mixins.$t('designStaff'),readonly:true },
|
|
|
-
|
|
|
- { code: 'inviteResultName', type: 'str', required: false, title: mixins.$t('inviteResult'),readonly:true },
|
|
|
+ { code: 'cusName', type: 'str', required: false, title: mixins.$t('customerName'), readonly: true },
|
|
|
+ { code: 'cusPhone', type: 'str', required: false, title: mixins.$t('cusPhone'), readonly: true },
|
|
|
+ { code: 'addressFull', type: 'str', required: false, title: mixins.$t('addressFull'), readonly: true },
|
|
|
+ { code: 'addressNo', type: 'str', required: false, title: mixins.$t('addressNo'), readonly: true },
|
|
|
+ { code: 'designStaffName', type: 'str', required: false, title: mixins.$t('designStaff'), readonly: true },
|
|
|
+
|
|
|
+ { code: 'inviteResultName', type: 'str', required: false, title: mixins.$t('inviteResult'), readonly: true },
|
|
|
|
|
|
- { code: 'followTime', type: 'str', required: false, title: mixins.$t('nextFollowTimeS'),readonly:true },
|
|
|
- { code: 'followData', type: 'textarea', required: false, title: mixins.$t('followData'),readonly:true },
|
|
|
- { code: 'nextFollowTime', type: 'str', required: false, title: mixins.$t('nextFollowTime'),readonly:true },
|
|
|
+ { code: 'followTime', type: 'str', required: false, title: mixins.$t('nextFollowTimeS'), readonly: true },
|
|
|
+ { code: 'followData', type: 'textarea', required: false, title: mixins.$t('followData'), readonly: true },
|
|
|
+ { code: 'nextFollowTime', type: 'str', required: false, title: mixins.$t('nextFollowTime'), readonly: true },
|
|
|
|
|
|
]
|
|
|
let contentObj = this.data.contentObj
|
|
|
// let radioFollowUp = this.data.radioFollowUp
|
|
|
if (radioFollowUp == '1') {
|
|
|
- contentObj.main = this.data.formType == 'detail' ? radioFollowUpList11:radioFollowUpList1
|
|
|
+ contentObj.main = this.data.formType == 'detail' ? radioFollowUpList11 : radioFollowUpList1
|
|
|
}
|
|
|
if (radioFollowUp == '2') {
|
|
|
- contentObj.main = this.data.formType == 'detail' ? radioFollowUpList22:radioFollowUpList2
|
|
|
+ contentObj.main = this.data.formType == 'detail' ? radioFollowUpList22 : radioFollowUpList2
|
|
|
}
|
|
|
if (radioFollowUp == '3') {
|
|
|
- contentObj.main = this.data.formType == 'detail' ? radioFollowUpList33:radioFollowUpList3
|
|
|
+ contentObj.main = this.data.formType == 'detail' ? radioFollowUpList33 : radioFollowUpList3
|
|
|
}
|
|
|
this.setData({
|
|
|
contentObj: contentObj
|