moreShopAdmin/build/admin/assets/index.96fc4bf8.js

2 lines
4.2 KiB
JavaScript

import{C as O,D as U,w as j,F as q,L as A,M as I,N as M,O as K}from"./element-plus.7e347b00.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{b as Z}from"./index.e8dd0072.js";import{u as z}from"./usePaging.6a6670f9.js";import{u as G}from"./useDictOptions.69d89711.js";import{c as H}from"./purchase_order.f39aab18.js";import"./lodash.4e6d2a38.js";import{_ as J}from"./edit.vue_vue_type_script_setup_true_name_purchaseOrderEdit_lang.cae8283e.js";import{a as W}from"./vue-router.101084e3.js";import{d as F,s as X,r as p,Z as Y,ap as ee,o as u,c as oe,U as e,L as o,u as t,R as d,M as E,K as f,a as w,j as te,Q as ae,n as re}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import"./store_order.d3e36701.js";import"./system_store.ca3ec039.js";import"./moment.40bc58bf.js";import"./index.6f70f589.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const se={class:"mt-4"},ie={class:"flex mt-4 justify-end"},le=F({name:"purchaseOrderLists"}),oo=F({...le,setup(ne){const h=X(),c=p(!1);p(!1),p([]);const b=W(),n=Y({store_id:"",order_id:"",is_mer:2,storage:""}),g=p([]),k=r=>{g.value=r.map(({id:a})=>a)},{dictData:y}=G(""),{pager:i,getLists:_,resetParams:D,resetPage:V}=z({fetchFun:H,params:n}),x=async()=>{var r;c.value=!0,await re(),(r=h.value)==null||r.open("add")},B=async r=>{b.push({path:"/order/purchase_order/details",query:{id:r.id}})};return _(),(r,a)=>{const L=O,C=U,m=j,P=q,v=A,R=Z,l=I,N=M,$=Q,S=ee("perms"),T=K;return u(),oe("div",null,[e(v,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(P,{class:"mb-[-16px]",model:t(n),inline:""},{default:o(()=>[e(C,{label:"\u5355\u636E\u7F16\u53F7",prop:"order_id"},{default:o(()=>[e(L,{class:"w-[280px]",modelValue:t(n).order_id,"onUpdate:modelValue":a[0]||(a[0]=s=>t(n).order_id=s),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u636E\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(C,null,{default:o(()=>[e(m,{type:"primary",onClick:t(V)},{default:o(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(m,{onClick:t(D)},{default:o(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),E((u(),f(v,{class:"!border-none",shadow:"never"},{default:o(()=>[E((u(),f(m,{type:"primary",onClick:x},{icon:o(()=>[e(R,{name:"el-icon-Plus"})]),default:o(()=>[d(" \u751F\u6210\u91C7\u8D2D\u8BA2\u5355 ")]),_:1})),[[S,["purchase_order.purchase_order/add"]]]),w("div",se,[e(N,{data:t(i).lists,onSelectionChange:k},{default:o(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5355\u636E\u7F16\u53F7",prop:"order_id","show-overflow-tooltip":""}),e(l,{label:"\u5355\u636E\u91D1\u989D",prop:"total","show-overflow-tooltip":""}),e(l,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:s})=>[e(m,{type:"primary",link:"",onClick:me=>B(s)},{default:o(()=>[d(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),w("div",ie,[e($,{modelValue:t(i),"onUpdate:modelValue":a[1]||(a[1]=s=>te(i)?i.value=s:null),onChange:t(_)},null,8,["modelValue","onChange"])])]),_:1})),[[T,t(i).loading]]),t(c)?(u(),f(J,{key:0,ref_key:"editRef",ref:h,"dict-data":t(y),onSuccess:t(_),onClose:a[2]||(a[2]=s=>c.value=!1)},null,8,["dict-data","onSuccess"])):ae("",!0)])}}});export{oo as default};