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.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.1ffbde4c.js";import{u as we}from"./usePaging.6a6670f9.js";import{u as Ee}from"./useDictOptions.fd4298a2.js";import{i as S,j as Ce}from"./warehouse_order.695a22d7.js";import"./lodash.9dc701ad.js";import{f as ge}from"./index.9d2dd606.js";import{_ as De}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.c73976de.js";import{_ as be}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.b6968c8c.js";import{a as Fe}from"./system_store.8c2bce68.js";import{h as T}from"./moment.40bc58bf.js";import{a as ke}from"./supplier.2eb2d97b.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.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.7e5e0979.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.1e407a84.js";import"./store_product.8a05e19c.js";import"./store_branch_product.cf9fa363.js";import"./warehouse_product_storege.0f9c03a4.js";import"./warehouse_product.34d7c6d8.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.6be6fa64.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([]),j=i=>{z.value=i.map(({id:t})=>t)},{dictData:k}=Ee(""),{pager:p,getLists:d,resetParams:A,resetPage:y}=we({fetchFun:S,params:r}),I=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":"","remote-method":q,loading:o(w),style:{width:"240px"},onChange:o(y)},{default:l(()=>[(n(!0),D(U,null,Y(o(V),a=>(n(),c(_,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),e(f,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:l(()=>[e(Q,{class:"w-[280px]",modelValue:o(r).warehouse_id,"onUpdate:modelValue":t[1]||(t[1]=a=>o(r).warehouse_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:l(()=>[e(x,{modelValue:o(r).supplier_id,"onUpdate:modelValue":t[2]||(t[2]=a=>o(r).supplier_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u4F9B\u5E94\u5546\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":J,loading:o(E),style:{width:"240px"}},{default:l(()=>[(n(!0),D(U,null,Y(o(B),a=>(n(),c(_,{key:a.id,label:a.mer_name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(f,{label:"\u65E5\u671F",prop:"create_time"},{default:l(()=>[e(Z,{modelValue:o(m),"onUpdate:modelValue":t[3]||(t[3]=a=>$(m)?m.value=a:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:W},null,8,["modelValue"])]),_:1}),e(f,null,{default:l(()=>[e(h,{type:"primary",onClick:o(y)},{default:l(()=>[v("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(h,{onClick:o(A)},{default:l(()=>[v("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(G,{class:"ml-2.5","fetch-fun":o(S),params:o(r),"page-size":o(p).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),R((n(),c(L,{class:"!border-none",shadow:"never"},{default:l(()=>[e(X,{to:{path:"import"},class:"ml-4"},{default:l(()=>[e(h,{type:"primary"},{default:l(()=>[v(" \u51FA\u5E93 ")]),_:1})]),_:1}),b("div",Te,[e(ee,{data:o(p).lists,onSelectionChange:j},{default:l(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"id",prop:"id","show-overflow-tooltip":"",width:"55"}),e(s,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(s,{label:"\u4ED3\u5E93",prop:"warehouse_name","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97",prop:"system_store","show-overflow-tooltip":""}),e(s,{label:"\u5355\u53F7",prop:"code","show-overflow-tooltip":""}),e(s,{label:"\u72B6\u6001",prop:"financial_pm_name","show-overflow-tooltip":""}),e(s,{label:"\u586B\u5199\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(s,{label:"\u603B\u4EF7\u683C",prop:"total_price","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:a})=>[e(h,{type:"primary",link:"",onClick:le=>K(a)},{default:l(()=>[v("\u8BE6\u60C5")]),_:2},1032,["onClick"]),R((n(),c(h,{type:"danger",link:"",onClick:le=>I(a.id)},{default:l(()=>[v(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[te,["warehouse_order.warehouse_order/delete"]]])]),_:1})]),_:1},8,["data"])]),b("div",Me,[e(oe,{modelValue:o(p),"onUpdate:modelValue":t[4]||(t[4]=a=>$(p)?p.value=a:null),onChange:o(d)},null,8,["modelValue","onChange"])])]),_:1})),[[ae,o(p).loading]]),o(F)?(n(),c(De,{key:0,ref_key:"editRef",ref:P,"dict-data":o(k),onSuccess:o(d),onClose:t[5]||(t[5]=a=>F.value=!1)},null,8,["dict-data","onSuccess"])):N("",!0),o(g)?(n(),c(be,{key:1,ref_key:"detailsRef",ref:C,onSuccess:o(d),onClose:t[6]||(t[6]=a=>g.value=!1),dictData:o(k)},null,8,["onSuccess","dictData"])):N("",!0)])}}});export{To as default};
|