2024-05-25 17:25:14 +08:00
|
|
|
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),
|