ERP-admin/build/admin/assets/index.31bafbb6.js

2 lines
5.5 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 le}from"./usePaging.6a6670f9.js";import{u as ae}from"./useDictOptions.f8f89444.js";import{e as re}from"./supplier.930cb50d.js";import"./lodash.466e9fe4.js";import"./index.58242ff9.js";import{_ as ue}from"./edit.vue_vue_type_script_setup_true_name_supplierEdit_lang.a1380e65.js";import{_ as ne}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.422bac65.js";import{d as S,s as D,r as E,Z as se,o as r,c as F,U as e,L as o,u as t,T as V,a9 as x,K as s,R as b,M as pe,a as R,Q as w,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.7ba68099.js";import"./goods_label.a0d3704a.js";import"./picker.197acc10.js";import"./index.432b2bf9.js";import"./index.606807f5.js";import"./index.97ac23f5.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";import"./address.838098a9.js";const de={class:"mt-4"},_e={class:"flex mt-4 justify-end"},ce=S({name:"supplierLists"}),dt=S({...ce,setup(fe){const L=D(),y=D(),g=E(!1),B=E(!1),u=se({category_id:"",type_id:"",mer_name:""}),T=E([]),$=_=>{T.value=_.map(({id:a})=>a)},{dictData:m}=ae("show_status,mer_category_type,merchat_type,financial_type"),{pager:p,getLists:d,resetParams:I,resetPage:U}=le({fetchFun:re,params:u}),A=async _=>{var a,i;B.value=!0,await me(),(a=y.value)==null||a.open("edit"),(i=y.value)==null||i.setFormData(_)};return d(),(_,a)=>{const i=M,h=Y,c=z,f=Z,N=G,C=H,P=q,j=J,k=W,n=X,K=ee,O=oe,Q=te;return r(),F("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(j,{class:"mb-[-16px]",model:t(u),"label-width":"120px"},{default:o(()=>[e(P,null,{default:o(()=>[e(f,{span:6},{default:o(()=>[e(c,{label:"\u4F9B\u5E94\u5546\u5206\u7C7B",prop:"category_id"},{default:o(()=>[e(h,{modelValue:t(u).category_id,"onUpdate:modelValue":a[0]||(a[0]=l=>t(u).category_id=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546\u7C7B\u578B"},{default:o(()=>[(r(!0),F(V,null,x(t(m).mer_category_type,(l,v)=>(r(),s(i,{key:v,label:l.name,value:parseInt(l.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(f,{span:6},{default:o(()=>[e(c,{label:"\u4F9B\u5E94\u5546\u7C7B\u578B",prop:"type_id"},{default:o(()=>[e(h,{modelValue:t(u).type_id,"onUpdate:modelValue":a[1]||(a[1]=l=>t(u).type_id=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546\u7C7B\u578B"},{default:o(()=>[(r(!0),F(V,null,x(t(m).merchat_type,(l,v)=>(r(),s(i,{key:v,label:l.name,value:parseInt(l.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(f,{span:6},{default:o(()=>[e(c,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"mer_name"},{default:o(()=>[e(N,{modelValue:t(u).mer_name,"onUpdate:modelValue":a[2]||(a[2]=l=>t(u).mer_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F9B\u5E94\u5546\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:6},{default:o(()=>[e(c,null,{default:o(()=>[e(C,{type:"primary",onClick:t(U)},{default:o(()=>[b("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(C,{onClick:t(I)},{default:o(()=>[b("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),pe((r(),s(k,{class:"!border-none",shadow:"never"},{default:o(()=>[R("div",de,[e(K,{data:t(p).lists,onSelectionChange:$},{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:"\u521B\u5EFA\u65F6\u95F4",prop:"supplier.create_time","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:o(({row:l})=>[l.status?w("",!0):(r(),s(C,{key:0,link:"",type:"primary",onClick:v=>A(l)},{default:o(()=>[b(" \u5BA1\u6838 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])]),R("div",_e,[e(O,{modelValue:t(p),"onUpdate:modelValue":a[3]||(a[3]=l=>ie(p)?p.value=l:null),onChange:t(d)},null,8,["modelValue","onChange"])])]),_:1})),[[Q,t(p).loading]]),t(g)?(r(),s(ue,{key:0,ref_key:"editRef",ref:L,"dict-data":t(m),onSuccess:t(d),onClose:a[4]||(a[4]=l=>g.value=!1)},null,8,["dict-data","onSuccess"])):w("",!0),t(B)?(r(),s(ne,{key:1,ref_key:"detailRef",ref:y,"dict-data":t(m),onSuccess:t(d),onClose:a[5]||(a[5]=l=>B.value=!1)},null,8,["dict-data","onSuccess"])):w("",!0)])}}});export{dt as default};