2 lines
8.2 KiB
JavaScript
2 lines
8.2 KiB
JavaScript
import{$ as I,_ as q,D as G,F as J,R as Q,S as W,w as z,G as H,J as K,M as X,b as Z,N as ee,O as oe}from"./element-plus.e43a9281.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.4e4b54d4.js";import{u as te}from"./usePaging.fff444fa.js";import{e as ae,f as ue}from"./beforehand_order.78498ef2.js";import{f as re}from"./index.191d3c47.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_name_beforehandOrderEdit_lang.be9a0fc0.js";import{h as A}from"./moment.40bc58bf.js";import{d as D,$ as pe,r as k,s as ne,ah as se,ap as ie,o as F,c as me,W as e,Q as l,u as n,U as s,R as C,P as E,a as _,V as b,j as _e,T as ce,n as fe}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.5d871bc3.js";import"./axios.7bd66c25.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./lodash.e1b6d49d.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.92cf4b29.js";import"./color.10cd7b9e.js";import"./clone.3a905afa.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.95290f48.js";import"./vue-clipboard3.d7f6d60e.js";import"./clipboard.07d173e7.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./picker.d01f1b0c.js";import"./index.0321c0f3.js";import"./index.748aaa8d.js";import"./index.1e733008.js";import"./index.d983ee81.js";import"./index.vue_vue_type_script_setup_true_lang.efe6fcf6.js";import"./vue3-video-play.fb56db8a.js";import"./vuedraggable.77a75095.js";import"./vue.a889dc59.js";import"./sortablejs.9f315f39.js";const Fe={class:"mt-4"},ve={class:"flex mt-4 justify-end"},Ee=D({name:"manageProjectLists"}),fo=D({...Ee,setup(be){const a=pe({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:""}),i=k([]),x=()=>{i.value[0]&&i.value[1]?(a.start_time=A(i.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=A(i.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),f()};k([]);const w=k(!1),h=ne(),U=async v=>{var t,d;w.value=!0,await fe(),(t=h.value)==null||t.open("edit"),(d=h.value)==null||d.setFormData(v)},{pager:c,getLists:f,resetParams:Y,resetPage:P}=te({fetchFun:ue,params:a}),R=async v=>{await re.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ae({id:v}),f()};return f(),(v,t)=>{const d=G,r=J,T=I,p=Q,y=W,m=z,$=q,S=H,V=K,B=se("router-link"),u=X,M=Z,N=ee,L=le,g=ie("perms"),O=oe;return F(),me("div",null,[e(V,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(S,{class:"mb-[-16px]",model:a,"label-width":"80px"},{default:l(()=>[e($,null,{default:l(()=>[e(r,{label:"\u8BA2\u5355\u53F7",prop:"order_id"},{default:l(()=>[e(d,{class:"w-[280px]",modelValue:a.order_id,"onUpdate:modelValue":t[0]||(t[0]=o=>a.order_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u65E5\u671F",prop:"create_time"},{default:l(()=>[e(T,{modelValue:i.value,"onUpdate:modelValue":t[1]||(t[1]=o=>i.value=o),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:x},null,8,["modelValue"])]),_:1}),e(r,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type"},{default:l(()=>[e(y,{modelValue:a.order_type,"onUpdate:modelValue":t[2]||(t[2]=o=>a.order_type=o),placeholder:"\u8BF7\u9009\u62E9\u8BA2\u5355\u7C7B\u578B",style:{width:"240px"}},{default:l(()=>[e(p,{value:1,label:"\u94FA\u8D27\u8BA2\u5355"}),e(p,{value:2,label:"\u644A\u8D29\u8BA2\u5355"}),e(p,{value:3,label:"\u4E00\u6761\u9F99\u8BA2\u5355"})]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u652F\u4ED8\u8BA2\u5355\u53F7",prop:"order_sn"},{default:l(()=>[e(d,{class:"w-[200px]",modelValue:a.order_sn,"onUpdate:modelValue":t[3]||(t[3]=o=>a.order_sn=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u5165\u5E93\u5355\u53F7",prop:"order_rk"},{default:l(()=>[e(d,{class:"w-[200px]",modelValue:a.order_rk,"onUpdate:modelValue":t[4]||(t[4]=o=>a.order_rk=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5165\u5E93\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u51FA\u5E93\u5355\u53F7",prop:"order_ck"},{default:l(()=>[e(d,{class:"w-[200px]",modelValue:a.order_ck,"onUpdate:modelValue":t[5]||(t[5]=o=>a.order_ck=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u5907\u6CE8",prop:"mark"},{default:l(()=>[e(d,{class:"w-[200px]",modelValue:a.mark,"onUpdate:modelValue":t[6]||(t[6]=o=>a.mark=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u51FA\u5165\u5E93",prop:"warehouse_type"},{default:l(()=>[e(y,{modelValue:a.warehouse_type,"onUpdate:modelValue":t[7]||(t[7]=o=>a.warehouse_type=o),placeholder:"\u8BF7\u9009\u62E9\u51FA\u5165\u5E93\u7C7B\u578B",style:{width:"180px"}},{default:l(()=>[e(p,{value:1,label:"\u672A\u51FA\u5E93"}),e(p,{value:2,label:"\u5DF2\u51FA\u5E93"}),e(p,{value:3,label:"\u672A\u5165\u5E93"}),e(p,{value:4,label:"\u5DF2\u5165\u5E93"})]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:l(()=>[e(m,{type:"primary",onClick:n(P)},{default:l(()=>[s("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(m,{onClick:n(Y)},{default:l(()=>[s("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),C((F(),E(V,{class:"!border-none",shadow:"never"},{default:l(()=>[e(B,{to:{path:"beforehand_order_add"},class:"ml-4"},{default:l(()=>[e(m,{type:"primary"},{default:l(()=>[s(" \u6DFB\u52A0 ")]),_:1})]),_:1}),e(B,{to:{path:"beforehand_order_cart_info"},class:"ml-4"},{default:l(()=>[e(m,{type:"primary"},{default:l(()=>[s(" \u5546\u54C1\u5217\u8868 ")]),_:1})]),_:1}),_("div",Fe,[e(N,{data:n(c).lists},{default:l(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"id",prop:"id","show-overflow-tooltip":"",width:"55"}),e(u,{label:"\u64CD\u4F5C\u65F6\u95F4/\u4EBA\u5458",prop:"create_time","show-overflow-tooltip":"",width:"150"},{default:l(({row:o})=>[_("div",null,b(o.admin_name),1),_("div",null,b(o.create_time),1)]),_:1}),e(u,{label:"\u5355\u53F7",prop:"order_id","show-overflow-tooltip":"",width:"180"},{default:l(({row:o})=>[_("div",null,b(o.order_id),1),_("div",null,b(o.order_sn),1)]),_:1}),e(u,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type_name","show-overflow-tooltip":""}),e(u,{label:"\u95E8\u5E97",prop:"system_store","show-overflow-tooltip":""}),e(u,{label:"\u5165\u5E93",prop:"warehousing","show-overflow-tooltip":""}),e(u,{label:"\u51FA\u5E93",prop:"outbound","show-overflow-tooltip":""}),e(u,{label:"\u603B\u4EF7\u683C",prop:"total_price","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(u,{label:"\u4EE3\u8D2D\u5907\u6CE8",prop:"other_data.store_mark","show-overflow-tooltip":""}),e(u,{label:"\u901A\u77E5",prop:"msg","show-overflow-tooltip":""}),e(u,{label:"\u6587\u4EF6",prop:"file","show-overflow-tooltip":""},{default:l(({row:o})=>[e(M,{style:{width:"50px",height:"50px"},src:o.file,"preview-teleported":!0},null,8,["src"])]),_:1}),e(u,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:o})=>[e(B,{to:{path:"beforehand_order_details",query:{id:o.id}},class:"ml-4"},{default:l(()=>[s(" \u8BE6\u60C5 ")]),_:2},1032,["to"]),C((F(),E(m,{link:"",onClick:j=>U(o)},{default:l(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["beforehand_order.beforehand_order/edit"]]]),C((F(),E(m,{type:"danger",link:"",onClick:j=>R(o.id)},{default:l(()=>[s(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["beforehand_order.beforehand_order/delete"]]])]),_:1})]),_:1},8,["data"])]),_("div",ve,[e(L,{modelValue:n(c),"onUpdate:modelValue":t[8]||(t[8]=o=>_e(c)?c.value=o:null),onChange:n(f)},null,8,["modelValue","onChange"])])]),_:1})),[[O,n(c).loading]]),w.value?(F(),E(de,{key:0,ref_key:"editRef",ref:h,onSuccess:n(f),onClose:t[9]||(t[9]=o=>w.value=!1)},null,8,["onSuccess"])):ce("",!0)])}}});export{fo as default};
|