2 lines
9.4 KiB
JavaScript
2 lines
9.4 KiB
JavaScript
|
import{U as X,C as ee,D as oe,J as le,K as te,w as ue,F as ae,L as re,M as se,b as ne,N as de,O as ie}from"./element-plus.91c68cc0.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang.de23ebd7.js";import{u as _e}from"./usePaging.f8c888e4.js";import{f as fe}from"./index.b9876e7a.js";import{d as Y,r as i,s as ce,Z as ve,i as Fe,af as Ee,ap as be,o as _,c as L,U as e,L as u,u as t,j as V,a as f,T as we,a9 as he,K as b,R as c,M as D,S as h,Q as Be,n as Ce}from"./@vue.76ce7aa3.js";import"./lodash.4e6d2a38.js";import{h as T}from"./moment.40bc58bf.js";import{o as M,p as ke}from"./beforehand_order.9c8ceed0.js";import{a as ye}from"./system_store.ed9807d6.js";import{_ as ge}from"./drawer.vue_vue_type_script_setup_true_lang.1581676c.js";import{_ as Ve}from"./edit.vue_vue_type_script_setup_true_name_beforehandOrderEdit_lang.a28d7ab1.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.f62f1d06.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.dff6911a.js";import"./index.9ea4bd91.js";import"./index.b51bb2c7.js";import"./vuedraggable.c04c7c0c.js";import"./vue.3299ef77.js";import"./sortablejs.c62bcaf8.js";const De={class:"flex items-center mr-4"},Ae={class:"mt-4"},xe={class:"flex mt-4 justify-end"},Ue=Y({name:"warehouseOrderLists"}),xo=Y({...Ue,setup(Se){const B=i(!1),C=ce(),k=i(!1),R=i(null);i([]);const a=ve({order_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:"",order_sn:"",order_ck:"",order_rk:"",order_type:"",warehouse_type:""}),$=i([]),N=d=>{$.value=d.map(({id:o})=>o)},O=async d=>{var o,m;B.value=!0,await Ce(),(o=C.value)==null||o.open("edit"),(m=C.value)==null||m.setFormData(d)},{pager:v,getLists:E,resetParams:P,resetPage:A}=_e({fetchFun:M,params:a}),z=async d=>{await fe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ke({id:d}),E()},p=i([]),I=()=>{p.value[0]&&p.value[1]?(a.start_time=T(p.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=T(p.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),E()},w=i(!1),x=i([]),j=(d="")=>{w.value=!0,ye({name:d,page_size:50}).then(o=>{x.value=o.lists,setTimeout(()=>{w.value=!1},300)}).catch(o=>{setTimeout(()=>{w.value=!1},300)})};return Fe(()=>{E()}),(d,o)=>{const m=ee,n=oe,q=X,s=le,y=te,F=ue,K=me,J=ae,U=re,g=Ee("router-link"),r=se,Q=ne,Z=de,G=pe,S=be("perms"),H=ie;return _(),L("div",null,[e(U,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[e(J,{class:"mb-[-16px]",model:t(a),inline:""},{default:u(()=>[e(n,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:u(()=>[e(m,{class:"w-[280px]",modelValue:t(a).order_id,"onUpdate:modelValue":o[0]||(o[0]=l=>t(a).order_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u65E5\u671F",prop:"create_time"},{default:u(()=>[e(q,{modelValue:t(p),"onUpdate:modelValue":o[1]||(o[1]=l=>V(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:I},nul
|