2 lines
4.1 KiB
JavaScript
2 lines
4.1 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.4a7d92a3.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{b as Z}from"./index.9d2dd606.js";import{u as z}from"./usePaging.6a6670f9.js";import{u as G}from"./useDictOptions.fd4298a2.js";import{c as H}from"./purchase_order.5a23ad74.js";import"./lodash.9dc701ad.js";import{_ as J}from"./edit.vue_vue_type_script_setup_true_name_purchaseOrderEdit_lang.b5fba586.js";import{a as W}from"./vue-router.101084e3.js";import{d as F,s as X,r as u,Z as Y,ap as ee,o as p,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.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.773819d7.js";import"./system_store.8c2bce68.js";import"./moment.40bc58bf.js";import"./index.7e5e0979.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const se={class:"mt-4"},le={class:"flex mt-4 justify-end"},ie=F({name:"purchaseOrderLists"}),Xe=F({...ie,setup(ne){const h=X(),c=u(!1);u(!1),u([]);const b=W(),n=Y({store_id:"",order_id:"",is_mer:2,storage:""}),g=u([]),k=r=>{g.value=r.map(({id:a})=>a)},{dictData:y}=G(""),{pager:l,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,i=I,N=M,$=Q,S=ee("perms"),T=K;return p(),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((p(),f(v,{class:"!border-none",shadow:"never"},{default:o(()=>[E((p(),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(l).lists,onSelectionChange:k},{default:o(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u5355\u636E\u7F16\u53F7",prop:"order_id","show-overflow-tooltip":""}),e(i,{label:"\u5355\u636E\u91D1\u989D",prop:"total","show-overflow-tooltip":""}),e(i,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data","show-overflow-tooltip":""}),e(i,{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",le,[e($,{modelValue:t(l),"onUpdate:modelValue":a[1]||(a[1]=s=>te(l)?l.value=s:null),onChange:t(_)},null,8,["modelValue","onChange"])])]),_:1})),[[T,t(l).loading]]),t(c)?(p(),f(J,{key:0,ref_key:"editRef",ref:h,"dict-data":t(y),onSuccess:t(_),onClose:a[2]|
|