|
|
@@ -25,7 +25,7 @@ Page({
|
|
|
commonService: app.globalData['commonService'],
|
|
|
routeObjName: 'basicData',
|
|
|
tableData: [],
|
|
|
- buttonSaveList: [{ code: 'sort', title: '排序', width: '120rpx', plain:true}, { code: 'add', title: '新建', width: '120rpx', color: '#CAA977' }],
|
|
|
+ buttonSaveList: [{ code: 'sort', title: '排序', width: '120rpx', plain: true }, { code: 'add', title: '新建', width: '120rpx', color: '#CAA977' }],
|
|
|
contentSaveList: [],
|
|
|
// 查询条件
|
|
|
searchContent: [{
|
|
|
@@ -88,7 +88,13 @@ Page({
|
|
|
[
|
|
|
{ code: 'whCode', type: 'str', title: mixins.$t('whCode'), required: false, readonly: true, },
|
|
|
{ code: 'whName', type: 'str', title: mixins.$t('whName'), required: true },
|
|
|
- { code: 'supervisor', type: 'str', title: mixins.$t('supervisor'), required: true },
|
|
|
+ {
|
|
|
+ name: 'supervisor',
|
|
|
+ title: mixins.$t("supervisor"),
|
|
|
+ type: 'choose',
|
|
|
+ required: true,
|
|
|
+ urlKey: 'chooseStaff'
|
|
|
+ },
|
|
|
{ code: 'contactPhone', type: 'str', title: mixins.$t('contactPhone'), required: true },
|
|
|
{ code: 'remarks', type: 'str', title: mixins.$t('remarks'), required: false }
|
|
|
]
|
|
|
@@ -150,6 +156,10 @@ Page({
|
|
|
{ code: 'dataValue', type: 'str', title: mixins.$t('sourceName'), required: true },
|
|
|
]
|
|
|
}
|
|
|
+ if (formDataName == '客户标签') {
|
|
|
+ //设置新建编辑字段 客户来源
|
|
|
+ popContent =[]
|
|
|
+ }
|
|
|
popContent.push({ code: 'remarks', type: 'str', title: mixins.$t('remarks'), required: false })
|
|
|
}
|
|
|
|
|
|
@@ -237,7 +247,8 @@ Page({
|
|
|
formData: null,
|
|
|
showPop: true,
|
|
|
})
|
|
|
-
|
|
|
+ //清除组件数据
|
|
|
+ this.selectComponent('#popup').setFormNull()
|
|
|
},
|
|
|
/**
|
|
|
* @desc : 跳转排序
|
|
|
@@ -356,9 +367,11 @@ Page({
|
|
|
service = this.data.saleChannelService
|
|
|
id = params.channelId
|
|
|
} else { //基础数据
|
|
|
+ console.log(params)
|
|
|
service = this.data.service
|
|
|
- id = params.data_id
|
|
|
+ id = params.dataId
|
|
|
params.dictCode = this.data.dictCode
|
|
|
+
|
|
|
}
|
|
|
if (id) { //编辑
|
|
|
return this.excute(service, service.update, params);
|