2 lines
7.7 KiB
JavaScript
2 lines
7.7 KiB
JavaScript
import{V as te,C as ae,D as le,N as re,O as se,w as ue,F as ne,K as ie,G as pe,H as me,I as de}from"./element-plus.8e273e86.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.36c81752.js";import{u as fe}from"./usePaging.f8c888e4.js";import{u as ve}from"./useDictOptions.419e74f2.js";import{i as S,j as we}from"./warehouse_order.24bde1b9.js";import"./lodash.4e6d2a38.js";import{f as he}from"./index.3cbb290e.js";import{_ as Ee}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.65efc121.js";import{_ as Fe}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.eccf4fc4.js";import{h as T}from"./moment.40bc58bf.js";import{a as Ce}from"./supplier.2cc8c23c.js";import{d as I,s as $,r as p,Z as De,i as be,af as ge,ap as ke,o as i,c as L,U as o,L as l,u as t,T as Ve,a9 as ye,K as d,j as U,R as w,M as E,a as Y,Q as M,n as R}from"./@vue.76ce7aa3.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.e8e7d23f.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.88f32402.js";import"./store_product.e5b4f953.js";import"./store_branch_product.83374ece.js";import"./warehouse_product_storege.124613dd.js";import"./warehouse_product.3e2ef540.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.e271074a.js";const Be={class:"mt-4"},xe={class:"flex mt-4 justify-end"},Se=I({name:"warehouseOrderLists"}),So=I({...Se,setup(Te){const F=$(),C=$(),D=p(!1),b=p(!1),r=De({id:"",warehouse_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",code:"",supplier_id:""}),N=p([]),O=u=>{N.value=u.map(({id:e})=>e)},{dictData:k}=ve(""),{pager:_,getLists:c,resetParams:P,resetPage:V}=fe({fetchFun:S,params:r}),j=async u=>{var e,n;D.value=!0,await R(),(e=F.value)==null||e.open("edit"),(n=F.value)==null||n.setFormData(u)},z=async u=>{await he.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await we({id:u}),c()},A=async u=>{var e,n;b.value=!0,await R(),(e=C.value)==null||e.open(),(n=C.value)==null||n.getDetail(u)},m=p([]),K=()=>{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=""),c()};p(!1),p([]);const h=p(!1),y=p([]),W=(u="")=>{h.value=!0,Ce({mer_name:u}).then(e=>{y.value=e.lists,setTimeout(()=>{h.value=!1},300)}).catch(e=>{setTimeout(()=>{h.value=!1},300)})};return be(()=>{c()}),(u,e)=>{const n=ae,f=le,q=re,G=se,H=te,v=ue,Q=ce,Z=ne,B=ie,J=ge("router-link"),s=pe,X=me,ee=_e,g=ke("perms"),oe=de;return i(),L("div",null,[o(B,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[o(Z,{class:"mb-[-16px]",model:t(r),inline:""},{default:l(()=>[o(f,{label:"ID",prop:"id"},{default:l(()=>[o(n,{class:"w-[280px]",modelValue:t(r).id,"onUpdate:modelValue":e[0]||(e[0]=a=>t(r).id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165id"},null,8,["modelValue"])]),_:1}),o(f,{label:"\u5355\u53F7",prop:"code"},{default:l(()=>[o(n,{class:"w-[280px]",modelValue:t(r).code,"onUpdate:modelValue":e[1]||(e[1]=a=>t(r).code=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u53F7",onChange:t(V)},null,8,["modelValue","onChange"])]),_:1}),o(f,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:l(()=>[o(n,{class:"w-[280px]",modelValue:t(r).warehouse_id,"onUpdate:modelValue":e[2]||(e[2]=a=>t(r).warehouse_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),o(f,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:l(()=>[o(G,{modelValue:t(r).supplier_id,"onUpdate:modelValue":e[3]||(e[3]=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":W,loading:t(h),style:{width:"240px"}},{default:l(()=>[(i(!0),L(Ve,null,ye(t(y),a=>(i(),d(q,{key:a.id,label:a.mer_name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),o(f,{label:"\u65E5\u671F",prop:"create_time"},{default:l(()=>[o(H,{modelValue:t(m),"onUpdate:modelValue":e[4]||(e[4]=a=>U(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:K},null,8,["modelValue"])]),_:1}),o(f,null,{default:l(()=>[o(v,{type:"primary",onClick:t(V)},{default:l(()=>e[8]||(e[8]=[w("\u67E5\u8BE2")])),_:1},8,["onClick"]),o(v,{onClick:t(P)},{default:l(()=>e[9]||(e[9]=[w("\u91CD\u7F6E")])),_:1},8,["onClick"]),o(Q,{class:"ml-2.5","fetch-fun":t(S),params:t(r),"page-size":t(_).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),E((i(),d(B,{class:"!border-none",shadow:"never"},{default:l(()=>[E((i(),d(J,{to:{path:"warehousing"},class:"ml-4"},{default:l(()=>[o(v,{type:"primary"},{default:l(()=>e[10]||(e[10]=[w(" \u5165\u5E93 ")])),_:1})]),_:1})),[[g,["warehousing"]]]),Y("div",Be,[o(X,{data:t(_).lists,onSelectionChange:O},{default:l(()=>[o(s,{label:"id",prop:"id","show-overflow-tooltip":"",width:"70"}),o(s,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),o(s,{label:"\u4ED3\u5E93",prop:"warehouse_name","show-overflow-tooltip":""}),o(s,{label:"\u5355\u53F7",prop:"code","show-overflow-tooltip":""}),o(s,{label:"\u72B6\u6001",prop:"financial_pm_name","show-overflow-tooltip":""}),o(s,{label:"\u586B\u5199\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),o(s,{label:"\u5DF2\u7ED3",prop:"completed_amount","show-overflow-tooltip":""}),o(s,{label:"\u672A\u7ED3",prop:"outstanding_amount","show-overflow-tooltip":""}),o(s,{label:"\u603B\u4EF7\u683C",prop:"total_price","show-overflow-tooltip":""}),o(s,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),o(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:a})=>[o(v,{type:"primary",link:"",onClick:x=>A(a)},{default:l(()=>e[11]||(e[11]=[w("\u8BE6\u60C5")])),_:2},1032,["onClick"]),E((i(),d(v,{type:"primary",link:"",onClick:x=>j(a)},{default:l(()=>e[12]||(e[12]=[w(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[g,["warehouse_order.warehouse_order/edit"]]]),E((i(),d(v,{type:"danger",link:"",onClick:x=>z(a.id)},{default:l(()=>e[13]||(e[13]=[w(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[g,["warehouse_order.warehouse_order/delete"]]])]),_:1})]),_:1},8,["data"])]),Y("div",xe,[o(ee,{modelValue:t(_),"onUpdate:modelValue":e[5]||(e[5]=a=>U(_)?_.value=a:null),onChange:t(c)},null,8,["modelValue","onChange"])])]),_:1})),[[oe,t(_).loading]]),t(D)?(i(),d(Ee,{key:0,ref_key:"editRef",ref:F,"dict-data":t(k),onSuccess:t(c),onClose:e[6]||(e[6]=a=>D.value=!1)},null,8,["dict-data","onSuccess"])):M("",!0),t(b)?(i(),d(Fe,{key:1,ref_key:"detailsRef",ref:C,onSuccess:t(c),onClose:e[7]||(e[7]=a=>b.value=!1),dictData:t(k)},null,8,["onSuccess","dictData"])):M("",!0)])}}});export{So as default};
|