2024-10-13 16:29:36 +08:00
|
|
|
import{U as I,C as q,D as K,w as Q,F as Z,L as G,M as H,N as J,O as W}from"./element-plus.a63a26dd.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.eff6f31c.js";import{u as oe}from"./usePaging.6a6670f9.js";import{u as te}from"./useDictOptions.393c855a.js";import"./lodash.2473fc51.js";import{f as ae}from"./index.77263039.js";import{_ as re}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.4ee6efad.js";import{h as F}from"./moment.40bc58bf.js";import{g,h as le}from"./beforehand_order.27561716.js";import{d as B,s as ie,r as n,Z as ne,i as se,af as pe,ap as me,o as f,c as ue,U as e,L as t,u as o,j as k,R as c,M as D,K as w,a as E,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.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.671a18ed.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.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_name_systemStoreLists_lang.3be6a635.js";import"./store_product.2fb9940b.js";import"./store_branch_product.aca975fb.js";import"./warehouse_product_storege.86178b73.js";import"./purchase_product_offer.6210bb30.js";import"./beforehand_order_cart_info.fbeec339.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.3eff8805.js";import"./delivery_service.d0b3ea5b.js";import"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.265ba131.js";import"./warehouse.c0cc31cc.js";import"./supplier.cf281c67.js";import"./warehousing.vue_vue_type_script_setup_true_name_subOrder_lang.c88d8ac8.js";import"./outbound.vue_vue_type_script_setup_true_name_subOrder_lang.1c7cf0f7.js";import"./system_store.52c2b3f5.js";import"./warehouse_order.a67d3554.js";const _e={class:"mt-4"},fe={class:"flex mt-4 justify-end"},he=B({name:"warehouseOrderLists"}),bo=B({...he,setup(ve){const h=ie();n(!1);const v=n(!1),l=ne({order_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:""}),y=n([]),V=m=>{y.value=m.map(({id:a})=>a)},{dictData:x}=te(""),{pager:p,getLists:u,resetParams:Y,resetPage:A}=oe({fetchFun:g,params:l}),M=async m=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await le({id:m}),u()},L=async m=>{var a,_;v.value=!0,await ce(),(a=h.value)==null||a.open(),(_=h.value)==null||_.getDetail(m)},s=n([]),T=()=>{s.value[0]&&s.value[1]?(l.start_time=F(s.value[0]).format("YYYY-MM-DD")+" 00:00:00",l.end_time=F(s.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(l.start_time="",l.end_time=""),u()};return n(!1),n([]),n(!1),n([]),se(()=>{u()}),(m,a)=>{const _=q,C=K,$=I,d=Q,N=ee,P=Z,b=G,R=pe("router-link"),r=H,S=J,U=X,O=me("perms"),z=W;return f(),ue("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(P,{class:"mb-[-16px]",model:o(l),inline:""},{default:t(()=>[e(C,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:t(()=>[e(_,{class:"w-[280px]",modelValue:o(l).order_id,"onUpdate:modelValue":a[0]||(a[0]=i=>o(l).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=>k(s)?s.value=i:null),type:"daterange","range-se
|