import{_ as y}from"./index.vue_vue_type_script_setup_true_lang.120de7ce.js";import{w as g,O as h,Q as w}from"./element-plus.bccb9376.js";import{u as C}from"./usePaging.6a6670f9.js";import{u as v}from"./useDictOptions.f22931fb.js";import{j as x,e as B}from"./opurchaseclass.4d142976.js";import{u as V}from"./vue-router.101084e3.js";import{d as p,Z as E,o as u,c as k,U as e,L as n,R as D,u as a,a as F,K as P,j as L,Q as N}from"./@vue.18505fe0.js";const j={class:"flex mt-4 justify-end"},q=p({name:"subOrder"}),z=p({...q,setup(O,{expose:i}){const s=V(),m=E({is_push:0,id:s.query.id,is_mer:2,sys_labels_arr:""}),{pager:t,getLists:l,resetParams:R,resetPage:T}=C({fetchFun:B,params:m});i({getLists:l}),v("pay_type,auditing_type");const c=async()=>{await x({id:s.query.id})};return(A,r)=>{const _=g,o=h,d=w,f=y;return u(),k("div",null,[e(_,{type:"primary",onClick:c,style:{"margin-bottom":"16px"}},{default:n(()=>[D(" \u91CD\u65B0\u63A8\u9001 ")]),_:1}),e(d,{data:a(t).lists},{default:n(()=>[e(o,{label:"\u5546\u54C1\u540D\u79F0",prop:"goods_name","show-overflow-tooltip":""}),e(o,{label:"\u5355\u4F4D",prop:"unit_name","show-overflow-tooltip":""}),e(o,{label:"\u5355\u4EF7(\u5143)",prop:"price","show-overflow-tooltip":""}),e(o,{prop:"nums",label:"\u6570\u91CF"}),e(o,{prop:"total",label:"\u5408\u8BA1(\u5143)"}),e(o,{label:"\u5907\u6CE8",prop:"data","show-overflow-tooltip":""})]),_:1},8,["data"]),F("div",j,[a(t).lists?(u(),P(f,{key:0,modelValue:a(t),"onUpdate:modelValue":r[0]||(r[0]=b=>L(t)?t.value=b:null),onChange:a(l)},null,8,["modelValue","onChange"])):N("",!0)])])}}});export{z as _};
