2026-07-01 16:11:39 +08:00
import { _ as de , V as se , o as N , c as O , a as _ , e , f as t , a8 as ue , k as y , j as s , i as U , h as u , t as V , m as p , L as ne , g as x , a3 as E , d as P , a9 as me , a1 as fe , aa as pe , ab as Y , Z as B , F as ce , R as ve , ac as ye , T as be , E as M } from "./index-C1KISTGN.js" ; const ge = { class : "order-management-supplier" } , _e = { class : "page-header" } , Ve = { class : "header-actions" } , Te = { class : "filter-bar" } , Ce = { class : "total-price" } , Ne = { class : "radio-label" } , Pe = { class : "radio-label" } , ke = { _ _name : "List" , setup ( we ) { const S = [ { id : 1 , orderNumber : "ORD-20240519001" , materialName : "办公电脑" , specification : "i7-12700/16G/512G SSD" , quantity : 5 , unitPrice : 5800 , totalPrice : 29e3 , orderTime : "2024-05-19 09:30:00" , logisticsInfo : "顺丰速运" , status : "pending_confirmation" } , { id : 2 , orderNumber : "ORD-20240519002" , materialName : "A4打印纸" , specification : "70g 500张/包" , quantity : 100 , unitPrice : 25 , totalPrice : 2500 , orderTime : "2024-05-19 10:15:00" , logisticsInfo : "" , status : "pending_confirmation" } , { id : 3 , orderNumber : "ORD-20240518001" , materialName : "办公桌椅套装" , specification : "1.6m人体工学" , quantity : 10 , unitPrice : 1200 , totalPrice : 12e3 , orderTime : "2024-05-18 14:20:00" , logisticsInfo : "" , status : "confirmed" } , { id : 4 , orderNumber : "ORD-20240517001" , materialName : "投影仪" , specification : "1080P/3500流明" , quantity : 2 , unitPrice : 4500 , totalPrice : 9e3 , orderTime : "2024-05-17 11:00:00" , logisticsInfo : "顺丰速运 - SF1234567890" , status : "filled" } , { id : 5 , orderNumber : "ORD-20240516001" , materialName : "文件柜" , specification : "四门钢制" , quantity : 8 , unitPrice : 850 , totalPrice : 6800 , orderTime : "2024-05-16 16:45:00" , logisticsInfo : "" , status : "confirmed" } , { id : 6 , orderNumber : "ORD-20240515001" , materialName : "笔记本电脑" , specification : "i5-1240P/16G/512G" , quantity : 3 , unitPrice : 5200 , totalPrice : 15600 , orderTime : "2024-05-15 09:00:00" , logisticsInfo : "申通快递 - ST9876543210" , status : "filled" } ] , T = y ( [ ] ) , g = y ( ! 1 ) , m = y ( ! 1 ) , D = y ( ! 1 ) , k = y ( "" ) , w = y ( "" ) , i = y ( { orderNumber : "" , materialName : "" , specification : "" , quantity : 0 , unitPrice : 0 , totalPrice : 0 , orderTime : "" , requiredDeliveryTime : "" , deliveryMethod : "logistics" , deliveryPerson : "" , deliveryContact : "" , logisticsCompany : "" , waybillNumber : "" , deliveryTime : "" , logisticsTrack : "" } ) , $ = y ( ) , q = y ( null ) , H = U ( ( ) => { let a = T . value ; if ( k . value && ( a = a . filter ( l => l . status === k . value ) ) , w . value ) { const l = w . value . toLowerCase ( ) ; a = a . filter ( r => r . orderNumber . toLowerCase ( ) . includes ( l ) || r . materialName . toLowerCase ( ) . includes ( l ) ) } return a } ) , G = U ( ( ) => T . value . filter ( a => a . status === "confirmed" ) . length ) , A = U ( ( ) => T . value . filter ( a => a . status === "filled" ) . length ) , j = { requiredDeliveryTime : [ { required : ! 0 , message : "请选择要求送达时间" , trigger : "change" } ] , deliveryPerson : [ { validator : ( a , l , r ) => { ( i . value . deliveryMethod === "self_delivery" || i . value . deliveryMethod === "logistics" ) && ! ( l != null && l . trim ( ) ) ? r ( new Error ( "请输入送货人姓名" ) ) : r ( ) } , trigger : "blur" } , { min : 2 , max : 20 , message : "姓名长度为2-20个字符" , trigger : "blur" } ] , deliveryContact : [ { validator : ( a , l , r ) => { ( i . value . deliveryMethod === "self_delivery" || i . value . deliveryMethod === "logistics" ) && ! ( l != null && l . trim ( ) ) ? r ( new Error ( "请输入联系方式" ) ) : r ( ) } , trigger : "blur" } , { pattern : /^1[3-9]\d{9}$/ , message : "请输入正确的11位手机号码" , trigger : "blur" } ] , logisticsCompany : [ { validator : ( a , l , r ) => { i . value . deliveryMethod === "logistics" && ! ( l != null && l . trim ( ) ) ? r ( new Error ( "请输入物流公司名称" ) ) : r ( ) } , trigger : "blur" } , { min : 2 , max : 30 , message : "物流公司名称长度为2-30个字符" , trigger : "blur" } ] , waybillNumber : [ { validator : ( a , l , r ) => { i . value . deliveryMethod === "logistics" && ! ( l != null && l . trim ( ) ) ? r ( new Error ( "请输入运单号" ) ) : r ( ) } , trigger : "blur" } , { min : 5 , max : 50 , message : "运单号长度为5-50个字符" , trigger : "blur" } ] , deliveryTime : [ { required : ! 0 , message : "请选择发货时间" , trigger : "change" } ] , logisticsTrack : [ { required : ! 0 , message : "请输入物流轨迹信息" , trigger : "blur" } , { min : 5 , message : "物流轨迹信息至少5个字符" , trigger : "blur" } ] } ; se ( ( ) => { K ( ) } ) ; const K = ( ) => { T . value = S } , z = a => a || "-" , Z = a => ( { pending _confirmation : "待确认" , confirmed : "已确认" , filled : "已填报" } ) [ a ] || "未知状态" , J = a => ( { pending _confirmation : "warning" , confirmed : "success" , filled : "info" } ) [ a ] || "info" , Q = async a => { try { await be . confirm ( ` <EFBFBD> <EFBFBD>
2024 - 01 - 16 09 : 00 派送中 ` ,disabled:m.value},null,8,["modelValue","disabled"])]),_:1})]),_:1},8,["model"])]),_:2},[m.value?{name:"footer",fn:t(()=>[e(C,{type:"primary",onClick:l[18]||(l[18]=o=>g.value=!1),size:"large"},{default:t(()=>[...l[31]||(l[31]=[u("关闭",-1)])]),_:1})]),key:"1"}:{name:"footer",fn:t(()=>[e(C,{onClick:l[17]||(l[17]=o=>g.value=!1),size:"large"},{default:t(()=>[...l[29]||(l[29]=[u("取消",-1)])]),_:1}),e(C,{type:"primary",onClick:le,size:"large",loading:D.value},{default:t(()=>[e(v,null,{default:t(()=>[e(p(E))]),_:1}),l[30]||(l[30]=u(" 提交 ",-1))]),_:1},8,["loading"])]),key:"0"}]),1032,["modelValue","title"])])}}},Me=de(ke,[["__scopeId","data-v-86c306b2"]]);export{Me as default};