2 lines
4.6 KiB
JavaScript
2 lines
4.6 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.a63a26dd.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{b as Z}from"./index.79885fb7.js";import{u as z}from"./usePaging.6a6670f9.js";import{u as G}from"./useDictOptions.1ff41454.js";import{c as H}from"./purchase_order.e8121b17.js";import"./lodash.2473fc51.js";import{_ as J}from"./edit.vue_vue_type_script_setup_true_name_purchaseOrderEdit_lang.10a6bb9e.js";import{a as W}from"./vue-router.101084e3.js";import{d as b,s as X,r as p,Z as Y,ap as oo,o as m,c as eo,U as o,L as e,u as t,R as d,M as C,K as f,a as E,j as to,Q as ao,n as ro}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.vue_vue_type_script_setup_true_lang.ab7008c1.js";import"./store_order.24e9ca87.js";import"./system_store.0480155e.js";import"./moment.40bc58bf.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const lo={class:"mt-4"},so={class:"flex mt-4 justify-end"},io=b({name:"purchaseOrderLists"}),Yo=b({...io,setup(no){const h=X(),c=p(!1);p(!1),p([]);const D=W(),n=Y({store_id:"",order_id:"",is_mer:2,storage:""}),F=p([]),g=l=>{F.value=l.map(({id:r})=>r)},{dictData:y}=G(""),{pager:i,getLists:_,resetParams:k,resetPage:B}=z({fetchFun:H,params:n}),V=async()=>{var l;c.value=!0,await ro(),(l=h.value)==null||l.open("add")},x=async l=>{D.push({path:"/order/purchase_order/details",query:{id:l.id}})};return _(),(l,r)=>{const L=O,w=U,u=j,P=q,v=A,R=Z,a=I,N=M,$=Q,S=oo("perms"),T=K;return m(),eo("div",null,[o(v,{class:"!border-none mb-4",shadow:"never"},{default:e(()=>[o(P,{class:"mb-[-16px]",model:t(n),inline:""},{default:e(()=>[o(w,{label:"\u5355\u636E\u7F16\u53F7",prop:"order_id"},{default:e(()=>[o(L,{class:"w-[280px]",modelValue:t(n).order_id,"onUpdate:modelValue":r[0]||(r[0]=s=>t(n).order_id=s),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u636E\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),o(w,null,{default:e(()=>[o(u,{type:"primary",onClick:t(B)},{default:e(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(u,{onClick:t(k)},{default:e(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),C((m(),f(v,{class:"!border-none",shadow:"never"},{default:e(()=>[C((m(),f(u,{type:"primary",onClick:V},{icon:e(()=>[o(R,{name:"el-icon-Plus"})]),default:e(()=>[d(" \u751F\u6210\u91C7\u8D2D\u8BA2\u5355 ")]),_:1})),[[S,["purchase_order.purchase_order/add"]]]),E("div",lo,[o(N,{data:t(i).lists,onSelectionChange:g},{default:e(()=>[o(a,{type:"selection",width:"55"}),o(a,{label:"\u6240\u5C5E\u5546\u6237",prop:"system_store","show-overflow-tooltip":""}),o(a,{label:"\u5355\u636E\u7F16\u53F7",prop:"order_id","show-overflow-tooltip":""}),o(a,{label:"\u5355\u636E\u91D1\u989D",prop:"total","show-overflow-tooltip":""}),o(a,{label:"\u5B9E\u9645\u91D1\u989D",prop:"actual","show-overflow-tooltip":""}),o(a,{label:"\u5B9E\u6536\u91D1\u989D",prop:"money","show-overflow-tooltip":""}),o(a,{label:"\u662F\u5426\u91C7\u8D2D",prop:"opurchase_name","show-overflow-tooltip":""}),o(a,{label:"\u7C7B\u578B",prop:"mer_name","show-overflow-tooltip":""}),o(a,{label:"\u5165\u5E93\u72B6\u6001",prop:"storage_name","show-overflow-tooltip":""}),o(a,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data","show-overflow-tooltip":""}),o(a,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:e(({row:s})=>[o(u,{type:"primary",link:"",onClick:uo=>x(s)},{default:e(()=>[d(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),E("div",so,[o($,{modelValue:t(i),"onUpdate:modelValue":r[1]||(r[1]=s=>to(i)?i.value=s:null),onChange:t(_)},null,8,["modelValue","onChange"])])]),_:1})),[[T,t(i).loading]]),t(c)?(m(),f(J,{key:0,ref_key:"editRef",ref:h,"dict-data":t(y),onSuccess:t(_),onClose:r[2]||(r[2]=s=>c.value=!1)},null,8,["dict-data","onSuccess"])):ao("",!0)])}}});export{Yo as default};
|