engineering/public/admin/assets/detail.482ccf98.js
2024-02-27 10:28:16 +08:00

2 lines
6.4 KiB
JavaScript

import{R as N,_ as U,S as M,L as Q,M as W,O as $,B as G,C as H,D as J}from"./element-plus.517d4382.js";import{P as K}from"./index.b17dae19.js";import{a as X}from"./custom.99349afc.js";import{d as C,s as E,r as w,a0 as b,o as _,c as m,V as e,M as l,T as s,U as u,W as Y,a8 as Z,a as y,b7 as ee,b6 as le}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{a as te}from"./quotation_detail.6404b1cb.js";import{_ as ae}from"./index.8b1962e9.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 oe=c=>(ee("data-v-8f8a1783"),c=c(),le(),c),ne={class:"detail-popup"},se={key:0},ue={style:{"margin-left":"5px",display:"block"}},ie={key:1},pe=oe(()=>y("div",{class:"tit"},"\u62A5\u4EF7\u660E\u7EC6",-1)),re={style:{margin:"10px 0"}},_e=C({name:"customdetail"}),me=C({..._e,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(c,{expose:D,emit:B}){const x=E(),f=E(),g=w([]);b({provinceOptions:[],cityOptions:[],areaOptions:[]});const i=b({page_size:10,page_no:1,quotation_id:""}),F=t=>{i.page_size=t,d()},A=t=>{console.log(`current page: ${t}`),i.page_no=t,d()},h=w(0),a=b({}),d=()=>{te(i).then(t=>{g.value=t.lists,h.value=t.count})},v=async t=>{i.quotation_id=t.id,Object.assign(a,t),d()},k=async t=>{const p=await X({id:t.id});v(p)},z=async()=>{var t;(t=f.value)==null||t.close()},S=()=>{var t;(t=f.value)==null||t.open()},R=()=>{B("close")};return D({open:S,setFormData:v,getDetail:k}),(t,p)=>{const o=N,q=U,O=M,n=Q,I=W,L=$,P=G,T=H,V=J;return _(),m("div",ne,[e(K,{ref_key:"popupRef",ref:f,title:"\u62A5\u4EF7\u5355\u8BE6\u60C5",async:!0,width:"80%",onConfirm:z,onClose:R},{default:l(()=>[e(V,{ref_key:"formRef",ref:x,model:a,"label-width":"120px"},{default:l(()=>[e(T,{class:"mb-2"},{default:l(()=>[e(O,{column:2,border:""},{default:l(()=>[e(o,{label:"\u5BA2\u6237\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[s(u(a.custom_name),1)]),_:1}),e(o,{label:"\u62A5\u4EF7\u65E5\u671F","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[s(u(a.quotation_date),1)]),_:1}),e(o,{label:"\u8054\u7CFB\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[s(u(a.custom_master_name),1)]),_:1}),e(o,{label:"\u8054\u7CFB\u7535\u8BDD","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[s(u(a.custom_master_phone),1)]),_:1}),e(o,{label:"\u5236\u5355\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[s(u(a.create_user),1)]),_:1}),e(o,{label:"\u53D1\u7968\u7C7B\u578B","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[s(u(a.invoice_type_text),1)]),_:1}),e(o,{label:"\u8BA2\u5355\u91D1\u989D","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[s(u(a.amount_including_tax),1)]),_:1}),e(o,{label:"\u8FD0\u8D39","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[s(u(a.freight),1)]),_:1}),e(o,{label:"\u5176\u5B83\u8D39\u7528","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[s(u(a.other_fee),1)]),_:1}),e(o,{label:"\u5408\u8BA1\u91D1\u989D","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[s(u(a.total_amount),1)]),_:1}),e(o,{label:"\u5BA2\u6237\u9700\u6C42","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[s(u(a.customer_require),1)]),_:1}),e(o,{label:"\u5907\u6CE8","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[s(u(a.remark),1)]),_:1}),e(o,{label:"\u9644\u4EF6","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[a.annex.length>0?(_(),m("div",se,[(_(!0),m(Y,null,Z(a.annex,(r,j)=>(_(),m("div",ue,[e(q,{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:r,target:"_blank"},{default:l(()=>[s("\u6587\u4EF6"+u(j+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),256))])):(_(),m("div",ie," \u6682\u65E0\u9644\u4EF6 "))]),_:1})]),_:1}),pe,e(P,null,{default:l(()=>[e(I,{data:g.value},{default:l(()=>[e(n,{label:"\u4EA7\u54C1\u7C7B\u522B",prop:"product_first_level_name","show-overflow-tooltip":""}),e(n,{label:"\u4EA7\u54C1\u540D\u79F0",prop:"product_name","show-overflow-tooltip":""}),e(n,{label:"\u4EA7\u54C1\u7F16\u7801",prop:"product_code","show-overflow-tooltip":""}),e(n,{label:"\u89C4\u683C\u578B\u53F7",prop:"product_specs","show-overflow-tooltip":""}),e(n,{label:"\u54C1\u724C",prop:"product_brand","show-overflow-tooltip":""}),e(n,{label:"\u53C2\u6570\u8BF4\u660E",prop:"product_parameter_description","show-overflow-tooltip":""}),e(n,{label:"\u5355\u4F4D",prop:"product_unit","show-overflow-tooltip":""}),e(n,{label:"\u6570\u91CF",prop:"num","show-overflow-tooltip":""}),e(n,{label:"\u7A0E\u7387",prop:"tax_rate","show-overflow-tooltip":""}),e(n,{label:"\u542B\u7A0E\u5355\u4EF7",prop:"tax_inclusive_price","show-overflow-tooltip":""}),e(n,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D",prop:"tax_exclusive_amount","show-overflow-tooltip":""}),e(n,{label:"\u542B\u7A0E\u91D1\u989D",prop:"tax_inclusive_amount","show-overflow-tooltip":""}),e(n,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""})]),_:1},8,["data"]),y("div",re,[e(L,{"current-page":i.page_no,"onUpdate:current-page":p[0]||(p[0]=r=>i.page_no=r),"page-size":i.page_size,"onUpdate:page-size":p[1]||(p[1]=r=>i.page_size=r),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:h.value,onSizeChange:F,onCurrentChange:A},null,8,["current-page","page-size","total"])])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});const Je=ae(me,[["__scopeId","data-v-8f8a1783"]]);export{Je as default};