2 lines
6.1 KiB
JavaScript
2 lines
6.1 KiB
JavaScript
import{Y as Z,Z as q,K as M,L as Y,D as z,C as G,w as H,F as J,T as W,O as X,Q as ee,R as te}from"./element-plus.d8e0827b.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.b67c1046.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as le}from"./useDictOptions.26f94334.js";import{e as ue}from"./supplier.74dcc100.js";import"./lodash.466e9fe4.js";import"./index.3078ee97.js";import{_ as se}from"./edit.vue_vue_type_script_setup_true_name_supplierEdit_lang.7d6a23d6.js";import{_ as ne}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.faaccac9.js";import{d as S,s as V,r as b,Z as re,o as u,c as p,U as e,L as o,u as a,T as A,a9 as x,K as r,R as C,M as pe,a as R,Q as k,j as ie,n as me}from"./@vue.18505fe0.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./dialogTableConfig.73a1955f.js";import"./goods_label.15f34d2d.js";import"./picker.46e5672e.js";import"./index.ea9543a9.js";import"./index.ec654790.js";import"./index.3a4cbe3a.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";import"./address.ab754eab.js";const de={class:"mt-4"},_e={key:0,type:"info"},ce={key:1,type:"success"},fe={key:2,type:"danger"},ye={class:"flex mt-4 justify-end"},Be=S({name:"supplierLists"}),ft=S({...Be,setup(ve){const L=V(),F=V(),h=b(!1),E=b(!1),s=re({category_id:"",type_id:"",mer_name:""}),$=b([]),T=f=>{$.value=f.map(({id:l})=>l)},{dictData:_}=le("show_status,mer_category_type,merchat_type,financial_type"),{pager:i,getLists:c,resetParams:I,resetPage:U}=ae({fetchFun:ue,params:s}),w=async f=>{var l,m;E.value=!0,await me(),(l=F.value)==null||l.open("edit"),(m=F.value)==null||m.setFormData(f)};return c(),(f,l)=>{const m=M,g=Y,y=z,B=Z,N=G,v=H,P=q,j=J,D=W,n=X,K=ee,O=oe,Q=te;return u(),p("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(j,{class:"mb-[-16px]",model:a(s),"label-width":"120px"},{default:o(()=>[e(P,null,{default:o(()=>[e(B,{span:6},{default:o(()=>[e(y,{label:"\u4F9B\u5E94\u5546\u5206\u7C7B",prop:"category_id"},{default:o(()=>[e(g,{modelValue:a(s).category_id,"onUpdate:modelValue":l[0]||(l[0]=t=>a(s).category_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546\u7C7B\u578B"},{default:o(()=>[(u(!0),p(A,null,x(a(_).mer_category_type,(t,d)=>(u(),r(m,{key:d,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(B,{span:6},{default:o(()=>[e(y,{label:"\u4F9B\u5E94\u5546\u7C7B\u578B",prop:"type_id"},{default:o(()=>[e(g,{modelValue:a(s).type_id,"onUpdate:modelValue":l[1]||(l[1]=t=>a(s).type_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546\u7C7B\u578B"},{default:o(()=>[(u(!0),p(A,null,x(a(_).merchat_type,(t,d)=>(u(),r(m,{key:d,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(B,{span:6},{default:o(()=>[e(y,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"mer_name"},{default:o(()=>[e(N,{modelValue:a(s).mer_name,"onUpdate:modelValue":l[2]||(l[2]=t=>a(s).mer_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F9B\u5E94\u5546\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),e(B,{span:6},{default:o(()=>[e(y,null,{default:o(()=>[e(v,{type:"primary",onClick:a(U)},{default:o(()=>[C("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(v,{onClick:a(I)},{default:o(()=>[C("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),pe((u(),r(D,{class:"!border-none",shadow:"never"},{default:o(()=>[R("div",de,[e(K,{data:a(i).lists,onSelectionChange:T},{default:o(()=>[e(n,{label:"ID",prop:"id",width:"100","show-overflow-tooltip":""}),e(n,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier.mer_name","show-overflow-tooltip":""}),e(n,{label:"\u8054\u7CFB\u4EBA",prop:"supplier.service_user","show-overflow-tooltip":""}),e(n,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"supplier.service_phone","show-overflow-tooltip":""}),e(n,{label:"\u5165\u9A7B\u72B6\u6001",prop:"status","show-overflow-tooltip":""},{default:o(({row:t})=>[t.status===0&&t.mark==""?(u(),p("span",_e,"\u5F85\u5BA1\u6838")):t.status===1?(u(),p("span",ce,"\u5BA1\u6838\u901A\u8FC7")):(u(),p("span",fe,"\u5BA1\u6838\u4E0D\u901A\u8FC7"))]),_:1}),e(n,{label:"\u5BA1\u6838\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(n,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"supplier.create_time","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:o(({row:t})=>[!t.status&&t.mark==""?(u(),r(v,{key:0,link:"",type:"primary",onClick:d=>w(t)},{default:o(()=>[C(" \u5BA1\u6838 ")]),_:2},1032,["onClick"])):t.status?k("",!0):(u(),r(v,{key:1,link:"",type:"warning",onClick:d=>w(t)},{default:o(()=>[C(" \u91CD\u65B0\u5BA1\u6838 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])]),R("div",ye,[e(O,{modelValue:a(i),"onUpdate:modelValue":l[3]||(l[3]=t=>ie(i)?i.value=t:null),onChange:a(c)},null,8,["modelValue","onChange"])])]),_:1})),[[Q,a(i).loading]]),a(h)?(u(),r(se,{key:0,ref_key:"editRef",ref:L,"dict-data":a(_),onSuccess:a(c),onClose:l[4]||(l[4]=t=>h.value=!1)},null,8,["dict-data","onSuccess"])):k("",!0),a(E)?(u(),r(ne,{key:1,ref_key:"detailRef",ref:F,"dict-data":a(_),onSuccess:a(c),onClose:l[5]||(l[5]=t=>E.value=!1)},null,8,["dict-data","onSuccess"])):k("",!0)])}}});export{ft as default};
|