沈丘营商办后台前端项目
王恒
2025-08-11 77e1201f570750033d4f743f55f9362109a7a085
'对接新增接口'
2个文件已修改
57 ■■■■■ 已修改文件
.env.development 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/manage/index.vue 55 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.development
@@ -5,7 +5,7 @@
VITE_APP_ENV = 'development'
# VITE_APP_BASE = 'http://172.16.61.31:8089'
VITE_APP_BASE = 'http://172.16.60.241:8086'
VITE_APP_BASE = 'http://172.16.60.251:8086'
# VITE_APP_BASE = 'http://172.16.61.34:8089'
#VITE_APP_BASE = 'http://localhost:8089'
src/views/system/manage/index.vue
@@ -117,12 +117,12 @@
        width="180"
      ></el-table-column>
      <el-table-column
        prop="checkdObject"
        prop="companyNames"
        label="被检查对象"
        width="180"
      ></el-table-column>
      <el-table-column
        prop="unifiedSocialCreditCode"
        prop="companyCodes"
        label="统一社会信用代码"
        width="180"
      ></el-table-column>
@@ -142,7 +142,7 @@
        width="180"
      ></el-table-column>
      <el-table-column
        prop="executiveSection"
        prop="executiveSectionNames"
        label="执行科室"
        width="180"
      ></el-table-column>
@@ -244,7 +244,7 @@
          <el-col :span="24">
            <el-form-item label="被检查对象信息">
              <el-table
                :data="form.checkdObject"
                :data="checkedList"
                max-height="200px"
                style="width: 100%"
              >
@@ -567,15 +567,17 @@
const deptOptions = ref(undefined);
const selectOffices = ref([]);
const officeList = ref([]);
let checkedList = ref([]); // 选中的企业列表
const data = reactive({
  form: {
    planName: "", // 计划名称
    makeOrgId: "", // 制定机构id
    makeOrgName: "", // 制定机构
    executiveSection: "", // 执行科室
    executiveSectionName: "", // 执行科室名称
    checkdObject: [], // 被检查对象列表
    checkdIds: "", // 被检查对象id
    executiveSectionNames: "", // 执行科室名称
    companyNames: "", // 被检查对象名称
    companyCodes: "", // 统一社会信用代码
    companyIds: "", // 被检查对象id
    checkdType: "", // 检查方式
    industry: "", // 所属行业
    checkdContent: "", // 检查内容
@@ -664,7 +666,7 @@
  form.value.makeOrgName = e.label;
  selectOffices.value = [];
  form.value.executiveSection = "";
  form.value.executiveSectionName = "";
  form.value.executiveSectionNames = "";
  if (e.id) {
    getOfficeList();
  }
@@ -672,12 +674,14 @@
// 科室选择
const handleSelectOffices = (value) => {
  form.value.executiveSectionName = value.map((item) => {
    return officeList.value.find((obj) => obj.deptId === item).deptName;
  }).join(",");
  form.value.executiveSectionNames = value
    .map((item) => {
      return officeList.value.find((obj) => obj.deptId === item).deptName;
    })
    .join(",");
  form.value.executiveSection = value.join(",");
  console.log(form.value.executiveSection);
  console.log(form.value.executiveSectionName);
  console.log(form.value.executiveSectionNames);
};
/*** 计划导入参数 */
@@ -751,10 +755,11 @@
    planName: "", // 计划名称
    makeOrgId: "", // 制定机构id
    makeOrgName: "", // 制定机构
    executiveSection: "", // 执行科室
    executiveSectionName: "", // 执行科室名称
    checkdObject: [], // 被检查对象列表
    executiveSection: "", // 执行科室id
    executiveSectionNames: "", // 执行科室名称
    checkdIds: "", // 被检查对象id
    companyNames: "", // 被检查对象名称
    companyCodes: "", // 统一社会信用代码
    checkdType: "", // 检查方式
    industry: "", // 所属行业
    checkdContent: "", // 检查内容
@@ -819,10 +824,20 @@
          getList();
        });
      } else {
        addManage(form.value).then((response) => {
          proxy.$modal.msgSuccess("新增成功");
          open.value = false;
          getList();
        checkedList.value.forEach((item, index) => {
          console.log(item)
          const submitForm = { ...form.value };
          submitForm.companyIds = item.companyId;
          submitForm.companyNames = item.companyName;
          submitForm.companyCodes = item.companyCode;
          addManage(submitForm).then((response) => {
            if (index === checkedList.value.length - 1) {
              proxy.$modal.msgSuccess("新增成功");
              open.value = false;
              getList();
              reset();
            }
          });
        });
      }
    }
@@ -896,7 +911,7 @@
}
function handleSelectionChange(e) {
  form.value.checkdObject = e;
  checkedList.value = e;
  form.value.checkdIds = e.map((item) => item.companyId).join(",");
}