import{a as F,h as E,i as o,b as n,v as g}from"./validator.92b8f4b2.js";import{c6 as A,c7 as l,c8 as B,c9 as p,aL as i,aT as t}from"./index.js";const q=[{value:"0",label:"\u7981\u7528",type:"warning"},{value:"1",label:"\u542F\u7528",type:"success"}],h=[{value:"1",label:"\u5DF2\u5347\u7EA7",type:"success"},{value:"0",label:"\u672A\u5347\u7EA7",type:"info"}],y=[{value:"0",label:"\u672A\u4E0A\u4F20",type:"info"},{value:"1",label:"\u8BC6\u522B\u6210\u529F",type:"success"},{value:"2",label:"\u8BC6\u522B\u5931\u8D25",type:"warning"}],f=[{value:"0",label:"\u767D\u540D\u5355"},{value:"1",label:"\u9ED1\u540D\u5355"}],w=[{value:"0",label:"\u5BA2\u6237\u63D0\u4F9B"},{value:"1",label:"\u4F9B\u5E94\u5546"},{value:"2",label:"\u516C\u53F8\u5F00\u53D1"}],_=[{value:"0",label:"\u6B63\u5F0F\u4F9B\u5E94\u5546"},{value:"1",label:"\u4E34\u65F6\u4F9B\u5E94\u5546"}],O=[{value:"0",label:"\u5355\u54C1\u7C7B\u4F9B\u5E94\u5546"},{value:"1",label:"\u591A\u54C1\u7C7B\u4F9B\u5E94\u5546"}],S=[{value:"0",label:"\u4F9B\u5E94\u5546\u53D1\u8D27"},{value:"1",label:"\u516C\u53F8\u81EA\u63D0"}],$=[{value:"0",label:"\u751F\u4EA7\u5382\u5BB6"},{value:"1",label:"\u4EE3\u7406\u5546"},{value:"2",label:"\u7ECF\u9500\u5546"},{value:"3",label:"\u5206\u9500\u5546"},{value:"4",label:"\u7535\u5546\u5E73\u53F0"}],L=[{value:"2",label:"\u751F\u4EA7\u5382\u5BB6"},{value:"0",label:"\u4E00\u7EA7\u4EE3\u7406\u5546"},{value:"1",label:"\u4E8C\u7EA7\u4EE3\u7406\u5546"}],z=[{value:"0",label:"\u73B0\u7ED3"},{value:"1",label:"\u6708\u6E05"},{value:"2",label:"\u53CC\u6708\u6E05"}],a={required:!0,message:"\u8054\u7CFB\u7535\u8BDD\u683C\u5F0F\u4E0D\u6B63\u786E"},T=[{value:"0",label:"\u533A-\u56FA-\u5206",rule:{...a,validator(e,u){return A(u)}}},{value:"1",label:"\u533A-\u56FA",rule:{...a,validator(e,u){return l(u)}}},{value:"2",label:"\u56FA-\u5206",rule:{...a,validator(e,u){return B(u||"")}}},{value:"3",label:"\u56FA",rule:{...a,validator(e,u){return p(u||"")}}},{value:"4",label:"\u624B\u673A\u53F7",rule:{...a,validator(e,u){return i(u||"")}}}],D=(e,u,r)=>{u!==""||!u?F(u)?r():r(new Error("\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801\u4E0D\u6B63\u786E\uFF01")):r(new Error("\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801\uFF01"))},d=(e,u,r)=>{u===""||!u?r(new Error("\u624B\u673A\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF01")):i(u)?r():r(new Error("\u624B\u673A\u53F7\u683C\u5F0F\u4E0D\u6B63\u786E\uFF01"))},c=(e,u,r)=>{u===""||!u||l(u)?r():r(new Error("\u89C4\u5219\u4E3A\u533A\u53F7[0+2~3\u4F4D]-\u56FA\u5B9A\u7535\u8BDD[7~8\u4F4D]\uFF01"))},v=(e,u,r)=>{u===""&&u?r(new Error("\u8BE6\u7EC6\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A\uFF01")):E(u)?r(new Error("\u4E0D\u80FD\u51FA\u73B0/\u56DE\u8F66/\u6362\u884C\u7B26\uFF01")):o(u)?r(new Error("\u4E0D\u80FD\u4F7F\u7528\u82F1\u6587\u7279\u6B8A\u5B57\u7B26\uFF01")):n(u)?r():r(new Error("\u8BE6\u7EC6\u5730\u5740\u586B\u5199\u4E0D\u89C4\u8303\uFF01"))},b=(e,u,r)=>{u===""&&u?r(new Error("\u90AE\u7BB1\u4E0D\u80FD\u4E3A\u7A7A\uFF01")):g(u)?r():r(new Error("\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E\uFF01"))},U={coop_state:[{required:!0,message:"\u8BF7\u9009\u62E9\u5408\u4F5C\u72B6\u6001",trigger:"change"}],source:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546\u6765\u6E90",trigger:"change"}],type:[{required:!0,message:"\u8BF7\u9009\u62E9\u7533\u8BF7\u7C7B\u578B",trigger:"change"}],category:[{required:!0,message:"\u8BF7\u9009\u62E9\u6240\u5C5E\u7C7B\u522B",trigger:"change"}],delivery_way:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6D41\u65B9\u5F0F",trigger:"change"}],supplier_type:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546\u7C7B\u578B",trigger:"change"}],level:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546\u7EA7\u522B",trigger:"change"}],pay_type:[{required:!0,message:"\u8BF7\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F",trigger:"change"}],personid:[{required:!0,message:"\u8BF7\u9009\u62E9\u8D1F\u8D23\u4EBA",trigger:"change"}],contactor:[{required:!0,message:"\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],mobile:[{required:!0,validator:d,trigger:"blur"}],email:[{required:!0,validator:b,trigger:"blur"}],telephone:[{required:!1,validator:c,trigger:"blur"}],position:[{required:!0,message:"\u804C\u4F4D\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],registercode:[{required:!0,validator:D,trigger:"blur"}],name:[{required:!0,message:"\u4F9B\u5E94\u5546\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],nature:[{required:!0,message:"\u516C\u53F8\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}],addr:[{required:!0,validator:v,trigger:"blur"}],legaler:[{required:!0,message:"\u6CD5\u4EBA\u4EE3\u8868\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],registertime:[{required:!0,message:"\u6210\u7ACB\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}],scope:[{required:!0,message:"\u8425\u4E1A\u6267\u7167\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]},j={inv_bank:[{required:!0,message:"\u94F6\u884C\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",trigger:"blur"}],inv_bankNo:[{required:!0,message:"\u94F6\u884C\u5361\u53F7\u4E0D\u80FD\u4E3A\u7A7A\uFF01",trigger:"blur"}],inv_addr:[{required:!0,message:"\u8054\u7CFB\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A\uFF01",trigger:"blur"}],invoice_title:[{required:!0,message:"\u516C\u53F8\u62AC\u5934\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],invoice_mobile:[{required:!0,message:"\u8054\u7CFB\u7535\u8BDD\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]},s="http://project.test241.wanyuhengtong.com/user/supplier/",x=e=>t.request("post",`${s}list`,{data:e}),I=e=>t.request("post",`${s}info`,{data:e}),M=e=>t.request("post",`${s}create`,{data:e}),N=e=>t.request("post",`${s}save`,{data:e}),R=e=>t.request("post",`${s}upgrade`,{data:e}),W=e=>t.request("post",`${s}status`,{data:e});export{_ as a,O as b,f as c,S as d,$ as e,L as f,M as g,I as h,N as i,x as j,W as k,q as l,h as m,T as n,y as o,z as p,R as q,U as r,w as s,j as u};