| | |
| | | v-for="(obj, index) in industry_type" |
| | | :key="index" |
| | | :label="obj.label" |
| | | :value="obj.key" |
| | | :value="obj.value"
|
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | v-for="(obj, index) in frequency" |
| | | :key="index" |
| | | :label="obj.label" |
| | | :value="obj.key" |
| | | :value="obj.value"
|
| | | /> |
| | | </el-select> </template |
| | | ></el-input> |
| | |
| | | enforceType: "", // 检查方式 |
| | | enforceContent: "", // 检查内容 |
| | | planFrequency: "", // 计划频次 |
| | | planFrequencyUnit: "1", // 计划频次单位 |
| | | planFrequencyUnit: 119, // 计划频次单位
|
| | | planMonth: "", // 计划月份 |
| | | }, |
| | | queryParams: { |
| | |
| | | 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(); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | 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) { |
| | |
| | | } |
| | | |
| | | 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}`; |
| | | } |
| | |
| | | |
| | | 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 |