2024-08-18 12:11:00 +08:00
|
|
|
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
|