moreShopAdmin/build/admin/assets/outbound_order.fde3428e.js

2 lines
7.3 KiB
JavaScript
Raw Normal View History

2024-09-16 22:01:57 +08:00
import{U as ae,J as le,K as re,D as se,C as ie,w as ue,F as ne,L as me,M as pe,N as de,O as ce}from"./element-plus.a63a26dd.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{u as fe}from"./usePaging.6a6670f9.js";import{u as he}from"./useDictOptions.1ff41454.js";import{h as ve,i as we}from"./warehouse_order.1c8410e3.js";import"./lodash.2473fc51.js";import{f as Ee}from"./index.79885fb7.js";import{_ as Ce}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.aea3b587.js";import{_ as De}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.5783ea14.js";import{a as be}from"./system_store.0480155e.js";import{h as S}from"./moment.40bc58bf.js";import{a as Fe}from"./supplier.1bf9e15b.js";import{d as N,s as T,r as n,Z as ge,af as ke,ap as ye,o as u,c as b,U as e,L as l,u as t,a as F,T as M,a9 as U,K as d,j as Y,R as v,M as R,Q as $,n as Ve}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.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.ec3439ad.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.79666e01.js";import"./store_product.88b61be2.js";import"./store_branch_product.ce7e9094.js";import"./warehouse_product_storege.a82fd3ce.js";import"./warehouse_product.ff7eff19.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.22c9ed7a.js";const Be={class:"flex items-center mr-4"},xe={class:"mt-4"},Le={class:"flex mt-4 justify-end"},Se=N({name:"warehouseOrderLists"}),Bo=N({...Se,setup(Te){const O=T(),C=T(),g=n(!1),D=n(!1),r=ge({warehouse_id:"",product_name:"",financial_pm:0,store_id:"",start_time:"",end_time:"",supplier_id:""}),P=n([]),A=i=>{P.value=i.map(({id:o})=>o)},{dictData:k}=he(""),{pager:c,getLists:p,resetParams:I,resetPage:y}=fe({fetchFun:we,params:r}),j=async i=>{await Ee.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ve({id:i}),p()},K=async i=>{var o,_;D.value=!0,await Ve(),(o=C.value)==null||o.open(),(_=C.value)==null||_.getDetail(i)},m=n([]),W=()=>{m.value[0]&&m.value[1]?(r.start_time=S(m.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=S(m.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),p()},w=n(!1),V=n([]),q=(i="")=>{w.value=!0,be({name:i,page_size:50}).then(o=>{V.value=o.lists,setTimeout(()=>{w.value=!1},300)}).catch(o=>{setTimeout(()=>{w.value=!1},300)})},E=n(!1),B=n([]),z=(i="")=>{E.value=!0,Fe({mer_name:i}).then(o=>{B.value=o.lists,setTimeout(()=>{E.value=!1},300)}).catch(o=>{setTimeout(()=>{E.value=!1},300)})};return p(),(i,o)=>{const _=le,x=re,f=se,J=ie,Q=ae,h=ue,Z=ne,L=me,G=ke("router-link"),s=pe,H=de,X=_e,ee=ye("perms"),oe=ce;return u(),b("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(Z,{class:"mb-[-16px]",model:t(r),inline:""},{default:l(()=>[e(f,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:l(()=>[F("div",Be,[e(x,{modelValue:t(r).store_id,"onUpdate:modelValue":o[0]||(o[0]=a=>t(r).store_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":q,loading:t(w),style:{width:"240px"},onChange:t(y)},{default:l(()=>[(u(!0),b(M,null,U(t