This commit is contained in:
zhuyy 2023-02-23 16:34:47 +08:00
parent 9b620cb9db
commit 20d94bfbfb
221 changed files with 175 additions and 171 deletions

View File

@ -42,7 +42,7 @@ public class CompanyName extends BaseEntity {
private Long activeStaff;
@ApiModelProperty(value = "剩余指标人数")
private Long residueNumber;
private Long residualNumber;
@ApiModelProperty(value = "本次核准后总指标人数")
private Long thisApprovalNumber;

View File

@ -21,6 +21,7 @@ import com.ydool.system.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
import java.util.Date;
@ -304,11 +305,11 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
one.setAuditState(ArgsConst.PASS);
boolean update = updateById(one);
if (update) {
companyName.setResidueNumber(companyName.getCheckNumber() - places);
companyName.setResidualNumber(companyName.getCheckNumber() - places);
companyName.setThisApprovalNumber(organization.getThisApprovalNumber());
companyNameMapper.updateById(companyName);
organization.setAuditState(3);
organization.setResidualNumber(companyName.getResidueNumber());
organization.setResidualNumber(companyName.getResidualNumber());
organization.setLastTime(new Date());
organization.setLastInstance(auditRequest.getAuditOpinion());
organizationMapper.updateById(organization);
@ -404,7 +405,7 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
//原核定用工指标人数
companyName.setCheckNumber(addNumber + companyName.getCheckNumber());
// 指标加了剩余人数也加
companyName.setResidueNumber(standardNumber + companyName.getResidueNumber());
companyName.setResidualNumber(standardNumber + companyName.getResidualNumber());
//本次核准后总指标人数
companyName.setThisApprovalNumber(standardNumber + companyName.getThisApprovalNumber());
companyNameMapper.updateById(companyName);

View File

@ -107,7 +107,7 @@ public class CompanyNameServiceImpl extends BaseService<CompanyNameMapper, Compa
@Override
public void exportPersonnelReport(PersonnelReportExportDto personnelReportDto, HttpServletResponse response) {
EasyExcelAlibabaUtil.download(PersonnelReportExportVO.class, personnelReportDto.getPersonnelReportExportVOList(), "企业人员综合信息.xlsx");
EasyExcelAlibabaUtil.download(response, PersonnelReportExportVO.class, personnelReportDto.getPersonnelReportExportVOList(), "企业人员综合信息.xlsx");
}
/**
@ -131,7 +131,7 @@ public class CompanyNameServiceImpl extends BaseService<CompanyNameMapper, Compa
@Override
public void exportEnterpriseIndicators(EnterpriseIndicatorsExportDto enterpriseIndicatorsExportVO, HttpServletResponse response) {
EasyExcelAlibabaUtil.download(EnterpriseIndicatorsExportVO.class, enterpriseIndicatorsExportVO.getEnterpriseIndicatorsExportVO(), "国有企业指标人数.xlsx");
EasyExcelAlibabaUtil.download(response, EnterpriseIndicatorsExportVO.class, enterpriseIndicatorsExportVO.getEnterpriseIndicatorsExportVO(), "国有企业指标人数.xlsx");
}
@Override

View File

@ -75,6 +75,7 @@ public class DirectorsSupervisorsServiceImpl extends BaseService<DirectorsSuperv
directorsSupervisorsLambdaQueryWrapper.eq(StrUtil.isNotBlank(directorsSupervisorsDto.getPersonnelType()), DirectorsSupervisors::getPersonnelType, directorsSupervisorsDto.getPersonnelType());
directorsSupervisorsLambdaQueryWrapper.eq(StrUtil.isNotBlank(directorsSupervisorsDto.getPoliticsStatus()), DirectorsSupervisors::getPoliticsStatus, directorsSupervisorsDto.getPoliticsStatus());
directorsSupervisorsLambdaQueryWrapper.eq(StrUtil.isNotBlank(directorsSupervisorsDto.getPersonnelStatus()), DirectorsSupervisors::getPersonnelStatus, directorsSupervisorsDto.getPersonnelStatus());
directorsSupervisorsLambdaQueryWrapper.orderByDesc(DirectorsSupervisors::getCreatedAt);
Page<DirectorsSupervisors> directorsSupervisors = directorsSupervisorsMapper.selectPage(page, directorsSupervisorsLambdaQueryWrapper);
for (DirectorsSupervisors record : directorsSupervisors.getRecords()) {
record.setOrganizationId(companyNameMapper.selectById(record.getOrganizationId()).getCompanyName());

View File

@ -1 +1 @@
import{_ as e}from"./_plugin-vue_export-helper-c27b6911.js";import{o as c,c as o}from"./@vue-799d75fe.js";const r={};function t(n,_){return c(),o("div",null," 404 ")}const f=e(r,[["render",t]]);export{f as default};
import{_ as e}from"./_plugin-vue_export-helper-c27b6911.js";import{o as c,c as o}from"./@vue-99409b8e.js";const r={};function t(n,_){return c(),o("div",null," 404 ")}const f=e(r,[["render",t]]);export{f as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{f as c,h as C,ag as a,o as h,R as k,S as e,a as y,d as l,W as d}from"./@vue-799d75fe.js";const A={class:"dialog-footer"},N={__name:"Approve",props:{},emits:["update:modelValue","handleApprove"],setup(V,{emit:p}){const s=V,u=c(!1),o=c({status:"2"}),m=()=>{u.value=!1,o.value={status:"2"},p("update:modelValue",!1)},v=()=>{m(),p("handleApprove",o.value)};return C(()=>s.modelValue,r=>{console.log(r,"newValue"),s.modelValue&&(u.value=s.modelValue)}),(r,t)=>{const b=a("el-input"),_=a("el-form-item"),i=a("el-radio"),g=a("el-radio-group"),w=a("el-form"),f=a("el-button"),x=a("el-dialog");return h(),k(x,{modelValue:u.value,"onUpdate:modelValue":t[2]||(t[2]=n=>u.value=n),title:"审批",width:"26%","before-close":m},{footer:e(()=>[y("span",A,[l(f,{onClick:m},{default:e(()=>[d("取消")]),_:1}),l(f,{type:"primary",onClick:v},{default:e(()=>[d(" 确认 ")]),_:1})])]),default:e(()=>[l(w,{model:o.value},{default:e(()=>[l(_,{label:"审批意见"},{default:e(()=>[l(b,{modelValue:o.value.auditOpinion,"onUpdate:modelValue":t[0]||(t[0]=n=>o.value.auditOpinion=n),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),l(_,{label:"审批状态"},{default:e(()=>[l(g,{modelValue:o.value.status,"onUpdate:modelValue":t[1]||(t[1]=n=>o.value.status=n)},{default:e(()=>[l(i,{label:"2"},{default:e(()=>[d("同意")]),_:1}),l(i,{label:"1"},{default:e(()=>[d("拒绝")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}};export{N as default};

View File

@ -0,0 +1 @@
import{f,h as C,ag as a,o as h,R as k,S as e,a as y,d as l,W as d}from"./@vue-99409b8e.js";const A={class:"dialog-footer"},N={__name:"Approve",props:{},emits:["update:modelValue","handleApprove"],setup(c,{emit:p}){const s=c,u=f(!1),o=f({status:"2"}),m=()=>{u.value=!1,o.value={status:"2"},p("update:modelValue",!1)},V=()=>{p("handleApprove",o.value),m()};return C(()=>s.modelValue,v=>{s.modelValue&&(u.value=s.modelValue)}),(v,t)=>{const b=a("el-input"),r=a("el-form-item"),_=a("el-radio"),g=a("el-radio-group"),w=a("el-form"),i=a("el-button"),x=a("el-dialog");return h(),k(x,{modelValue:u.value,"onUpdate:modelValue":t[2]||(t[2]=n=>u.value=n),title:"审批",width:"26%","before-close":m},{footer:e(()=>[y("span",A,[l(i,{onClick:m},{default:e(()=>[d("取消")]),_:1}),l(i,{type:"primary",onClick:V},{default:e(()=>[d(" 确认 ")]),_:1})])]),default:e(()=>[l(w,{model:o.value},{default:e(()=>[l(r,{label:"审批意见"},{default:e(()=>[l(b,{modelValue:o.value.auditOpinion,"onUpdate:modelValue":t[0]||(t[0]=n=>o.value.auditOpinion=n),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),l(r,{label:"审批状态"},{default:e(()=>[l(g,{modelValue:o.value.status,"onUpdate:modelValue":t[1]||(t[1]=n=>o.value.status=n)},{default:e(()=>[l(_,{label:"2"},{default:e(()=>[d("同意")]),_:1}),l(_,{label:"3"},{default:e(()=>[d("拒绝")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}};export{N as default};

View File

@ -1 +1 @@
System.register(["./@vue-legacy-6c3c82af.js"],(function(e,l){"use strict";var a,u,t,o,d,n,r,s,m;return{setters:[e=>{a=e.f,u=e.h,t=e.ag,o=e.o,d=e.R,n=e.S,r=e.a,s=e.d,m=e.W}],execute:function(){const l={class:"dialog-footer"};e("default",{__name:"Approve",props:{},emits:["update:modelValue","handleApprove"],setup(e,{emit:i}){const p=e,f=a(!1),v=a({status:"2"}),V=()=>{f.value=!1,v.value={status:"2"},i("update:modelValue",!1)},c=()=>{V(),i("handleApprove",v.value)};return u((()=>p.modelValue),(e=>{console.log(e,"newValue"),p.modelValue&&(f.value=p.modelValue)})),(e,a)=>{const u=t("el-input"),i=t("el-form-item"),p=t("el-radio"),_=t("el-radio-group"),g=t("el-form"),b=t("el-button"),y=t("el-dialog");return o(),d(y,{modelValue:f.value,"onUpdate:modelValue":a[2]||(a[2]=e=>f.value=e),title:"审批",width:"26%","before-close":V},{footer:n((()=>[r("span",l,[s(b,{onClick:V},{default:n((()=>[m("取消")])),_:1}),s(b,{type:"primary",onClick:c},{default:n((()=>[m(" 确认 ")])),_:1})])])),default:n((()=>[s(g,{model:v.value},{default:n((()=>[s(i,{label:"审批意见"},{default:n((()=>[s(u,{modelValue:v.value.auditOpinion,"onUpdate:modelValue":a[0]||(a[0]=e=>v.value.auditOpinion=e),rows:4,type:"textarea"},null,8,["modelValue"])])),_:1}),s(i,{label:"审批状态"},{default:n((()=>[s(_,{modelValue:v.value.status,"onUpdate:modelValue":a[1]||(a[1]=e=>v.value.status=e)},{default:n((()=>[s(p,{label:"2"},{default:n((()=>[m("同意")])),_:1}),s(p,{label:"1"},{default:n((()=>[m("拒绝")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model"])])),_:1},8,["modelValue"])}}})}}}));
System.register(["./@vue-legacy-6c3c82af.js"],(function(e,l){"use strict";var a,u,t,o,d,n,r,s,m;return{setters:[e=>{a=e.f,u=e.h,t=e.ag,o=e.o,d=e.R,n=e.S,r=e.a,s=e.d,m=e.W}],execute:function(){const l={class:"dialog-footer"};e("default",{__name:"Approve",props:{},emits:["update:modelValue","handleApprove"],setup(e,{emit:i}){const p=e,f=a(!1),v=a({status:"2"}),V=()=>{f.value=!1,v.value={status:"2"},i("update:modelValue",!1)},c=()=>{i("handleApprove",v.value),V()};return u((()=>p.modelValue),(e=>{console.log(e,"newValue"),p.modelValue&&(f.value=p.modelValue)})),(e,a)=>{const u=t("el-input"),i=t("el-form-item"),p=t("el-radio"),_=t("el-radio-group"),g=t("el-form"),b=t("el-button"),y=t("el-dialog");return o(),d(y,{modelValue:f.value,"onUpdate:modelValue":a[2]||(a[2]=e=>f.value=e),title:"审批",width:"26%","before-close":V},{footer:n((()=>[r("span",l,[s(b,{onClick:V},{default:n((()=>[m("取消")])),_:1}),s(b,{type:"primary",onClick:c},{default:n((()=>[m(" 确认 ")])),_:1})])])),default:n((()=>[s(g,{model:v.value},{default:n((()=>[s(i,{label:"审批意见"},{default:n((()=>[s(u,{modelValue:v.value.auditOpinion,"onUpdate:modelValue":a[0]||(a[0]=e=>v.value.auditOpinion=e),rows:4,type:"textarea"},null,8,["modelValue"])])),_:1}),s(i,{label:"审批状态"},{default:n((()=>[s(_,{modelValue:v.value.status,"onUpdate:modelValue":a[1]||(a[1]=e=>v.value.status=e)},{default:n((()=>[s(p,{label:"2"},{default:n((()=>[m("同意")])),_:1}),s(p,{label:"3"},{default:n((()=>[m("拒绝")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model"])])),_:1},8,["modelValue"])}}})}}}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{h as v}from"./index-20a04bd1.js";import{c as g}from"./lodash.clonedeep-89ac42ac.js";import{_ as U}from"./_plugin-vue_export-helper-c27b6911.js";import{f as r,h as I,k as L,ag as d,o as m,c as b,d as s,S as o,a as j,W as _,F as A,a6 as F,R as M,X as q}from"./@vue-99409b8e.js";import"./vue-router-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const z={class:"export"},G={class:"dialog-footer"},O={__name:"Export",props:{dialogVisible:[Boolean]},emits:["update:dialogVisible"],setup(k,{emit:x}){const C=k,p=r(!1),l=r([]),V=r({academy:"毕业院校",alterationSign:"变更标志",annualSalary:"年薪",birthday:"出生日期",companyName:"企业名称",contractModality:"合同形式",education:"学历",finalTrialRemark:"终审意见",firstTrialRemark:"初审意见",freshGraduate:"是否应届毕业生",gender:"性别",hireDate:"入职时间",hireType:"录用方式",jobTitle:"专业技术职称",nation:"民族",numberId:"身份证号",personnelCharacter:"人员性质",personnelType:"人员类型",politicsStatus:"政治面貌",position:"岗位职务",presentDept:"所在部门",qualification:"执业资格证书",receipts:"单据状态",recruitNumber:"人员招聘单号",remark:"备注",resignationTime:"离职时间",retirementTime:"退休时间",socialCreditCode:"统一社会信用代码",specialty:"专业",txfpEndTime:"退休返聘结束时间",txfpStartTime:"退休返聘开始时间",userName:"姓名",workState:"工作状态"}),c=r(),u=r(!1),n=r([]),f=()=>{p.value=!1,x("update:dialogVisible",!1),n.value=g(l.value),c.value=!1,u.value=!1},y=e=>{f(),e()},T=()=>{v.export("/api/person/export",{ids:n.value}).then(e=>{const t=window.URL.createObjectURL(e.data),i=document.createElement("a");i.download=decodeURIComponent(e.headers["content-disposition"].split(";")[1].split("=")[1]),i.href=t,i.click()})},w=e=>{n.value=e?l.value:[],u.value=!1},S=e=>{const t=e.length;c.value=t===l.value.length,u.value=t>0&&t<l.value.length};I(()=>C.dialogVisible,e=>{p.value=e,c.value=!0});const E=()=>{v.get("/api/person/getEntityParam").then(e=>{e.code===200&&(l.value=e.data,n.value=g(e.data))})};return L(()=>{E()}),(e,t)=>{const i=d("el-checkbox"),B=d("el-checkbox-group"),D=d("el-form"),h=d("el-button"),N=d("el-dialog");return m(),b("div",z,[s(N,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=a=>p.value=a),title:"导出选项",width:"36%","before-close":y},{footer:o(()=>[j("span",G,[s(h,{onClick:T},{default:o(()=>[_("导出")]),_:1}),s(h,{onClick:f,type:"primary"},{default:o(()=>[_("关闭")]),_:1})])]),default:o(()=>[s(D,null,{default:o(()=>[s(i,{modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=a=>c.value=a),label:"全选",class:"is-checked-all",size:"large",indeterminate:u.value,onChange:w},null,8,["modelValue","indeterminate"]),s(B,{modelValue:n.value,"onUpdate:modelValue":t[1]||(t[1]=a=>n.value=a),onChange:S},{default:o(()=>[(m(!0),b(A,null,F(l.value,(a,R)=>(m(),M(i,{class:"el-checkbox-width",label:a,key:R},{default:o(()=>[_(q(V.value[a]),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])])}}},ue=U(O,[["__scopeId","data-v-e0be88eb"]]);export{ue as default};

View File

@ -1 +0,0 @@
import{h as v}from"./index-f4a3d251.js";import{c as g}from"./lodash.clonedeep-89ac42ac.js";import{_ as U}from"./_plugin-vue_export-helper-c27b6911.js";import{f as r,h as I,k as L,ag as d,o as m,c as b,d as s,S as l,a as j,W as _,F as A,a6 as F,R as M,X as q}from"./@vue-799d75fe.js";import"./vue-router-e054bd6d.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const z={class:"export"},G={class:"dialog-footer"},O={__name:"Export",props:{dialogVisible:[Boolean]},emits:["update:dialogVisible"],setup(k,{emit:x}){const C=k,p=r(!1),n=r([]),V=r({academy:"毕业院校",alterationSign:"变更标志",annualSalary:"年薪",birthday:"出生日期",companyName:"企业名称",contractModality:"合同形式",education:"学历",finalTrialRemark:"终审意见",firstTrialRemark:"初审意见",freshGraduate:"是否应届毕业生",gender:"性别",hireDate:"入职时间",hireType:"录用方式",jobTitle:"专业技术职称",nation:"民族",numberId:"身份证号",personnelCharacter:"人员性质",personnelType:"人员类型",politicsStatus:"政治面貌",position:"岗位职务",presentDept:"所在部门",qualification:"执业资格证书",receipts:"单据状态",recruitNumber:"人员招聘单号",remark:"备注",resignationTime:"离职时间",retirementTime:"退休时间",socialCreditCode:"统一社会信用代码",specialty:"专业",txfpEndTime:"退休返聘结束时间",txfpStartTime:"退休返聘开始时间",userName:"姓名",workState:"工作状态"}),c=r(),u=r(!1),o=r([]),f=()=>{p.value=!1,x("update:dialogVisible",!1),o.value=g(n.value),c.value=!1,u.value=!1},y=e=>{f(),e()},T=()=>{console.log(o.value),v.export("/api/person/export",{ids:o.value}).then(e=>{const t=window.URL.createObjectURL(e.data),i=document.createElement("a");i.download=decodeURIComponent(e.headers["content-disposition"].split(";")[1].split("=")[1]),i.href=t,i.click()})},w=e=>{o.value=e?n.value:[],u.value=!1},S=e=>{const t=e.length;c.value=t===n.value.length,u.value=t>0&&t<n.value.length};I(()=>C.dialogVisible,e=>{p.value=e,c.value=!0});const E=()=>{v.get("/api/person/getEntityParam").then(e=>{e.code===200&&(n.value=e.data,o.value=g(e.data))})};return L(()=>{E()}),(e,t)=>{const i=d("el-checkbox"),B=d("el-checkbox-group"),D=d("el-form"),h=d("el-button"),N=d("el-dialog");return m(),b("div",z,[s(N,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=a=>p.value=a),title:"导出选项",width:"36%","before-close":y},{footer:l(()=>[j("span",G,[s(h,{onClick:T},{default:l(()=>[_("导出")]),_:1}),s(h,{onClick:f,type:"primary"},{default:l(()=>[_("关闭")]),_:1})])]),default:l(()=>[s(D,null,{default:l(()=>[s(i,{modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=a=>c.value=a),label:"全选",class:"is-checked-all",size:"large",indeterminate:u.value,onChange:w},null,8,["modelValue","indeterminate"]),s(B,{modelValue:o.value,"onUpdate:modelValue":t[1]||(t[1]=a=>o.value=a),onChange:S},{default:l(()=>[(m(!0),b(A,null,F(n.value,(a,R)=>(m(),M(i,{class:"el-checkbox-width",label:a,key:R},{default:l(()=>[_(q(V.value[a]),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])])}}},ue=U(O,[["__scopeId","data-v-e0be88eb"]]);export{ue as default};

View File

@ -0,0 +1 @@
import{h as g}from"./index-20a04bd1.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as y}from"./_plugin-vue_export-helper-c27b6911.js";import{a as x}from"./vue-router-3caf458d.js";import{f as S,k as b,ag as _,o as n,c as d,R as m,V as k,F as L,a6 as w,S as o,d as i,a as t,X as c,ax as B,ay as I}from"./@vue-99409b8e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const r=e=>(B("data-v-01c0cb66"),e=e(),I(),e),V={class:"tab-content"},C={class:"item-container"},N=r(()=>t("div",null,"处理人:",-1)),q={class:"item-container"},D=r(()=>t("div",null,"处理时间:",-1)),F={class:"item-container"},R=r(()=>t("div",null,"处理状态:",-1)),A={class:"item-container"},E=r(()=>t("div",null,"处理意见:",-1)),M={__name:"Log",setup(e){const u=x(),l=S([]),v=()=>{g.get(`/api/alteration/audtiLog?id=${u.query.id}`).then(p=>{p.code===200&&(l.value=p.data)})};return b(()=>{v()}),(p,X)=>{const h=_("el-empty"),a=_("el-col"),f=_("el-row");return n(),d("div",V,[l.value.length===0?(n(),m(h,{key:0,description:"暂无"})):k("",!0),(n(!0),d(L,null,w(l.value,s=>(n(),m(f,null,{default:o(()=>[i(a,{span:8},{default:o(()=>[t("div",C,[N,t("div",null,c(s.approver),1)])]),_:2},1024),i(a,{span:8},{default:o(()=>[t("div",q,[D,t("div",null,c(s.createdAt),1)])]),_:2},1024),i(a,{span:8},{default:o(()=>[t("div",F,[R,t("div",null,c(s.auditState),1)])]),_:2},1024),i(a,{span:24},{default:o(()=>[t("div",A,[E,t("div",null,c(s.opinion),1)])]),_:2},1024)]),_:2},1024))),256))])}}},rt=y(M,[["__scopeId","data-v-01c0cb66"]]);export{rt as default};

View File

@ -1 +0,0 @@
import{h as g}from"./index-f4a3d251.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as y}from"./_plugin-vue_export-helper-c27b6911.js";import{a as x}from"./vue-router-e054bd6d.js";import{f as S,k as b,ag as _,o as i,c as m,R as u,V as k,F as L,a6 as w,S as o,d as c,a as t,X as r,ax as B,ay as I}from"./@vue-799d75fe.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const l=e=>(B("data-v-01c0cb66"),e=e(),I(),e),V={class:"tab-content"},C={class:"item-container"},N=l(()=>t("div",null,"处理人:",-1)),q={class:"item-container"},D=l(()=>t("div",null,"处理时间:",-1)),F={class:"item-container"},R=l(()=>t("div",null,"处理状态:",-1)),A={class:"item-container"},E=l(()=>t("div",null,"处理意见:",-1)),M={__name:"Log",setup(e){const d=x(),p=S([]),v=()=>{console.log(d.query.id),g.get(`/api/alteration/audtiLog?id=${d.query.id}`).then(a=>{console.log(a),a.code===200&&(p.value=a.data)})};return b(()=>{v()}),(a,X)=>{const h=_("el-empty"),s=_("el-col"),f=_("el-row");return i(),m("div",V,[p.value.length===0?(i(),u(h,{key:0,description:"暂无"})):k("",!0),(i(!0),m(L,null,w(p.value,n=>(i(),u(f,null,{default:o(()=>[c(s,{span:8},{default:o(()=>[t("div",C,[N,t("div",null,r(n.approver),1)])]),_:2},1024),c(s,{span:8},{default:o(()=>[t("div",q,[D,t("div",null,r(n.createdAt),1)])]),_:2},1024),c(s,{span:8},{default:o(()=>[t("div",F,[R,t("div",null,r(n.auditState),1)])]),_:2},1024),c(s,{span:24},{default:o(()=>[t("div",A,[E,t("div",null,r(n.opinion),1)])]),_:2},1024)]),_:2},1024))),256))])}}},rt=y(M,[["__scopeId","data-v-01c0cb66"]]);export{rt as default};

View File

@ -1 +1 @@
import{a0 as x,aq as E,o as r,c as d,a as o,$ as f,T as c,Y as b,d as m,u as i,M as $,X as v,aj as N,R as u,F as q,a6 as z}from"./@vue-799d75fe.js";import B from"./NodeType-657f8a7a.js";import{r as L,t as M}from"./optionConfig-cdce2392.js";import{a as S}from"./approver-2f9dc4c9.js";import{C as D,E as V,P as W,a as j}from"./@icon-park-cd51b618.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";const T={class:"y-flow-middle"},F={class:"y-flow-insert-wrapper"},O={class:"y-flow-insert"},P={key:0,class:"text"},R={class:"span"},U=o("div",{class:"y-flow-apply-list y-flow-head"},"节点负责人:",-1),X={class:"person-list"},Y={class:"y-flow-line"},te={__name:"NodeItem",props:{parentNode:{type:Object,default:{}},nodeItem:{type:Object,default:{}}},emits:["addApprover","addCondition","removeApprover"],setup(y,{emit:a}){const e=y,l=S(),p=x({roleArray:L,typeArray:M,defaultRole:"未知",activeIndex:-1}),I=(s,t)=>{a("addApprover",e.nodeItem,t)},w=()=>{a("addCondition",e.nodeItem,"add")},k=()=>{a("removeApprover",e.nodeItem,e.parentNode)},h=(s,t)=>{s.titleEdit=t},_=(s,t)=>{s.title||(s.title="审批节点"),l.editTtitle(s.title),s.titleEdit=t},A=s=>{l.changeApprover(s),l.toggleApproverVisible(!0)};return(s,t)=>{const C=E("focus");return r(),d("div",T,[o("div",F,[o("div",O,[o("div",{class:"y-flow-node-wrapper",onMouseenter:t[4]||(t[4]=f(n=>p.activeIndex=e.nodeItem.nodeId,["self"])),onMouseleave:t[5]||(t[5]=f(n=>p.activeIndex=-1,["self"]))},[c(o("div",{class:"y-flow-node-del",onClick:k},[m(i(D),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[b,e.nodeItem.nodeId==p.activeIndex]]),o("div",{class:"y-flow-node",onClick:t[3]||(t[3]=n=>A(e.nodeItem))},[o("div",{class:$(["y-flow-node-head",[e.nodeItem.type==="approver"?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[o("div",{class:"y-flow-node-title",onClick:t[2]||(t[2]=f(n=>h(e.nodeItem,!0),["stop"]))},[e.nodeItem.titleEdit?c((r(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":t[0]||(t[0]=n=>e.nodeItem.title=n),onBlur:t[1]||(t[1]=n=>_(e.nodeItem,!1))},null,544)),[[N,e.nodeItem.title],[C]]):(r(),d("div",P,[o("span",R,v(e.nodeItem.title||e.nodeItem.name),1),m(i(V),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),e.nodeItem.type==="approver"?(r(),u(i(W),{key:0,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})):(r(),u(i(j),{key:1,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"}))],2),U,o("div",X,[(r(!0),d(q,null,z(e.nodeItem.properties.persons,(n,g)=>(r(),d("div",{class:"person-add-item",key:g},v(n.realName),1))),128))])]),o("div",Y,[m(B,{branchItem:e.nodeItem,onAddApprover:I,onChangeCondition:w},null,8,["branchItem"])])],32)])])])}}};export{te as default};
import{a0 as x,aq as E,o as r,c as d,a as o,$ as f,T as c,Y as b,d as m,u as i,M as $,X as v,aj as N,R as u,F as q,a6 as z}from"./@vue-99409b8e.js";import B from"./NodeType-b9faf171.js";import{r as L,t as M}from"./optionConfig-cdce2392.js";import{a as S}from"./approver-80cdff93.js";import{C as D,E as V,P as W,a as j}from"./@icon-park-35d1953e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";const T={class:"y-flow-middle"},F={class:"y-flow-insert-wrapper"},O={class:"y-flow-insert"},P={key:0,class:"text"},R={class:"span"},U=o("div",{class:"y-flow-apply-list y-flow-head"},"节点负责人:",-1),X={class:"person-list"},Y={class:"y-flow-line"},te={__name:"NodeItem",props:{parentNode:{type:Object,default:{}},nodeItem:{type:Object,default:{}}},emits:["addApprover","addCondition","removeApprover"],setup(y,{emit:a}){const e=y,l=S(),p=x({roleArray:L,typeArray:M,defaultRole:"未知",activeIndex:-1}),I=(s,t)=>{a("addApprover",e.nodeItem,t)},w=()=>{a("addCondition",e.nodeItem,"add")},k=()=>{a("removeApprover",e.nodeItem,e.parentNode)},h=(s,t)=>{s.titleEdit=t},_=(s,t)=>{s.title||(s.title="审批节点"),l.editTtitle(s.title),s.titleEdit=t},A=s=>{l.changeApprover(s),l.toggleApproverVisible(!0)};return(s,t)=>{const C=E("focus");return r(),d("div",T,[o("div",F,[o("div",O,[o("div",{class:"y-flow-node-wrapper",onMouseenter:t[4]||(t[4]=f(n=>p.activeIndex=e.nodeItem.nodeId,["self"])),onMouseleave:t[5]||(t[5]=f(n=>p.activeIndex=-1,["self"]))},[c(o("div",{class:"y-flow-node-del",onClick:k},[m(i(D),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[b,e.nodeItem.nodeId==p.activeIndex]]),o("div",{class:"y-flow-node",onClick:t[3]||(t[3]=n=>A(e.nodeItem))},[o("div",{class:$(["y-flow-node-head",[e.nodeItem.type==="approver"?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[o("div",{class:"y-flow-node-title",onClick:t[2]||(t[2]=f(n=>h(e.nodeItem,!0),["stop"]))},[e.nodeItem.titleEdit?c((r(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":t[0]||(t[0]=n=>e.nodeItem.title=n),onBlur:t[1]||(t[1]=n=>_(e.nodeItem,!1))},null,544)),[[N,e.nodeItem.title],[C]]):(r(),d("div",P,[o("span",R,v(e.nodeItem.title||e.nodeItem.name),1),m(i(V),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),e.nodeItem.type==="approver"?(r(),u(i(W),{key:0,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})):(r(),u(i(j),{key:1,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"}))],2),U,o("div",X,[(r(!0),d(q,null,z(e.nodeItem.properties.persons,(n,g)=>(r(),d("div",{class:"person-add-item",key:g},v(n.realName),1))),128))])]),o("div",Y,[m(B,{branchItem:e.nodeItem,onAddApprover:I,onChangeCondition:w},null,8,["branchItem"])])],32)])])])}}};export{te as default};

View File

@ -1 +1 @@
System.register(["./@vue-legacy-6c3c82af.js","./NodeType-legacy-0acf3669.js","./optionConfig-legacy-708250f5.js","./approver-legacy-8f8c47f3.js","./@icon-park-legacy-af6e216d.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js"],(function(e,t){"use strict";var o,l,n,d,i,a,s,r,p,c,f,u,v,m,y,I,k,g,h,w,j,A,C,b;return{setters:[e=>{o=e.a0,l=e.aq,n=e.o,d=e.c,i=e.a,a=e.$,s=e.T,r=e.Y,p=e.d,c=e.u,f=e.M,u=e.X,v=e.aj,m=e.R,y=e.F,I=e.a6},e=>{k=e.default},e=>{g=e.r,h=e.t},e=>{w=e.a},e=>{j=e.C,A=e.E,C=e.P,b=e.a},null,null],execute:function(){const t={class:"y-flow-middle"},x={class:"y-flow-insert-wrapper"},q={class:"y-flow-insert"},N={key:0,class:"text"},z={class:"span"},E=i("div",{class:"y-flow-apply-list y-flow-head"},"节点负责人:",-1),L={class:"person-list"},W={class:"y-flow-line"};e("default",{__name:"NodeItem",props:{parentNode:{type:Object,default:{}},nodeItem:{type:Object,default:{}}},emits:["addApprover","addCondition","removeApprover"],setup(e,{emit:M}){const T=e,O=w(),P=o({roleArray:g,typeArray:h,defaultRole:"未知",activeIndex:-1}),R=(e,t)=>{M("addApprover",T.nodeItem,t)},V=()=>{M("addCondition",T.nodeItem,"add")},_=()=>{M("removeApprover",T.nodeItem,T.parentNode)};return(e,o)=>{const g=l("focus");return n(),d("div",t,[i("div",x,[i("div",q,[i("div",{class:"y-flow-node-wrapper",onMouseenter:o[4]||(o[4]=a((e=>P.activeIndex=T.nodeItem.nodeId),["self"])),onMouseleave:o[5]||(o[5]=a((e=>P.activeIndex=-1),["self"]))},[s(i("div",{class:"y-flow-node-del",onClick:_},[p(c(j),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[r,T.nodeItem.nodeId==P.activeIndex]]),i("div",{class:"y-flow-node",onClick:o[3]||(o[3]=e=>{return t=T.nodeItem,O.changeApprover(t),void O.toggleApproverVisible(!0);var t})},[i("div",{class:f(["y-flow-node-head",["approver"===T.nodeItem.type?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[i("div",{class:"y-flow-node-title",onClick:o[2]||(o[2]=a((e=>{return t=T.nodeItem,o=!0,void(t.titleEdit=o);var t,o}),["stop"]))},[T.nodeItem.titleEdit?s((n(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>T.nodeItem.title=e),onBlur:o[1]||(o[1]=e=>{return t=T.nodeItem,o=!1,t.title||(t.title="审批节点"),O.editTtitle(t.title),void(t.titleEdit=o);var t,o})},null,544)),[[v,T.nodeItem.title],[g]]):(n(),d("div",N,[i("span",z,u(T.nodeItem.title||T.nodeItem.name),1),p(c(A),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),"approver"===T.nodeItem.type?(n(),m(c(C),{key:0,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})):(n(),m(c(b),{key:1,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"}))],2),E,i("div",L,[(n(!0),d(y,null,I(T.nodeItem.properties.persons,((e,t)=>(n(),d("div",{class:"person-add-item",key:t},u(e.realName),1)))),128))])]),i("div",W,[p(k,{branchItem:T.nodeItem,onAddApprover:R,onChangeCondition:V},null,8,["branchItem"])])],32)])])])}}})}}}));
System.register(["./@vue-legacy-6c3c82af.js","./NodeType-legacy-0acf3669.js","./optionConfig-legacy-708250f5.js","./approver-legacy-8f8c47f3.js","./@icon-park-legacy-af6e216d.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js"],(function(e,t){"use strict";var o,l,n,d,i,a,s,r,p,c,f,u,v,m,y,I,k,g,w,h,j,A,C,b;return{setters:[e=>{o=e.a0,l=e.aq,n=e.o,d=e.c,i=e.a,a=e.$,s=e.T,r=e.Y,p=e.d,c=e.u,f=e.M,u=e.X,v=e.aj,m=e.R,y=e.F,I=e.a6},e=>{k=e.default},e=>{g=e.r,w=e.t},e=>{h=e.a},e=>{j=e.C,A=e.E,C=e.P,b=e.a},null,null],execute:function(){const t={class:"y-flow-middle"},x={class:"y-flow-insert-wrapper"},q={class:"y-flow-insert"},N={key:0,class:"text"},z={class:"span"},E=i("div",{class:"y-flow-apply-list y-flow-head"},"节点负责人:",-1),L={class:"person-list"},W={class:"y-flow-line"};e("default",{__name:"NodeItem",props:{parentNode:{type:Object,default:{}},nodeItem:{type:Object,default:{}}},emits:["addApprover","addCondition","removeApprover"],setup(e,{emit:M}){const T=e,O=h(),R=o({roleArray:g,typeArray:w,defaultRole:"未知",activeIndex:-1}),V=(e,t)=>{M("addApprover",T.nodeItem,t)},_=()=>{M("addCondition",T.nodeItem,"add")},B=()=>{M("removeApprover",T.nodeItem,T.parentNode)};return(e,o)=>{const g=l("focus");return n(),d("div",t,[i("div",x,[i("div",q,[i("div",{class:"y-flow-node-wrapper",onMouseenter:o[4]||(o[4]=a((e=>R.activeIndex=T.nodeItem.nodeId),["self"])),onMouseleave:o[5]||(o[5]=a((e=>R.activeIndex=-1),["self"]))},[s(i("div",{class:"y-flow-node-del",onClick:B},[p(c(j),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[r,T.nodeItem.nodeId==R.activeIndex]]),i("div",{class:"y-flow-node",onClick:o[3]||(o[3]=e=>{return t=T.nodeItem,O.changeApprover(t),void O.toggleApproverVisible(!0);var t})},[i("div",{class:f(["y-flow-node-head",["approver"===T.nodeItem.type?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[i("div",{class:"y-flow-node-title",onClick:o[2]||(o[2]=a((e=>{return t=T.nodeItem,o=!0,void(t.titleEdit=o);var t,o}),["stop"]))},[T.nodeItem.titleEdit?s((n(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>T.nodeItem.title=e),onBlur:o[1]||(o[1]=e=>{return t=T.nodeItem,o=!1,t.title||(t.title="审批节点"),O.editTtitle(t.title),void(t.titleEdit=o);var t,o})},null,544)),[[v,T.nodeItem.title],[g]]):(n(),d("div",N,[i("span",z,u(T.nodeItem.title||T.nodeItem.name),1),p(c(A),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),"approver"===T.nodeItem.type?(n(),m(c(C),{key:0,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})):(n(),m(c(b),{key:1,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"}))],2),E,i("div",L,[(n(!0),d(y,null,I(T.nodeItem.properties.persons,((e,t)=>(n(),d("div",{class:"person-add-item",key:t},u(e.realName),1)))),128))])]),i("div",W,[p(k,{branchItem:T.nodeItem,onAddApprover:V,onChangeCondition:_},null,8,["branchItem"])])],32)])])])}}})}}}));

View File

@ -1 +1 @@
import{b as h,c as v,d as u,B as k}from"./@icon-park-cd51b618.js";import{f as l,ag as b,o as C,R as g,S as d,a as e,d as t,u as o}from"./@vue-799d75fe.js";const w={class:"y-flow-select"},y={class:"item-icon"},B=e("p",{class:"item-des"},"审批节点",-1),q={class:"item-icon"},x=e("p",{class:"item-des"},"填写节点",-1),z={class:"item-icon"},L=e("p",{class:"item-des"},"条件分支",-1),N={class:"add-btn"},I={__name:"NodeType",props:{branchItem:{type:Object,default:{}}},emits:["addApprover","changeCondition"],setup(p,{emit:i}){const n=p;l(!1);const a=l(),r=c=>{a.value.hide(),i("addApprover",n.branchItem,c)},_=()=>{a.value.hide(),i("changeCondition",n.branchItem,"add")};return(c,s)=>{const f=b("el-popover");return C(),g(f,{placement:"top-start",width:250,trigger:"click",title:"标题",ref_key:"popoverRef",ref:a},{reference:d(()=>[e("span",N,[t(o(h),{theme:"filled",size:"16",fill:"#f5bc21",strokeWidth:3,strokeLinecap:"square"})])]),default:d(()=>[e("div",w,[e("div",{class:"item-wrapper",onClick:s[0]||(s[0]=m=>r("approver"))},[e("span",y,[t(o(v),{theme:"filled",size:"30",fill:"#3296fa",strokeWidth:3,strokeLinecap:"square"})]),B]),e("div",{class:"item-wrapper",onClick:s[1]||(s[1]=m=>r("fill"))},[e("span",q,[t(o(u),{theme:"filled",size:"30",fill:"#324963",strokeWidth:3,strokeLinecap:"square"})]),x]),e("div",{class:"item-wrapper",onClick:_},[e("span",z,[t(o(k),{theme:"filled",size:"30",fill:"#15bc83",strokeWidth:3,strokeLinecap:"square"})]),L])])]),_:1},512)}}};export{I as default};
import{b as h,c as v,d as u,B as k}from"./@icon-park-35d1953e.js";import{f as l,ag as b,o as C,R as g,S as d,a as e,d as t,u as o}from"./@vue-99409b8e.js";const w={class:"y-flow-select"},y={class:"item-icon"},B=e("p",{class:"item-des"},"审批节点",-1),q={class:"item-icon"},x=e("p",{class:"item-des"},"填写节点",-1),z={class:"item-icon"},L=e("p",{class:"item-des"},"条件分支",-1),N={class:"add-btn"},I={__name:"NodeType",props:{branchItem:{type:Object,default:{}}},emits:["addApprover","changeCondition"],setup(p,{emit:i}){const n=p;l(!1);const a=l(),r=c=>{a.value.hide(),i("addApprover",n.branchItem,c)},_=()=>{a.value.hide(),i("changeCondition",n.branchItem,"add")};return(c,s)=>{const f=b("el-popover");return C(),g(f,{placement:"top-start",width:250,trigger:"click",title:"标题",ref_key:"popoverRef",ref:a},{reference:d(()=>[e("span",N,[t(o(h),{theme:"filled",size:"16",fill:"#f5bc21",strokeWidth:3,strokeLinecap:"square"})])]),default:d(()=>[e("div",w,[e("div",{class:"item-wrapper",onClick:s[0]||(s[0]=m=>r("approver"))},[e("span",y,[t(o(v),{theme:"filled",size:"30",fill:"#3296fa",strokeWidth:3,strokeLinecap:"square"})]),B]),e("div",{class:"item-wrapper",onClick:s[1]||(s[1]=m=>r("fill"))},[e("span",q,[t(o(u),{theme:"filled",size:"30",fill:"#324963",strokeWidth:3,strokeLinecap:"square"})]),x]),e("div",{class:"item-wrapper",onClick:_},[e("span",z,[t(o(k),{theme:"filled",size:"30",fill:"#15bc83",strokeWidth:3,strokeLinecap:"square"})]),L])])]),_:1},512)}}};export{I as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{h as c}from"./index-f4a3d251.js";import{a as n}from"./vue-router-e054bd6d.js";import{_ as m}from"./_plugin-vue_export-helper-c27b6911.js";import{f as s,ag as l,o as _,c as d,d as e,S as u}from"./@vue-799d75fe.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const b={class:"tab-content"},f={__name:"Record",setup(h){const p=n(),a=s([]);return(()=>{let r=p.query.id;c.get(`/api/alteration/alterationPage?id=${r}`).then(o=>{o.code==200&&(console.log(o,"clearSearchclearSearch"),a.value=o.data)})})(),(r,o)=>{const t=l("el-table-column"),i=l("el-table");return _(),d("div",b,[e(i,{data:a.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:u(()=>[e(t,{type:"index",width:"80",align:"center",label:"序号"}),e(t,{prop:"details",label:"变更内容"}),e(t,{prop:"beforeChange",label:"变更前"}),e(t,{prop:"afterChange",label:"变更后"}),e(t,{prop:"createdName",label:"变更人"}),e(t,{prop:"createdAt",label:"变更时间"})]),_:1},8,["data"])])}}},G=m(f,[["__scopeId","data-v-5ee21545"]]);export{G as default};

View File

@ -0,0 +1 @@
import{h as c}from"./index-20a04bd1.js";import{a as n}from"./vue-router-3caf458d.js";import{_ as s}from"./_plugin-vue_export-helper-c27b6911.js";import{f as m,ag as l,o as _,c as d,d as e,S as u}from"./@vue-99409b8e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const b={class:"tab-content"},f={__name:"Record",setup(h){const p=n(),a=m([]);return(()=>{let r=p.query.id;c.get(`/api/alteration/alterationPage?id=${r}`).then(o=>{o.code==200&&(a.value=o.data)})})(),(r,o)=>{const t=l("el-table-column"),i=l("el-table");return _(),d("div",b,[e(i,{data:a.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:u(()=>[e(t,{type:"index",width:"80",align:"center",label:"序号"}),e(t,{prop:"details",label:"变更内容"}),e(t,{prop:"beforeChange",label:"变更前"}),e(t,{prop:"afterChange",label:"变更后"}),e(t,{prop:"createdName",label:"变更人"}),e(t,{prop:"createdAt",label:"变更时间"})]),_:1},8,["data"])])}}},G=s(f,[["__scopeId","data-v-5ee21545"]]);export{G as default};

View File

@ -1 +1 @@
import"./index-f4a3d251.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as d}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import{l as _,o as s,c as n,a as i,F as u,a6 as m,L as p,O as v,u as f,M as b,X as y}from"./@vue-799d75fe.js";const h={class:"entDeclaration"},k={class:"entDeclaration-nav"},g=["onClick"],x={class:"entDeclaration-main"},A={__name:"Tab",props:{tabList:{type:Array,required:!0,default:()=>[]},isActive:{type:String,default:""}},emits:["clickItem"],setup(t,{emit:o}){const r=t,c=_(()=>e=>r.tabList.length-e);return(e,D)=>(s(),n("section",h,[i("nav",k,[(s(!0),n(u,null,m(t.tabList,(a,l)=>(s(),n("div",{style:v({zIndex:f(c)(l)}),class:b(["entDeclaration-nav-item",t.isActive===a?"active":""]),onClick:I=>o("clickItem",a)},y(a),15,g))),256))]),i("main",x,[p(e.$slots,"default",{isActive:t.isActive},void 0,!0)])]))}},F=d(A,[["__scopeId","data-v-441b1381"]]);export{F as T};
import"./index-20a04bd1.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as d}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import{l as _,o as s,c as n,a as i,F as u,a6 as m,L as p,O as v,u as f,M as b,X as y}from"./@vue-99409b8e.js";const h={class:"entDeclaration"},k={class:"entDeclaration-nav"},g=["onClick"],x={class:"entDeclaration-main"},A={__name:"Tab",props:{tabList:{type:Array,required:!0,default:()=>[]},isActive:{type:String,default:""}},emits:["clickItem"],setup(t,{emit:o}){const r=t,c=_(()=>e=>r.tabList.length-e);return(e,D)=>(s(),n("section",h,[i("nav",k,[(s(!0),n(u,null,m(t.tabList,(a,l)=>(s(),n("div",{style:v({zIndex:f(c)(l)}),class:b(["entDeclaration-nav-item",t.isActive===a?"active":""]),onClick:I=>o("clickItem",a)},y(a),15,g))),256))]),i("main",x,[p(e.$slots,"default",{isActive:t.isActive},void 0,!0)])]))}},F=d(A,[["__scopeId","data-v-441b1381"]]);export{F as T};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{f as _,h as N,ag as r,o as i,c as n,d as p,S as d,W as S,T as A,Y as L,a as h,F as z,a6 as R,V as v,$ as b,X as T,R as $}from"./@vue-799d75fe.js";import{h as y}from"./index-f4a3d251.js";import{c as k}from"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as q}from"./_plugin-vue_export-helper-c27b6911.js";import"./vue-router-e054bd6d.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const E={class:"upload"},I={class:"empty"},j=["onClick"],M={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(C,{emit:c}){const a=C;_([]);const t=_([]),g=e=>!0,m=e=>k(e),w=e=>k(e);N(()=>a.modelValue,e=>{if(e===""||e===void 0||!e)return t.value=[];if(a.type==="edit"&&!Array.isArray(e)&&typeof e=="string")return t.value=[];t.value=w(a.modelValue)},{immediate:!0});const x=e=>{let s=e.file;const l=new FormData;l.append("file",s),y.post("/api/attachment/upload",l).then(o=>{console.log(o,"res"),o.code==200&&(t.value.push({name:o.data.name,path:o.data.path,size:s.size,suffix:o.data.suffix}),c("update:modelValue",m(t.value)),console.log(a.modelValue,t.value))})},F=e=>{t.value.splice(e,1),c("update:modelValue",m(t.value))},V=e=>{y.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(s=>{const l=window.URL.createObjectURL(s),o=document.createElement("a");o.download=e.name,o.href=l,o.click()})};return(e,s)=>{const l=r("el-button"),o=r("el-upload"),B=r("CircleCloseFilled"),U=r("el-icon");return i(),n("div",E,[p(o,{"show-file-list":!1,"before-upload":g,"http-request":x,disabled:a.disabled},{default:d(()=>[p(l,{type:"primary",plain:"",disabled:a.disabled},{default:d(()=>[S("选择文件")]),_:1},8,["disabled"])]),_:1},8,["disabled"]),A(h("span",I,"未选择任何文件",512),[[L,t.value.length===0]]),t.value.length>0?(i(!0),n(z,{key:0},R(t.value,(u,f)=>(i(),n("span",{class:"fileBox",key:f,onClick:b(D=>V(u),["stop"])},[h("span",null,T(u.name),1),a.disabled?v("",!0):(i(),$(U,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:b(D=>F(f),["stop"])},{default:d(()=>[p(B)]),_:2},1032,["onClick"]))],8,j))),128)):v("",!0)])}}},me=q(M,[["__scopeId","data-v-c84f6ff9"]]);export{me as default};

View File

@ -0,0 +1 @@
import{f as _,h as L,ag as r,o as i,c as n,d as p,S as d,W as N,T as S,Y as A,a as h,F as z,a6 as R,V as v,$ as b,X as T,R as $}from"./@vue-99409b8e.js";import{h as y}from"./index-20a04bd1.js";import{c as k}from"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as q}from"./_plugin-vue_export-helper-c27b6911.js";import"./vue-router-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const E={class:"upload"},I={class:"empty"},j=["onClick"],M={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(w,{emit:c}){const a=w;_([]);const t=_([]),C=e=>!0,m=e=>k(e),g=e=>k(e);L(()=>a.modelValue,e=>{if(e===""||e===void 0||!e)return t.value=[];if(a.type==="edit"&&!Array.isArray(e)&&typeof e=="string")return t.value=[];t.value=g(a.modelValue)},{immediate:!0});const F=e=>{let s=e.file;const l=new FormData;l.append("file",s),y.post("/api/attachment/upload",l).then(o=>{o.code==200&&(t.value.push({name:o.data.name,path:o.data.path,size:s.size,suffix:o.data.suffix}),c("update:modelValue",m(t.value)))})},x=e=>{t.value.splice(e,1),c("update:modelValue",m(t.value))},V=e=>{y.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(s=>{const l=window.URL.createObjectURL(s),o=document.createElement("a");o.download=e.name,o.href=l,o.click()})};return(e,s)=>{const l=r("el-button"),o=r("el-upload"),B=r("CircleCloseFilled"),U=r("el-icon");return i(),n("div",E,[p(o,{"show-file-list":!1,"before-upload":C,"http-request":F,disabled:a.disabled},{default:d(()=>[p(l,{type:"primary",plain:"",disabled:a.disabled},{default:d(()=>[N("选择文件")]),_:1},8,["disabled"])]),_:1},8,["disabled"]),S(h("span",I,"未选择任何文件",512),[[A,t.value.length===0]]),t.value.length>0?(i(!0),n(z,{key:0},R(t.value,(u,f)=>(i(),n("span",{class:"fileBox",key:f,onClick:b(D=>V(u),["stop"])},[h("span",null,T(u.name),1),a.disabled?v("",!0):(i(),$(U,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:b(D=>x(f),["stop"])},{default:d(()=>[p(B)]),_:2},1032,["onClick"]))],8,j))),128)):v("",!0)])}}},me=q(M,[["__scopeId","data-v-c84f6ff9"]]);export{me as default};

View File

@ -1 +1 @@
System.register(["./@vue-legacy-6c3c82af.js","./index-legacy-91658d53.js","./lodash.clonedeep-legacy-930370dc.js","./Upload.vue_vue_type_style_index_0_scoped_c84f6ff9_lang-legacy-a323fc02.js","./_plugin-vue_export-helper-legacy-762b7923.js","./vue-router-legacy-68eee699.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./element-plus-legacy-165258b0.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@element-plus-legacy-109f3c36.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-a850f6c1.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js","./js-cookie-legacy-c7672909.js"],(function(e,l){"use strict";var a,s,t,n,o,u,d,c,i,p,r,y,g,m,f,j,v,h,_,b;return{setters:[e=>{a=e.f,s=e.h,t=e.ag,n=e.o,o=e.c,u=e.d,d=e.S,c=e.W,i=e.T,p=e.Y,r=e.a,y=e.F,g=e.a6,m=e.V,f=e.$,j=e.X,v=e.R},e=>{h=e.h},e=>{_=e.c},null,e=>{b=e._},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"upload"},k={class:"empty"},w=["onClick"],x={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:b}){const x=e;a([]);const V=a([]),C=e=>!0,z=e=>_(e);s((()=>x.modelValue),(e=>{return""!==e&&void 0!==e&&e&&("edit"!==x.type||Array.isArray(e)||"string"!=typeof e)?void(V.value=(l=x.modelValue,_(l))):V.value=[];var l}),{immediate:!0});const F=e=>{let l=e.file;const a=new FormData;a.append("file",l),h.post("/api/attachment/upload",a).then((e=>{console.log(e,"res"),200==e.code&&(V.value.push({name:e.data.name,path:e.data.path,size:l.size,suffix:e.data.suffix}),b("update:modelValue",z(V.value)),console.log(x.modelValue,V.value))}))};return(e,a)=>{const s=t("el-button"),_=t("el-upload"),U=t("CircleCloseFilled"),B=t("el-icon");return n(),o("div",l,[u(_,{"show-file-list":!1,"before-upload":C,"http-request":F,disabled:x.disabled},{default:d((()=>[u(s,{type:"primary",plain:"",disabled:x.disabled},{default:d((()=>[c("选择文件")])),_:1},8,["disabled"])])),_:1},8,["disabled"]),i(r("span",k,"未选择任何文件",512),[[p,0===V.value.length]]),V.value.length>0?(n(!0),o(y,{key:0},g(V.value,((e,l)=>(n(),o("span",{class:"fileBox",key:l,onClick:f((l=>(e=>{h.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then((l=>{const a=window.URL.createObjectURL(l),s=document.createElement("a");s.download=e.name,s.href=a,s.click()}))})(e)),["stop"])},[r("span",null,j(e.name),1),x.disabled?m("",!0):(n(),v(B,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:f((e=>(e=>{V.value.splice(e,1),b("update:modelValue",z(V.value))})(l)),["stop"])},{default:d((()=>[u(U)])),_:2},1032,["onClick"]))],8,w)))),128)):m("",!0)])}}};e("default",b(x,[["__scopeId","data-v-c84f6ff9"]]))}}}));
System.register(["./@vue-legacy-6c3c82af.js","./index-legacy-6db7e3ad.js","./lodash.clonedeep-legacy-930370dc.js","./Upload.vue_vue_type_style_index_0_scoped_c84f6ff9_lang-legacy-a323fc02.js","./_plugin-vue_export-helper-legacy-762b7923.js","./vue-router-legacy-68eee699.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./element-plus-legacy-165258b0.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@element-plus-legacy-109f3c36.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-a850f6c1.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js","./js-cookie-legacy-c7672909.js"],(function(e,l){"use strict";var a,s,t,n,o,u,d,c,i,p,r,y,g,m,f,j,v,h,_,b;return{setters:[e=>{a=e.f,s=e.h,t=e.ag,n=e.o,o=e.c,u=e.d,d=e.S,c=e.W,i=e.T,p=e.Y,r=e.a,y=e.F,g=e.a6,m=e.V,f=e.$,j=e.X,v=e.R},e=>{h=e.h},e=>{_=e.c},null,e=>{b=e._},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"upload"},k={class:"empty"},w=["onClick"],x={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:b}){const x=e;a([]);const V=a([]),C=e=>!0,z=e=>_(e);s((()=>x.modelValue),(e=>{return""!==e&&void 0!==e&&e&&("edit"!==x.type||Array.isArray(e)||"string"!=typeof e)?void(V.value=(l=x.modelValue,_(l))):V.value=[];var l}),{immediate:!0});const F=e=>{let l=e.file;const a=new FormData;a.append("file",l),h.post("/api/attachment/upload",a).then((e=>{console.log(e,"res"),200==e.code&&(V.value.push({name:e.data.name,path:e.data.path,size:l.size,suffix:e.data.suffix}),b("update:modelValue",z(V.value)),console.log(x.modelValue,V.value))}))};return(e,a)=>{const s=t("el-button"),_=t("el-upload"),U=t("CircleCloseFilled"),B=t("el-icon");return n(),o("div",l,[u(_,{"show-file-list":!1,"before-upload":C,"http-request":F,disabled:x.disabled},{default:d((()=>[u(s,{type:"primary",plain:"",disabled:x.disabled},{default:d((()=>[c("选择文件")])),_:1},8,["disabled"])])),_:1},8,["disabled"]),i(r("span",k,"未选择任何文件",512),[[p,0===V.value.length]]),V.value.length>0?(n(!0),o(y,{key:0},g(V.value,((e,l)=>(n(),o("span",{class:"fileBox",key:l,onClick:f((l=>(e=>{h.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then((l=>{const a=window.URL.createObjectURL(l),s=document.createElement("a");s.download=e.name,s.href=a,s.click()}))})(e)),["stop"])},[r("span",null,j(e.name),1),x.disabled?m("",!0):(n(),v(B,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:f((e=>(e=>{V.value.splice(e,1),b("update:modelValue",z(V.value))})(l)),["stop"])},{default:d((()=>[u(U)])),_:2},1032,["onClick"]))],8,w)))),128)):m("",!0)])}}};e("default",b(x,[["__scopeId","data-v-c84f6ff9"]]))}}}));

View File

@ -1 +0,0 @@
import{d as t}from"./pinia-b1006f6e.js";const o=t("approver",{state:()=>({approverModalVisible:!1,approverItem:{properties:{}}}),actions:{editTtitle(e){this.approverItem.title=e,console.log(this.approverItem,"store标题")},toggleApproverVisible(e){this.$patch(r=>{r.approverModalVisible=e})},changeApprover(e){this.$patch(r=>{r.approverItem=e})},setNewApprover(e){this.$patch(r=>{console.log(e,"设置传入的值"),r.approverItem.title=e.title,r.approverItem.properties=e.properties,r.approverItem.authSettings=e.authSettings})}}});export{o as a};

View File

@ -0,0 +1 @@
import{d as t}from"./pinia-8e4f3b7e.js";const o=t("approver",{state:()=>({approverModalVisible:!1,approverItem:{properties:{}}}),actions:{editTtitle(e){this.approverItem.title=e},toggleApproverVisible(e){this.$patch(r=>{r.approverModalVisible=e})},changeApprover(e){this.$patch(r=>{r.approverItem=e})},setNewApprover(e){this.$patch(r=>{r.approverItem.title=e.title,r.approverItem.properties=e.properties,r.approverItem.authSettings=e.authSettings})}}});export{o as a};

View File

@ -0,0 +1 @@
import{u as b}from"./vue-router-3caf458d.js";import{h,t as k,a as x}from"./index-20a04bd1.js";import{E as c}from"./element-plus-15eb8ab3.js";import{f as u,ag as t,o as C,R as y,S as s,a as F,d as r,W as g}from"./@vue-99409b8e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const Y={__name:"change_password",setup(R){const m=b(),i=u(!0),p=u(null),P=u({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(d,e,a)=>{e!==o.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),o=u({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),_=()=>{p.value.validate(d=>{if(d)h.put("/api/auth/editPassword",{newPassword:o.value.newPassword,oldPassword:o.value.oldPassword}).then(e=>{e.code===200?(k.data.clear("user"),x("token"),c({message:e.message,type:"success"}),m.push("/grain/login")):c({message:e.message,type:"error"})});else return!1})},w=d=>{m.go(-1)};return(d,e)=>{const a=t("el-input"),n=t("el-form-item"),v=t("el-form"),f=t("el-button"),V=t("el-dialog");return C(),y(V,{modelValue:i.value,"onUpdate:modelValue":e[3]||(e[3]=l=>i.value=l),title:"修改密码",width:"350px","before-close":w},{footer:s(()=>[F("span",null,[r(f,{type:"primary",onClick:_},{default:s(()=>[g("保存")]),_:1}),r(f,{onClick:w},{default:s(()=>[g("关闭")]),_:1})])]),default:s(()=>[r(v,{ref_key:"ruleFormRef",ref:p,model:o.value,rules:P.value,"label-width":"100px"},{default:s(()=>[r(n,{label:"旧密码",prop:"oldPassword"},{default:s(()=>[r(a,{modelValue:o.value.oldPassword,"onUpdate:modelValue":e[0]||(e[0]=l=>o.value.oldPassword=l),"show-password":""},null,8,["modelValue"])]),_:1}),r(n,{label:"新密码",prop:"newPassword"},{default:s(()=>[r(a,{modelValue:o.value.newPassword,"onUpdate:modelValue":e[1]||(e[1]=l=>o.value.newPassword=l),"show-password":""},null,8,["modelValue"])]),_:1}),r(n,{label:"新密码确认",prop:"confirmPassword"},{default:s(()=>[r(a,{modelValue:o.value.confirmPassword,"onUpdate:modelValue":e[2]||(e[2]=l=>o.value.confirmPassword=l),"show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}};export{Y as default};

View File

@ -0,0 +1 @@
System.register(["./vue-router-legacy-68eee699.js","./index-legacy-6db7e3ad.js","./element-plus-legacy-165258b0.js","./@vue-legacy-6c3c82af.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./_plugin-vue_export-helper-legacy-762b7923.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@element-plus-legacy-109f3c36.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-a850f6c1.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,l){"use strict";var a,s,o,r,u,d,n,t,g,c,i,w,m;return{setters:[e=>{a=e.u},e=>{s=e.h,o=e.t,r=e.a},e=>{u=e.E},e=>{d=e.f,n=e.ag,t=e.o,g=e.R,c=e.S,i=e.a,w=e.d,m=e.W},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",{__name:"change_password",setup(e){const l=a(),p=d(!0),y=d(null),f=d({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(e,l,a)=>{console.log(v.newPassword),console.log(l),l!==v.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),v=d({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),j=()=>{y.value.validate((e=>{if(!e)return console.log("error submit!"),!1;s.put("/api/auth/editPassword",{newPassword:v.value.newPassword,oldPassword:v.value.oldPassword}).then((e=>{200===e.code?(o.data.clear("user"),r("token"),u({message:e.message,type:"success"}),l.push("/grain/login")):u({message:e.message,type:"error"})}))}))},P=e=>{l.go(-1)};return(e,l)=>{const a=n("el-input"),s=n("el-form-item"),o=n("el-form"),r=n("el-button"),u=n("el-dialog");return t(),g(u,{modelValue:p.value,"onUpdate:modelValue":l[3]||(l[3]=e=>p.value=e),title:"修改密码",width:"350px","before-close":P},{footer:c((()=>[i("span",null,[w(r,{type:"primary",onClick:j},{default:c((()=>[m("保存")])),_:1}),w(r,{onClick:P},{default:c((()=>[m("关闭")])),_:1})])])),default:c((()=>[w(o,{ref_key:"ruleFormRef",ref:y,model:v.value,rules:f.value,"label-width":"100px"},{default:c((()=>[w(s,{label:"旧密码",prop:"oldPassword"},{default:c((()=>[w(a,{modelValue:v.value.oldPassword,"onUpdate:modelValue":l[0]||(l[0]=e=>v.value.oldPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),w(s,{label:"新密码",prop:"newPassword"},{default:c((()=>[w(a,{modelValue:v.value.newPassword,"onUpdate:modelValue":l[1]||(l[1]=e=>v.value.newPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),w(s,{label:"新密码确认",prop:"confirmPassword"},{default:c((()=>[w(a,{modelValue:v.value.confirmPassword,"onUpdate:modelValue":l[2]||(l[2]=e=>v.value.confirmPassword=e),"show-password":""},null,8,["modelValue"])])),_:1})])),_:1},8,["model","rules"])])),_:1},8,["modelValue"])}}})}}}));

View File

@ -1 +0,0 @@
import{U as i}from"./global-48e57a79.js";import{d as h}from"./pinia-b1006f6e.js";function s(n,e=[],t){for(let r=0;r<n;r++){let o={type:"condition",title:"条件名称",prevId:t,nodeId:"condition_"+i(),properties:{conditions:[[]]}};e.push(o)}return e}function l(n,e){return{title:"审批节点",type:e,prevId:n,nodeId:"approver_"+i(),properties:{personJson:{},persons:[]}}}function d(n){if(!Array.isArray(n))return;let e=[];for(var t=0;t<n.length;t++){let o=n[t];for(var r=0;r<o.length;r++){let c={queAuth:2,queId:o[r].obj.name||o[r].obj.name};e.push(c)}}return e}function u(n,e,t){if(!(n instanceof Array)){console.log("arr must be Array!");return}for(;e<0;)e+=n.length;for(;t<0;)t+=n.length;if(t>=n.length)for(var r=t-n.length+1;r--;)n.push(void 0);return n.splice(t,0,n.splice(e,1)[0]),n}const g=h("condition",{state:()=>({conditionModalVisible:!1,conditionAll:{},checkedCondition:[],branchInfo:{},currentBranch:{},currentBranchParent:{},currentBranchIndex:0}),actions:{addCondition(n){this.$patch(e=>{n&&delete e.conditionAll[n]})},changeChecked(n){this.$patch(e=>{e.checkedCondition=n})},changeBranch(n){this.$patch(e=>{e.branchInfo=n,e.currentBranch=n.branch,e.currentBranchIndex=n.index,e.currentBranchParent=n.parentBranch})},changeBranchIndex(n){this.$patch(e=>{e.currentBranchIndex=n})},setNewBranch({branch:n,index:e,conditions:t}){this.$patch(r=>{r.currentBranch.title=n.title,r.currentBranch.properties.conditions=t,r.currentBranchIndex=e})},toggleVisible(n){this.$patch(e=>{e.conditionModalVisible=n})}}});export{d as a,s as b,g as c,l as g,u as s};

View File

@ -0,0 +1 @@
import{U as i}from"./global-48e57a79.js";import{d as h}from"./pinia-8e4f3b7e.js";function s(n,e=[],t){for(let r=0;r<n;r++){let o={type:"condition",title:"条件名称",prevId:t,nodeId:"condition_"+i(),properties:{conditions:[[]]}};e.push(o)}return e}function l(n,e){return{title:"审批节点",type:e,prevId:n,nodeId:"approver_"+i(),properties:{personJson:{},persons:[]}}}function d(n){if(!Array.isArray(n))return;let e=[];for(var t=0;t<n.length;t++){let o=n[t];for(var r=0;r<o.length;r++){let c={queAuth:2,queId:o[r].obj.name||o[r].obj.name};e.push(c)}}return e}function u(n,e,t){if(n instanceof Array){for(;e<0;)e+=n.length;for(;t<0;)t+=n.length;if(t>=n.length)for(var r=t-n.length+1;r--;)n.push(void 0);return n.splice(t,0,n.splice(e,1)[0]),n}}const g=h("condition",{state:()=>({conditionModalVisible:!1,conditionAll:{},checkedCondition:[],branchInfo:{},currentBranch:{},currentBranchParent:{},currentBranchIndex:0}),actions:{addCondition(n){this.$patch(e=>{n&&delete e.conditionAll[n]})},changeChecked(n){this.$patch(e=>{e.checkedCondition=n})},changeBranch(n){this.$patch(e=>{e.branchInfo=n,e.currentBranch=n.branch,e.currentBranchIndex=n.index,e.currentBranchParent=n.parentBranch})},changeBranchIndex(n){this.$patch(e=>{e.currentBranchIndex=n})},setNewBranch({branch:n,index:e,conditions:t}){this.$patch(r=>{r.currentBranch.title=n.title,r.currentBranch.properties.conditions=t,r.currentBranchIndex=e})},toggleVisible(n){this.$patch(e=>{e.conditionModalVisible=n})}}});export{d as a,s as b,g as c,l as g,u as s};

View File

@ -0,0 +1 @@
import{_ as B}from"./TableBody-d97f5e0f.js";import{y as F}from"./yd_diaInput-b51c2500.js";import{h as n}from"./index-20a04bd1.js";import{E as d}from"./element-plus-15eb8ab3.js";import{f as m,a0 as c,k as L,o as x,c as A,d as y,P as E}from"./@vue-99409b8e.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-12a4a04c.js";import"./lodash.clonedeep-89ac42ac.js";import"./dayjs-9729b6d9.js";import"./vue-router-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const P={class:"example"},re={__name:"department",setup(q){const p=m(!1),i=c({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isHiddenPagination:!0,changeHeight:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"部门名称",show:!0},{name:"code",label:"部门编码",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),l=c({value:!1,changeValue:e=>{l.value=e}}),h=c([{type:"treeSelect",title:"上级部门",model:"pid",placeholder:"请选择上级部门",control:!1,row:24,options:[]},{type:"input",title:"部门编码",model:"code",placeholder:"请输入部门编码",control:!1,row:24},{type:"input",title:"部门名称",placeholder:"请输入部门名称",control:!1,model:"name",row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),u=m({code:"",name:"",pid:"",remarks:"",sortNo:0}),b=m({type:"create",name:"新增",id:""}),v=m({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),r=c({column:void 0,orderBy:void 0,value:void 0}),f=()=>{n.get("/api/dept/tree").then(e=>{e.code==200&&(h[0].options=e.data.data)})},s=()=>{i.tableType.tableLoading=!0,n.get("/api/dept/list",r).then(e=>{e.code==200&&(i.tableData=e.data,i.tableType.tableLoading=!1)}).catch(()=>{i.tableType.tableLoading=!1})},k=({type:e,data:t})=>{switch(e){case"create":w();break;case"edit":T(t);break;case"delete":N(t);break;case"sort":V(t);break;case"search":H(t);break}},N=e=>{const t=e.map(a=>a.id);n.delete("/api/dept/remove",{params:{id:t[0]}}).then(a=>{a.code==200?(d({message:"删除成功",type:"success"}),s(),f()):d({message:a.message,type:"error"})})},_=(e,t,a)=>{if(e==="create"){let o={...t};t.pid===""&&(o={...o,pid:0}),n.post("/api/dept/save",o).then(g=>{g.code==200?(d({message:g.message,type:"success"}),l.value=!1,s(),f()):d.error(g.message)})}else e==="edit"&&n.put(`/api/dept/edit?id=${a}`,t).then(o=>{o.code==200?(d({message:o.message,type:"success"}),l.value=!1,s()):d.error(o.message)})},w=()=>{l.value=!0,b.value={type:"create",name:"新增",id:""},p.value=!1,u.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},T=e=>{const t=e[0].id;p.value=!1,n.get("/api/dept/detail",{id:t}).then(a=>{a.code===200&&(l.value=!0,u.value={paramKey:a.data.paramKey,paramValue:a.data.paramValue,remarks:a.data.remarks,sortNo:a.data.sortNo,code:a.data.data.code,name:a.data.data.name,pid:a.data.data.pid==0?"":a.data.data.pid,remarks:a.data.data.remarks,sortNo:a.data.data.sortNo},b.value={type:"edit",name:"编辑",id:t})})},H=e=>{r.value=e.value,s()},V=e=>{e.name===""?(r.orderBy=void 0,r.column=void 0):(r.orderBy=e.sortType,r.column=e.name),s()};return L(()=>{s(),f()}),(e,t)=>(x(),A("div",P,[y(B,E(i,{onHandleTableHeader:k}),null,16),y(F,{inputArray:h,onHandleFrom:_,dialogVisible:l,control:p.value,buttonName:b.value,ruleForm:u.value,rules:v.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}};export{re as default};

View File

@ -1 +0,0 @@
import{_ as B}from"./TableBody-89177887.js";import{y as F}from"./yd_diaInput-82ae4ab0.js";import{h as n}from"./index-f4a3d251.js";import{E as i}from"./element-plus-596887fa.js";import{f as c,a0 as p,k as L,o as x,c as A,d as y,P as E}from"./@vue-799d75fe.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-38db6609.js";import"./lodash.clonedeep-89ac42ac.js";import"./dayjs-9729b6d9.js";import"./vue-router-e054bd6d.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const P={class:"example"},re={__name:"department",setup(q){const u=c(!1),d=p({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isHiddenPagination:!0,changeHeight:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"部门名称",show:!0},{name:"code",label:"部门编码",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),l=p({value:!1,changeValue:e=>{l.value=e}}),h=p([{type:"treeSelect",title:"上级部门",model:"pid",placeholder:"请选择上级部门",control:!1,row:24,options:[]},{type:"input",title:"部门编码",model:"code",placeholder:"请输入部门编码",control:!1,row:24},{type:"input",title:"部门名称",placeholder:"请输入部门名称",control:!1,model:"name",row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),b=c({code:"",name:"",pid:"",remarks:"",sortNo:0}),f=c({type:"create",name:"新增",id:""}),v=c({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),r=p({column:void 0,orderBy:void 0,value:void 0}),g=()=>{n.get("/api/dept/tree").then(e=>{e.code==200&&(console.log("res",e),h[0].options=e.data.data)})},s=()=>{d.tableType.tableLoading=!0,n.get("/api/dept/list",r).then(e=>{e.code==200&&(d.tableData=e.data,d.tableType.tableLoading=!1)}).catch(()=>{d.tableType.tableLoading=!1})},k=({type:e,data:t})=>{switch(console.log(e,t),e){case"create":w();break;case"edit":console.log(e,t),T(t);break;case"delete":N(t);break;case"sort":V(t);break;case"search":H(t);break}},N=e=>{const t=e.map(a=>a.id);console.log(t[0]),n.delete("/api/dept/remove",{params:{id:t[0]}}).then(a=>{a.code==200?(i({message:"删除成功",type:"success"}),s(),g()):i({message:a.message,type:"error"})})},_=(e,t,a)=>{if(console.log(e,t,a),e==="create"){let o={...t};t.pid===""&&(o={...o,pid:0}),n.post("/api/dept/save",o).then(m=>{console.log(m),m.code==200?(i({message:m.message,type:"success"}),l.value=!1,s(),g()):i.error(m.message)})}else e==="edit"&&(n.put(`/api/dept/edit?id=${a}`,t).then(o=>{o.code==200?(i({message:o.message,type:"success"}),l.value=!1,s()):i.error(o.message)}),console.log(a))},w=()=>{l.value=!0,f.value={type:"create",name:"新增",id:""},u.value=!1,b.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},T=e=>{const t=e[0].id;u.value=!1,n.get("/api/dept/detail",{id:t}).then(a=>{a.code===200&&(console.log(a),l.value=!0,b.value={paramKey:a.data.paramKey,paramValue:a.data.paramValue,remarks:a.data.remarks,sortNo:a.data.sortNo,code:a.data.data.code,name:a.data.data.name,pid:a.data.data.pid==0?"":a.data.data.pid,remarks:a.data.data.remarks,sortNo:a.data.data.sortNo},f.value={type:"edit",name:"编辑",id:t})})},H=e=>{console.log(e.value),r.value=e.value,s()},V=e=>{e.name===""?(r.orderBy=void 0,r.column=void 0):(r.orderBy=e.sortType,r.column=e.name),s()};return L(()=>{s(),g()}),(e,t)=>(x(),A("div",P,[y(B,E(d,{onHandleTableHeader:k}),null,16),y(F,{inputArray:h,onHandleFrom:_,dialogVisible:l,control:u.value,buttonName:f.value,ruleForm:b.value,rules:v.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}};export{re as default};

View File

@ -1 +1 @@
System.register(["./TableBody-legacy-268e4388.js","./yd_diaInput-legacy-27ceea99.js","./index-legacy-91658d53.js","./element-plus-legacy-165258b0.js","./@vue-legacy-6c3c82af.js","./_plugin-vue_export-helper-legacy-762b7923.js","./@element-plus-legacy-109f3c36.js","./lodash.clonedeep-legacy-930370dc.js","./dayjs-legacy-a850f6c1.js","./vue-router-legacy-68eee699.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,a){"use strict";var l,t,o,s,r,d,n,c,u,i,p;return{setters:[e=>{l=e._},e=>{t=e.y},e=>{o=e.h},e=>{s=e.E},e=>{r=e.f,d=e.a0,n=e.k,c=e.o,u=e.c,i=e.d,p=e.P},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const a={class:"example"};e("default",{__name:"department",setup(e){const m=r(!1),g=d({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isHiddenPagination:!0,changeHeight:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"部门名称",show:!0},{name:"code",label:"部门编码",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),y=d({value:!1,changeValue:e=>{y.value=e}}),b=d([{type:"treeSelect",title:"上级部门",model:"pid",placeholder:"请选择上级部门",control:!1,row:24,options:[]},{type:"input",title:"部门编码",model:"code",placeholder:"请输入部门编码",control:!1,row:24},{type:"input",title:"部门名称",placeholder:"请输入部门名称",control:!1,model:"name",row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),v=r({code:"",name:"",pid:"",remarks:"",sortNo:0}),h=r({type:"create",name:"新增",id:""}),j=r({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),k=d({column:void 0,orderBy:void 0,value:void 0}),w=()=>{o.get("/api/dept/tree").then((e=>{200==e.code&&(console.log("res",e),b[0].options=e.data.data)}))},N=()=>{g.tableType.tableLoading=!0,o.get("/api/dept/list",k).then((e=>{200==e.code&&(g.tableData=e.data,g.tableType.tableLoading=!1)})).catch((()=>{g.tableType.tableLoading=!1}))},T=({type:e,data:a})=>{switch(console.log(e,a),e){case"create":H();break;case"edit":console.log(e,a),_(a);break;case"delete":f(a);break;case"sort":V(a);break;case"search":L(a)}},f=e=>{const a=e.map((e=>e.id));console.log(a[0]),o.delete("/api/dept/remove",{params:{id:a[0]}}).then((e=>{200==e.code?(s({message:"删除成功",type:"success"}),N(),w()):s({message:e.message,type:"error"})}))},x=(e,a,l)=>{if(console.log(e,a,l),"create"===e){let e={...a};""===a.pid&&(e={...e,pid:0}),o.post("/api/dept/save",e).then((e=>{console.log(e),200==e.code?(s({message:e.message,type:"success"}),y.value=!1,N(),w()):s.error(e.message)}))}else"edit"===e&&(o.put(`/api/dept/edit?id=${l}`,a).then((e=>{200==e.code?(s({message:e.message,type:"success"}),y.value=!1,N()):s.error(e.message)})),console.log(l))},H=()=>{y.value=!0,h.value={type:"create",name:"新增",id:""},m.value=!1,v.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},_=e=>{const a=e[0].id;m.value=!1,o.get("/api/dept/detail",{id:a}).then((e=>{200===e.code&&(console.log(e),y.value=!0,v.value={paramKey:e.data.paramKey,paramValue:e.data.paramValue,remarks:e.data.remarks,sortNo:e.data.sortNo,code:e.data.data.code,name:e.data.data.name,pid:0==e.data.data.pid?"":e.data.data.pid,remarks:e.data.data.remarks,sortNo:e.data.data.sortNo},h.value={type:"edit",name:"编辑",id:a})}))},L=e=>{console.log(e.value),k.value=e.value,N()},V=e=>{""===e.name?(k.orderBy=void 0,k.column=void 0):(k.orderBy=e.sortType,k.column=e.name),N()};return n((()=>{N(),w()})),(e,o)=>(c(),u("div",a,[i(l,p(g,{onHandleTableHeader:T}),null,16),i(t,{inputArray:b,onHandleFrom:x,dialogVisible:y,control:m.value,buttonName:h.value,ruleForm:v.value,rules:j.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}})}}}));
System.register(["./TableBody-legacy-268e4388.js","./yd_diaInput-legacy-27ceea99.js","./index-legacy-6db7e3ad.js","./element-plus-legacy-165258b0.js","./@vue-legacy-6c3c82af.js","./_plugin-vue_export-helper-legacy-762b7923.js","./@element-plus-legacy-109f3c36.js","./lodash.clonedeep-legacy-930370dc.js","./dayjs-legacy-a850f6c1.js","./vue-router-legacy-68eee699.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,a){"use strict";var l,t,o,s,r,d,n,c,u,i,p;return{setters:[e=>{l=e._},e=>{t=e.y},e=>{o=e.h},e=>{s=e.E},e=>{r=e.f,d=e.a0,n=e.k,c=e.o,u=e.c,i=e.d,p=e.P},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const a={class:"example"};e("default",{__name:"department",setup(e){const m=r(!1),g=d({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isHiddenPagination:!0,changeHeight:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"部门名称",show:!0},{name:"code",label:"部门编码",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),y=d({value:!1,changeValue:e=>{y.value=e}}),b=d([{type:"treeSelect",title:"上级部门",model:"pid",placeholder:"请选择上级部门",control:!1,row:24,options:[]},{type:"input",title:"部门编码",model:"code",placeholder:"请输入部门编码",control:!1,row:24},{type:"input",title:"部门名称",placeholder:"请输入部门名称",control:!1,model:"name",row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),v=r({code:"",name:"",pid:"",remarks:"",sortNo:0}),h=r({type:"create",name:"新增",id:""}),j=r({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),k=d({column:void 0,orderBy:void 0,value:void 0}),w=()=>{o.get("/api/dept/tree").then((e=>{200==e.code&&(console.log("res",e),b[0].options=e.data.data)}))},N=()=>{g.tableType.tableLoading=!0,o.get("/api/dept/list",k).then((e=>{200==e.code&&(g.tableData=e.data,g.tableType.tableLoading=!1)})).catch((()=>{g.tableType.tableLoading=!1}))},T=({type:e,data:a})=>{switch(console.log(e,a),e){case"create":H();break;case"edit":console.log(e,a),_(a);break;case"delete":f(a);break;case"sort":V(a);break;case"search":L(a)}},f=e=>{const a=e.map((e=>e.id));console.log(a[0]),o.delete("/api/dept/remove",{params:{id:a[0]}}).then((e=>{200==e.code?(s({message:"删除成功",type:"success"}),N(),w()):s({message:e.message,type:"error"})}))},x=(e,a,l)=>{if(console.log(e,a,l),"create"===e){let e={...a};""===a.pid&&(e={...e,pid:0}),o.post("/api/dept/save",e).then((e=>{console.log(e),200==e.code?(s({message:e.message,type:"success"}),y.value=!1,N(),w()):s.error(e.message)}))}else"edit"===e&&(o.put(`/api/dept/edit?id=${l}`,a).then((e=>{200==e.code?(s({message:e.message,type:"success"}),y.value=!1,N()):s.error(e.message)})),console.log(l))},H=()=>{y.value=!0,h.value={type:"create",name:"新增",id:""},m.value=!1,v.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},_=e=>{const a=e[0].id;m.value=!1,o.get("/api/dept/detail",{id:a}).then((e=>{200===e.code&&(console.log(e),y.value=!0,v.value={paramKey:e.data.paramKey,paramValue:e.data.paramValue,remarks:e.data.remarks,sortNo:e.data.sortNo,code:e.data.data.code,name:e.data.data.name,pid:0==e.data.data.pid?"":e.data.data.pid,remarks:e.data.data.remarks,sortNo:e.data.data.sortNo},h.value={type:"edit",name:"编辑",id:a})}))},L=e=>{console.log(e.value),k.value=e.value,N()},V=e=>{""===e.name?(k.orderBy=void 0,k.column=void 0):(k.orderBy=e.sortType,k.column=e.name),N()};return n((()=>{N(),w()})),(e,o)=>(c(),u("div",a,[i(l,p(g,{onHandleTableHeader:T}),null,16),i(t,{inputArray:b,onHandleFrom:x,dialogVisible:y,control:m.value,buttonName:h.value,ruleForm:v.value,rules:j.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}})}}}));

View File

@ -1 +0,0 @@
import{_ as P}from"./TableBody-89177887.js";import{y as S}from"./yd_diaInput-82ae4ab0.js";import{h as g}from"./index-f4a3d251.js";import{u as V}from"./vue-router-e054bd6d.js";import{c as v}from"./lodash.clonedeep-89ac42ac.js";import{u as H}from"./useDictData-fee7cc16.js";import{E as L}from"./element-plus-596887fa.js";import{f as n,a0 as u,k as F,o as B,c as E,d as f,P as R}from"./@vue-799d75fe.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-38db6609.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./dayjs-9729b6d9.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const O={class:"example"},me={__name:"desTarget",setup($){const i=V(),y=n(!1),p=n(),t=u({tableType:{selection:!0,tableLoading:!1,tableIndex:!1},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增登记",icon:"Plus",permission:"rsgl:ryzbsb:create"},{type:"custom",name:"view",title:"查看",icon:"View",isOpen:"single"},"delete"]},{buttons:[{name:"mixInput",options:[{label:"审批单号",value:"approvalNumber"},{label:"企业名称",value:"companyName"}]},"advanced"]},{delete:"rsgl:ryzbsb:delete"}],tableList:[{name:"companyId",label:"企业名称",show:!0,width:200},{name:"approvalNumber",label:"审批单号",show:!0},{name:"checkNumber",label:"原核定用工指标人数",show:!0},{name:"activeStaff",label:"现在职人数(指标内)",show:!0},{name:"thisApprovalNumber",label:"本次核准后总指标人数",show:!0},{name:"createdId",label:"填报人",show:!0},{name:"createdAt",label:"填报时间",show:!0},{name:"",label:"初审人",show:!0},{name:"",label:"初审时间",show:!0},{name:"",label:"国资会审人",show:!0},{name:"",label:"国资会审时间",show:!0},{name:"",label:"编办会审人",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),r=u({value:!1,changeValue:e=>{r.value=e}}),d=u([{type:"input",title:"企业名称",model:"companyName",placeholder:"请输入",control:!1,row:24},{type:"input",title:"审批单号",model:"approvalNumber",placeholder:"请输入",control:!1,row:24},{type:"select",title:"单据状态",model:"documentStatus",control:!1,row:24,placeholder:"请选择",options:[]},{type:"datetime",title:"填报开始时间",model:"createdAt",control:!1,row:24,placeholder:"请选择"},{type:"datetime",title:"填报结束时间",model:"updatedAt",control:!1,row:24,placeholder:"请选择"}]),c={type:"personnel_indicators",current:t.pagination.current,size:t.pagination.pageSize},o=n({...c}),m=n({}),b=n({}),l=()=>{t.tableType.tableLoading=!0,g.get("/api/organization/selectOrganizationPersonnelIndicatorsList",o.value).then(e=>{e.code==200&&(t.tableData=e.data.records,t.tableType.tableLoading=!1,t.pagination.total=e.data.total)}).catch(()=>{t.tableType.tableLoading=!1})},w=({type:e,data:a})=>{switch(e){case"create":N();break;case"submission":console.log(e,a);break;case"edit":console.log(e,a),A(a);break;case"delete":console.log(e,a),k(a);break;case"advanced":console.log(e,a),I();break;case"accessory":console.log(e,a);break;case"view":console.log(e,a),T(a);break;case"mixInput":console.log(e,a),M(a);break}},_=e=>{console.log(e),console.log(e),t.pagination.current=e,o.value.current=e,l()},k=e=>{const a=e.map(s=>s.id);g.post("/api/organization/deleteOrganizationAndPersonnelIndicators",{ids:a}).then(s=>{s.code==200&&(L({message:"删除成功",type:"success"}),l())})},x=(e,a,s)=>{o.value={...o.value,...a},p.value.clearMixInput(),r.value=!1,l()},I=()=>{r.value=!0,b.value={type:"adsearch",name:"查询",id:""},m.value={approvalNumber:"",companyName:"",updatedAt:"",createdAt:"",documentStatus:""}},N=()=>{i.push("/grain/des-target-add?type=create")},T=e=>{i.push(`/grain/des-target-add?type=check&id=${e[0].id}`)},A=e=>{const a=e[0].id;i.push(`/grain/des-target-add?type=edit&id=${a}`)},M=e=>{if(console.log(e.seachMixSelect.value,e.seachMixInput.value),e.seachMixSelect.value===""||e.seachMixInput.value===""){o.value=v(c),l();return}o.value=v(c),o.value[e.seachMixSelect.value]=e.seachMixInput.value,l()};let h=n({}),z=["t_dict_invoices_state"];const D=()=>{H(z).then(e=>{h.value=e,d[2].options=h.value.t_dict_invoices_state})};return F(()=>{l(),D()}),(e,a)=>(B(),E("div",O,[f(P,R(t,{onHandleTableHeader:w,onHandleTablePagination:_,ref_key:"TableBodyRef",ref:p}),null,16),f(S,{inputArray:d,onHandleFrom:x,dialogVisible:r,control:y.value,buttonName:b.value,ruleForm:m.value,diawidth:24},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm"])]))}};export{me as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import E from"./Upload-d1966acd.js";import{_ as N}from"./_plugin-vue_export-helper-c27b6911.js";import{f as o,a0 as g,n as P,ag as s,o as R,c as H,d as e,S as t,W as p,a as b}from"./@vue-799d75fe.js";import"./index-f4a3d251.js";import"./vue-router-e054bd6d.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */const T={class:"ParMain"},j={class:"tab-content"},A={class:"dialog-footer"},D={__name:"details",setup(I){const _=o(4),c=o(100),v=o(!1),y=o(!1),k=o(!1),f=o(0);o("");const h=o(),m=g({name:""}),C=g({name:[{required:!0,message:"Please input Activity name",trigger:"blur"}]}),i=o(!1),x=[{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件一号"},{name:"池武丹",lastname:"李四",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件二号"},{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件三号"}],u=()=>{i.value=!0},V=n=>{console.log(`${n} items per page`)},z=n=>{console.log(`current page: ${n}`)};return P(()=>{f.value=window.innerHeight-320}),(n,a)=>{const r=s("el-table-column"),d=s("el-button"),q=s("el-table"),w=s("el-pagination"),F=s("el-form-item"),U=s("el-col"),S=s("el-row"),$=s("el-form"),B=s("el-dialog");return R(),H("div",T,[e(q,{data:x,"default-sort":{prop:"date",order:"descending"},height:f.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:t(()=>[e(r,{prop:"qiye",label:"附件名称",sortable:""}),e(r,{prop:"status",label:"文件类型",sortable:""}),e(r,{prop:"name",label:"上传人",sortable:""}),e(r,{prop:"lastname",label:"最后修改人",sortable:""}),e(r,{prop:"address",label:"最后修改日期",sortable:""}),e(r,{fixed:"right",label:"操作"},{default:t(()=>[e(d,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("修改")]),_:1}),e(d,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("删除")]),_:1}),e(d,{link:"",type:"primary",size:"large",onClick:u},{default:t(()=>[p("附件")]),_:1})]),_:1})]),_:1},8,["height"]),e(w,{style:{"margin-top":"100px"},"current-page":_.value,"onUpdate:current-page":a[0]||(a[0]=l=>_.value=l),"page-size":c.value,"onUpdate:page-size":a[1]||(a[1]=l=>c.value=l),"page-sizes":[100,200,300,400],small:v.value,disabled:k.value,background:y.value,layout:"->,total, prev, pager, next, jumper",total:400,onSizeChange:V,onCurrentChange:z},null,8,["current-page","page-size","small","disabled","background"]),e(B,{modelValue:i.value,"onUpdate:modelValue":a[5]||(a[5]=l=>i.value=l),title:"人员选调",width:"60%"},{footer:t(()=>[b("span",A,[e(d,{type:"primary",onClick:a[3]||(a[3]=l=>i.value=!1)},{default:t(()=>[p("保存")]),_:1}),e(d,{onClick:a[4]||(a[4]=l=>i.value=!1)},{default:t(()=>[p("关闭")]),_:1})])]),default:t(()=>[b("div",j,[e($,{ref_key:"ruleFormRef",ref:h,model:m,rules:C,"label-width":"180px",disabled:n.disabledVal,"hide-required-asterisk":n.hideRequired},{default:t(()=>[e(S,null,{default:t(()=>[e(U,{span:12},{default:t(()=>[e(F,{label:"相关附件:",class:"form-item-upload"},{default:t(()=>[e(E,{modelValue:m.name,"onUpdate:modelValue":a[2]||(a[2]=l=>m.name=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","hide-required-asterisk"])])]),_:1},8,["modelValue"])])}}},_e=N(D,[["__scopeId","data-v-41b38f3f"]]);export{_e as default};

View File

@ -0,0 +1 @@
import E from"./Upload-e5163572.js";import{_ as N}from"./_plugin-vue_export-helper-c27b6911.js";import{f as o,a0 as g,n as P,ag as s,o as R,c as H,d as e,S as t,W as d,a as b}from"./@vue-99409b8e.js";import"./index-20a04bd1.js";import"./vue-router-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */const T={class:"ParMain"},j={class:"tab-content"},A={class:"dialog-footer"},D={__name:"details",setup(I){const _=o(4),c=o(100),v=o(!1),y=o(!1),k=o(!1),f=o(0);o("");const h=o(),m=g({name:""}),C=g({name:[{required:!0,message:"Please input Activity name",trigger:"blur"}]}),r=o(!1),x=[{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件一号"},{name:"池武丹",lastname:"李四",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件二号"},{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件三号"}],u=()=>{r.value=!0},V=p=>{},z=p=>{};return P(()=>{f.value=window.innerHeight-320}),(p,a)=>{const n=s("el-table-column"),i=s("el-button"),q=s("el-table"),w=s("el-pagination"),F=s("el-form-item"),U=s("el-col"),S=s("el-row"),$=s("el-form"),B=s("el-dialog");return R(),H("div",T,[e(q,{data:x,"default-sort":{prop:"date",order:"descending"},height:f.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:t(()=>[e(n,{prop:"qiye",label:"附件名称",sortable:""}),e(n,{prop:"status",label:"文件类型",sortable:""}),e(n,{prop:"name",label:"上传人",sortable:""}),e(n,{prop:"lastname",label:"最后修改人",sortable:""}),e(n,{prop:"address",label:"最后修改日期",sortable:""}),e(n,{fixed:"right",label:"操作"},{default:t(()=>[e(i,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[d("修改")]),_:1}),e(i,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[d("删除")]),_:1}),e(i,{link:"",type:"primary",size:"large",onClick:u},{default:t(()=>[d("附件")]),_:1})]),_:1})]),_:1},8,["height"]),e(w,{style:{"margin-top":"100px"},"current-page":_.value,"onUpdate:current-page":a[0]||(a[0]=l=>_.value=l),"page-size":c.value,"onUpdate:page-size":a[1]||(a[1]=l=>c.value=l),"page-sizes":[100,200,300,400],small:v.value,disabled:k.value,background:y.value,layout:"->,total, prev, pager, next, jumper",total:400,onSizeChange:V,onCurrentChange:z},null,8,["current-page","page-size","small","disabled","background"]),e(B,{modelValue:r.value,"onUpdate:modelValue":a[5]||(a[5]=l=>r.value=l),title:"人员选调",width:"60%"},{footer:t(()=>[b("span",A,[e(i,{type:"primary",onClick:a[3]||(a[3]=l=>r.value=!1)},{default:t(()=>[d("保存")]),_:1}),e(i,{onClick:a[4]||(a[4]=l=>r.value=!1)},{default:t(()=>[d("关闭")]),_:1})])]),default:t(()=>[b("div",j,[e($,{ref_key:"ruleFormRef",ref:h,model:m,rules:C,"label-width":"180px",disabled:p.disabledVal,"hide-required-asterisk":p.hideRequired},{default:t(()=>[e(S,null,{default:t(()=>[e(U,{span:12},{default:t(()=>[e(F,{label:"相关附件:",class:"form-item-upload"},{default:t(()=>[e(E,{modelValue:m.name,"onUpdate:modelValue":a[2]||(a[2]=l=>m.name=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","hide-required-asterisk"])])]),_:1},8,["modelValue"])])}}},_e=N(D,[["__scopeId","data-v-41b38f3f"]]);export{_e as default};

View File

@ -0,0 +1 @@
import{a as T,u as j}from"./vue-router-3caf458d.js";import{h as x}from"./index-20a04bd1.js";import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import{E as B}from"./element-plus-15eb8ab3.js";import{f as p,a0 as D,n as F,ag as u,aq as N,o as C,c as S,T as U,R as V,S as l,d as o,a as _,X as g,u as A,W as k}from"./@vue-99409b8e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const H={class:"ParMain"},M={__name:"detailsIndex",setup(O){const f=T();p(f.query.type),j();const L=p(!1),h=p(0),c=p(!1),v=p([]),r=D({current:1,size:12,id:f.query.id}),y=p(0),m=()=>{c.value=!0,r.type=f.query.type,x.get("/api/alteration/selectOrganizationFileList",r).then(n=>{n.code==200&&(v.value=n.data.records,y.value=n.data.total,c.value=!1)}).catch(()=>{c.value=!1})};m();let z={audit:"审批资料附件",card:"身份证附件",education:"学历证书附件",engage:"聘任证书附件",jobTitle:"职称证书附件",directors:"directors"};const b=(n,e)=>{if(n==="download")x.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(a=>{const i=window.URL.createObjectURL(a),s=document.createElement("a");s.download=e.name,s.href=i,s.click()});else if(n==="preview"){const a=e.suffix.toLowerCase()==="jpeg".toLowerCase(),i=e.suffix.toLowerCase()==="pdf".toLowerCase(),s=e.suffix.toLowerCase()==="png".toLowerCase(),w=e.suffix.toLowerCase()==="jpg".toLowerCase();if(a||i||s||w){const d=document.createElement("a");d.href=e.path,d.click(),window.open(e.path)}else B({message:"该文件类型暂不支持预览",type:"warning"})}},q=n=>{r.current=n,m()},E=n=>{r.current=n,m()};return F(()=>{h.value=window.innerHeight-320}),(n,e)=>{const a=u("el-table-column"),i=u("el-button"),s=u("el-table"),w=u("el-pagination"),d=N("loading");return C(),S("div",H,[U((C(),V(s,{data:v.value,"default-sort":{prop:"date",order:"descending"},height:h.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:l(()=>[o(a,{label:"序号",type:"index",width:"100",align:"center"}),o(a,{prop:"name",label:"附件名称"}),o(a,{label:"附件类型"},{default:l(t=>[_("span",null,g(A(z)[t.row.targetType]),1)]),_:1}),o(a,{label:"文件类型"},{default:l(t=>[_("span",null,g(t.row.suffix),1)]),_:1}),o(a,{prop:"createdId",label:"上传人"}),o(a,{label:"上传时间"},{default:l(t=>[_("span",null,g(t.row.createdAt.split(" ")[0]),1)]),_:1}),o(a,{prop:"updatedId",label:"最后修改人"}),o(a,{label:"最后修改日期"},{default:l(t=>[_("span",null,g(t.row.updatedAt.split(" ")[0]),1)]),_:1}),o(a,{fixed:"right",label:"操作",width:"120"},{default:l(t=>[o(i,{link:"",type:"primary",size:"large",onClick:I=>b("preview",t.row)},{default:l(()=>[k("预览")]),_:2},1032,["onClick"]),o(i,{link:"",type:"primary",size:"large",onClick:I=>b("download",t.row)},{default:l(()=>[k("下载")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","height"])),[[d,c.value]]),o(w,{style:{"margin-top":"100px"},"current-page":r.current,"onUpdate:current-page":e[0]||(e[0]=t=>r.current=t),"page-size":r.size,"onUpdate:page-size":e[1]||(e[1]=t=>r.size=t),background:L.value,layout:"->,total, prev, pager, next, jumper",total:y.value,onSizeChange:q,onCurrentChange:E},null,8,["current-page","page-size","background","total"])])}}},de=R(M,[["__scopeId","data-v-56ff1069"]]);export{de as default};

View File

@ -1 +0,0 @@
import{a as T,u as j}from"./vue-router-e054bd6d.js";import{h as x}from"./index-f4a3d251.js";import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import{E as B}from"./element-plus-596887fa.js";import{f as p,a0 as D,n as F,ag as _,aq as N,o as C,c as S,T as U,R as V,S as r,d as n,a as g,X as f,u as A,W as k}from"./@vue-799d75fe.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const H={class:"ParMain"},M={__name:"detailsIndex",setup(O){const c=T();p(c.query.type),j();const L=p(!1),h=p(0),d=p(!1),v=p([]),l=D({current:1,size:12,id:c.query.id}),b=p(0),m=()=>{d.value=!0,console.log(c.query.type,"route.query.type"),l.type=c.query.type,x.get("/api/alteration/selectOrganizationFileList",l).then(t=>{console.log("res",t),t.code==200&&(console.log(t.data),v.value=t.data.records,b.value=t.data.total,d.value=!1)}).catch(()=>{d.value=!1})};m();let z={audit:"审批资料附件",card:"身份证附件",education:"学历证书附件",engage:"聘任证书附件",jobTitle:"职称证书附件",directors:"directors"};const y=(t,e)=>{if(console.log(t,e),t==="download")x.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(o=>{const i=window.URL.createObjectURL(o),s=document.createElement("a");s.download=e.name,s.href=i,s.click()});else if(t==="preview"){const o=e.suffix.toLowerCase()==="jpeg".toLowerCase(),i=e.suffix.toLowerCase()==="pdf".toLowerCase(),s=e.suffix.toLowerCase()==="png".toLowerCase(),w=e.suffix.toLowerCase()==="jpg".toLowerCase();if(o||i||s||w){const u=document.createElement("a");u.href=e.path,u.click(),window.open(e.path)}else B({message:"该文件类型暂不支持预览",type:"warning"})}},q=t=>{l.current=t,m()},E=t=>{l.current=t,m()};return F(()=>{h.value=window.innerHeight-320}),(t,e)=>{const o=_("el-table-column"),i=_("el-button"),s=_("el-table"),w=_("el-pagination"),u=N("loading");return C(),S("div",H,[U((C(),V(s,{data:v.value,"default-sort":{prop:"date",order:"descending"},height:h.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:r(()=>[n(o,{label:"序号",type:"index",width:"100",align:"center"}),n(o,{prop:"name",label:"附件名称"}),n(o,{label:"附件类型"},{default:r(a=>[g("span",null,f(A(z)[a.row.targetType]),1)]),_:1}),n(o,{label:"文件类型"},{default:r(a=>[g("span",null,f(a.row.suffix),1)]),_:1}),n(o,{prop:"createdId",label:"上传人"}),n(o,{label:"上传时间"},{default:r(a=>[g("span",null,f(a.row.createdAt.split(" ")[0]),1)]),_:1}),n(o,{prop:"updatedId",label:"最后修改人"}),n(o,{label:"最后修改日期"},{default:r(a=>[g("span",null,f(a.row.updatedAt.split(" ")[0]),1)]),_:1}),n(o,{fixed:"right",label:"操作",width:"120"},{default:r(a=>[n(i,{link:"",type:"primary",size:"large",onClick:I=>y("preview",a.row)},{default:r(()=>[k("预览")]),_:2},1032,["onClick"]),n(i,{link:"",type:"primary",size:"large",onClick:I=>y("download",a.row)},{default:r(()=>[k("下载")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","height"])),[[u,d.value]]),n(w,{style:{"margin-top":"100px"},"current-page":l.current,"onUpdate:current-page":e[0]||(e[0]=a=>l.current=a),"page-size":l.size,"onUpdate:page-size":e[1]||(e[1]=a=>l.size=a),background:L.value,layout:"->,total, prev, pager, next, jumper",total:b.value,onSizeChange:q,onCurrentChange:E},null,8,["current-page","page-size","background","total"])])}}},de=R(M,[["__scopeId","data-v-56ff1069"]]);export{de as default};

Some files were not shown because too many files have changed in this diff Show More