import{_ as O,d as I,da as T,m as y,r as f,o as _,A as B,x as g,b as x,h as p,u as F,a as C,c as A,F as H,y as L,cY as P,H as D,cc as v,cr as R,L as Z,M as q}from"./index.2e9457cc.js";import{c as w}from"./createRequset.3978c053.js";import{e as Y}from"./execl-upload.f1a65402.js";const V="admin/reportChange/";var G={list:w(`${V}list`),create:w(`${V}create`)};const s={orderCode:"\u9500\u552E\u4E3B\u8BA2\u5355\u7F16\u53F7",corr:"\u4FEE\u6539\u540E\u521B\u5EFA\u65F6\u95F4"},J=Object.keys(s).map(n=>s[n]),K=[{type:"index",width:"50",fixed:"left",label:"\u5E8F\u53F7"},...Object.keys(s).reduce((n,b)=>[...n,{prop:b,label:s[b]}],[])];const k=n=>(Z("data-v-207ed5c1"),n=n(),q(),n),Q={style:{width:"300px","margin-bottom":"10px",display:"flex","align-items":"center"}},W=k(()=>x("p",{style:{color:"red","margin-right":"5px"}},"*",-1)),X=k(()=>x("p",{style:{"white-space":"nowrap","margin-right":"5px"}},"\u4FEE\u6539\u90E8\u95E8:",-1)),ee={key:1,flex:"","justify-end":"","gap-2":"",style:{padding:"10px 0 0 0"}},ue=I({__name:"index",emits:["refresh"],setup(n,{expose:b,emit:S}){const r=T({visible:!1,loading:!1}),m=y(""),i=y([]);function U(u,e){if(u.length!==e.length)return v.warning("\u8868\u5934\u4E0E\u5BFC\u5165\u6A21\u677F\u4E0D\u5339\u914D\uFF01"),!1;for(const t in u)if(e[t]!==u[t])return v.warning("\u8868\u5934\u4E0E\u5BFC\u5165\u6A21\u677F\u4E0D\u5339\u914D\uFF01"),!1;return!0}function j(u){const e=[];let t=!0;const a=[];for(const o in u){const l=u[o];let c=!0,E="";const d=/^\d{4}-\d{2}-\d{2}$/,h=/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d]+$/;String(l[s.orderCode]).trim()===""?(c=!1,E+=",\u9500\u552E\u4E3B\u8BA2\u5355\u7F16\u53F7\u4E0D\u80FD\u4E3A\u7A7A"):h.test(String(l[s.orderCode]).trim())===!1&&(c=!1,E+=",\u9500\u552E\u4E3B\u8BA2\u5355\u7F16\u53F7\u5FC5\u987B\u6709\u5B57\u6BCD\u548C\u6570\u5B57\u7EC4\u6210"),String(l[s.corr]).trim()===""?(c=!1,E+=",\u4FEE\u6539\u540E\u7684\u521B\u5EFA\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"):d.test(String(l[s.corr]).trim())===!1&&(c=!1,E+=",\u4FEE\u6539\u540E\u7684\u521B\u5EFA\u65F6\u95F4\u683C\u5F0F\u4E0D\u6B63\u786E"),c||(t=!1),a.push(E),e.push({orderCode:l[s.orderCode],corr:l[s.corr]})}return{list:e,isValid:t,messages:a}}function M(u){return u.reduce((e,t,a)=>{const o=a===u.length-1?"":"";return e+(t?`
  • \u7B2C${Number(a)+1}\u884C${t}
  • `:"")+o},"