2 lines
7.5 KiB
JavaScript
2 lines
7.5 KiB
JavaScript
|
import{U as re,J as se,K as ie,D as ne,C as ue,w as me,F as pe,L as de,M as ce,N as _e,O as fe}from"./element-plus.a63a26dd.js";import{_ as he}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as ve}from"./index.vue_vue_type_script_setup_true_lang.692a1b19.js";import{u as we}from"./usePaging.6a6670f9.js";import{u as Ee}from"./useDictOptions.5e70e33d.js";import{i as S,c as Ce}from"./warehouse_order.abdc56a1.js";import"./lodash.2473fc51.js";import{f as ge}from"./index.1aee185b.js";import{_ as De}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.7ccb1335.js";import{_ as be}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.2a13f638.js";import{a as Fe}from"./system_store.0fa5aed6.js";import{h as T}from"./moment.40bc58bf.js";import{a as ke}from"./supplier.79330953.js";import{d as O,s as M,r as u,Z as ye,i as Ve,af as Be,ap as xe,o as n,c as D,U as e,L as l,u as o,a as b,T as U,a9 as Y,K as c,j as $,R as v,M as R,Q as N,n as Le}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.de7b2359.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.27211fce.js";import"./store_product.6dc22f19.js";import"./store_branch_product.b1cf046d.js";import"./warehouse_product_storege.a03c2b23.js";import"./warehouse_product.06c32ca8.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.0c50144c.js";const Se={class:"flex items-center mr-4"},Te={class:"mt-4"},Me={class:"flex mt-4 justify-end"},Ue=O({name:"warehouseOrderLists"}),To=O({...Ue,setup(Ye){const P=M(),C=M(),F=u(!1),g=u(!1),r=ye({warehouse_id:"",product_name:"",financial_pm:0,store_id:"",start_time:"",end_time:"",supplier_id:""}),z=u([]),A=i=>{z.value=i.map(({id:t})=>t)},{dictData:k}=Ee(""),{pager:p,getLists:d,resetParams:I,resetPage:y}=we({fetchFun:S,params:r}),j=async i=>{await ge.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ce({id:i}),d()},K=async i=>{var t,_;g.value=!0,await Le(),(t=C.value)==null||t.open(),(_=C.value)==null||_.getDetail(i)},m=u([]),W=()=>{m.value[0]&&m.value[1]?(r.start_time=T(m.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=T(m.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),d()},w=u(!1),V=u([]),q=(i="")=>{w.value=!0,Fe({name:i,page_size:50}).then(t=>{V.value=t.lists,setTimeout(()=>{w.value=!1},300)}).catch(t=>{setTimeout(()=>{w.value=!1},300)})},E=u(!1),B=u([]),J=(i="")=>{E.value=!0,ke({mer_name:i}).then(t=>{B.value=t.lists,setTimeout(()=>{E.value=!1},300)}).catch(t=>{setTimeout(()=>{E.value=!1},300)})};return Ve(()=>{d()}),(i,t)=>{const _=se,x=ie,f=ne,Q=ue,Z=re,h=me,G=ve,H=pe,L=de,X=Be("router-link"),s=ce,ee=_e,oe=he,te=xe("perms"),ae=fe;return n(),D("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(H,{class:"mb-[-16px]",model:o(r),inline:""},{default:l(()=>[e(f,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:l(()=>[b("div",Se,[e(x,{modelValue:o(r).store_id,"onUpdate:modelValue":t[0]||(t[0]=a=>o(r).store_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","re
|