2 lines
7.3 KiB
JavaScript
2 lines
7.3 KiB
JavaScript
import{U as ae,J as le,K as re,D as se,C as ie,w as ue,F as ne,L as me,M as pe,N as de,O as ce}from"./element-plus.4a7d92a3.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{u as fe}from"./usePaging.6a6670f9.js";import{u as he}from"./useDictOptions.7690fe0d.js";import{h as ve,i as we}from"./warehouse_order.aa4be23b.js";import"./lodash.9dc701ad.js";import{f as Ee}from"./index.b17b0724.js";import{_ as Ce}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.b42189cc.js";import{_ as De}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.618dd57b.js";import{a as be}from"./system_store.0064c44e.js";import{h as S}from"./moment.40bc58bf.js";import{a as Fe}from"./supplier.b516352f.js";import{d as N,s as T,r as n,Z as ge,af as ke,ap as ye,o as u,c as b,U as e,L as l,u as t,a as F,T as M,a9 as U,K as d,j as Y,R as v,M as R,Q as $,n as Ve}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.bc1a2af8.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.b6ad5464.js";import"./store_product.959dd79f.js";import"./store_branch_product.94f8eeba.js";import"./warehouse_product_storege.cc8d987c.js";import"./warehouse_product.e85a6efd.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.d2cd3543.js";const Be={class:"flex items-center mr-4"},xe={class:"mt-4"},Le={class:"flex mt-4 justify-end"},Se=N({name:"warehouseOrderLists"}),Bo=N({...Se,setup(Te){const O=T(),C=T(),g=n(!1),D=n(!1),r=ge({warehouse_id:"",product_name:"",financial_pm:0,store_id:"",start_time:"",end_time:"",supplier_id:""}),P=n([]),A=i=>{P.value=i.map(({id:o})=>o)},{dictData:k}=he(""),{pager:c,getLists:p,resetParams:I,resetPage:y}=fe({fetchFun:we,params:r}),j=async i=>{await Ee.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ve({id:i}),p()},K=async i=>{var o,_;D.value=!0,await Ve(),(o=C.value)==null||o.open(),(_=C.value)==null||_.getDetail(i)},m=n([]),W=()=>{m.value[0]&&m.value[1]?(r.start_time=S(m.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=S(m.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),p()},w=n(!1),V=n([]),q=(i="")=>{w.value=!0,be({name:i,page_size:50}).then(o=>{V.value=o.lists,setTimeout(()=>{w.value=!1},300)}).catch(o=>{setTimeout(()=>{w.value=!1},300)})},E=n(!1),B=n([]),z=(i="")=>{E.value=!0,Fe({mer_name:i}).then(o=>{B.value=o.lists,setTimeout(()=>{E.value=!1},300)}).catch(o=>{setTimeout(()=>{E.value=!1},300)})};return p(),(i,o)=>{const _=le,x=re,f=se,J=ie,Q=ae,h=ue,Z=ne,L=me,G=ke("router-link"),s=pe,H=de,X=_e,ee=ye("perms"),oe=ce;return u(),b("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(Z,{class:"mb-[-16px]",model:t(r),inline:""},{default:l(()=>[e(f,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:l(()=>[F("div",Be,[e(x,{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":"","remote-method":q,loading:t(w),style:{width:"240px"},onChange:t(y)},{default:l(()=>[(u(!0),b(M,null,U(t(V),a=>(u(),d(_,{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(J,{class:"w-[280px]",modelValue:t(r).warehouse_id,"onUpdate:modelValue":o[1]||(o[1]=a=>t(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:t(r).supplier_id,"onUpdate:modelValue":o[2]||(o[2]=a=>t(r).supplier_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u4F9B\u5E94\u5546\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":z,loading:t(E),style:{width:"240px"}},{default:l(()=>[(u(!0),b(M,null,U(t(B),a=>(u(),d(_,{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(Q,{modelValue:t(m),"onUpdate:modelValue":o[3]||(o[3]=a=>Y(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:t(y)},{default:l(()=>[v("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(h,{onClick:t(I)},{default:l(()=>[v("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),R((u(),d(L,{class:"!border-none",shadow:"never"},{default:l(()=>[e(G,{to:{path:"import"},class:"ml-4"},{default:l(()=>[e(h,{type:"primary"},{default:l(()=>[v(" \u51FA\u5E93 ")]),_:1})]),_:1}),F("div",xe,[e(H,{data:t(c).lists,onSelectionChange:A},{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:te=>K(a)},{default:l(()=>[v("\u8BE6\u60C5")]),_:2},1032,["onClick"]),R((u(),d(h,{type:"danger",link:"",onClick:te=>j(a.id)},{default:l(()=>[v(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[ee,["warehouse_order.warehouse_order/delete"]]])]),_:1})]),_:1},8,["data"])]),F("div",Le,[e(X,{modelValue:t(c),"onUpdate:modelValue":o[4]||(o[4]=a=>Y(c)?c.value=a:null),onChange:t(p)},null,8,["modelValue","onChange"])])]),_:1})),[[oe,t(c).loading]]),t(g)?(u(),d(Ce,{key:0,ref_key:"editRef",ref:O,"dict-data":t(k),onSuccess:t(p),onClose:o[5]||(o[5]=a=>g.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),t(D)?(u(),d(De,{key:1,ref_key:"detailsRef",ref:C,onSuccess:t(p),onClose:o[6]||(o[6]=a=>D.value=!1),dictData:t(k)},null,8,["onSuccess","dictData"])):$("",!0)])}}});export{Bo as default};
|