2 lines
9.9 KiB
JavaScript
2 lines
9.9 KiB
JavaScript
import{w as K,L as Q,M as X,O as Y,Z as ee}from"./element-plus.4ff6f47d.js";import{a as te}from"./index.aaca920c.js";import{a as ae}from"./project_follow_up.5138b4d9.js";import{a as oe}from"./customer_demand.1f5762f3.js";import{a as ne}from"./customer_demand_solution.509645bd.js";import{a as le}from"./project_estimate.316c1ddc.js";import{d as pe}from"./competitor.33801606.js";import{_ as re}from"./edit.vue_vue_type_script_setup_true_name_projectFollowUpEdit_lang.aad92765.js";import{u as ie}from"./useDictOptions.c83e2497.js";import{r as s,a0 as f,ai as se,o as l,c as p,a as i,O as de,L as M,M as r,V as e,u as ue,S as _e,W as b,n as ge,U as g,a8 as k,T as z}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.fc5568d8.js";import"./axios.5b893b79.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.8ea2174a.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.c07aa9ab.js";import"./index.vue_vue_type_script_setup_true_lang.7dabd2cb.js";import"./usePaging.f6660143.js";import"./project.86812b1a.js";import"./index.ff7c6188.js";import"./index.f2ff6561.js";const me=i("div",{class:"tit"},"\u9879\u76EE\u8DDF\u8FDB",-1),ce=z(" \u65B0\u589E "),he={style:{margin:"20px 0"}},ve=i("div",{class:"tit"},"\u5BA2\u6237\u9700\u6C42",-1),fe={key:0},be={key:1},ze={style:{margin:"20px 0"}},Ce=i("div",{class:"tit"},"\u89E3\u51B3\u65B9\u6848",-1),we={key:0},ye={key:1},xe={style:{margin:"20px 0"}},ke=i("div",{class:"tit"},"\u9879\u76EE\u6982\u7B97",-1),je={key:0},Se={key:1},De={style:{margin:"20px 0"}},Le=i("div",{class:"tit"},"\u7ADE\u4E89\u5BF9\u624B",-1),Ue={key:0},Ee={key:1},Be={style:{margin:"20px 0"}},kt={__name:"Business",props:{project_id:Number,formData:Object},setup(S){const m=S,{dictData:R}=ie("project_assurance,follow_status,follow_type,follow_stage"),j=s(!1),D=s(null),q=async()=>{var o;j.value=!0,await ge(),(o=D.value)==null||o.open("add")},L=s([]),U=s([]),E=s([]),B=s([]),N=s([]),T=s(0),V=s(0),P=s(0),O=s(0),$=s(0),C=f({page_size:10,page_no:1,project_id:m.project_id}),w=f({page_size:10,page_no:1,project_id:m.project_id}),y=f({page_size:10,page_no:1,project_id:m.project_id}),c=f({page_size:10,page_no:1,project_id:m.project_id}),u=f({page_size:10,page_no:1,project_id:m.project_id}),F=()=>{ae(u).then(o=>{L.value=o.lists,T.value=o.count})},A=()=>{oe(u).then(o=>{U.value=o.lists,V.value=o.count})},W=()=>{ne(u).then(o=>{E.value=o.lists,P.value=o.count})},Z=()=>{le(c).then(o=>{B.value=o.lists,O.value=o.count})},G=()=>{pe(u).then(o=>{N.value=o.lists,$.value=o.count})};return F(),A(),G(),W(),Z(),(o,n)=>{const H=te,I=K,a=Q,h=X,v=Y,x=ee,J=se("perms");return l(),p(b,null,[me,i("div",null,[de((l(),M(I,{type:"primary",onClick:q,style:{float:"right"}},{icon:r(()=>[e(H,{name:"el-icon-Plus"})]),default:r(()=>[ce]),_:1})),[[J,["project.project/add"]]]),e(h,{data:L.value,stripe:"",style:{width:"100%"}},{default:r(()=>[e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(a,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),e(a,{label:"\u6267\u884C\u4EBA",prop:"executor","show-overflow-tooltip":""}),e(a,{label:"\u65E5\u671F",prop:"follow_date"},{default:r(({row:t})=>[i("span",null,g(t.follow_date?t.follow_date:""),1)]),_:1}),e(a,{label:"\u7C7B\u578B",prop:"follow_type_text"}),e(a,{label:"\u4E3B\u9898",prop:"theme","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u628A\u63E1\u5EA6",prop:"project_assurance_text"}),e(a,{label:"\u72B6\u6001",prop:"follow_status_text"}),e(a,{label:"\u9636\u6BB5",prop:"follow_stage_text"}),e(a,{label:"\u4E0B\u6B21\u56DE\u8BBF\u65E5\u671F",prop:"next_follow_up_date"},{default:r(({row:t})=>[i("span",null,g(t.next_follow_up_date?t.next_follow_up_date:""),1)]),_:1})]),_:1},8,["data"]),j.value?(l(),M(re,{key:0,ref_key:"editRef",ref:D,onClose:n[0]||(n[0]=t=>j.value=!1),"dict-data":ue(R),onSuccess:F,project:S.formData},null,8,["dict-data","project"])):_e("",!0)]),i("div",he,[e(v,{"current-page":C.page_no,"onUpdate:current-page":n[1]||(n[1]=t=>C.page_no=t),"page-size":C.page_size,"onUpdate:page-size":n[2]||(n[2]=t=>C.page_size=t),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:T.value,onCurrentChange:o.handleCurrentChange1},null,8,["current-page","page-size","total","onCurrentChange"])]),ve,i("div",null,[e(h,{data:U.value,stripe:"",style:{width:"100%"}},{default:r(()=>[e(a,{label:"\u9700\u6C42\u4E3B\u9898",prop:"theme",width:"180"}),e(a,{label:"\u91CD\u8981\u7A0B\u5EA6",prop:"importance_text",width:"180"}),e(a,{label:"\u8BB0\u5F55\u65F6\u95F4",prop:"recording_time"}),e(a,{label:"\u9700\u6C42\u5185\u5BB9",prop:"demand_content"}),e(a,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""},{default:r(({row:t})=>[t.annex&&t.annex.length>0?(l(),p("div",fe,[(l(!0),p(b,null,k(t.annex,(_,d)=>(l(),p("div",{key:d},[e(x,{href:_,target:"_blank"},{default:r(()=>[z("\u6587\u4EF6"+g(d+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),p("div",be," \u6682\u65E0\u6587\u4EF6 "))]),_:1})]),_:1},8,["data"])]),i("div",ze,[e(v,{"current-page":w.page_no,"onUpdate:current-page":n[3]||(n[3]=t=>w.page_no=t),"page-size":w.page_size,"onUpdate:page-size":n[4]||(n[4]=t=>w.page_size=t),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:V.value,onSizeChange:o.handleSizeChange2,onCurrentChange:o.handleCurrentChange2},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),Ce,i("div",null,[e(h,{data:E.value,stripe:"",style:{width:"100%"}},{default:r(()=>[e(a,{label:"\u89E3\u51B3\u65B9\u6848\u4E3B\u9898",prop:"customer_demand_name",width:"180"}),e(a,{label:"\u63D0\u4EA4\u65F6\u95F4",prop:"submission_time",width:"180"}),e(a,{label:"\u65B9\u6848\u5185\u5BB9",prop:"solution_content"}),e(a,{label:"\u5BA2\u6237\u53CD\u9988",prop:"customer_feedback"}),e(a,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""},{default:r(({row:t})=>[t.annex&&t.annex.length>0?(l(),p("div",we,[(l(!0),p(b,null,k(t.annex,(_,d)=>(l(),p("div",{key:d},[e(x,{href:_,target:"_blank"},{default:r(()=>[z("\u6587\u4EF6"+g(d+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),p("div",ye," \u6682\u65E0\u6587\u4EF6 "))]),_:1})]),_:1},8,["data"])]),i("div",xe,[e(v,{"current-page":y.page_no,"onUpdate:current-page":n[5]||(n[5]=t=>y.page_no=t),"page-size":y.page_size,"onUpdate:page-size":n[6]||(n[6]=t=>y.page_size=t),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:P.value,onSizeChange:o.handleSizeChange3,onCurrentChange:o.handleCurrentChange3},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),ke,i("div",null,[e(h,{data:B.value,stripe:"",style:{width:"100%"}},{default:r(()=>[e(a,{label:"\u6982\u7B97\u6765\u6E90",prop:"estimate_source_text",width:"180"}),e(a,{label:"\u5236\u5355\u4EBA",prop:"create_user",width:"180"}),e(a,{label:"\u62A5\u4EF7\u65E5\u671F",prop:"quotation_date"}),e(a,{label:"\u6280\u672F\u4EBA\u5458",prop:"technician_name",width:"180"}),e(a,{label:"\u6982\u7B97\u91D1\u989D(\u4E07\u5143)",prop:"estimate_amount",width:"180"}),e(a,{label:"\u8981\u6C42",prop:"ask"}),e(a,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""},{default:r(({row:t})=>[t.annex&&t.annex.length>0?(l(),p("div",je,[(l(!0),p(b,null,k(t.annex,(_,d)=>(l(),p("div",{key:d},[e(x,{href:_,target:"_blank"},{default:r(()=>[z("\u6587\u4EF6"+g(d+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),p("div",Se," \u6682\u65E0\u6587\u4EF6 "))]),_:1})]),_:1},8,["data"])]),i("div",De,[e(v,{"current-page":c.page_no,"onUpdate:current-page":n[7]||(n[7]=t=>c.page_no=t),"page-size":c.page_size,"onUpdate:page-size":n[8]||(n[8]=t=>c.page_size=t),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:O.value,onSizeChange:o.handleSizeChange4,onCurrentChange:o.handleCurrentChange4},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),Le,i("div",null,[e(h,{data:N.value,stripe:"",style:{width:"100%"}},{default:r(()=>[e(a,{label:"\u7ADE\u4E89\u5BF9\u624B\u540D\u79F0",prop:"competitor_name",width:"180"}),e(a,{label:"\u7ADE\u4E89\u5BF9\u624B\u8054\u7CFB\u4EBA",prop:"competitor_contacts",width:"180"}),e(a,{label:"\u8054\u7CFB\u4EBA\u7535\u8BDD",prop:"competitor_contacts_phone"}),e(a,{label:"\u7ADE\u4E89\u80FD\u529B",prop:"competitive_power"}),e(a,{label:"\u7ADE\u4E89\u5BF9\u624B\u4F18\u52BF",prop:"competitor_advantages"}),e(a,{label:"\u7ADE\u4E89\u5BF9\u624B\u52A3\u52BF",prop:"competitor_disadvantages"}),e(a,{label:"\u5907\u6CE8",prop:"remark"}),e(a,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""},{default:r(({row:t})=>[t.annex&&t.annex.length>0?(l(),p("div",Ue,[(l(!0),p(b,null,k(t.annex,(_,d)=>(l(),p("div",{key:d},[e(x,{href:_,target:"_blank"},{default:r(()=>[z("\u6587\u4EF6"+g(d+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),p("div",Ee," \u6682\u65E0\u6587\u4EF6 "))]),_:1})]),_:1},8,["data"])]),i("div",Be,[e(v,{"current-page":u.page_no,"onUpdate:current-page":n[9]||(n[9]=t=>u.page_no=t),"page-size":u.page_size,"onUpdate:page-size":n[10]||(n[10]=t=>u.page_size=t),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:$.value,onSizeChange:o.handleSizeChange5,onCurrentChange:o.handleCurrentChange5},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])])],64)}}};export{kt as default};
|