moreShopAdmin/dist/admin/assets/index.8ebd6a2f.js

2 lines
8.0 KiB
JavaScript

import{U as re,J as ue,K as se,D as ne,C as ie,w as pe,F as me,L as de,M as ce,N as _e,O as fe}from"./element-plus.a63a26dd.js";import{_ as ve}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{u as he}from"./usePaging.6a6670f9.js";import{u as we}from"./useDictOptions.da569484.js";import{h as Ee,i as Ce}from"./warehouse_order.df1ba9b0.js";import"./lodash.2473fc51.js";import{f as Fe}from"./index.5bbc12c8.js";import{_ as De}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.6887ff59.js";import{_ as be}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.95a8fe6a.js";import{a as ke}from"./system_store.0486886b.js";import{h as $}from"./moment.40bc58bf.js";import{a as ge}from"./supplier.5b0316e4.js";import{d as j,s as R,r as p,Z as ye,af as Ve,ap as Be,o as n,c as k,U as e,L as l,u as t,a as g,T as N,a9 as O,K as d,j as P,R as v,M as y,Q as A,n as I}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"./vue-router.101084e3.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.5f9b7233.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.dccd0873.js";import"./store_product.6d73dabd.js";import"./store_branch_product.82f3fc31.js";import"./warehouse_product_storege.a0f043a8.js";import"./warehouse_product.45892a67.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.1345c496.js";const xe={class:"flex items-center mr-4"},Le={class:"mt-4"},Se={class:"flex mt-4 justify-end"},Te=j({name:"warehouseOrderLists"}),xo=j({...Te,setup(Ue){const C=R(),F=R(),D=p(!1),b=p(!1),r=ye({warehouse_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:""}),K=p([]),W=s=>{K.value=s.map(({id:o})=>o)},{dictData:V}=we(""),{pager:h,getLists:c,resetParams:q,resetPage:B}=he({fetchFun:Ce,params:r}),z=async s=>{var o,i;D.value=!0,await I(),(o=C.value)==null||o.open("edit"),(i=C.value)==null||i.setFormData(s)},J=async s=>{await Fe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ee({id:s}),c()},Q=async s=>{var o,i;b.value=!0,await I(),(o=F.value)==null||o.open(),(i=F.value)==null||i.getDetail(s)},m=p([]),Z=()=>{m.value[0]&&m.value[1]?(r.start_time=$(m.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=$(m.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),c()},w=p(!1),x=p([]),G=(s="")=>{w.value=!0,ke({name:s,page_size:50}).then(o=>{x.value=o.lists,setTimeout(()=>{w.value=!1},300)}).catch(o=>{setTimeout(()=>{w.value=!1},300)})},E=p(!1),L=p([]),H=(s="")=>{E.value=!0,ge({}).then(o=>{L.value=o.lists,setTimeout(()=>{E.value=!1},300)}).catch(o=>{setTimeout(()=>{E.value=!1},300)})};return c(),(s,o)=>{const i=ue,S=se,_=ne,T=ie,X=re,f=pe,ee=me,U=de,oe=Ve("router-link"),u=ce,te=_e,ae=ve,M=Be("perms"),le=fe;return n(),k("div",null,[e(U,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(ee,{class:"mb-[-16px]",model:t(r),inline:""},{default:l(()=>[e(_,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:l(()=>[g("div",xe,[e(S,{modelValue:t(r).store_id,"onUpdate:modelValue":o[0]||(o[0]=a=>t(r).store_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":G,loading:t(w),style:{width:"240px"},onChange:t(B)},{default:l(()=>[(n(!0),k(N,null,O(t(x),a=>(n(),d(i,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),e(_,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:l(()=>[e(T,{class:"w-[280px]",modelValue:t(r).warehouse_id,"onUpdate:modelValue":o[1]||(o[1]=a=>t(r).warehouse_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:l(()=>[e(S,{modelValue:t(r).supplier_id,"onUpdate:modelValue":o[2]||(o[2]=a=>t(r).supplier_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u4F9B\u5E94\u5546\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":H,loading:t(E),style:{width:"240px"}},{default:l(()=>[(n(!0),k(N,null,O(t(L),a=>(n(),d(i,{key:a.id,label:a.mer_name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(_,{label:"\u5546\u54C1",prop:"product_name"},{default:l(()=>[e(T,{class:"w-[280px]",modelValue:t(r).product_name,"onUpdate:modelValue":o[3]||(o[3]=a=>t(r).product_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u65E5\u671F",prop:"create_time"},{default:l(()=>[e(X,{modelValue:t(m),"onUpdate:modelValue":o[4]||(o[4]=a=>P(m)?m.value=a:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:Z},null,8,["modelValue"])]),_:1}),e(_,null,{default:l(()=>[e(f,{type:"primary",onClick:t(B)},{default:l(()=>[v("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:t(q)},{default:l(()=>[v("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),y((n(),d(U,{class:"!border-none",shadow:"never"},{default:l(()=>[e(oe,{to:{path:"warehousing"},class:"ml-4"},{default:l(()=>[e(f,{type:"primary"},{default:l(()=>[v(" \u5165\u5E93 ")]),_:1})]),_:1}),g("div",Le,[e(te,{data:t(h).lists,onSelectionChange:W},{default:l(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"id",prop:"id","show-overflow-tooltip":"",width:"55"}),e(u,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(u,{label:"\u4ED3\u5E93",prop:"warehouse_name","show-overflow-tooltip":""}),e(u,{label:"\u4F9B\u5E94\u5546",prop:"supplier_name","show-overflow-tooltip":""}),e(u,{label:"\u5355\u53F7",prop:"code","show-overflow-tooltip":""}),e(u,{label:"\u72B6\u6001",prop:"financial_pm_name","show-overflow-tooltip":""}),e(u,{label:"\u586B\u5199\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(u,{label:"\u5DF2\u7ED3",prop:"completed_amount","show-overflow-tooltip":""}),e(u,{label:"\u672A\u7ED3",prop:"outstanding_amount","show-overflow-tooltip":""}),e(u,{label:"\u603B\u4EF7\u683C",prop:"total_price","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:a})=>[e(f,{type:"primary",link:"",onClick:Y=>Q(a)},{default:l(()=>[v("\u8BE6\u60C5")]),_:2},1032,["onClick"]),y((n(),d(f,{type:"primary",link:"",onClick:Y=>z(a)},{default:l(()=>[v(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[M,["warehouse_order.warehouse_order/edit"]]]),y((n(),d(f,{type:"danger",link:"",onClick:Y=>J(a.id)},{default:l(()=>[v(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[M,["warehouse_order.warehouse_order/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",Se,[e(ae,{modelValue:t(h),"onUpdate:modelValue":o[5]||(o[5]=a=>P(h)?h.value=a:null),onChange:t(c)},null,8,["modelValue","onChange"])])]),_:1})),[[le,t(h).loading]]),t(D)?(n(),d(De,{key:0,ref_key:"editRef",ref:C,"dict-data":t(V),onSuccess:t(c),onClose:o[6]||(o[6]=a=>D.value=!1)},null,8,["dict-data","onSuccess"])):A("",!0),t(b)?(n(),d(be,{key:1,ref_key:"detailsRef",ref:F,onSuccess:t(c),onClose:o[7]||(o[7]=a=>b.value=!1),dictData:t(V)},null,8,["onSuccess","dictData"])):A("",!0)])}}});export{xo as default};