2 lines
7.3 KiB
JavaScript
2 lines
7.3 KiB
JavaScript
import{U as te,C as ae,D as le,J as re,K as se,w as ie,F as ne,L as ue,M as pe,N as me,O as de}from"./element-plus.7e347b00.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.3570295b.js";import{u as fe}from"./usePaging.6a6670f9.js";import{u as he}from"./useDictOptions.dc8aa87e.js";import{i as x,j as ve}from"./warehouse_order.db706575.js";import"./lodash.4e6d2a38.js";import{f as we}from"./index.fd76ab8a.js";import{_ as Ee}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.1b32b111.js";import{_ as Ce}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.81b0c167.js";import{h as L}from"./moment.40bc58bf.js";import{a as De}from"./supplier.0a2c5a7c.js";import{d as U,s as S,r as u,Z as Fe,i as ke,af as be,ap as ge,o as n,c as T,U as e,L as l,u as t,T as ye,a9 as Be,K as d,j as $,R as h,M as E,a as M,Q as Y,n as R}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.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.1071aff1.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.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.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.b0c09b66.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.a09a0d2a.js";import"./store_product.0382114d.js";import"./store_branch_product.b62f27ae.js";import"./warehouse_product_storege.77d813d1.js";import"./warehouse_product.78bace09.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.47ddf23a.js";const Ve={class:"mt-4"},xe={class:"flex mt-4 justify-end"},Le=U({name:"warehouseOrderLists"}),Lo=U({...Le,setup(Se){const C=S(),D=S(),F=u(!1),k=u(!1),s=Fe({warehouse_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:""}),N=u([]),O=i=>{N.value=i.map(({id:o})=>o)},{dictData:g}=he(""),{pager:c,getLists:_,resetParams:P,resetPage:j}=fe({fetchFun:x,params:s}),z=async i=>{var o,m;F.value=!0,await R(),(o=C.value)==null||o.open("edit"),(m=C.value)==null||m.setFormData(i)},A=async i=>{await we.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ve({id:i}),_()},I=async i=>{var o,m;k.value=!0,await R(),(o=D.value)==null||o.open(),(m=D.value)==null||m.getDetail(i)},p=u([]),K=()=>{p.value[0]&&p.value[1]?(s.start_time=L(p.value[0]).format("YYYY-MM-DD")+" 00:00:00",s.end_time=L(p.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(s.start_time="",s.end_time=""),_()};u(!1),u([]);const v=u(!1),y=u([]),W=(i="")=>{v.value=!0,De({mer_name:i}).then(o=>{y.value=o.lists,setTimeout(()=>{v.value=!1},300)}).catch(o=>{setTimeout(()=>{v.value=!1},300)})};return ke(()=>{_()}),(i,o)=>{const m=ae,w=le,q=re,J=se,Q=te,f=ie,Z=_e,G=ne,B=ue,H=be("router-link"),r=pe,X=me,ee=ce,b=ge("perms"),oe=de;return n(),T("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(G,{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(()=>[(n(!0),T(ye,null,Be(t(y),a=>(n(),d(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=>$(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(f,{type:"primary",onClick:t(j)},{default:l(()=>[h("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:t(P)},{default:l(()=>[h("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(Z,{class:"ml-2.5","fetch-fun":t(x),params:t(s),"page-size":t(c).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),E((n(),d(B,{class:"!border-none",shadow:"never"},{default:l(()=>[E((n(),d(H,{to:{path:"warehousing"},class:"ml-4"},{default:l(()=>[e(f,{type:"primary"},{default:l(()=>[h(" \u5165\u5E93 ")]),_:1})]),_:1})),[[b,["warehousing"]]]),M("div",Ve,[e(X,{data:t(c).lists,onSelectionChange:O},{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(f,{type:"primary",link:"",onClick:V=>I(a)},{default:l(()=>[h("\u8BE6\u60C5")]),_:2},1032,["onClick"]),E((n(),d(f,{type:"primary",link:"",onClick:V=>z(a)},{default:l(()=>[h(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[b,["warehouse_order.warehouse_order/edit"]]]),E((n(),d(f,{type:"danger",link:"",onClick:V=>A(a.id)},{default:l(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[b,["warehouse_order.warehouse_order/delete"]]])]),_:1})]),_:1},8,["data"])]),M("div",xe,[e(ee,{modelValue:t(c),"onUpdate:modelValue":o[3]||(o[3]=a=>$(c)?c.value=a:null),onChange:t(_)},null,8,["modelValue","onChange"])])]),_:1})),[[oe,t(c).loading]]),t(F)?(n(),d(Ee,{key:0,ref_key:"editRef",ref:C,"dict-data":t(g),onSuccess:t(_),onClose:o[4]||(o[4]=a=>F.value=!1)},null,8,["dict-data","onSuccess"])):Y("",!0),t(k)?(n(),d(Ce,{key:1,ref_key:"detailsRef",ref:D,onSuccess:t(_),onClose:o[5]||(o[5]=a=>k.value=!1),dictData:t(g)},null,8,["onSuccess","dictData"])):Y("",!0)])}}});export{Lo as default};
|