Browse Source

共性需求服务方接口修改4个找人服务方一级分类修改

feature
mk 2 years ago
parent
commit
bee6ce5593
  1. 2
      src/views/modules/communityService/fuwuzhaoren/addForm.vue
  2. 2
      src/views/modules/communityService/gangweizhaoren/addForm.vue
  3. 29
      src/views/modules/communityService/gxxq/addForm.vue
  4. 2
      src/views/modules/communityService/jinengzhaoren/addForm.vue
  5. 19
      src/views/modules/communityService/measure/index.vue
  6. 8
      src/views/modules/communityService/policy/addPolicy.vue
  7. 2
      src/views/modules/communityService/wennuanzhaoren/addForm.vue

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

@ -788,7 +788,7 @@ export default {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.serviceOptions = res.data;
this.serviceOptions = res.data.filter(item=>item.value == 'party_unit'||item.value == 'community_org'||item.value == 'publicWelfare');
}
})
.catch(() => {

2
src/views/modules/communityService/gangweizhaoren/addForm.vue

@ -793,7 +793,7 @@ export default {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.serviceOptions = res.data;
this.serviceOptions = res.data.filter(item=>item.value == 'party_unit'||item.value == 'community_org');
}
})
.catch(() => {

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

@ -20,7 +20,9 @@
:props="{label: 'categoryName',value: 'categoryCode',children: 'childCateList'}"
clearable
size="small"
ref="categoryCode"
class="u-item-width-normal"
@change="handelChangeCategoryCode"
></el-cascader>
</el-form-item>
<el-form-item
@ -357,6 +359,7 @@ export default {
sarr: [],
scopeId: "",
serviceOptions: [],
originalServiceOptions:[],
serviceOptiondList: [],
policyList: [],
@ -482,6 +485,23 @@ export default {
this.formData.resiSearchTagId = "";
this.formData.resiSearchTagName = "";
},
handelChangeCategoryCode() {
this.serviceOptions = [...this.originalServiceOptions];
const parentMappings = {
'公益事业类': ['party_unit', 'community_org'],
'技能培训类': ['party_unit', 'publicWelfare', 'community_org'],
'教育讲座类': ['party_unit', 'community_org'],
'社会治理类': ['party_unit', 'community_org'],
'公共服务类': ['party_unit', 'community_org', 'publicWelfare'],
'岗位提供类': ['party_unit', 'community_org'],
};
const checkedParent = this.$refs['categoryCode'].getCheckedNodes()[0].parent.label;
if (parentMappings[checkedParent] && Array.isArray(parentMappings[checkedParent])) {
this.serviceOptions = this.serviceOptions.filter(item => parentMappings[checkedParent].includes(item.value));
} else {
this.serviceOptions = this.originalServiceOptions
}
},
async iniDefaultData() {
const { defaultData } = this;
console.log("iniDefaultData3", defaultData);
@ -524,6 +544,7 @@ export default {
return this.$message.error(res.msg);
} else {
this.serviceOptions = res.data;
this.originalServiceOptions = [...this.serviceOptions];
}
})
.catch(() => {
@ -579,12 +600,12 @@ export default {
},
async getServiceuserList(serverOrgType) {
if (this.formData.categoryCode == [] || !serverOrgType) return;
const url = "/actual/base/serviceitem/listServerOrg";
if (this.formData.categoryCode.length === 0) return;
const url = "/actual/base/serviceitem/listServerOrgNewTask";
let params = {
serviceTypeId: this.formData.categoryCode[1],
serverOrgCategoryCode: this.formData.categoryCode[1],
serverParentOrgCategoryCode:this.formData.categoryCode[0],
serverOrgType: serverOrgType,
businessType: "common_service",
};
let { data, code, msg } = await requestPost(url, params);
if (code == 0) {

2
src/views/modules/communityService/jinengzhaoren/addForm.vue

@ -791,7 +791,7 @@ export default {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.serviceOptions = res.data;
this.serviceOptions = res.data.filter(item=>item.value == 'party_unit'||item.value == 'community_org'||item.value == 'publicWelfare');
}
})
.catch(() => {

19
src/views/modules/communityService/measure/index.vue

@ -686,22 +686,7 @@ export default {
boxHeight:true,
serviceOptions: [
{
label: "志愿者",
value: "volunteer",
},
// {
// label: '',
// value: 'social_org'
// },
{
label: "社区自组织",
value: "community_org",
},
{
label: "区域党建单位",
value: "party_unit",
},
],
serviceOptiondList: [],
options: [
@ -1402,7 +1387,7 @@ export default {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.serviceOptions = res.data;
this.serviceOptions = res.data.filter(item=>item.value != 'fifteen_mins_places');
}
})
.catch(() => {

8
src/views/modules/communityService/policy/addPolicy.vue

@ -569,11 +569,11 @@ export default {
this.$message.error("请先选择需求类别!");
return;
}
const url = "/actual/base/serviceitem/listServerOrg";
const url = "/actual/base/serviceitem/listServerOrgNewTask";
let params = {
serviceTypeId: this.formData.categoryCode[1],
serverOrgCategoryCode: this.formData.categoryCode[1],
serverParentOrgCategoryCode:this.formData.categoryCode[0],
serverOrgType: this.newFormData.serverOrgType ||this.formData.assignInfo.serverOrgType,
businessType: "common_service",
};
console.log(this.formData);
let { data, code, msg } = await requestPost(url, params);
@ -592,7 +592,7 @@ export default {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.serviceOptions = res.data;
this.serviceOptions = res.data.filter(item=>item.value == 'party_unit'||item.value == 'community_org'||item.value == 'publicWelfare');
}
})
.catch(() => {

2
src/views/modules/communityService/wennuanzhaoren/addForm.vue

@ -751,7 +751,7 @@ export default {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.serviceOptions = res.data;
this.serviceOptions = res.data.filter(item=>item.value == 'party_unit'||item.value == 'community_org');
}
})
.catch(() => {

Loading…
Cancel
Save