2 lines
7.2 KiB
JavaScript
2 lines
7.2 KiB
JavaScript
|
import{U as te,C as ae,D as le,J as re,K as se,w as ne,F as ie,L as ue,M as pe,N as me,O as de}from"./element-plus.a63a26dd.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.692a1b19.js";import{u as fe}from"./usePaging.6a6670f9.js";import{u as he}from"./useDictOptions.5e70e33d.js";import{i as x,c as ve}from"./warehouse_order.abdc56a1.js";import"./lodash.2473fc51.js";import{f as we}from"./index.1aee185b.js";import{_ as Ee}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.7ccb1335.js";import{_ as Ce}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.2a13f638.js";import{h as L}from"./moment.40bc58bf.js";import{a as De}from"./supplier.79330953.js";import{d as U,s as S,r as i,Z as Fe,i as ke,af as be,ap as ge,o as u,c as T,U as e,L as l,u as t,T as ye,a9 as Be,K as f,j as $,R as h,M as k,a as M,Q as Y,n as R}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"./index.de7b2359.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.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.vue_vue_type_script_setup_true_name_systemStoreLists_lang.27211fce.js";import"./store_product.6dc22f19.js";import"./store_branch_product.b1cf046d.js";import"./warehouse_product_storege.a03c2b23.js";import"./warehouse_product.06c32ca8.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.0c50144c.js";const Ve={class:"mt-4"},xe={class:"flex mt-4 justify-end"},Le=U({name:"warehouseOrderLists"}),Bo=U({...Le,setup(Se){const E=S(),C=S(),D=i(!1),F=i(!1),s=Fe({warehouse_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:""}),N=i([]),O=n=>{N.value=n.map(({id:o})=>o)},{dictData:b}=he(""),{pager:d,getLists:c,resetParams:P,resetPage:z}=fe({fetchFun:x,params:s}),A=async n=>{var o,m;D.value=!0,await R(),(o=E.value)==null||o.open("edit"),(m=E.value)==null||m.setFormData(n)},I=async n=>{await we.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ve({id:n}),c()},j=async n=>{var o,m;F.value=!0,await R(),(o=C.value)==null||o.open(),(m=C.value)==null||m.getDetail(n)},p=i([]),K=()=>{p.value[0]&&p.value[1]?(s.start_time=L(p.value[0]).format("YYYY-MM-DD")+" 00:00:00",s.end_time=L(p.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(s.start_time="",s.end_time=""),c()};i(!1),i([]);const v=i(!1),g=i([]),W=(n="")=>{v.value=!0,De({mer_name:n}).then(o=>{g.value=o.lists,setTimeout(()=>{v.value=!1},300)}).catch(o=>{setTimeout(()=>{v.value=!1},300)})};return ke(()=>{c()}),(n,o)=>{const m=ae,w=le,q=re,J=se,Q=te,_=ne,Z=_e,G=ie,y=ue,H=be("router-link"),r=pe,X=me,ee=ce,B=ge("perms"),oe=de;return u(),T("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(G,{class:"mb-[-16px]",model:t(s),inline:""},{default:l(()=>[e(w,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:l(()=>[e(m,{class:"w-[280px]",modelValue:t(s).warehouse_id,"onUpdate:modelValue":o[0]||(o[0]=a=>t(s).warehouse_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),e(w,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:l(()=>[e(J,{modelValue:t(s).supplier_id,"onUpdate:modelValue":o[1]||(o[1]=a=>t(s).supplier_id=a),filte
|