2 lines
7.0 KiB
JavaScript
2 lines
7.0 KiB
JavaScript
import{U as ee,C as oe,D as te,J as ae,K as le,w as re,F as se,L as ie,M as ne,N as ue,O as pe}from"./element-plus.4a7d92a3.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{u as de}from"./usePaging.6a6670f9.js";import{u as ce}from"./useDictOptions.7690fe0d.js";import{h as _e,i as fe}from"./warehouse_order.aa4be23b.js";import"./lodash.9dc701ad.js";import{f as he}from"./index.b17b0724.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.b42189cc.js";import{_ as we}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.618dd57b.js";import{h as x}from"./moment.40bc58bf.js";import{a as Ee}from"./supplier.b516352f.js";import{d as R,s as L,r as n,Z as Ce,af as De,ap as Fe,o as u,c as S,U as e,L as l,u as t,T as ke,a9 as be,K as _,j as T,R as f,M as k,a as Y,Q as $,n as M}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 ge={class:"mt-4"},ye={class:"flex mt-4 justify-end"},Be=R({name:"warehouseOrderLists"}),ko=R({...Be,setup(Ve){const E=L(),C=L(),D=n(!1),F=n(!1),s=Ce({warehouse_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:""}),U=n([]),N=i=>{U.value=i.map(({id:o})=>o)},{dictData:b}=ce(""),{pager:h,getLists:d,resetParams:O,resetPage:P}=de({fetchFun:fe,params:s}),A=async i=>{var o,m;D.value=!0,await M(),(o=E.value)==null||o.open("edit"),(m=E.value)==null||m.setFormData(i)},I=async i=>{await he.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await _e({id:i}),d()},j=async i=>{var o,m;F.value=!0,await M(),(o=C.value)==null||o.open(),(m=C.value)==null||m.getDetail(i)},p=n([]),K=()=>{p.value[0]&&p.value[1]?(s.start_time=x(p.value[0]).format("YYYY-MM-DD")+" 00:00:00",s.end_time=x(p.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(s.start_time="",s.end_time=""),d()};n(!1),n([]);const v=n(!1),g=n([]),W=(i="")=>{v.value=!0,Ee({mer_name:i}).then(o=>{g.value=o.lists,setTimeout(()=>{v.value=!1},300)}).catch(o=>{setTimeout(()=>{v.value=!1},300)})};return d(),(i,o)=>{const m=oe,w=te,q=ae,J=le,Q=ee,c=re,Z=se,y=ie,z=De("router-link"),r=ne,G=ue,H=me,B=Fe("perms"),X=pe;return u(),S("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(Z,{class:"mb-[-16px]",model:t(s),inline:""},{default:l(()=>[e(w,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:l(()=>[e(m,{class:"w-[280px]",modelValue:t(s).warehouse_id,"onUpdate:modelValue":o[0]||(o[0]=a=>t(s).warehouse_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),e(w,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:l(()=>[e(J,{modelValue:t(s).supplier_id,"onUpdate:modelValue":o[1]||(o[1]=a=>t(s).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(v),style:{width:"240px"}},{default:l(()=>[(u(!0),S(ke,null,be(t(g),a=>(u(),_(q,{key:a.id,label:a.mer_name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),e(w,{label:"\u65E5\u671F",prop:"create_time"},{default:l(()=>[e(Q,{modelValue:t(p),"onUpdate:modelValue":o[2]||(o[2]=a=>T(p)?p.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}),e(w,null,{default:l(()=>[e(c,{type:"primary",onClick:t(P)},{default:l(()=>[f("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:t(O)},{default:l(()=>[f("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),k((u(),_(y,{class:"!border-none",shadow:"never"},{default:l(()=>[e(z,{to:{path:"warehousing"},class:"ml-4"},{default:l(()=>[e(c,{type:"primary"},{default:l(()=>[f(" \u5165\u5E93 ")]),_:1})]),_:1}),Y("div",ge,[e(G,{data:t(h).lists,onSelectionChange:N},{default:l(()=>[e(r,{type:"selection",width:"55"}),e(r,{label:"id",prop:"id","show-overflow-tooltip":"",width:"55"}),e(r,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(r,{label:"\u4ED3\u5E93",prop:"warehouse_name","show-overflow-tooltip":""}),e(r,{label:"\u4F9B\u5E94\u5546",prop:"supplier_name","show-overflow-tooltip":""}),e(r,{label:"\u5355\u53F7",prop:"code","show-overflow-tooltip":""}),e(r,{label:"\u72B6\u6001",prop:"financial_pm_name","show-overflow-tooltip":""}),e(r,{label:"\u586B\u5199\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),e(r,{label:"\u5DF2\u7ED3",prop:"completed_amount","show-overflow-tooltip":""}),e(r,{label:"\u672A\u7ED3",prop:"outstanding_amount","show-overflow-tooltip":""}),e(r,{label:"\u603B\u4EF7\u683C",prop:"total_price","show-overflow-tooltip":""}),e(r,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:a})=>[e(c,{type:"primary",link:"",onClick:V=>j(a)},{default:l(()=>[f("\u8BE6\u60C5")]),_:2},1032,["onClick"]),k((u(),_(c,{type:"primary",link:"",onClick:V=>A(a)},{default:l(()=>[f(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[B,["warehouse_order.warehouse_order/edit"]]]),k((u(),_(c,{type:"danger",link:"",onClick:V=>I(a.id)},{default:l(()=>[f(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[B,["warehouse_order.warehouse_order/delete"]]])]),_:1})]),_:1},8,["data"])]),Y("div",ye,[e(H,{modelValue:t(h),"onUpdate:modelValue":o[3]||(o[3]=a=>T(h)?h.value=a:null),onChange:t(d)},null,8,["modelValue","onChange"])])]),_:1})),[[X,t(h).loading]]),t(D)?(u(),_(ve,{key:0,ref_key:"editRef",ref:E,"dict-data":t(b),onSuccess:t(d),onClose:o[4]||(o[4]=a=>D.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),t(F)?(u(),_(we,{key:1,ref_key:"detailsRef",ref:C,onSuccess:t(d),onClose:o[5]||(o[5]=a=>F.value=!1),dictData:t(b)},null,8,["onSuccess","dictData"])):$("",!0)])}}});export{ko as default};
|