2 lines
5.1 KiB
JavaScript
2 lines
5.1 KiB
JavaScript
import{G as T,H as M,y as O,w as Q,D as R,C as U,L as $,M as j,N as z}from"./element-plus.517d4382.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{u as H}from"./usePaging.f6660143.js";import{u as I}from"./useDictOptions.b5854a9e.js";import{a as W}from"./quotation.5cc5d967.js";import{a as J}from"./quotation_detail.6404b1cb.js";import"./lodash.1d82ee7c.js";import"./index.8b1962e9.js";import{d as C,r as m,a0 as K,a5 as X,o as p,c as b,V as o,M as e,O as Y,u as a,L as _,S as Z,W as oo,a8 as to,a as h,k as eo,T as F}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const lo=F("\u67E5\u8BE2"),ao=F("\u91CD\u7F6E"),uo={class:"mt-4"},ro={class:"flex mt-4 justify-end"},po=C({name:"quotationDetailLists"}),Wo=C({...po,setup(io){const c=m(!1),d=m([]),i=K({quotation_id:""}),B=()=>{W({page_no:1,page_size:9995}).then(s=>{d.value=s.lists})},D=m([]),g=s=>{D.value=s.map(({id:l})=>l)},{dictData:A}=I("tax_rate"),{pager:r,getLists:n,resetParams:x,resetPage:k}=H({fetchFun:J,params:i});return B(),n(),(s,l)=>{const f=T,q=M,w=O,v=Q,V=R,E=U,t=$,y=j,L=G,S=X("edit-popup"),N=z;return p(),b("div",null,[o(E,{class:"!border-none mb-4",shadow:"never"},{default:e(()=>[o(V,{class:"mb-[-16px]",model:i,inline:""},{default:e(()=>[o(w,{label:"\u62A5\u4EF7\u5355id",prop:"quotation_id"},{default:e(()=>[o(q,{class:"w-[280px]",modelValue:i.quotation_id,"onUpdate:modelValue":l[0]||(l[0]=u=>i.quotation_id=u),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7A0E\u7387"},{default:e(()=>[o(f,{label:"\u5168\u90E8",value:""}),(p(!0),b(oo,null,to(d.value,(u,P)=>(p(),_(f,{key:P,label:u.code,value:u.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(w,null,{default:e(()=>[o(v,{type:"primary",onClick:a(k)},{default:e(()=>[lo]),_:1},8,["onClick"]),o(v,{onClick:a(x)},{default:e(()=>[ao]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),Y((p(),_(E,{class:"!border-none",shadow:"never"},{default:e(()=>[h("div",uo,[o(y,{data:a(r).lists,onSelectionChange:g},{default:e(()=>[o(t,{type:"selection",width:"55"}),o(t,{label:"\u5E8F\u53F7",type:"index",width:"55"}),o(t,{label:"\u62A5\u4EF7\u5355\u53F7",prop:"quotation_code","show-overflow-tooltip":""}),o(t,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),o(t,{label:"\u5236\u5355\u4EBA",prop:"quotation_create_user","show-overflow-tooltip":""}),o(t,{label:"\u62A5\u4EF7\u65E5\u671F",prop:"quotation_date","show-overflow-tooltip":""}),o(t,{label:"\u4EA7\u54C1\u7C7B\u522B",prop:"product_first_level_name","show-overflow-tooltip":""}),o(t,{label:"\u4EA7\u54C1\u4E2D\u7C7B",prop:"product_second_level_name","show-overflow-tooltip":""}),o(t,{label:"\u4EA7\u54C1\u5C0F\u7C7B",prop:"product_three_level_name","show-overflow-tooltip":""}),o(t,{label:"\u4EA7\u54C1\u540D\u79F0",prop:"product_name","show-overflow-tooltip":""}),o(t,{label:"\u4EA7\u54C1\u7F16\u7801",prop:"product_code","show-overflow-tooltip":""}),o(t,{label:"\u89C4\u683C\u578B\u53F7",prop:"product_specs","show-overflow-tooltip":""}),o(t,{label:"\u54C1\u724C",prop:"product_brand","show-overflow-tooltip":""}),o(t,{label:"\u53C2\u6570\u8BF4\u660E",prop:"product_parameter_description","show-overflow-tooltip":""}),o(t,{label:"\u5355\u4F4D",prop:"product_unit","show-overflow-tooltip":""}),o(t,{label:"\u6570\u91CF",prop:"num","show-overflow-tooltip":""}),o(t,{label:"\u7A0E\u7387",prop:"tax_rate","show-overflow-tooltip":""}),o(t,{label:"\u542B\u7A0E\u5355\u4EF7",prop:"tax_inclusive_price","show-overflow-tooltip":""}),o(t,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D",prop:"tax_exclusive_amount","show-overflow-tooltip":""}),o(t,{label:"\u542B\u7A0E\u91D1\u989D",prop:"tax_inclusive_amount","show-overflow-tooltip":""}),o(t,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),o(t,{label:"\u521B\u5EFA\u65E5\u671F",prop:"create_time","show-overflow-tooltip":""}),o(t,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""})]),_:1},8,["data"])]),h("div",ro,[o(L,{modelValue:a(r),"onUpdate:modelValue":l[1]||(l[1]=u=>eo(r)?r.value=u:null),onChange:a(n)},null,8,["modelValue","onChange"])])]),_:1})),[[N,a(r).loading]]),c.value?(p(),_(S,{key:0,ref:"editRef","dict-data":a(A),onSuccess:a(n),onClose:l[2]||(l[2]=u=>c.value=!1)},null,8,["dict-data","onSuccess"])):Z("",!0)])}}});export{Wo as default};
|