ERP-admin/build/admin/assets/index.47c482f0.js

2 lines
5.8 KiB
JavaScript

import{C as I,D as M,w as q,F as K,L as O,M as Q,N as Z,O as z}from"./element-plus.73c9e9a6.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.317e431e.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.acdb5f99.js";import{f as J,b as W}from"./index.bd5cd373.js";import{u as X}from"./usePaging.77fa9d39.js";import{u as Y}from"./useDictOptions.3ea9a314.js";import{d as ee,e as oe}from"./supplier.b49fa631.js";import"./lodash.403d4198.js";import{_ as te}from"./edit.vue_vue_type_script_setup_true_name_supplierEdit_lang.31000c3d.js";import{d as V,s as le,r as D,Z as ae,ap as ue,o as n,c as se,U as e,L as t,u as o,R as m,M as _,K as d,a as g,j as ie,Q as ne,n as k}from"./@vue.663bc523.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.4b5afb22.js";import"./@element-plus.8b1118e2.js";import"./dayjs.3f38f327.js";import"./axios.18becb61.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.58fac957.js";import"./pinia.068f0ef2.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.e6143ca6.js";import"./color.d79aa98b.js";import"./clone.a63396d9.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.48cb4095.js";import"./vue-clipboard3.6d09ff6e.js";import"./clipboard.564aa4b9.js";import"./echarts.8485a033.js";import"./zrender.b2f30540.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.85e4ac8b.js";import"./index.fa58e261.js";const re={class:"mt-4"},pe={class:"flex mt-4 justify-end"},me=V({name:"supplierLists"}),He=V({...me,setup(de){const f=le(),v=D(!1),i=ae({category_id:"",type_id:"",mer_name:""}),C=D([]),x=s=>{C.value=s.map(({id:l})=>l)},{dictData:B}=Y("show_status"),{pager:c,getLists:w,resetParams:$,resetPage:A}=X({fetchFun:oe,params:i}),L=async()=>{var s;v.value=!0,await k(),(s=f.value)==null||s.open("add")},S=async s=>{var l,r;v.value=!0,await k(),(l=f.value)==null||l.open("edit"),(r=f.value)==null||r.setFormData(s)},y=async s=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:s}),w()};return w(),(s,l)=>{const r=I,F=M,p=q,N=K,h=O,P=W,u=Q,E=H,R=Z,U=G,b=ue("perms"),T=z;return n(),se("div",null,[e(h,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(N,{class:"mb-[-16px]",model:o(i),inline:""},{default:t(()=>[e(F,{label:"\u5546\u6237\u5206\u7C7B id",prop:"category_id"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:o(i).category_id,"onUpdate:modelValue":l[0]||(l[0]=a=>o(i).category_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u5206\u7C7B id"},null,8,["modelValue"])]),_:1}),e(F,{label:"\u5E97\u94FA\u7C7B\u578B id",prop:"type_id"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:o(i).type_id,"onUpdate:modelValue":l[1]||(l[1]=a=>o(i).type_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5E97\u94FA\u7C7B\u578B id"},null,8,["modelValue"])]),_:1}),e(F,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:o(i).mer_name,"onUpdate:modelValue":l[2]||(l[2]=a=>o(i).mer_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(F,null,{default:t(()=>[e(p,{type:"primary",onClick:o(A)},{default:t(()=>[m("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:o($)},{default:t(()=>[m("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((n(),d(h,{class:"!border-none",shadow:"never"},{default:t(()=>[_((n(),d(p,{type:"primary",onClick:L},{icon:t(()=>[e(P,{name:"el-icon-Plus"})]),default:t(()=>[m(" \u65B0\u589E ")]),_:1})),[[b,["supplier.supplier/add"]]]),_((n(),d(p,{disabled:!o(C).length,onClick:l[3]||(l[3]=a=>y(o(C)))},{default:t(()=>[m(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[b,["supplier.supplier/delete"]]]),g("div",re,[e(R,{data:o(c).lists,onSelectionChange:x},{default:t(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u5546\u6237\u5206\u7C7B id",prop:"category_id","show-overflow-tooltip":""}),e(u,{label:"\u5E97\u94FA\u7C7B\u578B id",prop:"type_id","show-overflow-tooltip":""}),e(u,{label:"\u5546\u6237\u540D\u79F0",prop:"mer_name","show-overflow-tooltip":""}),e(u,{label:"\u7ED3\u7B97\u5468\u671F\uFF0C\u5355\u4F4D\u5929",prop:"settle_cycle","show-overflow-tooltip":""}),e(u,{label:"\u5229\u7387",prop:"interest_rate","show-overflow-tooltip":""}),e(u,{label:"\u6807\u7B7E",prop:"sys_labels","show-overflow-tooltip":""}),e(u,{label:"\u5546\u6237\u5730\u5740",prop:"mer_address","show-overflow-tooltip":""}),e(u,{label:"\u5546\u6237\u662F\u5426\u7981\u75280\u9501\u5B9A,1\u6B63\u5E38",prop:"status"},{default:t(({row:a})=>[e(E,{options:o(B).show_status,value:a.status},null,8,["options","value"])]),_:1}),e(u,{label:"\u63D0\u6210\u6BD4\u4F8B",prop:"commission_rate","show-overflow-tooltip":""}),e(u,{label:"\u5546\u6237\u624B\u7EED\u8D39\u5355\u72EC\u8BBE\u7F6E 0 \u5173\u95ED 1 \u5F00\u542F",prop:"commission_switch"},{default:t(({row:a})=>[e(E,{options:o(B).show_status,value:a.commission_switch},null,8,["options","value"])]),_:1}),e(u,{label:"\u5546\u6237\u4F59\u989D",prop:"mer_money","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:a})=>[_((n(),d(p,{type:"primary",link:"",onClick:j=>S(a)},{default:t(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[b,["supplier.supplier/edit"]]]),_((n(),d(p,{type:"danger",link:"",onClick:j=>y(a.id)},{default:t(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[b,["supplier.supplier/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",pe,[e(U,{modelValue:o(c),"onUpdate:modelValue":l[4]||(l[4]=a=>ie(c)?c.value=a:null),onChange:o(w)},null,8,["modelValue","onChange"])])]),_:1})),[[T,o(c).loading]]),o(v)?(n(),d(te,{key:0,ref_key:"editRef",ref:f,"dict-data":o(B),onSuccess:o(w),onClose:l[5]||(l[5]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):ne("",!0)])}}});export{He as default};