ERP-admin/build/admin/assets/index.9e8792f1.js

2 lines
6.7 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.bccb9376.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.120de7ce.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as le}from"./useDictOptions.a4142f6d.js";import{f as ue}from"./supplier.5f22eb92.js";import"./lodash.466e9fe4.js";import"./index.68fb39c6.js";import{_ as re}from"./edit.vue_vue_type_script_setup_true_name_supplierEdit_lang.c942c930.js";import{_ as se}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.65e37d5f.js";import{d as S,s as V,r as b,Z as pe,o as u,c as n,U as t,L as o,u as a,T as A,a9 as x,K as p,R as C,M as ne,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"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.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.62bb260f.js";import"./goods_label.1fae9da6.js";import"./picker.1a023d0c.js";import"./index.49b5f729.js";import"./index.8558506a.js";import"./index.98da9f68.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";import"./address.d7a9635e.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"}),St=S({...Be,setup(ve){const L=V(),F=V(),h=b(!1),E=b(!1),r=pe({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:r}),g=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,w=Y,y=z,B=Z,N=G,v=H,P=q,j=J,D=W,s=X,K=ee,O=oe,Q=te;return u(),n("div",null,[t(D,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(j,{class:"mb-[-16px]",model:a(r),"label-width":"120px"},{default:o(()=>[t(P,null,{default:o(()=>[t(B,{span:6},{default:o(()=>[t(y,{label:"\u4F9B\u5E94\u5546\u5206\u7C7B",prop:"category_id"},{default:o(()=>[t(w,{modelValue:a(r).category_id,"onUpdate:modelValue":l[0]||(l[0]=e=>a(r).category_id=e),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546\u7C7B\u578B"},{default:o(()=>[(u(!0),n(A,null,x(a(_).mer_category_type,(e,d)=>(u(),p(m,{key:d,label:e.name,value:parseInt(e.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(B,{span:6},{default:o(()=>[t(y,{label:"\u4F9B\u5E94\u5546\u7C7B\u578B",prop:"type_id"},{default:o(()=>[t(w,{modelValue:a(r).type_id,"onUpdate:modelValue":l[1]||(l[1]=e=>a(r).type_id=e),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546\u7C7B\u578B"},{default:o(()=>[(u(!0),n(A,null,x(a(_).merchat_type,(e,d)=>(u(),p(m,{key:d,label:e.name,value:parseInt(e.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(B,{span:6},{default:o(()=>[t(y,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"mer_name"},{default:o(()=>[t(N,{modelValue:a(r).mer_name,"onUpdate:modelValue":l[2]||(l[2]=e=>a(r).mer_name=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F9B\u5E94\u5546\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),t(B,{span:6},{default:o(()=>[t(y,null,{default:o(()=>[t(v,{type:"primary",onClick:a(U)},{default:o(()=>[C("\u67E5\u8BE2")]),_:1},8,["onClick"]),t(v,{onClick:a(I)},{default:o(()=>[C("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),ne((u(),p(D,{class:"!border-none",shadow:"never"},{default:o(()=>[R("div",de,[t(K,{data:a(i).lists,onSelectionChange:T},{default:o(()=>[t(s,{label:"ID",prop:"id",width:"100","show-overflow-tooltip":""}),t(s,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier.mer_name","show-overflow-tooltip":""}),t(s,{label:"\u8054\u7CFB\u4EBA",prop:"supplier.service_user","show-overflow-tooltip":""}),t(s,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"supplier.service_phone","show-overflow-tooltip":""}),t(s,{label:"\u5165\u9A7B\u72B6\u6001",prop:"status","show-overflow-tooltip":""},{default:o(({row:e})=>[e.status===0&&(e.mark==""||e.mark==null)?(u(),n("span",_e,"\u5F85\u5BA1\u6838")):e.status===1?(u(),n("span",ce,"\u5BA1\u6838\u901A\u8FC7")):e.status===0?(u(),n("span",fe,"\u5BA1\u6838\u4E0D\u901A\u8FC7")):k("",!0)]),_:1}),t(s,{label:"\u5BA1\u6838\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),t(s,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"supplier.create_time","show-overflow-tooltip":""}),t(s,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:o(({row:e})=>[!e.status&&(e.mark==""||e.mark==null)?(u(),p(v,{key:0,link:"",type:"primary",onClick:d=>g(e)},{default:o(()=>[C(" \u5BA1\u6838 ")]),_:2},1032,["onClick"])):!e.status&&!e.mark?(u(),p(v,{key:1,link:"",type:"warning",onClick:d=>g(e)},{default:o(()=>[C(" \u91CD\u65B0\u5BA1\u6838 ")]),_:2},1032,["onClick"])):k("",!0)]),_:1})]),_:1},8,["data"])]),R("div",ye,[t(O,{modelValue:a(i),"onUpdate:modelValue":l[3]||(l[3]=e=>ie(i)?i.value=e:null),onChange:a(c)},null,8,["modelValue","onChange"])])]),_:1})),[[Q,a(i).loading]]),a(h)?(u(),p(re,{key:0,ref_key:"editRef",ref:L,"dict-data":a(_),onSuccess:a(c),onClose:l[4]||(l[4]=e=>h.value=!1)},null,8,["dict-data","onSuccess"])):k("",!0),a(E)?(u(),p(se,{key:1,ref_key:"detailRef",ref:F,"dict-data":a(_),onSuccess:a(c),onClose:l[5]||(l[5]=e=>E.value=!1)},null,8,["dict-data","onSuccess"])):k("",!0)])}}});export{St as default};