moreShopAdmin/dist/admin/assets/index.74d21149.js

2 lines
6.1 KiB
JavaScript

import{J as I,K,D as z,C as J,w as Q,F as Z,L as G,M as H,N as W,O as X}from"./element-plus.4a7d92a3.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{b as ee}from"./index.1ac19d28.js";import{u as oe}from"./usePaging.6a6670f9.js";import{u as te}from"./useDictOptions.1d4f0c9a.js";import{c as le}from"./purchase_order.48070fd3.js";import"./lodash.9dc701ad.js";import{_ as ae}from"./edit.vue_vue_type_script_setup_true_name_purchaseOrderEdit_lang.23e06150.js";import{a as ue}from"./system_store.490121ea.js";import{a as re}from"./vue-router.101084e3.js";import{d as V,s as se,r as _,Z as ne,ap as ie,o as i,c as D,U as e,L as t,u as o,T as pe,a9 as me,K as f,R as v,M as B,a as y,j as de,Q as ce,n as _e}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.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.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.89a57c4a.js";import"./moment.40bc58bf.js";import"./index.d55dd93b.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const fe={class:"mt-4"},ve={class:"flex mt-4 justify-end"},he=V({name:"purchaseOrderLists"}),no=V({...he,setup(Ee){const b=se(),h=_(!1),d=_(!1),g=_([]),k=re(),r=ne({store_id:"",order_id:"",is_mer:"",storage:""}),x=(s="")=>{d.value=!0,ue({name:s,page_size:50}).then(l=>{g.value=l.lists,setTimeout(()=>{d.value=!1},300)}).catch(l=>{setTimeout(()=>{d.value=!1},300)})},L=_([]),S=s=>{L.value=s.map(({id:l})=>l)},{dictData:T}=te(""),{pager:p,getLists:E,resetParams:P,resetPage:C}=oe({fetchFun:le,params:r}),R=async()=>{var s;h.value=!0,await _e(),(s=b.value)==null||s.open("add")},U=async s=>{k.push({path:"/order/purchase_order/details",query:{id:s.id}})};return E(),(s,l)=>{const n=I,w=K,m=z,N=J,c=Q,$=Z,F=G,O=ee,u=H,A=W,M=Y,j=ie("perms"),q=X;return i(),D("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e($,{class:"mb-[-16px]",model:o(r),inline:""},{default:t(()=>[e(m,{label:"\u6240\u5C5E\u95E8\u5E97",prop:"store_id"},{default:t(()=>[e(w,{modelValue:o(r).store_id,"onUpdate:modelValue":l[0]||(l[0]=a=>o(r).store_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":x,loading:o(d),style:{width:"240px"}},{default:t(()=>[(i(!0),D(pe,null,me(o(g),a=>(i(),f(n,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(m,{label:"\u5355\u636E\u7F16\u53F7",prop:"order_id"},{default:t(()=>[e(N,{class:"w-[280px]",modelValue:o(r).order_id,"onUpdate:modelValue":l[1]||(l[1]=a=>o(r).order_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u636E\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u7C7B\u578B",prop:"is_mer"},{default:t(()=>[e(w,{class:"w-[280px]",modelValue:o(r).is_mer,"onUpdate:modelValue":l[2]||(l[2]=a=>o(r).is_mer=a),placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",onChange:o(C)},{default:t(()=>[e(n,{label:"\u5546\u6237",value:"1"}),e(n,{label:"\u5E73\u53F0",value:"2"})]),_:1},8,["modelValue","onChange"])]),_:1}),e(m,{label:"\u5165\u5E93\u72B6\u6001",prop:"storage"},{default:t(()=>[e(w,{class:"w-[280px]",modelValue:o(r).storage,"onUpdate:modelValue":l[3]||(l[3]=a=>o(r).storage=a),placeholder:"\u8BF7\u9009\u62E9\u5165\u5E93\u72B6\u6001",onChange:o(C)},{default:t(()=>[e(n,{label:"\u672A\u5165\u5E93",value:"0"}),e(n,{label:"\u90E8\u5206\u5165\u5E93",value:"1"}),e(n,{label:"\u5DF2\u5165\u5E93",value:"2"})]),_:1},8,["modelValue","onChange"])]),_:1}),e(m,null,{default:t(()=>[e(c,{type:"primary",onClick:o(C)},{default:t(()=>[v("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:o(P)},{default:t(()=>[v("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),B((i(),f(F,{class:"!border-none",shadow:"never"},{default:t(()=>[B((i(),f(c,{type:"primary",onClick:R},{icon:t(()=>[e(O,{name:"el-icon-Plus"})]),default:t(()=>[v(" \u751F\u6210\u91C7\u8D2D\u8BA2\u5355 ")]),_:1})),[[j,["purchase_order.purchase_order/add"]]]),y("div",fe,[e(A,{data:o(p).lists,onSelectionChange:S},{default:t(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u6240\u5C5E\u5546\u6237",prop:"system_store","show-overflow-tooltip":""}),e(u,{label:"\u5355\u636E\u7F16\u53F7",prop:"order_id","show-overflow-tooltip":""}),e(u,{label:"\u5355\u636E\u91D1\u989D",prop:"total","show-overflow-tooltip":""}),e(u,{label:"\u5B9E\u9645\u91D1\u989D",prop:"actual","show-overflow-tooltip":""}),e(u,{label:"\u5B9E\u6536\u91D1\u989D",prop:"money","show-overflow-tooltip":""}),e(u,{label:"\u662F\u5426\u91C7\u8D2D",prop:"opurchase_name","show-overflow-tooltip":""}),e(u,{label:"\u7C7B\u578B",prop:"mer_name","show-overflow-tooltip":""}),e(u,{label:"\u5165\u5E93\u72B6\u6001",prop:"storage_name","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:a})=>[e(c,{type:"primary",link:"",onClick:Ce=>U(a)},{default:t(()=>[v(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),y("div",ve,[e(M,{modelValue:o(p),"onUpdate:modelValue":l[4]||(l[4]=a=>de(p)?p.value=a:null),onChange:o(E)},null,8,["modelValue","onChange"])])]),_:1})),[[q,o(p).loading]]),o(h)?(i(),f(ae,{key:0,ref_key:"editRef",ref:b,"dict-data":o(T),onSuccess:o(E),onClose:l[5]||(l[5]=a=>h.value=!1)},null,8,["dict-data","onSuccess"])):ce("",!0)])}}});export{no as default};