2 lines
7.7 KiB
JavaScript
2 lines
7.7 KiB
JavaScript
|
import{U as re,C as se,D as ue,J as ie,K as ne,w as me,F as pe,L as de,M as ce,N as _e,O as fe}from"./element-plus.4a7d92a3.js";import{_ as he}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as ve}from"./index.vue_vue_type_script_setup_true_lang.77f668a0.js";import{u as we}from"./usePaging.6a6670f9.js";import{u as Ee}from"./useDictOptions.9e133f7f.js";import{i as T,j as Ce}from"./warehouse_order.e6acf495.js";import"./lodash.9dc701ad.js";import{f as Fe}from"./index.7c768626.js";import{_ as be}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.10c0d615.js";import{_ as ge}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.df5b0755.js";import{a as De}from"./system_store.bd8b2fd3.js";import{h as M}from"./moment.40bc58bf.js";import{a as ke}from"./supplier.f3a96895.js";import{d as P,s as U,r as n,Z as ye,i as Ve,af as Be,ap as xe,o as i,c as b,U as e,L as l,u as o,a as g,T as Y,a9 as $,K as _,j as R,R as v,M as N,Q as O,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.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.03fbab49.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.6769e639.js";import"./store_product.e48fa057.js";import"./store_branch_product.b4aaebc6.js";import"./warehouse_product_storege.ba92e79c.js";import"./warehouse_product.fd6d712b.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.e7e7d640.js";const Se={class:"flex items-center mr-4"},Te={class:"mt-4"},Me={class:"flex mt-4 justify-end"},Ue=P({name:"warehouseOrderLists"}),To=P({...Ue,setup(Ye){const z=U(),C=U(),D=n(!1),F=n(!1),r=ye({warehouse_id:"",product_name:"",financial_pm:0,store_id:"",start_time:"",end_time:"",code:"",supplier_id:""}),j=n([]),A=u=>{j.value=u.map(({id:t})=>t)},{dictData:k}=Ee(""),{pager:p,getLists:d,resetParams:I,resetPage:y}=we({fetchFun:T,params:r}),K=async u=>{await Fe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ce({id:u}),d()},W=async u=>{var t,f;F.value=!0,await Le(),(t=C.value)==null||t.open(),(f=C.value)==null||f.getDetail(u)},m=n([]),q=()=>{m.value[0]&&m.value[1]?(r.start_time=M(m.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=M(m.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),d()},w=n(!1),V=n([]),J=(u="")=>{w.value=!0,De({name:u,page_size:50}).then(t=>{V.value=t.lists,setTimeout(()=>{w.value=!1},300)}).catch(t=>{setTimeout(()=>{w.value=!1},300)})},E=n(!1),B=n([]),Q=(u="")=>{E.value=!0,ke({mer_name:u}).then(t=>{B.value=t.lists,setTimeout(()=>{E.value=!1},300)}).catch(t=>{setTimeout(()=>{E.value=!1},300)})};return Ve(()=>{d()}),(u,t)=>{const f=se,c=ue,x=ie,L=ne,Z=re,h=me,G=ve,H=pe,S=de,X=Be("router-link"),s=ce,ee=_e,oe=he,te=xe("perms"),ae=fe;return i(),b("div",null,[e(S,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(H,{class:"mb-[-16px]",model:o(r),inline:""},{default:l(()=>[e(c,{label:"\u5355\u53F7",prop:"code"},{default:l(()=>[e(f,{class:"w-[280px]",modelValue:o(r).code,"onUpdate:modelValue":t[0]||(t[0]=a=>o(r).code=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},
|