沈丘营商办后台前端项目
王恒
2025-08-28 d743d35bfb2dede91ff4b310886ba42da30425f2
src/views/system/manage/index.vue
@@ -305,7 +305,7 @@
                  v-for="(obj, index) in industry_type"
                  :key="index"
                  :label="obj.label"
                  :value="obj.key"
                  :value="obj.value"
                />
              </el-select>
            </el-form-item>
@@ -336,7 +336,7 @@
                      v-for="(obj, index) in frequency"
                      :key="index"
                      :label="obj.label"
                      :value="obj.key"
                      :value="obj.value"
                    />
                  </el-select> </template
              ></el-input>
@@ -616,7 +616,7 @@
    enforceType: "", // 检查方式
    enforceContent: "", // 检查内容
    planFrequency: "", // 计划频次
    planFrequencyUnit: "1", // 计划频次单位
    planFrequencyUnit: 119, // 计划频次单位
    planMonth: "", // 计划月份
  },
  queryParams: {
@@ -884,19 +884,18 @@
          reset();
        });
      } else {
        checkedList.value.forEach((item, index) => {
        const submitArr = checkedList.value.map((item, index) => {
          const submitForm = { ...form.value };
          submitForm.companyId = item.companyId;
          submitForm.companyName = item.companyName;
          submitForm.companyCode = item.companyCode;
          addManage(submitForm).then((response) => {
            if (index === checkedList.value.length - 1) {
          return submitForm
        });
        addManage(submitArr).then((response) => {
              proxy.$modal.msgSuccess("新增成功");
              open.value = false;
              getList();
              reset();
            }
          });
        });
      }
    }
@@ -976,7 +975,7 @@
}
function industryToText(industry) {
  return industry_type.value.find((item) => item.key == industry).label;
  return industry_type.value.find((item) => item.value == industry).label;
}
function methodToText(enforceType) {
@@ -985,11 +984,12 @@
}
function frequencyToText(data) {
  console.log(data.planFrequencyUnit);
  if (!data.planFrequencyUnit) {
    return "";
  }
  const unit = frequency.value.find(
    (item) => item.key == data.planFrequencyUnit
    (item) => item.value == data.planFrequencyUnit
  ).label;
  return `${data.planFrequency}次/${unit}`;
}
@@ -1000,7 +1000,7 @@
function getUserOrgId() {
  getOrgId().then((response) => {
    form.value.applyOrgId = Number(response.data.orgId) || '';
    form.value.applyOrgId = Number(response.data.orgId) || "";
    form.value.applyDeptIds = response.data.deptId || "";
    if(form.value.applyDeptIds){
      selectOffices.value = form.value.applyDeptIds