moreShopAdmin/build/admin/assets/index.4c99d01d.js

2 lines
6.2 KiB
JavaScript
Raw Normal View History

2024-08-10 20:55:05 +08:00
import{k as B,J as z,K as J,D as Q,C as Z,w as G,F as H,L as W,M as X,N as Y,O as ee}from"./element-plus.a63a26dd.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{b as te}from"./index.001143d7.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as le}from"./useDictOptions.b7746e6d.js";import{e as ue,f as re,c as se}from"./purchase_order.8573edce.js";import"./lodash.2473fc51.js";import{_ as ne}from"./edit.vue_vue_type_script_setup_true_name_purchaseOrderEdit_lang.2166fe1c.js";import{a as ie}from"./system_store.750438da.js";import{a as pe}from"./vue-router.101084e3.js";import{d as x,s as me,r as E,Z as de,ap as ce,o as n,c as V,U as e,L as t,u as o,T as _e,a9 as fe,K as c,R as _,M as b,a as k,j as Ee,Q as he}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.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ebab5e6f.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const Ce={class:"mt-4"},ve={class:"flex mt-4 justify-end"},be=x({name:"purchaseOrderLists"}),no=x({...be,setup(we){const P=me(),w=E(!1),f=E(!1),g=E([]),A=pe(),r=de({store_id:"",order_id:"",is_mer:"",storage:""}),L=(s="")=>{f.value=!0,ie({name:s,page_size:50}).then(a=>{g.value=a.lists,setTimeout(()=>{f.value=!1},300)}).catch(a=>{setTimeout(()=>{f.value=!1},300)})},O=E([]),S=s=>{O.value=s.map(({id:a})=>a)},{dictData:R}=le(""),{pager:p,getLists:h,resetParams:T,resetPage:C}=ae({fetchFun:se,params:r}),U=async()=>{ue().then(s=>{B.success("\u63D0\u4EA4\u6210\u529F")})},N=async()=>{re().then(s=>{B.success("\u63D0\u4EA4\u6210\u529F")})},$=async s=>{A.push({path:"/order/purchase_order/details",query:{id:s.id}})};return h(),(s,a)=>{const i=z,v=J,m=Q,M=Z,d=G,j=H,D=W,F=te,u=X,q=Y,I=oe,y=ce("perms"),K=ee;return n(),V("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(j,{class:"mb-[-16px]",model:o(r),inline:""},{default:t(()=>[e(m,{label:"\u6240\u5C5E\u95E8\u5E97",prop:"store_id"},{default:t(()=>[e(v,{modelValue:o(r).store_id,"onUpdate:modelValue":a[0]||(a[0]=l=>o(r).store_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":L,loading:o(f),style:{width:"240px"}},{default:t(()=>[(n(!0),V(_e,null,fe(o(g),l=>(n(),c(i,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(m,{label:"\u5355\u636E\u7F16\u53F7",prop:"order_id"},{default:t(()=>[e(M,{class:"w-[280px]",modelValue:o(r).order_id,"onUpdate:modelValue":a[1]||(a[1]=l=>o(r).order_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u636E\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u7C7B\u578B",prop:"is_mer"},{default:t(()=>[e(v,{class:"w-[280px]",modelValue:o(r).is_mer,"onUpdate:modelValue":a[2]||(a[2]=l=>o(r).is_mer=l),placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",onChange:o(C)},{default:t(()=>[e(i,{label:"\u5546\u6237",value:"1"}),e(i,{label:"\u5E73\u53F0",value:"2"})]),_:1},8,["modelValue","onChange"])]),_:1}),e(m,{label:"\u5165\u5E93\u72B6\u6001",prop:"storage"},{default:t(()=>[e(v,{class:"w-[280px]",modelValue:o(r).storage,"onUpdate:modelValue":a[3]||(a[3]=l=>o(r).storage=l),placeholder:"\u8BF7\u9009\u62E9\u5165\u5E93\u72B6\u6001",onChange:o(C)},{default:t(()=>[e(i,{label:"\u672A\u