Browse Source

服务找人自动通知服务方没有返回/共性需求如果没有指派删除服务项

feature
mk 2 years ago
parent
commit
06613adaef
  1. 4
      src/views/modules/communityService/fuwuzhaoren/addForm.vue
  2. 22
      src/views/modules/communityService/gxxq/addForm.vue

4
src/views/modules/communityService/fuwuzhaoren/addForm.vue

@ -162,7 +162,7 @@
</el-option>
</el-select>
</el-form-item>
<!-- <el-form-item
<el-form-item
prop="noticeApproches"
label="自动通知服务方"
label-width="150px"
@ -172,7 +172,7 @@
<el-checkbox label="sms" value="sms">短信通知</el-checkbox>
<el-checkbox label="wx_official_account" value="wx_official_account">微信公众号消息通知</el-checkbox>
</el-checkbox-group>
</el-form-item> -->
</el-form-item>
<el-form-item
label="服务范围"
prop="objList"

22
src/views/modules/communityService/gxxq/addForm.vue

@ -354,8 +354,8 @@ export default {
disabledDate: startDisabledDate
},
newFormData: {
noticeApproches: [],
serviceScopeList: [], //
noticeApproches: [],//
serviceScopeList: [], //
serviceTimeStart: "", //yyyy-MM-dd
serviceTimeEnd: "", //yyyy-MM-dd
serverOrgType: "", // community_org ic_user_volunteer party_unit
@ -721,20 +721,8 @@ export default {
arr.push(item);
}
});
// for(let i in arr){
// if(arr[i].objectType == "neighborhood" ||
// arr[i].objectType == "agency" ||
// arr[i].objectType == "grid"){
// isOk = true;
// }else{
// isOk = false;
// this.$message.error(",,!");
// return
// }
// }
this.newFormData.serviceScopeList = arr;
// if (!isOk && this.formData.assignFlag) return
var url = "";
var params = {};
if (this.formType == "edit") {
@ -748,6 +736,9 @@ export default {
assignInfo: this.newFormData,
id: this.scopeId,
};
if(this.formData.assignFlag!=1){
delete params.assignInfo
}
} else {
url = "/governance/commonDemand/save";
params = {
@ -758,6 +749,9 @@ export default {
assignFlag: this.formData.assignFlag,
assignInfo: this.newFormData,
};
if(this.formData.assignFlag!=1){
delete params.assignInfo
}
}
// const url = 'http://yapi.elinkservice.cn/mock/245/governance/icServiceProject/service/initiate'
console.log(params);

Loading…
Cancel
Save