2024-08-26 14:18:59 +08:00
|
|
|
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.4a7d92a3.js";import{_ as ve}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{u as he}from"./usePaging.6a6670f9.js";import{u as we}from"./useDictOptions.2501ee85.js";import{h as Ee,i as Ce}from"./warehouse_order.3af8bd6c.js";import"./lodash.9dc701ad.js";import{f as Fe}from"./index.1bc00f65.js";import{_ as De}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.17e1ac6e.js";import{_ as be}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.606c5827.js";import{a as ke}from"./system_store.cf259033.js";import{h as $}from"./moment.40bc58bf.js";import{a as ge}from"./supplier.bffad958.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.7347fedc.js";import"./axios.4607972f.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.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.c28c2057.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.f3316e18.js";import"./store_product.75c7e4ef.js";import"./store_branch_product.e2aff721.js";import"./warehouse_product_storege.983abbf7.js";import"./warehouse_product.9ef3cf6d.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.09803ebb.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":""
|