2 lines
9.7 KiB
JavaScript
2 lines
9.7 KiB
JavaScript
|
import{U as ee,k as oe,C as le,D as te,J as ue,K as ae,w as re,F as se,L as ne,M as de,b as ie,N as pe,O as me}from"./element-plus.91c68cc0.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as fe}from"./index.vue_vue_type_script_setup_true_lang.5e208f4c.js";import{u as ce}from"./usePaging.f8c888e4.js";import{f as Fe}from"./index.e778e9f4.js";import{d as Y,r as i,s as ve,Z as be,i as Ee,af as we,ap as he,o as p,c as M,U as e,L as u,u as t,j as A,a as F,T as Be,a9 as Ce,K as b,R as m,M as h,S as B,Q as ke,n as ye}from"./@vue.76ce7aa3.js";import"./lodash.4e6d2a38.js";import{h as T}from"./moment.40bc58bf.js";import{o as O,p as ge,l as Ve}from"./beforehand_order.8e87e56d.js";import{a as De}from"./system_store.5476f6ce.js";import{_ as Ae}from"./drawer.vue_vue_type_script_setup_true_lang.0939aaf4.js";import{_ as xe}from"./edit.vue_vue_type_script_setup_true_name_beforehandOrderEdit_lang.f346481b.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.b83333d9.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.77953008.js";import"./index.c3cc477b.js";import"./index.641616a6.js";import"./vuedraggable.c04c7c0c.js";import"./vue.3299ef77.js";import"./sortablejs.c62bcaf8.js";const Ue={class:"flex items-center mr-4"},Se={class:"mt-4"},Le={class:"flex mt-4 justify-end"},Me=Y({name:"warehouseOrderLists"}),Lo=Y({...Me,setup(Te){const C=i(!1),k=ve(),y=i(!1),$=i(null);i([]);const a=be({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:""}),R=i([]),P=s=>{R.value=s.map(({id:o})=>o)},N=async s=>{var o,f;C.value=!0,await ye(),(o=k.value)==null||o.open("edit"),(f=k.value)==null||f.setFormData(s)},{pager:v,getLists:E,resetParams:z,resetPage:x}=ce({fetchFun:O,params:a}),I=async s=>{await Fe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ge({id:s}),E()},_=i([]),j=()=>{_.value[0]&&_.value[1]?(a.start_time=T(_.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=T(_.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),E()},q=s=>{Ve({id:s,type:2}).then(o=>{window.open(o.url,"_blank"),oe.success("\u5BFC\u51FA\u6210\u529F")})},w=i(!1),U=i([]),K=(s="")=>{w.value=!0,De({name:s,page_size:50}).then(o=>{U.value=o.lists,setTimeout(()=>{w.value=!1},300)}).catch(o=>{setTimeout(()=>{w.value=!1},300)})};return Ee(()=>{E()}),(s,o)=>{const f=le,d=te,J=ee,n=ue,g=ae,c=re,Q=fe,Z=se,S=ne,V=we("router-link"),r=de,G=ie,H=pe,W=_e,D=he("perms"),X=me;return p(),M("div",null,[e(S,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[e(Z,{class:"mb-[-16px]",model:t(a),inline:""},{default:u(()=>[e(d,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:u(()=>[e(f,{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(d,{label:"\u65E5\u671F",prop:"create_time"},{default:u(()=>[e(J,{modelValue:t(_),"onUpdate:modelValue":o[1]||(o[1]=l=>A(_)?_.value=l:null),type:"daterange","range-separator":"\u81F3","star
|