于继渤 1 год назад
Родитель
Сommit
87c804cbeb

+ 28 - 5
package-basic-data/pages/customer-follow-up/follow-up-tasks/follow-up-tasks.js

@@ -16,15 +16,15 @@ Page({
    * 页面的初始数据
    */
   data: {
-    routeObjName: 'cusFollow',
+    routeObjName: 'followPlan',
     cardList: ['main'],
-    buttonSaveList:[{code:'add',title:mixins.$t('save'),width:'120rpx'}],
+    buttonSaveList: [{ code: 'add', title: mixins.$t('save'), width: '120rpx' }],
     contentObj: {
       main: [
         { code: 'cusName', type: 'str', required: true, readonly: true, title: mixins.$t('cusName') },
-        { code: 'reportStaff', name: 'reportStaffName', type: 'drop', required: true, dropType: 'staff', title: mixins.$t('staffId') },
-        { code: 'nextFollowPlan', type: 'textarea', rows: '5', showWordLimit: true, title:  mixins.$t('nextFollowPlan')},
-        { code: 'nextFollowTime', type: 'dateTime', required: true, title:mixins.$t('nextFollowTimePlan') },
+        { code: 'followUser', name: 'followUserName', type: 'drop', required: true, dropType: 'staff', title: mixins.$t('staffId') },
+        { code: 'nextFollowPlan', type: 'textarea', rows: '5', showWordLimit: true, title: mixins.$t('nextFollowPlan') },
+        { code: 'nextFollowTime', type: 'dateTime', required: true, title: mixins.$t('nextFollowTimePlan') },
       ]
     },
   },
@@ -50,6 +50,7 @@ Page({
     * @author : 于继渤
     */
   setCus(formData, item) {
+    console.log(item)
     formData.cusId = item.cusId
     formData.cusName = item.cusName
     formData.cusCode = item.cusCode
@@ -64,8 +65,30 @@ Page({
     formData.addressName = item.addressName
     formData.addressNo = item.addressNo
     formData.saleStatus = item.saleStatus
+    formData.followId = item.followId
+  
     return JSON.stringify(formData)
   },
 
+  /**
+   * @desc : 设置保存参数
+   * @date : 2024/2/1 15:49
+   * @author : 于继渤
+   */
+  setParams(params) {
+    console.log('params',params)
+    params.planType = 1  //暂时关联跟进   计划类型 (0:无关联、1:关联跟进、2:订单)
+    params.callStatus = '提醒状态-待提醒'  //提醒状态 (【系统字典】待提醒、已提醒、异常)
+    return params
+  },
+
+  /**
+   * @desc : 保存数据服务
+   * @date : 2024/2/1 15:49
+   * @author : 于继渤
+   */
+  saveData() {
+     return this.excute(this.data.service, this.data.service.insert, this.data.params);
+  },
 
 })

+ 1 - 1
package-basic-data/pages/customer-follow-up/follow-up-tasks/follow-up-tasks.wxml

@@ -4,4 +4,4 @@
 <dk-form id="{{formName}}" routeObjName="{{routeObjName}}" cardList="{{cardList}}" contentObj="{{contentObj}}" model:value="{{formData}}" bind:chooseData="chooseData">
 </dk-form>
 <!--  保存 -->
-<dk-save-button model:value="{{btnFormData}}" btnAutoWidthFlag="{{true}}" btnRightFlag="{{true}}" buttonList="{{buttonSaveList}}" contentList="{{contentSaveList}}" bind:open="toAdd"></dk-save-button>
+<dk-save-button model:value="{{btnFormData}}" btnAutoWidthFlag="{{true}}" btnRightFlag="{{true}}" buttonList="{{buttonSaveList}}" contentList="{{contentSaveList}}" bind:open="save"></dk-save-button>

+ 1 - 1
package-basic-data/pages/customer-list/detail/detail.wxml

@@ -716,7 +716,7 @@
         <van-cell border="{{ false}}" title-width="180rpx" title="决策者" value="{{item.decisionMakerName}}" title-class="dk-cell-title" />
         <van-cell border="{{ false }}" title-width="180rpx" title="客户分类" value=" {{item.customerClassifiedName}}" title-class="dk-cell-title" /> -->
 
-        <van-cell border="{{ false }}" title-width="180rpx" title="跟进人" value=" {{item.userName}}" title-class="dk-cell-title" />
+        <van-cell border="{{ false }}" title-width="180rpx" title="跟进人" value=" {{item.followStaffsName}}" title-class="dk-cell-title" />
 
 
         <view style="display:flex;width:100%;margin: 1vw; padding-top: 20rpx;">