2 lines
5.4 KiB
JavaScript
2 lines
5.4 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.619595c4.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.02c63712.js";import{u as le}from"./usePaging.6a6670f9.js";import{u as ae}from"./useDictOptions.2130484f.js";import{e as re}from"./supplier.b8e3d688.js";import"./lodash.0987e768.js";import"./index.adbcc6f1.js";import{_ as ue}from"./edit.vue_vue_type_script_setup_true_name_supplierEdit_lang.bcd3a5db.js";import{_ as ne}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.04bc6114.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.6ad9ae30.js";import"./axios.fbe06b45.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.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.316b9a3d.js";import"./vue-clipboard3.f9a42727.js";import"./clipboard.bf37ca4b.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./dialogTableConfig.726c9c98.js";import"./goods_label.a18dcfab.js";import"./picker.cee998d0.js";import"./index.122ff80d.js";import"./index.a062bd93.js";import"./index.f9c4a330.js";import"./vuedraggable.4bfa7ed1.js";import"./vue.3bfea163.js";import"./sortablejs.2765eebe.js";import"./address.ad1b908f.js";const de={class:"mt-4"},_e={class:"flex mt-4 justify-end"},ce=S({name:"supplierLists"}),pt=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)},{defau
|