moreShopAdmin/build/admin/assets/index.cfe6e457.js

2 lines
6.1 KiB
JavaScript

import{U as I,C as q,D as K,w as Q,F as W,L as Z,M as G,N as H,O as J}from"./element-plus.4a7d92a3.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.ec0d2154.js";import{u as oe}from"./usePaging.6a6670f9.js";import{u as te}from"./useDictOptions.b562e996.js";import{a as ae}from"./warehouse_order.5bb32ca5.js";import"./lodash.9dc701ad.js";import{f as re}from"./index.2d9aaf87.js";import{_ as le}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.c198fef4.js";import{h as k}from"./moment.40bc58bf.js";import{g as D}from"./beforehand_order.cfdd6c6b.js";import{d as B,s as ie,r as n,Z as ne,i as se,af as me,ap as pe,o as f,c as ue,U as e,L as t,u as o,j as g,R as c,M as E,K as w,a as b,Q as de,n as ce}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"./index.1c58232d.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./vue-router.101084e3.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_name_systemStoreLists_lang.3697ac4c.js";import"./store_product.8afaf223.js";import"./store_branch_product.39fd5e71.js";import"./warehouse_product_storege.c8dd8553.js";import"./purchase_product_offer.5a1834bd.js";import"./beforehand_order_cart_info.143c610f.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.9c44efd3.js";import"./delivery_service.4969ed87.js";import"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.a361d325.js";import"./warehouse.ba46f8e5.js";import"./supplier.41b8ebc5.js";import"./warehousing.vue_vue_type_script_setup_true_name_subOrder_lang.d069b899.js";import"./outbound.vue_vue_type_script_setup_true_name_subOrder_lang.59238dac.js";import"./system_store.415e10e7.js";const _e={class:"mt-4"},fe={class:"flex mt-4 justify-end"},he=B({name:"warehouseOrderLists"}),Fo=B({...he,setup(ve){const h=ie();n(!1);const v=n(!1),r=ne({order_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:""}),y=n([]),V=p=>{y.value=p.map(({id:a})=>a)},{dictData:x}=te(""),{pager:m,getLists:u,resetParams:Y,resetPage:M}=oe({fetchFun:D,params:r}),A=async p=>{await re.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ae({id:p}),u()},L=async p=>{var a,_;v.value=!0,await ce(),(a=h.value)==null||a.open(),(_=h.value)==null||_.getDetail(p)},s=n([]),T=()=>{s.value[0]&&s.value[1]?(r.start_time=k(s.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=k(s.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),u()};return n(!1),n([]),n(!1),n([]),se(()=>{u()}),(p,a)=>{const _=q,C=K,$=I,d=Q,N=ee,P=W,F=Z,R=me("router-link"),l=G,S=H,U=X,O=pe("perms"),z=J;return f(),ue("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(P,{class:"mb-[-16px]",model:o(r),inline:""},{default:t(()=>[e(C,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:t(()=>[e(_,{class:"w-[280px]",modelValue:o(r).order_id,"onUpdate:modelValue":a[0]||(a[0]=i=>o(r).order_id=i),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(C,{label:"\u65E5\u671F",prop:"create_time"},{default:t(()=>[e($,{modelValue:o(s),"onUpdate:modelValue":a[1]||(a[1]=i=>g(s)?s.value=i:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:T},null,8,["modelValue"])]),_:1}),e(C,null,{default:t(()=>[e(d,{type:"primary",onClick:o(M)},{default:t(()=>[c("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(d,{onClick:o(Y)},{default:t(()=>[c("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(N,{class:"ml-2.5","fetch-fun":o(D),params:o(r),"page-size":o(m).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),E((f(),w(F,{class:"!border-none",shadow:"never"},{default:t(()=>[e(R,{to:{path:"beforehand_order_add"},class:"ml-4"},{default:t(()=>[e(d,{type:"primary"},{default:t(()=>[c(" \u6DFB\u52A0 ")]),_:1})]),_:1}),b("div",_e,[e(S,{data:o(m).lists,onSelectionChange:V},{default:t(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"id",prop:"id","show-overflow-tooltip":"",width:"55"}),e(l,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(l,{label:"\u5355\u53F7",prop:"order_id","show-overflow-tooltip":""}),e(l,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type_name","show-overflow-tooltip":""}),e(l,{label:"\u586B\u5199\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(l,{label:"\u603B\u4EF7\u683C",prop:"total_price","show-overflow-tooltip":""}),e(l,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:i})=>[e(d,{type:"primary",link:"",onClick:j=>L(i)},{default:t(()=>[c("\u8BE6\u60C5")]),_:2},1032,["onClick"]),E((f(),w(d,{type:"danger",link:"",onClick:j=>A(i.id)},{default:t(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[O,["warehouse_order.warehouse_order/delete"]]])]),_:1})]),_:1},8,["data"])]),b("div",fe,[e(U,{modelValue:o(m),"onUpdate:modelValue":a[2]||(a[2]=i=>g(m)?m.value=i:null),onChange:o(u)},null,8,["modelValue","onChange"])])]),_:1})),[[z,o(m).loading]]),o(v)?(f(),w(le,{key:0,ref_key:"detailsRef",ref:h,onSuccess:o(u),onClose:a[3]||(a[3]=i=>v.value=!1),dictData:o(x)},null,8,["onSuccess","dictData"])):de("",!0)])}}});export{Fo as default};