3 Commits 18878f73a6 ... e380ed052b

Author SHA1 Message Date
  gaoyognxing e380ed052b 提交 4 years ago
  gaoyognxing 5999dcfd21 Merge branch 'master' of http://47.102.110.240:3000/yuxiangpei/tbServantMini_cloud 4 years ago
  fuxubing 1a2d279532 雇主端-服务标准编辑 4 years ago

+ 2 - 2
client/pages/customer/servantedit/servantedit.js

@@ -15,7 +15,7 @@ Page({
   loadpage(subtypeNo){
     let employRelationNo = app.globalData.employRelationNo;
     let params = {employRelationNo:employRelationNo}
-    request.httpServiceGet(apiUrl.getSubjectWhenEdit, params).then(data => {
+    request.httpServiceGet(apiUrl.getEmployerSubjectWhenEdit, params).then(data => {
       if (data.length > 0) {
         //加载全部的类别
         let subjectList={};
@@ -56,7 +56,7 @@ Page({
       }
     }
       //console.log(servantselectedlist);
-      request.httpServicePost(apiUrl.updateServantLove,{employRelationNo:employRelationNo,subjectList:servantselectedlist,subjectType:"SN000002"}).then(data=>{
+      request.httpServicePost(apiUrl.updateEmployerLove,{employRelationNo:employRelationNo,subjectList:servantselectedlist,subjectType:"SN000002"}).then(data=>{
         my.alert({
           title: '提示',
           content: '设置完成',

+ 1 - 1
client/pages/customer/servantlist/servantlist.js

@@ -10,7 +10,7 @@ Page({
   },
   loadpage(){
     let params = {}
-    request.httpServiceGet(apiUrl.getSubjectWhenEdit, params).then(data => {
+    request.httpServiceGet(apiUrl.getEmployerSubjectWhenEdit, params).then(data => {
       if (data.length > 0) {
         //添加选中的状态列
         let servantlist = data;

+ 8 - 1
client/util/apiUrl1.js

@@ -14,6 +14,11 @@ const updateServantLove = baseService + '/servantlove/updateServantLove';
 const selectDayTaskItemPath = baseService + '/servantTask/selectDayTaskItem';
 // 添加保姆今日花销
 const insertDailyCostPath = baseService + '/servantTask/insertDailyCost';
+// 雇主段编辑阿姨偏好
+const updateEmployerLove =baseService+'/servicestandard/updateServiceStandards';
+//雇主端编辑时获取已选择的题目答案
+const getEmployerSubjectWhenEdit = baseService+'/servicestandard/getSubjectWhenEdit';
+
 
 
 export default {
@@ -23,5 +28,7 @@ export default {
   getSubjectWhenEdit,
   selectDayTaskItemPath,
   updateServantLove,
-  insertDailyCostPath
+  insertDailyCostPath,
+  updateEmployerLove,
+  getEmployerSubjectWhenEdit
 }