2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
import{R as ne,a2 as ue,S as oe,a4 as se,L as ie,M as pe,O as re,a5 as me,D as _e}from"./element-plus.258bf9e7.js";import{P as de}from"./index.9492d03b.js";import{a as ce}from"./custom.13e75d58.js";import{a as ge}from"./customer_demand_solution.c617eb7f.js";import{a as fe}from"./project_estimate.38ab2776.js";import{d as be}from"./competitor.63c8f08c.js";import{d as N,r as b,a0 as B,s as R,o as r,c as m,V as e,M as l,T as o,U as s,W as y,a8 as v,a as h}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as Ee}from"./index.ec401e3b.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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const Be={class:"detail-popup"},he={key:0},Fe={style:{"margin-left":"5px",display:"block"}},ye={key:1},ve={key:0},Ce={key:1},De={style:{margin:"10px 0"}},xe={key:0},ze={key:1},ke={style:{margin:"10px 0"}},Ae={key:0},we={key:1},Se={style:{margin:"10px 0"}},je=N({name:"customdetail"}),Le=N({...je,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(Ue,{expose:$,emit:I}){const w=b("first"),_=B({page_size:10,page_no:1,customer_demand_id:""}),d=B({page_size:10,page_no:1,customer_demand_id:""}),c=B({page_size:10,page_no:1,customer_demand_id:""}),S=b(0),j=b(0),L=b(0),M=R(),C=R(),D=B([]);B({provinceOptions:[],cityOptions:[],areaOptions:[]});const U=b([]),O=b([]),T=b([]),q=(a,n)=>{console.log(a,n)},p=B({}),W=a=>{_.page_size=a},G=a=>{d.page_size=a,x()},H=a=>{c.page_size=a,z()},J=a=>{console.log(`current page: ${a}`),_.page_no=a,V()},K=a=>{console.log(`current page: ${a}`),d.page_no=a,x()},Q=a=>{c.page_no=a,console.log(`current page: ${a}`),z()},V=()=>{ge(_).then(a=>{U.value=a.lists,S.value=a.count})},x=()=>{fe(d).then(a=>{O.value=a.lists,j.value=a.count})},z=()=>{be(c).then(a=>{T.value=a.lists,L.value=a.count})},P=async a=>{if(Object.assign(p,a),_.customer_demand_id=a.id,d.customer_demand_id=a.id,c.customer_demand_id=a.id,a.annex&&a.annex.length>0){const n=a.annex.map((i,E)=>({name:`\u6587\u4EF6${E+1}`,uri:i}));Object.assign(D,n)}z(),V(),x()},X=async a=>{const n=await ce({id:a.id});P(n)},Y=async()=>{var a;(a=C.value)==null||a.close()},Z=()=>{var a;console.log("1111111"),(a=C.value)==null||a.open()},ee=()=>{I("close")};return $({open:Z,setFormData:P,getDetail:X}),(a,n)=>{const i=ne,E=ue,ae=oe,F=se,u=ie,k=pe,A=re,le=me,te=_e;return r(),m("div",Be,[e(de,{ref_key:"popupRef",ref:C,title:"\u5BA2\u6237\u9700\u6C42\u8BE6\u60C5",async:!0,width:"80%",onConfirm:Y,onClose:ee},{default:l(()=>[e(te,{ref_key:"formRef",ref:M,model:p,"label-width":"120px"},{default:l(()=>[e(le,{modelValue:w.value,"onUpdate:modelValue":n[6]||(n[6]=t=>w.value=t),class:"demo-tabs",onTabClick:q},{default:l(()=>[e(F,{label:"\u9700\u6C42\u8BE6\u60C5",name:"first"},{default:l(()=>[e(ae,{column:2,border:""},{default:l(()=>[e(i,{label:"\u7EC4\u7EC7\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.org_name),1)]),_:1}),e(i,{label:"\u90E8\u95E8\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.dept_name),1)]),_:1}),e(i,{label:"\u5BA2\u6237\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.custom_name),1)]),_:1}),e(i,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.project_name),1)]),_:1}),e(i,{label:"\u9879\u76EE\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.project_code),1)]),_:1}),e(i,{label:"\u9700\u6C42\u4E3B\u9898","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.theme),1)]),_:1}),e(i,{label:"\u5BA2\u6237\u9700\u6C42\u63D0\u4F9B\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.supplier),1)]),_:1}),e(i,{label:"\u63D0\u4F9B\u4EBA\u8054\u7CFB\u65B9\u5F0F","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.supplier_contacts),1)]),_:1}),e(i,{label:"\u91CD\u8981\u7A0B\u5EA6","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.importance_text),1)]),_:1}),e(i,{label:"\u8BB0\u5F55\u65F6\u95F4","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.recording_time),1)]),_:1}),e(i,{label:"\u9700\u6C42\u5185\u5BB9","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.demand_content),1)]),_:1}),e(i,{label:"\u6DFB\u52A0\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.add_user_name),1)]),_:1}),e(i,{label:"\u521B\u5EFA\u65E5\u671F","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.create_time),1)]),_:1}),e(i,{label:"\u66F4\u65B0\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.update_user_name),1)]),_:1}),e(i,{label:"\u66F4\u65B0\u65E5\u671F","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[o(s(p.update_time),1)]),_:1}),e(i,{label:"\u9644\u4EF6","label-align":"left",align:"left","label-class-name":"my-label"},{default:l(()=>[D.length>0?(r(),m("div",he,[(r(!0),m(y,null,v(D,(t,f)=>(r(),m("div",Fe,[e(E,{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:t.uri,target:"_blank"},{default:l(()=>[o("\u6587\u4EF6"+s(f+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),256))])):(r(),m("div",ye," \u6682\u65E0\u9644\u4EF6 "))]),_:1})]),_:1})]),_:1}),e(F,{label:"\u89E3\u51B3\u65B9\u6848",name:"second"},{default:l(()=>[h("div",null,[e(k,{data:U.value,stripe:"",style:{width:"100%"}},{default:l(()=>[e(u,{label:"\u89E3\u51B3\u65B9\u6848\u4E3B\u9898",prop:"customer_demand_name",width:"180"}),e(u,{label:"\u63D0\u4EA4\u65F6\u95F4",prop:"submission_time",width:"180"}),e(u,{label:"\u65B9\u6848\u5185\u5BB9",prop:"solution_content"}),e(u,{label:"\u5BA2\u6237\u53CD\u9988",prop:"customer_feedback"}),e(u,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""},{default:l(({row:t})=>[t.annex&&t.annex.length>0?(r(),m("div",ve,[(r(!0),m(y,null,v(t.annex,(f,g)=>(r(),m("div",{key:g},[e(E,{href:f,target:"_blank"},{default:l(()=>[o("\u6587\u4EF6"+s(g+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(r(),m("div",Ce," \u6682\u65E0\u6587\u4EF6 "))]),_:1})]),_:1},8,["data"])]),h("div",De,[e(A,{"current-page":_.page_no,"onUpdate:current-page":n[0]||(n[0]=t=>_.page_no=t),"page-size":_.page_size,"onUpdate:page-size":n[1]||(n[1]=t=>_.page_size=t),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:S.value,onSizeChange:W,onCurrentChange:J},null,8,["current-page","page-size","total"])])]),_:1}),e(F,{label:"\u9879\u76EE\u6982\u7B97",name:"third"},{default:l(()=>[h("div",null,[e(k,{data:O.value,stripe:"",style:{width:"100%"}},{default:l(()=>[e(u,{label:"\u6982\u7B97\u6765\u6E90",prop:"estimate_source_text",width:"180"}),e(u,{label:"\u5236\u5355\u4EBA",prop:"create_user",width:"180"}),e(u,{label:"\u62A5\u4EF7\u65E5\u671F",prop:"quotation_date"}),e(u,{label:"\u6280\u672F\u4EBA\u5458",prop:"technician_name",width:"180"}),e(u,{label:"\u6982\u7B97\u91D1\u989D(\u4E07\u5143)",prop:"estimate_amount",width:"180"}),e(u,{label:"\u8981\u6C42",prop:"ask"}),e(u,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""},{default:l(({row:t})=>[t.annex&&t.annex.length>0?(r(),m("div",xe,[(r(!0),m(y,null,v(t.annex,(f,g)=>(r(),m("div",{key:g},[e(E,{href:f,target:"_blank"},{default:l(()=>[o("\u6587\u4EF6"+s(g+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(r(),m("div",ze," \u6682\u65E0\u6587\u4EF6 "))]),_:1})]),_:1},8,["data"])]),h("div",ke,[e(A,{"current-page":d.page_no,"onUpdate:current-page":n[2]||(n[2]=t=>d.page_no=t),"page-size":d.page_size,"onUpdate:page-size":n[3]||(n[3]=t=>d.page_size=t),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:j.value,onSizeChange:G,onCurrentChange:K},null,8,["current-page","page-size","total"])])]),_:1}),e(F,{label:"\u7ADE\u4E89\u5BF9\u624B",name:"fourth"},{default:l(()=>[h("div",null,[e(k,{data:T.value,stripe:"",style:{width:"100%"}},{default:l(()=>[e(u,{label:"\u7ADE\u4E89\u5BF9\u624B\u540D\u79F0",prop:"competitor_name",width:"180"}),e(u,{label:"\u7ADE\u4E89\u5BF9\u624B\u8054\u7CFB\u4EBA",prop:"competitor_contacts",width:"180"}),e(u,{label:"\u8054\u7CFB\u4EBA\u7535\u8BDD",prop:"competitor_contacts_phone"}),e(u,{label:"\u7ADE\u4E89\u80FD\u529B",prop:"competitive_power"}),e(u,{label:"\u7ADE\u4E89\u5BF9\u624B\u4F18\u52BF",prop:"competitor_advantages"}),e(u,{label:"\u7ADE\u4E89\u5BF9\u624B\u52A3\u52BF",prop:"competitor_disadvantages"}),e(u,{label:"\u5907\u6CE8",prop:"remark"}),e(u,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""},{default:l(({row:t})=>[t.annex&&t.annex.length>0?(r(),m("div",Ae,[(r(!0),m(y,null,v(t.annex,(f,g)=>(r(),m("div",{key:g},[e(E,{href:f,target:"_blank"},{default:l(()=>[o("\u6587\u4EF6"+s(g+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(r(),m("div",we," \u6682\u65E0\u6587\u4EF6 "))]),_:1})]),_:1},8,["data"])]),h("div",Se,[e(A,{"current-page":c.page_no,"onUpdate:current-page":n[4]||(n[4]=t=>c.page_no=t),"page-size":c.page_size,"onUpdate:page-size":n[5]||(n[5]=t=>c.page_size=t),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:L.value,onSizeChange:H,onCurrentChange:Q},null,8,["current-page","page-size","total"])])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])]),_:1},512)])}}});const Ba=Ee(Le,[["__scopeId","data-v-ee88f62c"]]);export{Ba as default};
|