2024-11-15 16:58:18 +08:00
|
|
|
import{U as W,C as X,D as ee,J as oe,K as te,w as le,F as ae,L as ue,M as re,b as se,N as ne,O as ie}from"./element-plus.91c68cc0.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as de}from"./index.vue_vue_type_script_setup_true_lang.9a62fd20.js";import{u as me}from"./usePaging.f8c888e4.js";import{f as _e}from"./index.45e3c1f0.js";import"./lodash.4e6d2a38.js";import{h as L}from"./moment.40bc58bf.js";import{n as T,o as fe}from"./beforehand_order.be98528b.js";import{a as ce}from"./system_store.7a4ecbcf.js";import{_ as ve}from"./drawer.vue_vue_type_script_setup_true_lang.0867cc81.js";import{_ as we}from"./edit.vue_vue_type_script_setup_true_name_beforehandOrderEdit_lang.5264cbc5.js";import{d as S,r as i,s as Ee,Z as be,i as Fe,af as he,ap as Be,o as m,c as M,U as e,L as a,u as t,j as g,a as D,T as Ce,a9 as ye,K as E,R as _,M as V,Q as ge,n as De}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.b0600572.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"./picker.84cf425d.js";import"./index.8c0a1124.js";import"./index.99dd3ece.js";import"./vuedraggable.c04c7c0c.js";import"./vue.3299ef77.js";import"./sortablejs.c62bcaf8.js";const Ve={class:"flex items-center mr-4"},ke={class:"mt-4"},Ae={class:"flex mt-4 justify-end"},xe=S({name:"warehouseOrderLists"}),Ao=S({...xe,setup(Ue){const F=i(!1),h=Ee(),B=i(!1),Y=i(null);i([]);const u=be({order_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:"",order_sn:"",order_type:"",warehouse_type:""}),R=i([]),$=n=>{R.value=n.map(({id:o})=>o)},N=async n=>{var o,w;F.value=!0,await De(),(o=h.value)==null||o.open("edit"),(w=h.value)==null||w.setFormData(n)},{pager:f,getLists:v,resetParams:O,resetPage:k}=me({fetchFun:T,params:u}),P=async n=>{await _e.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:n}),v()},p=i([]),z=()=>{p.value[0]&&p.value[1]?(u.start_time=L(p.value[0]).format("YYYY-MM-DD")+" 00:00:00",u.end_time=L(p.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(u.start_time="",u.end_time=""),v()},b=i(!1),A=i([]),I=(n="")=>{b.value=!0,ce({name:n,page_size:50}).then(o=>{A.value=o.lists,setTimeout(()=>{b.value=!1},300)}).catch(o=>{setTimeout(()=>{b.value=!1},300)})};return Fe(()=>{v()}),(n,o)=>{const w=X,d=ee,j=W,s=oe,C=te,c=le,q=de,K=ae,x=ue,y=he("router-link"),r=re,J=se,Q=ne,Z=pe,U=Be("perms"),G=ie;return m(),M("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(K,{class:"mb-[-16px]",model:t(u),inline:""},{default:a(()=>[e(d,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:a(()=>[e(w,{class:"w-[280px]",modelValue:t(u).order_id,"onUpdate:modelValue":o[0]||(o[0]=l=>t(u).order_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u65E5\u671F",prop:"create_time"},{default:a(()=>[e(j,{modelValue:t(p),"onUpdate:modelValue":o[1]||(o[1]=l=>g(p)?p.value=l:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:z},null,8,["modelValue"])]),_:1}),e(d,{
|