2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
|
import{V as ue,k as T,C as te,D as ae,N as re,O as ne,w as se,F as de,K as ie,G as pe,b as me,H as _e,I as fe}from"./element-plus.352c7be0.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.567dc22a.js";import{_ as Fe}from"./index.vue_vue_type_script_setup_true_lang.10e65edb.js";import{u as be}from"./usePaging.f8c888e4.js";import{f as ve}from"./index.cd722230.js";import{d as P,r as f,s as Ee,Z as we,i as he,af as ke,ap as Ce,o as i,c as $,U as e,L as t,u,j as x,a as F,T as Be,a9 as ye,K as b,R as p,M as w,S as C,Q as L,n as Ve}from"./@vue.76ce7aa3.js";import"./lodash.41b9567d.js";import{h as M}from"./moment.40bc58bf.js";import{o as Y,p as ge,l as De,q as Ae}from"./beforehand_order.6967ee4c.js";import{a as xe}from"./system_store.6b38b771.js";import{_ as Ue}from"./drawer.vue_vue_type_script_setup_true_lang.b4025fbe.js";import{_ as Oe}from"./edit.vue_vue_type_script_setup_true_name_beforehandOrderEdit_lang.993478bc.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.307f5b85.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.b4cbdbc9.js";import"./jspdf.75308076.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.f23177ae.js";import"./color.a6ad6672.js";import"./clone.954ba32c.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.5afce820.js";import"./index.d328c64d.js";import"./index.e3fe601a.js";import"./vuedraggable.1d6c5910.js";import"./vue.6c4d4a7c.js";import"./sortablejs.a0474a26.js";const Se={class:"flex items-center mr-4"},Te={class:"mt-4"},$e={class:"flex mt-4 justify-end"},Le=P({name:"warehouseOrderLists"}),$o=P({...Le,setup(Me){const B=f(!1),y=Ee(),V=f(!1),R=f(null);f([]);const a=we({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:"",mark:""}),N=f([]),z=n=>{N.value=n.map(({id:o})=>o)},I=async n=>{var o,m;B.value=!0,await Ve(),(o=y.value)==null||o.open("edit"),(m=y.value)==null||m.setFormData(n)},{pager:v,getLists:E,resetParams:q,resetPage:U}=be({fetchFun:Y,params:a}),j=async n=>{await ve.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ge({id:n}),E()},c=f([]),K=()=>{c.value[0]&&c.value[1]?(a.start_time=M(c.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=M(c.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),E()},G=n=>{De({id:n,type:2}).then(o=>{window.open(o.url,"_blank"),T.success("\u5BFC\u51FA\u6210\u529F")})},H=n=>{Ae({id:n}).then(o=>{window.open(o.url,"_blank"),T.success("\u5BFC\u51FA\u6210\u529F")})},h=f(!1),O=f([]),Q=(n="")=>{h.value=!0,xe({name:n,page_size:50}).then(o=>{O.value=o.lists,setTimeout(()=>{h.value=!1},300)}).catch(o=>{setTimeout(()=>{h.value=!1},300)})};return he(()=>{E()}),(n,o)=>{const m=te,d=ae,Z=ue,s=re,g=ne,_=se,J=Fe,W=de,S=ie,D=ke("router-link"),r=pe,X=me,ee=_e,oe=ce,k=Ce("perms"),le=fe;return i(),$("div",null,[e(S,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(W,{class:"mb-[-16px]",model:u(a),inline:""},{default:t(()=>[e(d,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:u(a).order_id,"onUpdate:modelValue":o[0]||(o[0]=l=>u(a).order_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u65E5\u671F",prop:"create_time"},{default:t(()=>[e(Z,{modelValue:u(c),"
|