orderDetail.vue 164 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637
  1. <template>
  2. <div class="app-container">
  3. <el-collapse v-model="activeName" @change="handleChange">
  4. <el-collapse-item>
  5. <template slot="title">
  6. <span style="font-size:20px; margin-left:20px;letter-spacing:2px;color:red">
  7. <i class="el-icon-warning"></i>
  8. <span> 当前节点:{{ currentNode == null ? '???' : currentNode.nodeName ? currentNode.nodeName : '结束' }}</span>
  9. <!-- <span v-if = "currentNode.tasks.length>0" style="margin-left:30px">任务:</span> -->
  10. <!-- <span v-for="( t,index) in currentNode.tasks" :key=index >{{t.info}}</span> -->
  11. <!-- <span style="margin-left:30px" v-if="statementNo || reportNo">该流程已取:<el-tag type="success" v-if="statementNo">{{statementNo}}</el-tag> <el-tag type="danger" v-if="reportNo">{{reportNo}}</el-tag></span> -->
  12. </span>
  13. <span style="font-size:15px; margin-left:15px;letter-spacing:2px; color:RGB(168,168,168)">
  14. 点击展开查看实时流程图
  15. </span>
  16. </template>
  17. <WorkflowBoard ref='board' @workflowCommitVerify="workflowCommitVerify" :nodeBusinessInfo="nodeBusinessInfo"
  18. @getPreviousNode="getPreviousNode" />
  19. </el-collapse-item>
  20. </el-collapse>
  21. <div class="button-area" v-if="couldEdit">
  22. <el-button @click="openProductionDialog"
  23. v-if="currentNode.nodeCode === 'PRODUCT_CHOICE' || currentNode.nodeCode === 'REPORT_CHOICE'" type="danger" round>
  24. 选择产品
  25. </el-button>
  26. <el-button @click="openAssetsAchievementRatioDialog()" v-if="currentNode.nodeCode === 'CHECK_ARCHIVING'"
  27. type="danger" round>
  28. <!-- <span v-if="currentNode.nodeCode === 'RECHECK_ARCHIVING'">复审部</span> -->
  29. 归档审核
  30. </el-button>
  31. <el-button v-if="nodeBusinessInfo.currentNodePermission.commit" class="y-save" type="success" round
  32. @click="commit('PASS')" :disabled="!nodeBusinessInfo.doWorkflow">提交</el-button>
  33. <el-button v-if="nodeBusinessInfo.currentNodePermission.reversible" class="y-save" type="warning" round
  34. @click="commit('REVERSE')" :disabled="!nodeBusinessInfo.doWorkflow">退回</el-button>
  35. <el-button v-if="nodeBusinessInfo.currentNodePermission.skippable" class="y-save" type="warning" round
  36. @click="commit('SKIP')" :disabled="!nodeBusinessInfo.doWorkflow">跳过</el-button>
  37. <el-button v-if="nodeBusinessInfo.currentNodePermission.terminable" class="y-save" type="danger" round
  38. @click="commit('TERMINATE')" :disabled="!nodeBusinessInfo.doWorkflow">终止</el-button>
  39. <el-button v-if="nodeBusinessInfo.currentNodePermission.restartable" class="y-save" type="danger" round
  40. @click="commit('RESTART')" :disabled="!nodeBusinessInfo.doWorkflow">重置</el-button>
  41. <el-button class="y-save" round type="info" @click="goBack">返回</el-button>
  42. </div>
  43. <el-tabs v-model="activeTabName" @tab-click="handleClick" type="border-card">
  44. <el-tab-pane name="baseInfo" class="pane-class" :lazy=true>
  45. <span slot="label"><i class="el-icon-document"></i>基本信息</span>
  46. <y-detail-page-layout ref="addAssetsOrder" name="assets">
  47. <el-form ref="assetsForm" :model="assetsForm" :rules="assetsFormRules" :disabled="disabledStatus">
  48. <div class="createMajor-main-container">
  49. <div class="postInfo-container">
  50. <el-row v-if="canUpdateOrderBaseInfoNode.includes(currentNode.nodeCode)" class="row-style"
  51. style="margin-top: 20px; float: right; position: relative; z-index: 2;">
  52. <el-col :xs="24" :sm="12" :lg="23" :span="12">
  53. <el-button type="danger" @click="updateOrderBaseInfo()" round>更新基本信息</el-button>
  54. </el-col>
  55. </el-row>
  56. <div>
  57. <el-divider content-position="left">
  58. <h3 class="title">
  59. <div class="avatar-wrapper icon-title">订单</div>
  60. <div class="icon-info">资产订单</div>
  61. </h3>
  62. </el-divider>
  63. </div>
  64. <el-row class="row-style">
  65. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  66. <el-form-item label="客户经理:" prop="clientManager" label-width="170px" class="postInfo-container-item">
  67. <el-input :value="assetsForm.clientManagerName" class="filter-item" readonly disabled
  68. style=" width: 100%" />
  69. </el-form-item>
  70. </el-col>
  71. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  72. <el-form-item label="接单部门:" prop="departmentId" label-width="170px" class="postInfo-container-item">
  73. <el-select v-model="assetsForm.departmentId" readonly disabled style=" width: 100%">
  74. <el-option v-for="(d, id) in allotDepartment" :label="d.name" :value="d.id"
  75. :key="d.id"></el-option>
  76. </el-select>
  77. </el-form-item>
  78. </el-col>
  79. </el-row>
  80. <el-row class="row-style">
  81. <el-col :xs="24" :sm="24" :lg="24" :span="24">
  82. <el-form-item prop="name" label-width="170px" class="postInfo-container-item" label="项目名称:">
  83. <el-input v-model="assetsForm.name" class="filter-item" />
  84. </el-form-item>
  85. </el-col>
  86. </el-row>
  87. <el-row class="row-style">
  88. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  89. <el-form-item label="业务类型:" prop="assetsBusinessGener" label-width="170px"
  90. class="postInfo-container-item">
  91. <el-select v-model="assetsForm.assetsBusinessGener" filterable placeholder="业务类型"
  92. style=" width: 100%">
  93. <el-option v-for="(s, index) in assetsBusinessGeners" :label="s.label" :value="s.value"
  94. :key="s.id"></el-option>
  95. </el-select>
  96. </el-form-item>
  97. </el-col>
  98. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  99. <el-form-item label="客户再次委托:" prop="entrustAgain" label-width="170px" class="postInfo-container-item">
  100. <el-radio v-model="assetsForm.entrustAgain" :label="false" border size="medium">否</el-radio>
  101. <el-radio v-model="assetsForm.entrustAgain" :label="true" border size="medium">是</el-radio>
  102. </el-form-item>
  103. </el-col>
  104. </el-row>
  105. <el-row class="row-style">
  106. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  107. <el-form-item label="客户类型:" prop="clienteleType" label-width="170px" class="postInfo-container-item">
  108. <el-select v-model="assetsForm.clienteleType" placeholder="请选择"
  109. @change="changeCustomerType(assetsForm.clienteleType)" readonly disabled style=" width: 100%">
  110. <el-option label="企业" value="企业"></el-option>
  111. <el-option label="个人" value="个人"></el-option>
  112. </el-select>
  113. </el-form-item>
  114. </el-col>
  115. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  116. <el-form-item label="客户名称:" prop="clienteleId" label-width="170px" class="postInfo-container-item"
  117. v-if="itemHideStatus">
  118. <el-select v-model="assetsForm.clienteleId" placeholder="请选择(可搜索)" @change="findSubClientele(0)"
  119. clearable filterable readonly disabled style=" width: 100%">
  120. <el-option v-for="(c, id) in customerCompany" :label="c.name" :value="c.id"
  121. :key="c.id"></el-option>
  122. </el-select>
  123. </el-form-item>
  124. </el-col>
  125. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  126. <el-form-item label="业务来源:" prop="clienteleSubId" label-width="170px" class="postInfo-container-item"
  127. v-if="itemHideStatus">
  128. <el-select v-model="assetsForm.clienteleSubId" placeholder="请选择(可搜索)" @change="getCustomerContract"
  129. clearable filterable readonly disabled style=" width: 100%">
  130. <el-option v-for="(s, id) in subCustomerCompany" :label="s.name" :value="s.id"
  131. :key="s.id"></el-option>
  132. </el-select>
  133. </el-form-item>
  134. </el-col>
  135. </el-row>
  136. <el-row class="row-style">
  137. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  138. <el-form-item label="客户联系人:" prop="clienteleContactId" label-width="170px"
  139. class="postInfo-container-item">
  140. <div>
  141. <el-select v-model="assetsForm.clienteleContactId" placeholder="请选择(可搜索)" clearable filterable
  142. @change="getContactInfo();" readonly disabled style=" width: 100%">
  143. <!-- <el-option v-for="(c, id) in customerContract" :label="c.name" :value="c.id"
  144. :key="c.id"></el-option> -->
  145. <el-option :label="linkmanInfo.name" :value="linkmanInfo.id" :key="linkmanInfo.id"></el-option>
  146. </el-select>
  147. <!-- <el-tooltip class="item" effect="dark" content="没有联系人?点击新增" placement="top-end">
  148. <span style="margin-left:5%;color:RGB(64,158,255);cursor:pointer"
  149. @click="createLinkman(false)">新增</span>
  150. </el-tooltip> -->
  151. </div>
  152. </el-form-item>
  153. </el-col>
  154. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  155. <el-form-item label="联系人电话:" prop="mobile" label-width="170px" class="postInfo-container-item">
  156. <el-input :value="assetsForm.linkmanMobile" class="filter-item" readonly disabled
  157. style=" width: 100%" />
  158. </el-form-item>
  159. </el-col>
  160. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  161. <el-form-item label="联系人部门:" prop="department" label-width="170px" class="postInfo-container-item">
  162. <el-input :value="assetsForm.linkmanDepartment" class="filter-item" readonly disabled
  163. style=" width: 100%" />
  164. </el-form-item>
  165. </el-col>
  166. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  167. <el-form-item label="联系人职务:" prop="duty" label-width="170px" class="postInfo-container-item">
  168. <el-input :value="assetsForm.linkmanDuty" class="filter-item" readonly disabled
  169. style=" width: 100%" />
  170. </el-form-item>
  171. </el-col>
  172. </el-row>
  173. <el-row class="row-style">
  174. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  175. <el-form-item label="是否证券项目:" prop="security" label-width="170px" class="postInfo-container-item">
  176. <el-radio v-model="assetsForm.security" :label="false" border size="medium">否</el-radio>
  177. <el-radio v-model="assetsForm.security" :label="true" border size="medium">是</el-radio>
  178. </el-form-item>
  179. </el-col>
  180. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  181. <el-form-item label="是否资产重组项目:" prop="significantAssetsReorganization" label-width="170px"
  182. class="postInfo-container-item">
  183. <el-radio v-model="assetsForm.significantAssetsReorganization" :label="false" border
  184. size="medium">否</el-radio>
  185. <el-radio v-model="assetsForm.significantAssetsReorganization" :label="true" border
  186. size="medium">是</el-radio>
  187. </el-form-item>
  188. </el-col>
  189. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  190. <el-form-item label=" 是否国资项目:" prop="stateAssets" label-width="170px" class="postInfo-container-item">
  191. <el-radio v-model="assetsForm.stateAssets" :label="false" border size="medium">否</el-radio>
  192. <el-radio v-model="assetsForm.stateAssets" :label="true" border size="medium">是</el-radio>
  193. </el-form-item>
  194. </el-col>
  195. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  196. <el-form-item label="是否涉及境外资产:" prop="foreignAssetsInvolved" label-width="170px"
  197. class="postInfo-container-item">
  198. <el-radio v-model="assetsForm.foreignAssetsInvolved" :label="false" border
  199. size="medium">否</el-radio>
  200. <el-radio v-model="assetsForm.foreignAssetsInvolved" :label="true" border size="medium">是</el-radio>
  201. </el-form-item>
  202. </el-col>
  203. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  204. <el-form-item label="是否分配产值:" prop="dispenseBenefit" label-width="170px"
  205. class="postInfo-container-item">
  206. <el-radio v-model="assetsForm.dispenseBenefit" :label="false" border size="medium">否</el-radio>
  207. <el-radio v-model="assetsForm.dispenseBenefit" :label="true" border size="medium">是</el-radio>
  208. </el-form-item>
  209. </el-col>
  210. </el-row>
  211. <el-row class="row-style">
  212. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  213. <el-form-item label="委托人:" prop="bailor" label-width="170px" class="postInfo-container-item">
  214. <el-input v-model="assetsForm.bailor" class="filter-item" />
  215. </el-form-item>
  216. </el-col>
  217. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  218. <el-form-item label="委托联系人:" prop="bailorContactName" label-width="170px"
  219. class="postInfo-container-item">
  220. <el-input v-model="assetsForm.bailorContactName" class="filter-item" />
  221. </el-form-item>
  222. </el-col>
  223. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  224. <el-form-item label="委托人联系人电话:" prop="bailorContactTel" label-width="170px"
  225. class="postInfo-container-item">
  226. <el-input v-model="assetsForm.bailorContactTel" class="filter-item" style=" width: 100%" />
  227. </el-form-item>
  228. </el-col>
  229. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  230. <el-form-item label="委托人地址:" prop="bailorAddress" label-width="170px" class="postInfo-container-item">
  231. <el-input v-model="assetsForm.bailorAddress" class="filter-item" style=" width: 100%" />
  232. </el-form-item>
  233. </el-col>
  234. </el-row>
  235. <el-row class="row-style">
  236. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  237. <el-form-item label="终端客户类型:" prop="terminalClienteleType" label-width="170px"
  238. class="postInfo-container-item">
  239. <el-select v-model="assetsForm.terminalClienteleType" placeholder="请选择" readonly disabled
  240. style=" width: 100%">
  241. <el-option label="企业" value="企业"></el-option>
  242. <el-option label="个人" value="个人"></el-option>
  243. </el-select>
  244. </el-form-item>
  245. </el-col>
  246. <el-col :xs="24" :sm="12" :lg="12" :span="6" v-if="assetsForm.terminalClienteleType === '企业'">
  247. <el-form-item label="终端客户名称:" prop="terminalClienteleId" label-width="170px"
  248. class="postInfo-container-item">
  249. <!-- <div v-if="couldEdit"> -->
  250. <el-select v-model="assetsForm.terminalClienteleId" placeholder="请选择(可搜索)"
  251. @change="findSubClientele(1)" clearable filterable readonly disabled style="width:100%">
  252. <!-- <el-option v-for="(c, id) in tCustomerCompany" :label="c.name" :value="c.id"
  253. :key="c.id"></el-option> -->
  254. <el-option :label="tCustomerInfo.name" :value="tCustomerInfo.id"
  255. :key="tCustomerInfo.id"></el-option>
  256. </el-select>
  257. <!-- <el-tooltip class="item" effect="dark" content="没有终端客户?点击新增" placement="top-end">
  258. <span style="margin-left:5%;color:RGB(64,158,255);cursor:pointer"
  259. @click="createTerminalClient()">新增</span>
  260. </el-tooltip> -->
  261. <!-- </div> -->
  262. <!-- <el-input :value="assetsForm.tterminalClienteleName" class="filter-item" style=" width: 225px"
  263. v-else /> -->
  264. </el-form-item>
  265. </el-col>
  266. </el-row>
  267. <el-row class="row-style">
  268. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="assetsForm.terminalClienteleType">
  269. <el-form-item label="终端联系人:" prop="terminalClienteleContactId" label-width="170px"
  270. class="postInfo-container-item">
  271. <el-select v-model="assetsForm.terminalClienteleContactId" placeholder="请选择(可搜索)" clearable
  272. filterable readonly disabled style=" width: 100%">
  273. <!-- <el-option v-for="(c, id) in tCustomerContract" :label="c.name" :value="c.id"
  274. :key="c.id"></el-option> -->
  275. <el-option :label="tLinkmanInfo.name" :value="tLinkmanInfo.id" :key="tLinkmanInfo.id"></el-option>
  276. </el-select>
  277. <!-- <el-tooltip class="item" effect="dark" content="没有联系人?点击新增" placement="top-end">
  278. <span style="margin-left:5%;color:RGB(64,158,255);cursor:pointer"
  279. @click="createTlinkman()">新增</span>
  280. </el-tooltip> -->
  281. </el-form-item>
  282. </el-col>
  283. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="assetsForm.terminalClienteleType">
  284. <el-form-item label="终端联系电话:" prop="clienteleType" label-width="170px"
  285. class="postInfo-container-item">
  286. <el-input :value="assetsForm.tmobile" class="filter-item" readonly disabled style=" width: 100%" />
  287. </el-form-item>
  288. </el-col>
  289. </el-row>
  290. <el-row class="row-style">
  291. <el-col :xs="24" :sm="12" :lg="23" :span="12">
  292. <el-form-item label="备注:" prop="remark" label-width="170px" class="postInfo-container-item">
  293. <el-input v-model="assetsForm.remark" :autosize="{ minRows: 4, maxRows: 4 }" class="filter-item"
  294. type="textarea" />
  295. </el-form-item>
  296. </el-col>
  297. </el-row>
  298. </div>
  299. </div>
  300. </el-form>
  301. </y-detail-page-layout>
  302. </el-tab-pane>
  303. <el-tab-pane name="members" class="pane-class" :lazy=true>
  304. <span slot="label"><i class="el-icon-document"></i>项目人员</span>
  305. <!-- <y-detail-page-layout @save="updatePrincipalAndMembers" ref="addAssetsOrder" name="assets"
  306. :editStatus="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' || !disabledStatus"> -->
  307. <el-form ref="assetsForm" :model="assetsForm" :rules="assetsFormRules"
  308. :disabled="currentNode.nodeCode !== 'DEPARTMENT_ALLOCATION' || disabledStatus">
  309. <div class="createMajor-main-container">
  310. <div class="postInfo-container">
  311. <div style="margin-top: 35px;">
  312. <el-divider content-position="left">
  313. <h3 class="title">
  314. <div class="avatar-wrapper icon-title">成员</div>
  315. <div class="icon-info">项目成员</div>
  316. </h3>
  317. </el-divider>
  318. </div>
  319. <el-row class="row-style">
  320. <el-col :xs="24" :sm="12" :lg="4" :span="6">
  321. <el-form-item label="接单部门:" prop="departmentId" label-width="120px"
  322. :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']">
  323. <el-select @change="getPrincipalByAllotDepartment()" v-model="assetsForm.departmentId">
  324. <el-option v-for="(d, id) in allotDepartment" :label="d.name" :value="d.id" :key="d.id"></el-option>
  325. </el-select>
  326. </el-form-item>
  327. </el-col>
  328. </el-row>
  329. <el-row class="row-style">
  330. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  331. <el-form-item label="项目负责人:" prop="principalId" label-width="120px"
  332. :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']"
  333. :rules="{ required: true, message: '项目负责人不能为空', trigger: 'blur' }">
  334. <el-select v-model="assetsForm.principalId" placeholder="请选择(可搜索)"
  335. :filterable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  336. :clearable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  337. :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'"
  338. :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'">
  339. <el-option v-for="(p, id) in principals" :label="p.name" :value="p.id" :key="p.id"></el-option>
  340. </el-select>
  341. </el-form-item>
  342. </el-col>
  343. </el-row>
  344. <el-row class="row-style">
  345. <el-col :xs="24" :sm="12" :lg="3" :span="6">
  346. <el-form-item label="项目成员:" prop="members" label-width="120px"
  347. :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']"
  348. :rules="{ required: true, message: '项目成员不能为空', trigger: 'blur' }">
  349. <el-select v-model="assetsForm.members" placeholder="请选择(可搜索)" multiple style=" width: 686px"
  350. :filterable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  351. :clearable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  352. :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'"
  353. :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'">
  354. <el-option v-for="(u, id) in depUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
  355. </el-select>
  356. </el-form-item>
  357. </el-col>
  358. </el-row>
  359. <el-row class="row-style">
  360. <el-col :xs="24" :sm="12" :lg="3" :span="6">
  361. <el-button type="danger" @click="updatePrincipalAndMembers()" round>保存项目人员信息</el-button>
  362. </el-col>
  363. </el-row>
  364. </div>
  365. </div>
  366. </el-form>
  367. <!-- </y-detail-page-layout> -->
  368. </el-tab-pane>
  369. <el-tab-pane name="target" class="pane-class" :lazy=true>
  370. <span @click="getAETargetListByAssetsId()" slot="label"><i class="el-icon-document"></i>资产评估对象</span>
  371. <div class="createMajor-main-container">
  372. <div class="postInfo-container">
  373. <div style="margin-top: 35px;">
  374. <el-divider content-position="left">
  375. <h3 class="title">
  376. <div class="avatar-wrapper icon-title">评估</div>
  377. <div class="icon-info">资产评估对象</div>
  378. </h3>
  379. </el-divider>
  380. </div>
  381. <el-row>
  382. <el-col :span="2">
  383. <div>
  384. <el-statistic group-separator="," :precision="4" :value="totalEvaluateValue" title="估价对象总价(万)">
  385. <template slot="prefix">
  386. <i class="el-icon-coin"></i>
  387. </template>
  388. </el-statistic>
  389. </div>
  390. </el-col>
  391. <el-col :span="2">
  392. <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE' && couldEdit"
  393. type="danger" @click="openTargetDialog(), changeStatus('add')" round>添加评估对象</el-button>
  394. </el-col>
  395. <el-col :span="2" v-if="currentNode.nodeCode === 'GENERATE_STATEMENT' && couldEdit">
  396. <el-tooltip class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
  397. <el-button type="success" @click="takeAssetsStatementProductionNo('STATEMENT')" round>意见书取号</el-button>
  398. </el-tooltip>
  399. </el-col>
  400. <el-col :span="2" v-if="currentNode.nodeCode === 'ASSET_REPORT_TAKE_NO' && couldEdit">
  401. <el-tooltip class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
  402. <el-button type="success" @click="takeAssetsReportProductionNo('REPORT')" round>报告取号</el-button>
  403. </el-tooltip>
  404. </el-col>
  405. <el-col :span="2" v-if="(currentNode.nodeCode === 'GENERATE_STATEMENT' && writeProductionStatementNos.length > 0)
  406. || (currentNode.nodeCode === 'WRITE_REPORT' && writeProductionReportNos.length > 0)
  407. && couldEdit">
  408. <el-tooltip class="item" effect="dark" content="请仔细确认产品内容" placement="right">
  409. <el-button type="success" @click="openWriteProductionDialog(false, 'add')" round>撰写产品信息</el-button>
  410. </el-tooltip>
  411. </el-col>
  412. </el-row>
  413. <el-table ref="multipleTable" :data="assetsEvaluationTarget" stripe @selection-change="targetSelectionChange"
  414. :header-row-style="{ color: '#333333' }" border takeNumberItems style="width: 100%; margin-top:20px">
  415. <el-table-column type="selection" width="55" :selectable="selectable">
  416. </el-table-column>
  417. <el-table-column width="220" prop="statementNo" label="意见书号" align="center" show-overflow-tooltip>
  418. <template slot-scope="scope">
  419. <el-tag type='success' v-if="scope.row.statementNo">
  420. {{ scope.row.statementNo }}
  421. </el-tag>
  422. <el-tag type='danger' v-else>
  423. 未取号
  424. </el-tag>
  425. </template>
  426. </el-table-column>
  427. <el-table-column width="220" prop="reportNo" label="报告号" align="center" show-overflow-tooltip>
  428. <template slot-scope="scope">
  429. <el-tag type='success' v-if="scope.row.reportNo">
  430. {{ scope.row.reportNo }}
  431. </el-tag>
  432. <el-tag type='danger' v-else>
  433. 未取号
  434. </el-tag>
  435. </template>
  436. </el-table-column>
  437. <el-table-column prop="statementCreateProductionDate" label="意见书出具状态" align="center" show-overflow-tooltip>
  438. <template slot-scope="{row}">
  439. <el-tag v-if="row.statementCreateProductionDate !== null" type='success'> 已出具</el-tag>
  440. <el-tag v-if="row.statementCreateProductionDate == null" type='danger'> 未出具</el-tag>
  441. </template>
  442. </el-table-column>
  443. <el-table-column prop="reportCreateProductionDate" label="报告出具状态" align="center" show-overflow-tooltip>
  444. <template slot-scope="{row}">
  445. <el-tag v-if="row.reportCreateProductionDate !== null" type='success'> 已出具</el-tag>
  446. <el-tag v-if="row.reportCreateProductionDate == null" type='danger'> 未出具</el-tag>
  447. </template>
  448. </el-table-column>
  449. <el-table-column prop="purposeName" label="评估目的" align="center" show-overflow-tooltip>
  450. </el-table-column>
  451. <el-table-column label="评估对象" align="center" show-overflow-tooltip>
  452. <template slot-scope="{row}">
  453. <span>{{ row.targetTypename }}</span>
  454. <span>--</span>
  455. <span>{{ row.secTargetTypaName }}</span>
  456. </template>
  457. </el-table-column>
  458. <el-table-column prop="theHolder" label="产权持有人" align="center" show-overflow-tooltip>
  459. </el-table-column>
  460. <el-table-column prop="valueTypeName" label="价值类型" align="center" show-overflow-tooltip>
  461. </el-table-column>
  462. <el-table-column prop="totalAssetCarryingAmount" label="总资产账面值(万)" align="center" show-overflow-tooltip>
  463. </el-table-column>
  464. <el-table-column prop="totalLiabilitiesCarryingAmount" label="总负债账面值(万)" align="center"
  465. show-overflow-tooltip>
  466. </el-table-column>
  467. <el-table-column prop="carryingAmountOfNetAssets" label="净资产账面值(万)" align="center" show-overflow-tooltip>
  468. </el-table-column>
  469. <el-table-column prop="estimatedValue" label="评估价格(万)" align="center" show-overflow-tooltip>
  470. </el-table-column>
  471. <el-table-column prop="checkValue" label="审核价格(万)" align="center" show-overflow-tooltip>
  472. </el-table-column>
  473. <el-table-column label="操作" align="center" width="130" fixed="right">
  474. <template slot-scope="scope">
  475. <el-button type="text" size="small"
  476. @click="getAssetsTargetDetail(scope.row.id), changeStatus('detail')">
  477. 查看
  478. </el-button>
  479. <el-button
  480. v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE' || (currentNode.nodeCode !== 'QUOTATION_FEEDBACK' && scope.row.statementNo && scope.row.reportNo)"
  481. type="text" size="small" @click="getAssetsTargetDetail(scope.row.id), changeStatus('edit')">
  482. 编辑
  483. </el-button>
  484. <el-button
  485. v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE' || (currentNode.nodeCode !== 'QUOTATION_FEEDBACK' && scope.row.statementNo && scope.row.reportNo)"
  486. type="text" size="small" @click="assetsTargetDelete(scope.row.id)">删除</el-button>
  487. <el-button
  488. v-if="(currentNode.nodeCode === 'REVIEW_STATEMENT' || currentNode.nodeCode === 'CHECK_REPORT') && !disabledStatus"
  489. type="text" size="small" @click="openCheckValueDialog(scope.row.id);">审核定价</el-button>
  490. </template>
  491. </el-table-column>
  492. </el-table>
  493. <el-row>
  494. <el-col :span="2">
  495. <p v-if="assetsProductionForm.productionType">产品类型:
  496. <span style="color: red" v-if="assetsProductionForm.productionType == 'CONSULT'">
  497. 咨询报告
  498. </span>
  499. <span style="color: red" v-if="assetsProductionForm.productionType == 'REPORT'">
  500. 评估报告
  501. </span>
  502. <span style="color: red" v-if="assetsProductionForm.productionType == 'LETTER'">
  503. 意见函
  504. </span>
  505. <span style="color: red" v-if="assetsProductionForm.productionType == 'STATEMENT'">
  506. 价值意见书
  507. </span>
  508. </p>
  509. </el-col>
  510. </el-row>
  511. </div>
  512. </div>
  513. </el-tab-pane>
  514. <el-tab-pane name="production" class="pane-class" :lazy=true>
  515. <span slot="label" @click="getAETargetListByAssetsId()"><i class="el-icon-document"></i>产品信息</span>
  516. <div class="createMajor-main-container">
  517. <div class="postInfo-container">
  518. <div style="margin-top: 35px;">
  519. <el-divider content-position="left">
  520. <h3 class="title">
  521. <div class="avatar-wrapper icon-title">产品</div>
  522. <div class="icon-info">资产产品信息</div>
  523. </h3>
  524. </el-divider>
  525. </div>
  526. <div style="margin-top: 30px; color: red;" v-if="currentNode.nodeCode === 'GENERATE_STATEMENT' && couldEdit">
  527. 选择要提交的意见书:
  528. <el-select v-model="commitProductionNo" @change="pushProductionNo()" placeholder="请选择要提交的产品"
  529. style="width: 300px;">
  530. <el-option v-for="(pro, productionNo) in assetsProductionData" v-if="pro.productionType == 'STATEMENT'"
  531. :label="pro.productionNo" :value="pro.productionNo" :key="pro.id"></el-option>
  532. </el-select>
  533. </div>
  534. <div style="margin-top: 30px; color: red;" v-if="currentNode.nodeCode === 'WRITE_REPORT' && couldEdit">
  535. 选择要提交的报告:
  536. <el-select v-model="commitProductionNo" @change="pushProductionNo()" placeholder="请选择要提交的产品"
  537. style="width: 300px;">
  538. <el-option v-for="(pro, productionNo) in assetsProductionData" v-if="pro.productionType !== 'STATEMENT'"
  539. :label="pro.productionNo" :value="pro.productionNo" :key="pro.id"></el-option>
  540. </el-select>
  541. </div>
  542. <div style="margin-top: 30px;">
  543. <span v-if="currentNode.nodeCode === 'STATEMENT_BOOKBINDING_STAMP'">
  544. <span v-for="pro in assetsProductionData" :key="pro.id" style="color: red;">
  545. 打印份数:{{ pro.printCount }}
  546. </span>
  547. </span>
  548. </div>
  549. <el-table :data="assetsProductionData" stripe :header-row-style="{ color: '#333333' }" border takeNumberItems
  550. style="width: 100%; margin-top:20px">
  551. <el-table-column type="expand">
  552. <template slot-scope="props">
  553. <el-form label-position="left">
  554. <el-row class="row-style">
  555. <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
  556. <el-form-item label-width="150px" label="委托方名称:">
  557. <span>{{ props.row.clientName }}</span>
  558. </el-form-item>
  559. </el-col>
  560. <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
  561. <el-form-item label-width="150px" label="委托方电话:">
  562. <span>{{ props.row.clientTel }}</span>
  563. </el-form-item>
  564. </el-col>
  565. </el-row>
  566. <el-row class="row-style">
  567. <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
  568. <el-form-item label-width="150px" label="评估基准日:">
  569. <span>{{ props.row.valuationBasisDate }}</span>
  570. </el-form-item>
  571. </el-col>
  572. <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
  573. <el-form-item label-width="150px" label="评估面积:">
  574. <span>{{ props.row.evaluateAcreage }} m²</span>
  575. </el-form-item>
  576. </el-col>
  577. <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
  578. <el-form-item label-width="150px" label="评估单价:">
  579. <span>{{ props.row.evaluatePrice }}(元)</span>
  580. </el-form-item>
  581. </el-col>
  582. <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
  583. <el-form-item label-width="150px" label="评估总价:">
  584. <span>{{ props.row.evaluateAmount }}(万)</span>
  585. </el-form-item>
  586. </el-col>
  587. <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
  588. <el-form-item label-width="150px" label="产权人:">
  589. <span>{{ props.row.owner }}</span>
  590. </el-form-item>
  591. </el-col>
  592. </el-row>
  593. <el-row class="row-style">
  594. <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
  595. <el-form-item label-width="150px" label="产品打印数量:">
  596. <span>{{ props.row.printCount }}(份)</span>
  597. </el-form-item>
  598. </el-col>
  599. <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
  600. <el-form-item label-width="150px" label="产品出具日期:">
  601. <span>{{ props.row.createProductionDate }}</span>
  602. </el-form-item>
  603. </el-col>
  604. </el-row>
  605. <el-row class="row-style">
  606. <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
  607. <el-form-item label-width="150px" label="资料附件:">
  608. <span type="primary" v-for="file in props.row.filePath" :key="file.name">
  609. <el-link @click="officeFileView(file.name, file.url)">{{ file.name }}</el-link>
  610. </span>
  611. </el-form-item>
  612. </el-col>
  613. </el-row>
  614. <el-row class="row-style">
  615. <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
  616. <el-form-item prop="qrCode" label-width="150px" label="产品二维码:">
  617. <img style="width:130px;height:120px; display:inline-block ;" :src="props.row.qrCode"
  618. alt="NULL" />
  619. </el-form-item>
  620. </el-col>
  621. </el-row>
  622. <el-row class="row-style">
  623. <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
  624. <el-form-item label-width="150px" label="特殊情况说明:">
  625. <span>{{ props.row.comment }}</span>
  626. </el-form-item>
  627. </el-col>
  628. </el-row>
  629. </el-form>
  630. </template>
  631. </el-table-column>
  632. <el-table-column prop="productionNo" label="产品号" align="center" show-overflow-tooltip>
  633. <template slot-scope="{row}">
  634. <el-tag type="success"><span>{{ row.productionNo }}</span></el-tag>
  635. </template>
  636. </el-table-column>
  637. <el-table-column prop="productionType" label="产品类型" align="center" show-overflow-tooltip>
  638. <template slot-scope="{row}">
  639. <el-tag v-if="row.productionType === 'STATEMENT'">价值意见书</el-tag>
  640. <el-tag v-if="row.productionType == 'LETTER'">意见函</el-tag>
  641. <el-tag v-if="row.productionType == 'CONSULT'">咨询报告</el-tag>
  642. <el-tag v-if="row.productionType == 'REPORT'">评估报告</el-tag>
  643. </template>
  644. </el-table-column>
  645. <el-table-column prop="repertoryState" label="库存状态" align="center" show-overflow-tooltip>
  646. <template slot-scope="{row}">
  647. <el-tag type="danger" v-if="row.repertoryState === null">未入库</el-tag>
  648. <el-tag type="success" v-if="row.repertoryState === true">已出库</el-tag>
  649. <el-tag type="warning" v-if="row.repertoryState === false">已入库</el-tag>
  650. </template>
  651. </el-table-column>
  652. <el-table-column prop="comment" label="特殊情况说明" align="center" show-overflow-tooltip>
  653. </el-table-column>
  654. <el-table-column label="操作" align="center" width="180" fixed="right">
  655. <template slot-scope="scope">
  656. <el-button type="text" size="small"
  657. @click="openWriteProductionDialog(true, 'detail'), getAssetsProductionDetail(scope.row.id)">
  658. 查看
  659. </el-button>
  660. <el-button
  661. v-if="(currentNode.nodeCode === 'REVIEW_STATEMENT' || (currentNode.nodeCode === 'GENERATE_STATEMENT' && scope.row.productionType === 'STATEMENT') || (currentNode.nodeCode === 'WRITE_REPORT' && scope.row.productionType !== 'STATEMENT')) && !disabledStatus"
  662. type="text" size="small"
  663. @click="openWriteProductionDialog(false, 'edit'), getAssetsProductionDetail(scope.row.id)">
  664. 编辑
  665. </el-button>
  666. <el-button
  667. v-if="currentNode.nodeCode === 'REVIEW_STATEMENT' && scope.row.productionType === 'STATEMENT' && !disabledStatus"
  668. type="text" size="small"
  669. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  670. 审核意见书
  671. </el-button>
  672. <el-button
  673. v-if="currentNode.nodeCode === 'REEXAMINE_STATEMENT' && scope.row.productionType === 'STATEMENT' && !disabledStatus"
  674. type="text" size="small"
  675. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  676. 复审意见书
  677. </el-button>
  678. <el-button
  679. v-if="currentNode.nodeCode === 'CHECK_REPORT' && scope.row.productionType !== 'STATEMENT' && !disabledStatus"
  680. type="text" size="small"
  681. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  682. 审核报告
  683. </el-button>
  684. <el-button
  685. v-if="currentNode.nodeCode === 'RECHECK_REPORT' && scope.row.productionType !== 'STATEMENT' && !disabledStatus"
  686. type="text" size="small"
  687. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  688. 复审报告
  689. </el-button>
  690. <el-button
  691. v-if="currentNode.nodeCode === 'FOURTH_CHECK_REPORT' && scope.row.productionType !== 'STATEMENT' && !disabledStatus"
  692. type="text" size="small"
  693. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  694. 四审报告
  695. </el-button>
  696. <el-button
  697. v-if="(currentNode.nodeCode === 'STATEMENT_IN' || currentNode.nodeCode === 'REPORT_IN') && scope.row.repertoryState === null && !disabledStatus"
  698. type="text" size="small" @click="openWareHouseDialog(scope.row);">产品入库</el-button>
  699. <el-button
  700. v-if="(currentNode.nodeCode === 'STATEMENT_OUT' || currentNode.nodeCode === 'REPORT_OUT') && scope.row.repertoryState === false && !disabledStatus"
  701. type="text" size="small" @click="openWareHouseDialog(scope.row);">产品出库</el-button>
  702. </template>
  703. </el-table-column>
  704. </el-table>
  705. </div>
  706. </div>
  707. </el-tab-pane>
  708. <el-tab-pane name="finance" class="pane-class" :lazy=true>
  709. <span slot="label" @click="getOrderFundInvoiceById()"><i class="el-icon-document"></i>款项信息</span>
  710. <div class="createMajor-main-container">
  711. <div class="postInfo-container">
  712. <div style="margin-top: 35px;">
  713. <el-divider content-position="left">
  714. <h3 class="title">
  715. <div class="avatar-wrapper icon-title">款项</div>
  716. <div class="icon-info">资产款项信息</div>
  717. </h3>
  718. </el-divider>
  719. </div>
  720. </div>
  721. <el-form ref="invoiceData" :model="invoiceData" :disabled="true">
  722. <el-row>
  723. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  724. <el-form-item label="应收金额(元):" prop="shouldAmount" label-width="120px" class="postInfo-container-item">
  725. <el-input v-model="invoiceData.shouldAmount" class="filter-item" />
  726. </el-form-item>
  727. </el-col>
  728. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  729. <el-form-item label="实收金额(元):" prop="realAmount" label-width="120px" class="postInfo-container-item">
  730. <el-input v-model="invoiceData.realAmount" class="filter-item" />
  731. </el-form-item>
  732. </el-col>
  733. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  734. <el-form-item label="剩余金额(元):" prop="leftAmount" label-width="120px" class="postInfo-container-item">
  735. <el-input v-model="invoiceData.leftAmount" class="filter-item" />
  736. </el-form-item>
  737. </el-col>
  738. </el-row>
  739. <el-row v-for="(invoice, id) in invoiceData.financeInvoiceVoList" :key="id">
  740. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  741. <el-form-item label="开票类型:" prop="type" label-width="120px" class="postInfo-container-item">
  742. <el-input v-model="invoice.type" class="filter-item" />
  743. </el-form-item>
  744. </el-col>
  745. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  746. <el-form-item label="发票抬头:" prop="title" label-width="120px" class="postInfo-container-item">
  747. <el-input v-model="invoice.title" class="filter-item" />
  748. </el-form-item>
  749. </el-col>
  750. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  751. <el-form-item label="税号:" prop="taxNo" label-width="120px" class="postInfo-container-item">
  752. <el-input v-model="invoice.taxNo" class="filter-item" />
  753. </el-form-item>
  754. </el-col>
  755. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  756. <el-form-item label="开户银行:" prop="bankName" label-width="120px" class="postInfo-container-item">
  757. <el-input v-model="invoice.bankName" class="filter-item" />
  758. </el-form-item>
  759. </el-col>
  760. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  761. <el-form-item label="银行地址:" prop="bankAddress" label-width="120px" class="postInfo-container-item">
  762. <el-input v-model="invoice.bankAddress" class="filter-item" />
  763. </el-form-item>
  764. </el-col>
  765. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  766. <el-form-item label="联系电话:" prop="bankTel" label-width="120px" class="postInfo-container-item">
  767. <el-input v-model="invoice.bankTel" class="filter-item" />
  768. </el-form-item>
  769. </el-col>
  770. </el-row>
  771. </el-form>
  772. </div>
  773. </el-tab-pane>
  774. </el-tabs>
  775. <el-dialog :visible.sync="targetDialogVisible" @open="clear()" @close="resettargetForm"
  776. custom-class="doWarehouseClass">
  777. <div>
  778. <el-form ref="targetForm" :model="targetForm" style="margin-top:20px" :rules="targetFormRules"
  779. :disabled="targetDisabledStatus">
  780. <el-divider content-position="left">【资产】评估对象</el-divider>
  781. <el-row class="row-style">
  782. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  783. <el-form-item label="评估目的:" prop="evaluationPurposeId" label-width="200px" class="postInfo-container-item">
  784. <el-select v-model="targetForm.evaluationPurposeId" style="width: 100%">
  785. <el-option v-for="(p, id) in assetsEvaluationTargetPurpose" :label="p.purposeName"
  786. :value="p.id"></el-option>
  787. </el-select>
  788. </el-form-item>
  789. </el-col>
  790. </el-row>
  791. <el-row class="row-style">
  792. <el-col :xs="24" :sm="12" :lg="12" :span="3">
  793. <el-form-item label="评估对象:" prop="evaluationTypeId" label-width="200px" class="postInfo-container-item">
  794. <el-select v-model="targetForm.evaluationTypeId"
  795. @change="getTypeList(targetForm.evaluationTypeId, 2), targetForm.evaluationTypeSecId = null"
  796. style="width: 100%">
  797. <el-option v-for="(t, id) in assetsEvaluationTargetType" :label="t.typeName" :value="t.id"
  798. :key="t.id"></el-option>
  799. </el-select>
  800. </el-form-item>
  801. </el-col>
  802. <el-col :xs="24" :sm="12" :lg="12" :span="3">
  803. <el-form-item prop="evaluationTypeSecId" label-width="10px" class="postInfo-container-item">
  804. <el-select v-model="targetForm.evaluationTypeSecId" style="width: 70%">
  805. <el-option v-for="(t, id) in assetsSecEvaluationTargetType" :label="t.typeName" :value="t.id"
  806. :key="t.id"></el-option>
  807. </el-select>
  808. </el-form-item>
  809. </el-col>
  810. <el-col :xs="24" :sm="12" :lg="12" :span="3"
  811. v-if="targetForm.evaluationTypeSecId && [15, 20, 34, 47].includes(targetForm.evaluationTypeSecId)">
  812. <el-form-item prop="evaluationTypeDefinedSec" label-width="200px" class="postInfo-container-item">
  813. <el-input v-model="targetForm.evaluationTypeDefinedSec" multiple style="width: 100%;">
  814. </el-input>
  815. </el-form-item>
  816. </el-col>
  817. </el-row>
  818. <el-row class="row-style">
  819. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  820. <el-form-item label=" 产权持有人:" prop="theHolder" label-width="200px" class="postInfo-container-item">
  821. <el-input v-model="targetForm.theHolder" class="filter-item" style="width: 100%" />
  822. </el-form-item>
  823. </el-col>
  824. </el-row>
  825. <el-row class="row-style">
  826. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  827. <el-form-item label="价值类型:" prop="assetsValueId" label-width="200px" class="postInfo-container-item">
  828. <el-select v-model="targetForm.assetsValueId" style="width: 100%">
  829. <el-option v-for="(t, id) in assetsValueType" :label="t.typeName" :value="t.id" :key="t.id"></el-option>
  830. </el-select>
  831. </el-form-item>
  832. </el-col>
  833. </el-row>
  834. <el-row class="row-style">
  835. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  836. <el-form-item label="项目负责人:" label-width="200px" class="postInfo-container-item">
  837. <el-select v-model="targetForm.principalId" placeholder="请选择" readonly disabled style="width: 100%">
  838. <el-option v-for="(u, id) in principals" :label="u.name" :value="u.id" :key="u.id"></el-option>
  839. </el-select>
  840. </el-form-item>
  841. </el-col>
  842. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  843. <el-form-item label="实勘人:" prop="siteIds" label-width="200px" class="postInfo-container-item">
  844. <el-select v-model="targetForm.siteIds" placeholder="请选择" multiple style="width: 100%">
  845. <el-option v-for="(u, id) in depUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
  846. </el-select>
  847. </el-form-item>
  848. </el-col>
  849. </el-row>
  850. <el-row class="row-style">
  851. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  852. <el-form-item prop="valuationBasisDate" label-width="200px" label="估价基准日:" class="postInfo-container-item">
  853. <el-date-picker v-model="targetForm.valuationBasisDate" type="date" placeholder="选择日期" style="width:100%">
  854. </el-date-picker>
  855. </el-form-item>
  856. </el-col>
  857. </el-row>
  858. <el-row class="row-style">
  859. <el-col :xs="12" :sm="12" :lg="12" :span="12">
  860. <el-form-item label="评估方法:" prop="evaluationMethodId" label-width="200px" class="postInfo-container-item">
  861. <el-select v-model="targetForm.evaluationMethodId" multiple style="width: 100%;">
  862. <el-option v-for="(m, id) in assetsEvaluationMethod" :label="m.methodName" :value="m.id"
  863. :key="m.id"></el-option>
  864. </el-select>
  865. </el-form-item>
  866. </el-col>
  867. <el-col :xs="12" :sm="12" :lg="12" :span="12" v-if="targetForm.evaluationMethodId.includes(7)">
  868. <el-form-item prop="definedEvaluationMethod" label-width="20px" class="postInfo-container-item">
  869. <el-input v-model="targetForm.definedEvaluationMethod" multiple style="width: 50%;">
  870. </el-input>
  871. </el-form-item>
  872. </el-col>
  873. </el-row>
  874. <el-row class="row-style">
  875. <el-col :xs="12" :sm="12" :lg="12" :span="12">
  876. <el-form-item label="最终选择的评估方法:" prop="choiceEvaluationMethodId" label-width="200px"
  877. class="postInfo-container-item">
  878. <el-select v-model="targetForm.choiceEvaluationMethodId" multiple style="width: 100%;">
  879. <el-option v-for="(m, id) in assetsEvaluationMethod" :label="m.methodName" :value="m.id"
  880. :key="m.id"></el-option>
  881. </el-select>
  882. </el-form-item>
  883. </el-col>
  884. <el-col :xs="12" :sm="12" :lg="12" :span="12" v-if="targetForm.choiceEvaluationMethodId.includes(7)">
  885. <el-form-item prop="choiceDefinedEvaluationMethod" label-width="20px" class="postInfo-container-item">
  886. <el-input v-model="targetForm.choiceDefinedEvaluationMethod" multiple style="width: 50%;">
  887. </el-input>
  888. </el-form-item>
  889. </el-col>
  890. </el-row>
  891. <el-row class="row-style">
  892. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  893. <el-form-item label="总资产账面值:" prop="totalAssetCarryingAmount" label-width="200px"
  894. class="postInfo-container-item">
  895. <el-input-number v-model="targetForm.totalAssetCarryingAmount" controls-position="right" :precision="2"
  896. :step="0.1"></el-input-number>
  897. <span>(万)</span>
  898. </el-form-item>
  899. </el-col>
  900. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  901. <el-form-item label="总负债账面值:" prop="totalLiabilitiesCarryingAmount" label-width="200px"
  902. class="postInfo-container-item">
  903. <el-input-number v-model="targetForm.totalLiabilitiesCarryingAmount" controls-position="right"
  904. :precision="2" :step="0.1"></el-input-number>
  905. <span>(万)</span>
  906. </el-form-item>
  907. </el-col>
  908. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  909. <el-form-item label="净资产账面值:" prop="carryingAmountOfNetAssets" label-width="200px"
  910. class="postInfo-container-item">
  911. <el-input-number v-model="targetForm.carryingAmountOfNetAssets" controls-position="right" :precision="2"
  912. :step="0.1"></el-input-number>
  913. <span>(万)</span>
  914. </el-form-item>
  915. </el-col>
  916. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  917. <el-form-item label="评估结论对应的评估值:" prop="estimatedValue" label-width="200px" class="postInfo-container-item">
  918. <el-input-number v-model="targetForm.estimatedValue" controls-position="right" :precision="2"
  919. :step="0.1"></el-input-number>
  920. <span>(万)</span>
  921. </el-form-item>
  922. </el-col>
  923. </el-row>
  924. <el-row class="row-style" v-if="currentNode.nodeCode === 'REVIEW_QUOTATION'">
  925. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  926. <el-form-item label="审核定价:" prop="checkValue" label-width="200px" class="postInfo-container-item">
  927. <el-input-number v-model="targetForm.checkValue" controls-position="right" :precision="2"
  928. :step="0.1"></el-input-number>
  929. <span>(万)</span>
  930. </el-form-item>
  931. </el-col>
  932. </el-row>
  933. <el-row class="row-style">
  934. <el-col :xs="24" :sm="12" :lg="18" :span="6">
  935. <el-form-item prop="filePath" label="资料附件:" label-width="200px" class="postInfo-container-item">
  936. <el-upload action="/api/upload" :limit="3" :on-success="changeresTarget" :on-exceed="handleExceed"
  937. :on-preview="handleAttachmentPreview" :before-remove="beforeRemove" :file-list="fileList">
  938. <el-button plain type="info" round style="width: 100%">上传附件<i
  939. class="el-icon-upload el-icon--right"></i></el-button>
  940. </el-upload>
  941. </el-form-item>
  942. </el-col>
  943. </el-row>
  944. <el-row class="row-style">
  945. <el-col :xs="24" :sm="12" :lg="24" :span="12">
  946. <el-form-item label="备注:" prop="remark" label-width="200px" class="postInfo-container-item">
  947. <el-input v-model="targetForm.remark" :autosize="{ minRows: 4, maxRows: 4 }" class="filter-item"
  948. type="textarea" />
  949. </el-form-item>
  950. </el-col>
  951. </el-row>
  952. <el-row class="row-style" style="text-align:center">
  953. <el-button type="success" v-if="saveButtonStatus" @click="assetsTargetSave">保存</el-button>
  954. <el-button type="success" v-if="updateButtonStatus" @click="assetsTargetUpdate">更新</el-button>
  955. </el-row>
  956. </el-form>
  957. </div>
  958. </el-dialog>
  959. <el-dialog :visible.sync="productionChoiceDialogVisible">
  960. <el-form ref="assetsProductionForm" :model="assetsProductionForm" :rules="assetsProductionFormRules">
  961. <div class="createMajor-main-container">
  962. <div class="postInfo-container">
  963. <div>
  964. <el-divider content-position="left">
  965. <h3 class="title">
  966. <div class="avatar-wrapper icon-title">产品</div>
  967. <div class="icon-info">选择产品</div>
  968. </h3>
  969. </el-divider>
  970. </div>
  971. <el-row class="row-style">
  972. <el-col :xs="24" :sm="12" :lg="12" :span="6" style="width: 800px;">
  973. <el-form-item label="产品类型:" prop="productionType" label-width="120px" class="postInfo-container-item">
  974. <el-radio v-if="currentNode.nodeCode === 'PRODUCT_CHOICE'" v-model="assetsProductionForm.productionType"
  975. label="STATEMENT" border size="medium">价值意见书</el-radio>
  976. <el-radio v-model="assetsProductionForm.productionType" label="CONSULT" border
  977. size="medium">咨询报告</el-radio>
  978. <el-radio v-model="assetsProductionForm.productionType" label="REPORT" border
  979. size="medium">评估报告</el-radio>
  980. <el-radio v-model="assetsProductionForm.productionType" label="LETTER" border
  981. size="medium">意见函</el-radio>
  982. </el-form-item>
  983. </el-col>
  984. </el-row>
  985. <el-row class="row-style">
  986. <el-col :xs="24" :sm="12" :lg="12" :span="6" style="width: 345px;">
  987. <el-form-item label="打印份数:" prop="printCount" label-width="120px" class="postInfo-container-item">
  988. <el-input v-model.number="assetsProductionForm.printCount" class="filter-item" />
  989. </el-form-item>
  990. </el-col>
  991. </el-row>
  992. <el-row class="row-style" style="text-align:center">
  993. <el-button type="primary" v-if="productionChoiceStatus == 0" @click="assetsProductionSave">提交</el-button>
  994. <el-button type="primary" v-if="productionChoiceStatus == 1"
  995. @click="assetsProductionUpdateChoice">提交</el-button>
  996. </el-row>
  997. </div>
  998. </div>
  999. </el-form>
  1000. </el-dialog>
  1001. <el-dialog :visible.sync="productionWriteDialogVisible" @open="clearassetsProductionFormValidate(), byAssetEvaluator()"
  1002. @close="resetProductionForm()">
  1003. <el-form ref="assetsProductionForm" :model="assetsProductionForm" :rules="assetsProductionFormRules"
  1004. :disabled="productionDisabledStatus">
  1005. <div class="createMajor-main-container">
  1006. <div class="postInfo-container">
  1007. <div>
  1008. <el-divider content-position="left">
  1009. <h3 class="title">
  1010. <div class="avatar-wrapper icon-title">产品</div>
  1011. <div class="icon-info">撰写产品信息</div>
  1012. </h3>
  1013. </el-divider>
  1014. </div>
  1015. <el-row class="row-style">
  1016. <el-col v-if="currentNode.nodeCode === 'GENERATE_STATEMENT'">
  1017. <el-form-item label="产品号:" prop="productionNo" label-width="140px" class="postInfo-container-item">
  1018. <el-select v-model="assetsProductionForm.productionNo" @change="getAssetsProductionDetailByNo()"
  1019. placeholder="请选择" style="width: 300px;">
  1020. <el-option v-for="statementNo in writeProductionStatementNos" :label="statementNo"
  1021. :value="statementNo" :key="statementNo"></el-option>
  1022. </el-select>
  1023. </el-form-item>
  1024. </el-col>
  1025. <el-col v-if="currentNode.nodeCode === 'WRITE_REPORT'">
  1026. <el-form-item label="产品号:" prop="productionNo" label-width="140px" class="postInfo-container-item">
  1027. <el-select v-model="assetsProductionForm.productionNo" @change="getAssetsProductionDetailByNo()"
  1028. placeholder="请选择" style="width: 300px;">
  1029. <el-option v-for="reportNo in writeProductionReportNos" :label="reportNo" :value="reportNo"
  1030. :key="reportNo"></el-option>
  1031. </el-select>
  1032. </el-form-item>
  1033. </el-col>
  1034. </el-row>
  1035. <el-row class="row-style">
  1036. <el-col>
  1037. <el-form-item label="项目名称:" prop="assetsName" label-width="140px" class="postInfo-container-item">
  1038. <el-input v-model.number="assetsProductionForm.assetsName" class="filter-item" />
  1039. </el-form-item>
  1040. </el-col>
  1041. </el-row>
  1042. <el-row class="row-style"
  1043. v-if="(assetsProductionForm.productionType && assetsProductionForm.productionType !== 'STATEMENT') || (currentNode.nodeCode === 'WRITE_REPORT' && writeType === 'add')">
  1044. <el-col>
  1045. <el-form-item label="签字人:" prop="signatory" label-width="140px" class="postInfo-container-item">
  1046. <el-select v-model="assetsProductionForm.signatory" placeholder="请选择" multiple>
  1047. <el-option v-for="(u, id) in assetEvaluator" :label="u.name" :value="u.id" :key="u.id"></el-option>
  1048. </el-select>
  1049. </el-form-item>
  1050. </el-col>
  1051. </el-row>
  1052. <el-row class="row-style">
  1053. <el-col>
  1054. <el-form-item label="委托方名称:" prop="clientName" label-width="140px" class="postInfo-container-item">
  1055. <el-input v-model.number="assetsProductionForm.clientName" class="filter-item" />
  1056. </el-form-item>
  1057. </el-col>
  1058. </el-row>
  1059. <el-row class="row-style">
  1060. <el-col>
  1061. <el-form-item label="委托方电话:" prop="clientTel" label-width="140px" class="postInfo-container-item">
  1062. <el-input v-model.number="assetsProductionForm.clientTel" class="filter-item" />
  1063. </el-form-item>
  1064. </el-col>
  1065. </el-row>
  1066. <el-row class="row-style">
  1067. <el-col>
  1068. <el-form-item label="估价基准日:" prop="valuationBasisDate" label-width="140px"
  1069. class="postInfo-container-item">
  1070. <el-date-picker v-model="assetsProductionForm.valuationBasisDate" type="date" placeholder="选择日期"
  1071. style="width:100%">
  1072. </el-date-picker>
  1073. </el-form-item>
  1074. </el-col>
  1075. </el-row>
  1076. <el-row class="row-style">
  1077. <el-col>
  1078. <el-form-item label="评估面积:" prop="evaluateAcreage" label-width="140px" class="postInfo-container-item">
  1079. <el-input-number v-model="assetsProductionForm.evaluateAcreage" @change="computeAmount"
  1080. controls-position="right" :precision="2" :step="0.1"></el-input-number>
  1081. <span>(m²)</span>
  1082. </el-form-item>
  1083. </el-col>
  1084. </el-row>
  1085. <el-row class="row-style">
  1086. <el-col>
  1087. <el-form-item label="评估单价:" prop="evaluatePrice" label-width="140px" class="postInfo-container-item">
  1088. <el-input-number v-model="assetsProductionForm.evaluatePrice" @change="computeAmount"
  1089. controls-position="right" :precision="2" :step="0.1"></el-input-number>
  1090. <span>(元)</span>
  1091. </el-form-item>
  1092. </el-col>
  1093. </el-row>
  1094. <el-row class="row-style">
  1095. <el-col>
  1096. <el-form-item label="评估总价:" prop="evaluateAmount" label-width="140px" class="postInfo-container-item">
  1097. <el-input-number v-model="assetsProductionForm.evaluateAmount" controls-position="right" :precision="2"
  1098. :step="0.1"></el-input-number>
  1099. <span>(万)</span>
  1100. </el-form-item>
  1101. </el-col>
  1102. </el-row>
  1103. <el-row class="row-style">
  1104. <el-col>
  1105. <el-form-item label="资产持有人:" prop="owner" label-width="140px" class="postInfo-container-item">
  1106. <el-input v-model.number="assetsProductionForm.owner" class="filter-item" />
  1107. </el-form-item>
  1108. </el-col>
  1109. </el-row>
  1110. <el-row class="row-style">
  1111. <el-col>
  1112. <el-form-item label="产品打印份数:" prop="printCount" label-width="140px" class="postInfo-container-item">
  1113. <el-input v-model.number="assetsProductionForm.printCount" class="filter-item" />
  1114. </el-form-item>
  1115. </el-col>
  1116. </el-row>
  1117. <el-row class="row-style">
  1118. <el-col>
  1119. <el-form-item label="出具产品日期:" prop="createProductionDate" label-width="140px"
  1120. class="postInfo-container-item">
  1121. <el-date-picker v-model="assetsProductionForm.createProductionDate" type="date" placeholder="选择日期"
  1122. style="width:100%">
  1123. </el-date-picker>
  1124. </el-form-item>
  1125. </el-col>
  1126. </el-row>
  1127. <el-row class="row-style">
  1128. <el-col>
  1129. <el-form-item prop="filePath" label="资料附件:" label-width="140px" class="postInfo-container-item">
  1130. <el-upload action="/api/upload" :limit="3" :on-success="changeresProduction" :on-exceed="handleExceed"
  1131. :on-preview="handleAttachmentPreview" :before-remove="beforeRemovePro" :file-list="fileList">
  1132. <el-button plain type="info" round style="width: 100%">上传附件<i
  1133. class="el-icon-upload el-icon--right"></i></el-button>
  1134. </el-upload>
  1135. </el-form-item>
  1136. </el-col>
  1137. </el-row>
  1138. <el-row class="row-style">
  1139. <el-col>
  1140. <el-form-item label="特殊情况说明:" prop="comment" label-width="140px" class="postInfo-container-item">
  1141. <el-input v-model="assetsProductionForm.comment" :autosize="{ minRows: 4, maxRows: 4 }"
  1142. class="filter-item" type="textarea" />
  1143. </el-form-item>
  1144. </el-col>
  1145. </el-row>
  1146. <el-row class="row-style" style="text-align:center">
  1147. <el-button type="primary" v-if="writeType === 'add'" @click="writeAssetsProduction()">提交</el-button>
  1148. </el-row>
  1149. <el-row class="row-style" style="text-align:center">
  1150. <el-button type="primary" v-if="writeType === 'edit'" @click="productionUpdate()">提交</el-button>
  1151. </el-row>
  1152. </div>
  1153. </div>
  1154. </el-form>
  1155. </el-dialog>
  1156. <el-dialog :visible.sync="checkValueDialogVisible">
  1157. <el-divider content-position="left">【资产】审核定价</el-divider>
  1158. <el-form ref="targetForm" :model="targetForm" :rules="targetFormRules">
  1159. <div class="createMajor-main-container">
  1160. <div class="postInfo-container">
  1161. <el-row>
  1162. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1163. <el-form-item label="评估方法:" prop="evaluationMethodId" label-width="190px" class="postInfo-container-item">
  1164. <el-select v-model="targetForm.evaluationMethodId" multiple style="width: 100%;">
  1165. <el-option v-for="(m, id) in assetsEvaluationMethod" :label="m.methodName" :value="m.id"
  1166. :key="m.id"></el-option>
  1167. </el-select>
  1168. </el-form-item>
  1169. </el-col>
  1170. <el-col :xs="24" :sm="12" :lg="12" :span="6" v-if="targetForm.evaluationMethodId.includes(7)">
  1171. <el-form-item prop="definedEvaluationMethod" label-width="20px" class="postInfo-container-item">
  1172. <el-input v-model="targetForm.definedEvaluationMethod" multiple style="width: 50%;">
  1173. </el-input>
  1174. </el-form-item>
  1175. </el-col>
  1176. </el-row>
  1177. <el-row>
  1178. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1179. <el-form-item label="最终选择的评估方法:" prop="choiceEvaluationMethodId" label-width="190px"
  1180. class="postInfo-container-item">
  1181. <el-select v-model="targetForm.choiceEvaluationMethodId" multiple style="width: 100%;">
  1182. <el-option v-for="(m, id) in assetsEvaluationMethod" :label="m.methodName" :value="m.id"
  1183. :key="m.id"></el-option>
  1184. </el-select>
  1185. </el-form-item>
  1186. </el-col>
  1187. <el-col :xs="24" :sm="12" :lg="12" :span="6" v-if="targetForm.choiceEvaluationMethodId.includes(7)">
  1188. <el-form-item prop="choiceDefinedEvaluationMethod" label-width="20px" class="postInfo-container-item">
  1189. <el-input v-model="targetForm.choiceDefinedEvaluationMethod" multiple style="width: 50%;">
  1190. </el-input>
  1191. </el-form-item>
  1192. </el-col>
  1193. </el-row>
  1194. <el-row>
  1195. <el-col>
  1196. <el-form-item label="审核价格:" prop="checkValue" label-width="190px" class="postInfo-container-item">
  1197. <el-input-number v-model="targetForm.checkValue" controls-position="right" :precision="2" :step="0.1"
  1198. :min="0"></el-input-number>
  1199. <span>(万)</span>
  1200. </el-form-item>
  1201. </el-col>
  1202. </el-row>
  1203. <el-row style="text-align:center">
  1204. <el-col>
  1205. <el-button type="primary" @click="checkValue()">审核定价</el-button>
  1206. </el-col>
  1207. </el-row>
  1208. </div>
  1209. </div>
  1210. </el-form>
  1211. </el-dialog>
  1212. <el-dialog :visible.sync="productionCheckDialogVisible" @close="resetProductionForm()">
  1213. <el-form ref="productionPerformanceForm" :model="productionPerformanceForm">
  1214. <div class="createMajor-main-container">
  1215. <div class="postInfo-container">
  1216. <div>
  1217. <el-divider content-position="left">
  1218. <h3 class="title">
  1219. <div class="avatar-wrapper icon-title">产品</div>
  1220. <div class="icon-info">产品质检</div>
  1221. </h3>
  1222. </el-divider>
  1223. </div>
  1224. <el-row class="row-style">
  1225. <el-col>
  1226. <el-form-item prop="normalMistake" label-width="120px" class="postInfo-container-item" label="一般错误个数:">
  1227. <el-input-number :min="0" style="width:50%;" type="number"
  1228. v-model="productionPerformanceForm.normalMistake" class="filter-item" />
  1229. </el-form-item>
  1230. </el-col>
  1231. </el-row>
  1232. <el-row class="row-style">
  1233. <el-col>
  1234. <el-form-item prop="normalMistake" label-width="120px" class="postInfo-container-item" label="较大错误个数:">
  1235. <el-input-number :min="0" style="width:50%;" type="number"
  1236. v-model="productionPerformanceForm.hardMistake" class="filter-item" />
  1237. </el-form-item>
  1238. </el-col>
  1239. </el-row>
  1240. <el-row class="row-style">
  1241. <el-col>
  1242. <el-form-item prop="fatalMistake" label-width="120px" class="postInfo-container-item" label="重大错误个数:">
  1243. <el-input-number :min="0" style="width:50%;" type="number"
  1244. v-model="productionPerformanceForm.fatalMistake" class="filter-item" />
  1245. </el-form-item>
  1246. </el-col>
  1247. </el-row>
  1248. <el-row class="row-style">
  1249. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  1250. <el-form-item prop="reason" label-width="120px" class="postInfo-container-item" label="扣分原因:">
  1251. <el-input v-model.trim="productionPerformanceForm.reason" class="filter-item" type="textarea" />
  1252. </el-form-item>
  1253. </el-col>
  1254. </el-row>
  1255. <div v-if="currentNode.nodeCode === 'RECHECK_REPORT' || currentNode.nodeCode === 'FOURTH_CHECK_REPORT'">
  1256. <el-row class="row-style">
  1257. <el-col>
  1258. <el-form-item label="特殊情况说明:" prop="comment" label-width="150px" class="postInfo-container-item">
  1259. <el-input v-model="assetsProductionForm.comment" :autosize="{ minRows: 4, maxRows: 4 }"
  1260. class="filter-item" type="textarea" />
  1261. </el-form-item>
  1262. </el-col>
  1263. </el-row>
  1264. <el-row class="row-style">
  1265. <el-col>
  1266. <el-form-item :rules="{ required: true, message: '请上传附件资料', trigger: 'changes' }" prop="filePath"
  1267. label="资料附件:" label-width="120px" class="postInfo-container-item">
  1268. <el-upload action="/api/upload" :limit="3" :on-success="changeresProduction" :on-exceed="handleExceed"
  1269. :on-preview="handleAttachmentPreview" :before-remove="beforeRemovePro" :file-list="fileList">
  1270. <el-button plain type="info" round style="width: 100%">上传附件<i
  1271. class="el-icon-upload el-icon--right"></i></el-button>
  1272. </el-upload>
  1273. </el-form-item>
  1274. </el-col>
  1275. </el-row>
  1276. </div>
  1277. <el-row style="text-align:center">
  1278. <el-col>
  1279. <el-button type="primary" @click="saveQuality()">提交</el-button>
  1280. </el-col>
  1281. </el-row>
  1282. </div>
  1283. </div>
  1284. </el-form>
  1285. </el-dialog>
  1286. <el-dialog :visible.sync="warehouseDialog" width="25%" center top="35vh" custom-class="doWarehouseClass"
  1287. @closed="cleanWareHouseProductionType()">
  1288. <ScanEntry ref="scanEntry" @scanEntryFun="handleScanEntry" label="请扫描二维码或输入报告号" />
  1289. <span slot="footer" class="dialog-footer">
  1290. <el-button @click="warehouseDialog = false">取 消</el-button>
  1291. <el-button type="primary" @click="doWareHouse()">确 定</el-button>
  1292. </span>
  1293. </el-dialog>
  1294. <el-dialog :visible.sync="assetsAchievementRatioDialogVisible" @close="resetProductionForm()"
  1295. @closed="resetBusinessPerformanceDistributionForm()" width="25%">
  1296. <div v-if="businessPerformanceDistributionForm.distributionList !== null" class="createMajor-main-container">
  1297. <div class="postInfo-container">
  1298. <div>
  1299. <el-divider content-position="left">
  1300. <h3 class="title">
  1301. <div class="avatar-wrapper icon-title">归档</div>
  1302. <div class="icon-info">归档审核</div>
  1303. </h3>
  1304. </el-divider>
  1305. </div>
  1306. <!-- <p style="margin-top: 50px; color: red;">绩效比例:</p>
  1307. <el-row style="margin-top: 10px;" v-for="(member, index) in assetsBusinessMembers" :key="index"
  1308. class="row-style">
  1309. <el-col>
  1310. <p style="width: 65px; display: inline-block; text-align: right;">
  1311. {{ member.memberName }}:
  1312. </p>
  1313. <el-input-number
  1314. v-model="businessPerformanceDistributionForm.distributionList[index].performanceDistribution"
  1315. :precision="2" :step="0.1" :max="100">
  1316. </el-input-number>
  1317. <p style="margin-left: 5px; display: inline-block;">
  1318. %
  1319. </p>
  1320. <p style="margin-left: 5px; display: inline-block;">
  1321. <span v-if="member.memberType === '项目负责人'" style="color: blueviolet;">
  1322. * {{ member.memberType }}
  1323. </span>
  1324. <span v-if="member.memberType === '项目参与人'">
  1325. * {{ member.memberType }}
  1326. </span>
  1327. <span v-if="member.memberType === '签字师'" style="color: red;">
  1328. * {{ member.memberType }}
  1329. </span>
  1330. </p>
  1331. </el-col>
  1332. </el-row> -->
  1333. <span v-if="currentNode.nodeCode === 'CHECK_ARCHIVING'">
  1334. <el-row style="margin-top: 10px;" class="row-style">
  1335. <el-col>
  1336. <el-form>
  1337. <el-form-item :rules="{ required: true, message: '请上传附件资料', trigger: 'changes' }" prop="filePath"
  1338. label="资料附件:" label-width="120px" class="postInfo-container-item">
  1339. <el-upload action="/api/upload" :limit="3" :on-success="changeresProduction" :on-exceed="handleExceed"
  1340. :on-preview="handleAttachmentPreview" :before-remove="beforeRemovePro" :file-list="fileList">
  1341. <el-button plain type="info" round style="width: 100%">上传附件<i
  1342. class="el-icon-upload el-icon--right"></i></el-button>
  1343. </el-upload>
  1344. </el-form-item>
  1345. </el-form>
  1346. </el-col>
  1347. </el-row>
  1348. </span>
  1349. </div>
  1350. </div>
  1351. <span v-if="businessPerformanceDistributionForm.distributionList !== null" slot="footer" class="dialog-footer">
  1352. <el-button @click="assetsAchievementRatioDialogVisible = false">取 消</el-button>
  1353. <!-- <el-button v-if="showDistributionButton" type="primary" @click="saveBusinessPerformanceDistribution()">新
  1354. 增</el-button>
  1355. <el-button v-if="!showDistributionButton" type="primary" @click="updateAssetsPerformanceDistribution()">修
  1356. 改</el-button> -->
  1357. <el-button @click="updateProductionFileInfo(), assetsAchievementRatioDialogVisible = false">确 认</el-button>
  1358. </span>
  1359. </el-dialog>
  1360. </div>
  1361. </template>
  1362. <script>
  1363. import YDetailPageLayout from '@/components/YDetailPageLayout/index_detail'
  1364. import WorkflowBoard from '@/components/workflowBoard'
  1365. import ScanEntry from '@/components/ScanEntry'
  1366. import { isNumber, phoneNumber, postiveInteger, isIdNumber } from '@/utils/validate'
  1367. export default {
  1368. name: 'AssetsOrderDetail',
  1369. components: {
  1370. YDetailPageLayout,
  1371. WorkflowBoard,
  1372. ScanEntry
  1373. },
  1374. watch: {
  1375. $route(to, from) {
  1376. // 获取页面参数
  1377. this.pageParams.back = this.$route.query.back;
  1378. this.pageParams.row = JSON.parse(this.$route.query.row);
  1379. this.getProductionTypes(this.pageParams.row.assetsId);
  1380. this.nodeBusinessInfo.doWorkflow = true;
  1381. this.nodeBusinessInfo.mainBusiness = 'ASSET_BUSINESS';
  1382. this.nodeBusinessInfo.businessId = this.pageParams.row.assetsId;
  1383. this.nodeBusinessInfo.businessSubId = this.pageParams.row.statementNo;
  1384. this.nodeBusinessInfo.businessMinId = this.pageParams.row.reportNo;
  1385. this.nodeBusinessInfo.reportNos.push(this.pageParams.row.statementNo);
  1386. this.disabledStatus = this.$route.query.disabledStatus === 'true';
  1387. this.couldEdit = this.$route.query.couldEdit === 'true';
  1388. this.couldBack = this.$route.query.couldBack === 'true';
  1389. if (this.$route.query.activeTabName !== null && this.$route.query.activeTabName !== undefined) {
  1390. this.activeTabName = this.$route.query.activeTabName;
  1391. }
  1392. this.byDepartmentName();
  1393. this.getCurrentNodeInfo();
  1394. this.getAllotDepartment();
  1395. this.getAssetsDetailById(this.pageParams.row.assetsId);
  1396. this.getAETargetListByAssetsId();
  1397. this.getOrderFundInvoiceById();
  1398. }
  1399. },
  1400. data() {
  1401. var checkSignatoryLength = (rule, value, callback) => {
  1402. if (this.assetsProductionForm.signatory !== undefined && this.assetsProductionForm.signatory !== null) {
  1403. if (this.assetsProductionForm.signatory.length < 2) {
  1404. return callback(new Error('需至少选择两个签字人'));
  1405. } else {
  1406. callback();
  1407. }
  1408. }
  1409. };
  1410. return {
  1411. editStatus: false,
  1412. // 资产业务表单禁用状态
  1413. disabledStatus: true,
  1414. // 评估对象表单禁用状态
  1415. targetDisabledStatus: true,
  1416. // 评估对象表单保存按钮显示状态
  1417. saveButtonStatus: true,
  1418. // 评估对象表单更新按钮显示状态
  1419. updateButtonStatus: true,
  1420. couldEdit: null,
  1421. couldBack: null,
  1422. // 表单项目隐藏字段
  1423. itemHideStatus: false,
  1424. createLinkmanVisible: false,
  1425. // 文件上传数组
  1426. fileList: [],
  1427. // 资产业务下单表单校验规则
  1428. assetsFormRules: {
  1429. departmentId: [
  1430. { required: true, message: '请选择接单部门', trigger: 'change' }
  1431. ],
  1432. name: [
  1433. { required: true, message: '项目名称不能为空', trigger: 'blur' }
  1434. ],
  1435. assetsBusinessGener: [
  1436. { required: true, message: '请选择业务类型', trigger: 'change' }
  1437. ],
  1438. entrustAgain: [
  1439. { required: true, message: '请选择客户是否再次委托', trigger: 'change' }
  1440. ],
  1441. clienteleType: [
  1442. { required: true, message: '请选择客户类型', trigger: 'change' }
  1443. ],
  1444. clienteleId: [
  1445. { required: true, message: '请选择客户名称', trigger: 'change' }
  1446. ],
  1447. clienteleSubId: [
  1448. { required: true, message: '请选择业务来源', trigger: 'change' }
  1449. ],
  1450. clienteleContactId: [
  1451. { required: true, message: '请选择客户联系人', trigger: 'change' }
  1452. ],
  1453. security: [
  1454. { required: true, message: '请选择是否证券项目', trigger: 'change' }
  1455. ],
  1456. significantAssetsReorganization: [
  1457. { required: true, message: '请选择是否资产重组项目', trigger: 'change' }
  1458. ],
  1459. stateAssets: [
  1460. { required: true, message: '请选择是否是否国资项目', trigger: 'change' }
  1461. ],
  1462. foreignAssetsInvolved: [
  1463. { required: true, message: '请选择是否 是否涉及境外资产', trigger: 'change' }
  1464. ],
  1465. dispenseBenefit: [
  1466. { required: true, message: '请选择是否是否分配产值', trigger: 'change' }
  1467. ],
  1468. // terminalClienteleType: [
  1469. // { required: true, message: '请选择终端客户类型', trigger: 'change' }
  1470. // ],
  1471. terminalClienteleId: [
  1472. { required: true, message: '终端客户名称不能为空', trigger: 'blur' }
  1473. ],
  1474. terminalClienteleContactId: [
  1475. { required: true, message: '终端联系人不能为空', trigger: 'blur' }
  1476. ],
  1477. bailorContactTel: [
  1478. { required: false, validator: phoneNumber, trigger: 'blur' }
  1479. ]
  1480. },
  1481. workflowLogs: [],
  1482. activeName: 'workflowInfo',
  1483. activeTabName: "baseInfo",
  1484. nodeBusinessInfo: {
  1485. currentNodePermission: {
  1486. commit: true,
  1487. reversible: true,
  1488. restartable: true,
  1489. terminable: true,
  1490. skippable: true,
  1491. },
  1492. mainBusiness: "ASSET_BUSINESS",
  1493. doWorkflow: false,
  1494. businessSubId: null,
  1495. businessId: null,
  1496. currentNodeInstanceId: null,
  1497. production: [],
  1498. reportNos: [],
  1499. currentNodeInstanceCode: null,
  1500. ifCheckTask: true,
  1501. ifPay: null,
  1502. doFourthCheck: false,
  1503. ifProductionFund: false
  1504. },
  1505. currentNode: {
  1506. flowId: null,
  1507. pnodeId: null,
  1508. nodeId: null,
  1509. flowCode: null,
  1510. nodeName: "",
  1511. nodeCode: null,
  1512. state: "",
  1513. instanceId: null,
  1514. sequence: null,
  1515. restartable: null,
  1516. reversible: null,
  1517. skippable: null,
  1518. terminable: null,
  1519. tasks: []
  1520. },
  1521. assetsForm: {
  1522. // 项目名
  1523. name: null,
  1524. // 客户经理id
  1525. clientManagerId: this.$store.getters.userInfo.id,
  1526. // 客户经理
  1527. clientManagerName: this.$store.getters.userInfo.name,
  1528. // 接单部门id
  1529. departmentId: null,
  1530. // 资产业务类型
  1531. assetsBusinessGener: null,
  1532. // 客户再次委托
  1533. entrustAgain: null,
  1534. // 客户类型(企业,个人)
  1535. clienteleType: null,
  1536. // 客户id
  1537. clienteleId: null,
  1538. // 业务来源(下级客户id)
  1539. clienteleSubId: null,
  1540. // 客户联系人id
  1541. clienteleContactId: null,
  1542. // 是否证券项目
  1543. security: null,
  1544. // 是否资产重组项目
  1545. significantAssetsReorganization: null,
  1546. // 是否国资项目
  1547. stateAssets: null,
  1548. // 是否涉及境外资产
  1549. foreignAssetsInvolved: null,
  1550. // 是否分配产值
  1551. dispenseBenefit: null,
  1552. // 委托人
  1553. bailor: null,
  1554. // 委托人地址
  1555. bailorAddress: null,
  1556. // 委托联系人姓名
  1557. bailorContactName: null,
  1558. // 委托人联系人电话
  1559. bailorContactTel: null,
  1560. // 终端客户id
  1561. terminalClienteleId: null,
  1562. // 终端客户类型
  1563. terminalClienteleType: null,
  1564. // 终端联系人id
  1565. terminalClienteleContactId: null,
  1566. // 备注
  1567. remark: null,
  1568. // 终端联系电话
  1569. tmobile: null,
  1570. // 分单类型
  1571. allotType: "指派",
  1572. // 项目成员
  1573. members: null,
  1574. },
  1575. // 客户联系人信息
  1576. linkmanInfo: {
  1577. },
  1578. // 终端联系人信息
  1579. tLinkmanInfo: {
  1580. },
  1581. // 终端客户信息
  1582. tCustomerInfo: {
  1583. },
  1584. //
  1585. pageParams: {
  1586. back: null,
  1587. row: null
  1588. },
  1589. // 业务类型下拉列表
  1590. assetsBusinessGeners: [
  1591. {
  1592. value: '企业价值',
  1593. label: '企业价值'
  1594. }, {
  1595. value: '单项资产',
  1596. label: '单项资产'
  1597. }, {
  1598. value: '资产组合',
  1599. label: '资产组合'
  1600. }, {
  1601. value: '无形资产',
  1602. label: '无形资产'
  1603. }, {
  1604. value: '森林资源资产',
  1605. label: '森林资源资产'
  1606. }, {
  1607. value: '珠宝首饰艺术品',
  1608. label: '珠宝首饰艺术品'
  1609. }, {
  1610. value: '其他资产评估',
  1611. label: '其他资产评估'
  1612. }
  1613. ],
  1614. // 接单部门
  1615. allotDepartment: [],
  1616. // 客户信息
  1617. customerCompany: [],
  1618. // 业务信息(二级客户)
  1619. subCustomerCompany: [],
  1620. // 客户联系人下拉列表
  1621. customerContract: [],
  1622. // 终端客户下拉列表
  1623. tCustomerCompany: [],
  1624. // 终端联系人下拉列表
  1625. tCustomerContract: [],
  1626. // 项目负责人下拉列表
  1627. principals: [],
  1628. // 用户下拉列表
  1629. allUsers: [],
  1630. // 资产评估师
  1631. assetEvaluator: [],
  1632. // 资产事业部人员
  1633. depUsers: [],
  1634. // 资产评估对象信息
  1635. assetsEvaluationTarget: [],
  1636. writeProductionStatementNos: [],
  1637. writeProductionReportNos: [],
  1638. // 估计对象总价
  1639. totalEvaluateValue: 0.00,
  1640. // 评估对象表单
  1641. targetForm: {
  1642. id: null,
  1643. // 资产评估目的id
  1644. evaluationPurposeId: null,
  1645. // 资产评估对象类型一级id
  1646. evaluationTypeId: null,
  1647. // 资产评估对象类型二级id
  1648. evaluationTypeSecId: null,
  1649. // 其他自定义二级资产评估对象类型
  1650. evaluationTypeDefinedSec: null,
  1651. // 产权持有人
  1652. theHolder: null,
  1653. // 资产价值类型id
  1654. assetsValueId: null,
  1655. // 项目负责人id
  1656. principalId: null,
  1657. // 实勘人id (json 可多个)
  1658. siteIds: [],
  1659. // 估价基准日
  1660. valuationBasisDate: null,
  1661. // 评估方法id
  1662. evaluationMethodId: [],
  1663. // 最终选择的评估方法id
  1664. choiceEvaluationMethodId: [],
  1665. // 总资产账面值(万)
  1666. totalAssetCarryingAmount: null,
  1667. // 总负债账面值(万)
  1668. totalLiabilitiesCarryingAmount: null,
  1669. // 净资产账面值(万)
  1670. carryingAmountOfNetAssets: null,
  1671. // 评估结论对应的评估值(万)
  1672. estimatedValue: null,
  1673. // 审核价格
  1674. checkValue: null,
  1675. // 资料路由信息
  1676. filePath: [],
  1677. // 资产业务id
  1678. assetsId: null,
  1679. //自定义其他评估方法
  1680. definedEvaluationMethod: null,
  1681. //最终选择的自定义其他评估方法
  1682. choiceDefinedEvaluationMethod: null
  1683. },
  1684. // 资产评估对象评估目的
  1685. assetsEvaluationTargetPurpose: [],
  1686. // 资产评估方法
  1687. assetsEvaluationMethod: [],
  1688. // 资产价值类型
  1689. assetsValueType: [],
  1690. // 资产评估对象类型
  1691. assetsEvaluationTargetType: [],
  1692. // 二级资产评估对象类型
  1693. assetsSecEvaluationTargetType: [],
  1694. // 评估对象弹窗可视状态
  1695. targetDialogVisible: false,
  1696. // 添加评估对象表单校验规则
  1697. targetFormRules: {
  1698. evaluationPurposeId: [
  1699. { required: true, message: '请选择评估目的', trigger: 'change' }
  1700. ],
  1701. evaluationTypeId: [
  1702. { required: true, message: '请选择评估对象', trigger: 'change' }
  1703. ],
  1704. evaluationTypeSecId: [
  1705. { required: true, message: '请选择评估对象', trigger: 'change' }
  1706. ],
  1707. evaluationTypeDefinedSec: [
  1708. { required: true, message: '请填写其他', trigger: 'change' }
  1709. ],
  1710. theHolder: [
  1711. { required: true, message: '请填写产权持有人', trigger: 'blur' }
  1712. ],
  1713. assetsValueId: [
  1714. { required: true, message: '请选择价值类型', trigger: 'change' }
  1715. ],
  1716. principalId: [
  1717. { required: true, message: '请选择项目负责人', trigger: 'change' }
  1718. ],
  1719. siteIds: [
  1720. { required: true, message: '请选择实勘人', trigger: 'change' }
  1721. ],
  1722. valuationBasisDate: [
  1723. { required: true, message: '请选择价格基准日', trigger: 'change' }
  1724. ],
  1725. evaluationMethodId: [
  1726. { required: true, message: '请选择评估方法', trigger: 'change' }
  1727. ],
  1728. definedEvaluationMethod: [
  1729. { required: true, message: '请填写其他评估方法', trigger: 'blur' }
  1730. ],
  1731. choiceEvaluationMethodId: [
  1732. { required: true, message: '请选择最终选择的评估方法', trigger: 'change' }
  1733. ],
  1734. choiceDefinedEvaluationMethod: [
  1735. { required: true, message: '请填写其他评估方法', trigger: 'blur' }
  1736. ],
  1737. totalAssetCarryingAmount: [
  1738. { required: true, message: '请填写总资产账面值', trigger: 'blur' }
  1739. ],
  1740. totalLiabilitiesCarryingAmount: [
  1741. { required: true, message: '请填写总负债账面值', trigger: 'blur' }
  1742. ],
  1743. carryingAmountOfNetAssets: [
  1744. { required: true, message: '请填写净资产账面值', trigger: 'blur' }
  1745. ],
  1746. estimatedValue: [
  1747. { required: true, message: '请填写评估结论对应的评估值', trigger: 'blur' }
  1748. ],
  1749. // filePath: [
  1750. // { required: true, message: '请上传附件资料', trigger: 'change' }
  1751. // ],
  1752. checkValue: [
  1753. { required: true, message: '请填写审核价格', trigger: 'blur' }
  1754. ]
  1755. },
  1756. // 款项信息
  1757. invoiceData: {
  1758. businessId: null,
  1759. shouldAmount: null,
  1760. realAmount: null,
  1761. leftAmount: null,
  1762. title: null,
  1763. type: null,
  1764. taxNo: null,
  1765. bankName: null,
  1766. bankAddress: null,
  1767. bankTel: null
  1768. },
  1769. // 节点任务提交dto
  1770. taskRecordDTO: {
  1771. recordId: null,
  1772. taskData: {}
  1773. },
  1774. pNode: null,
  1775. // 产品选择表单可视状态
  1776. productionChoiceDialogVisible: false,
  1777. // 产品信息撰写表单可视状态
  1778. productionWriteDialogVisible: false,
  1779. // 评估对象审核定价表单可视状态
  1780. checkValueDialogVisible: false,
  1781. // isCheckValue: false,
  1782. // 0:新增,1:更新
  1783. productionChoiceStatus: 0,
  1784. // 产品表单
  1785. assetsProductionForm: {
  1786. businessId: null,
  1787. productionNo: null,
  1788. productionType: null,
  1789. signatory: [],
  1790. clientName: null,
  1791. clientTel: null,
  1792. valuationBasisDate: null,
  1793. evaluateAcreage: null,
  1794. evaluatePrice: null,
  1795. evaluateAmount: null,
  1796. owner: null,
  1797. printCount: null,
  1798. createProductionDate: null,
  1799. comment: null,
  1800. filePath: [],
  1801. assetsName: null
  1802. },
  1803. // 产品选择表单校验规则
  1804. assetsProductionFormRules: {
  1805. productionType: [
  1806. { required: true, message: '请选择产品类型', trigger: 'change' }
  1807. ],
  1808. printCount: [
  1809. { required: true, message: '请填写打印份数', trigger: 'blur' },
  1810. { type: 'number', message: '请填写数字' }
  1811. ],
  1812. signatory: [
  1813. { required: true, message: '请选择签字人', trigger: 'change' },
  1814. { required: true, validator: checkSignatoryLength, trigger: 'change' }
  1815. ],
  1816. clientName: [
  1817. { required: true, message: '请填写委托方名称', trigger: 'blur' }
  1818. ],
  1819. // clientTel: [
  1820. // { required: true, message: '请填写委托方电话', trigger: 'blur' }
  1821. // ],
  1822. valuationBasisDate: [
  1823. { required: true, message: '请选择估价基准日', trigger: 'change' }
  1824. ],
  1825. // evaluateAcreage: [
  1826. // { required: true, message: '请填写评估面积', trigger: 'blur' }
  1827. // ],
  1828. // evaluatePrice: [
  1829. // { required: true, message: '请填写评估单价', trigger: 'blur' }
  1830. // ],
  1831. evaluateAmount: [
  1832. { required: true, message: '请填写评估总价', trigger: 'blur' }
  1833. ],
  1834. // owner: [
  1835. // { required: true, message: '请填写持有人', trigger: 'blur' }
  1836. // ],
  1837. createProductionDate: [
  1838. { required: true, message: '请选择产品出具日期', trigger: 'change' }
  1839. ],
  1840. filePath: [
  1841. { required: true, message: '请上传附件资料', trigger: 'change' }
  1842. ],
  1843. assetsName: [
  1844. { required: true, message: '请填写项目名称', trigger: 'change' }
  1845. ],
  1846. productionNo: [
  1847. { required: true, message: '请选择评估对象', trigger: 'change' }
  1848. ]
  1849. },
  1850. // 资产业务取号dto
  1851. takeAssetsProductionNoDTO: {
  1852. targetIdList: [],
  1853. businessId: null,
  1854. productionType: null,
  1855. hasNotTakeNumTargetSelect: null,
  1856. selectAll: null,
  1857. printCount: null,
  1858. statementNo: null
  1859. },
  1860. assetsProductionData: null,
  1861. commitProductionNo: null,
  1862. proInatanceCount: null,
  1863. // 产品撰写表单禁用状态
  1864. productionDisabledStatus: false,
  1865. // 产品表单编辑类型
  1866. writeType: null,
  1867. // 产品质检表单可视状态
  1868. productionCheckDialogVisible: false,
  1869. // 产品质检信息
  1870. productionPerformanceForm: {
  1871. id: null,
  1872. businessType: null,
  1873. productionId: null,
  1874. checkLoop: null,
  1875. fatalMistake: 0,
  1876. hardMistake: 0,
  1877. normalMistake: 0,
  1878. reason: null,
  1879. checkId: null
  1880. },
  1881. // 产品入库弹窗
  1882. warehouseDialog: false,
  1883. scanEntryData: null,
  1884. wareHouseProductionType: null,
  1885. wareHouseproductionId: null,
  1886. assetsAchievementRatioDialogVisible: false,
  1887. // 项目所有参与人信息
  1888. assetsBusinessMembers: [],
  1889. // 资产绩效比例表单
  1890. businessPerformanceDistributionForm: {
  1891. businessId: null,
  1892. businessType: null,
  1893. reportNo: null,
  1894. distributionList: [
  1895. // {
  1896. // memberId: null,
  1897. // performanceDistribution: null
  1898. // }
  1899. ]
  1900. },
  1901. showDistributionButton: null,
  1902. canUpdateOrderBaseInfoNode: [
  1903. 'DEPARTMENT_ALLOCATION', 'SPOT_RECONNAISSANCE_DETERMINE_PRICE', 'QUOTATION_FEEDBACK',
  1904. 'PRODUCT_CHOICE', 'GENERATE_STATEMENT', 'REVIEW_STATEMENT', 'REEXAMINE_STATEMENT',
  1905. 'WRITE_REPORT', 'CHECK_REPORT', 'RECHECK_REPORT', 'FOURTH_CHECK_REPORT'
  1906. ]
  1907. }
  1908. },
  1909. created() {
  1910. // 获取页面参数
  1911. this.pageParams.back = this.$route.query.back;
  1912. this.pageParams.row = JSON.parse(this.$route.query.row);
  1913. this.getProductionTypes(this.pageParams.row.assetsId);
  1914. this.nodeBusinessInfo.doWorkflow = true;
  1915. this.nodeBusinessInfo.mainBusiness = 'ASSET_BUSINESS';
  1916. this.nodeBusinessInfo.businessId = this.pageParams.row.assetsId;
  1917. this.nodeBusinessInfo.businessSubId = this.pageParams.row.statementNo;
  1918. this.nodeBusinessInfo.businessMinId = this.pageParams.row.reportNo;
  1919. this.nodeBusinessInfo.reportNos.push(this.pageParams.row.statementNo);
  1920. this.disabledStatus = this.$route.query.disabledStatus === 'true';
  1921. this.couldEdit = this.$route.query.couldEdit === 'true';
  1922. this.couldBack = this.$route.query.couldBack === 'true';
  1923. if (this.$route.query.activeTabName !== null && this.$route.query.activeTabName !== undefined) {
  1924. this.activeTabName = this.$route.query.activeTabName;
  1925. }
  1926. this.byDepartmentName();
  1927. this.getCurrentNodeInfo();
  1928. this.getAllotDepartment();
  1929. this.getAssetsDetailById(this.pageParams.row.assetsId);
  1930. this.getAETargetListByAssetsId();
  1931. },
  1932. methods: {
  1933. // 根据业务id获取资产业务详情
  1934. getAssetsDetailById(id) {
  1935. this.$api.assets.getAssetsDetailById(id).then(res => {
  1936. if (res.code === 200) {
  1937. this.assetsForm = res.data;
  1938. this.assetsForm.members = JSON.parse(res.data.members);
  1939. this.initCustomerSelect(this.assetsForm.clienteleType);
  1940. this.getPrincipalByAllotDepartment();
  1941. this.getContactInfo();
  1942. // this.getAllUser();
  1943. }
  1944. })
  1945. },
  1946. handleChange() {
  1947. },
  1948. workflowCommitVerify(val, callback) {
  1949. let commit = val.commit;
  1950. let verify = new Object();
  1951. verify.state = true;
  1952. verify.cleanReport = false;
  1953. verify.nextHandlerId = this.secondCheckUserId;
  1954. if (commit.state === 'PASS') {
  1955. let nodeCode = this.currentNode.nodeCode;
  1956. switch (nodeCode) {
  1957. case 'GENERATE_STATEMENT':
  1958. let notTakeNumberTargets = this.assetsEvaluationTarget.filter(obj => !obj.productionNo).length;
  1959. if (notTakeNumberTargets.length > 0) {
  1960. this.$notify({
  1961. title: '提示',
  1962. message: '还有意见书号未取的估价对象,请先完成取号操作。',
  1963. type: 'error',
  1964. duration: 3000
  1965. });
  1966. verify.state = false;
  1967. callback(verify);
  1968. return;
  1969. }
  1970. if (typeof (commit.businessSubId) == 'undefined' || commit.businessSubId == null || commit.ifCheckTask == null) {
  1971. this.$notify({
  1972. title: '提示',
  1973. message: '未选择产品,请前往产品信息选择产品后进行提交。',
  1974. type: 'error',
  1975. duration: 3000
  1976. });
  1977. verify.state = false;
  1978. callback(verify);
  1979. return;
  1980. }
  1981. if (this.proInatanceCount > 0) {
  1982. this.$notify({
  1983. title: '提示',
  1984. message: '该产品已提交相应流程,不可重复提交。',
  1985. type: 'error',
  1986. duration: 3000
  1987. });
  1988. verify.state = false;
  1989. callback(verify);
  1990. return;
  1991. }
  1992. break;
  1993. case 'WRITE_REPORT':
  1994. let notTakeReportNoTargets = this.assetsEvaluationTarget.filter(function (e) {
  1995. return e.reportNo == null;
  1996. })
  1997. if (notTakeReportNoTargets.length > 0) {
  1998. this.$notify({
  1999. title: '提示',
  2000. message: '还有报告号未取的估价对象,请先完成取号操作。',
  2001. type: 'error',
  2002. duration: 3000
  2003. });
  2004. verify.state = false;
  2005. callback(verify);
  2006. return;
  2007. }
  2008. if (typeof (commit.businessMinId) == 'undefined' || commit.businessMinId == null || commit.ifCheckTask == null) {
  2009. this.$notify({
  2010. title: '提示',
  2011. message: '未选择产品,请前往产品信息选择产品后进行提交。',
  2012. type: 'error',
  2013. duration: 3000
  2014. });
  2015. verify.state = false;
  2016. callback(verify);
  2017. return;
  2018. }
  2019. if (this.proInatanceCount > 0) {
  2020. this.$notify({
  2021. title: '提示',
  2022. message: '该产品已提交相应流程,不可重复提交。',
  2023. type: 'error',
  2024. duration: 3000
  2025. });
  2026. verify.state = false;
  2027. callback(verify);
  2028. return;
  2029. }
  2030. break;
  2031. case 'ASSET_REPORT_TAKE_NO':
  2032. if (this.assetsEvaluationTarget.some(item => !item.reportNo)) {
  2033. this.$notify({
  2034. title: '提示',
  2035. message: '还有评估对象未取号,请先完成取号再提交。',
  2036. type: 'error',
  2037. duration: 3000
  2038. });
  2039. verify.state = false;
  2040. callback(verify);
  2041. return;
  2042. }
  2043. break;
  2044. // case 'RECHECK_REPORT':
  2045. // this.flowDoFourthCheck();
  2046. // break;
  2047. }
  2048. callback(verify);
  2049. }
  2050. },
  2051. goBack() {
  2052. const back = this.$route.query.back
  2053. if (back) {
  2054. this.$router.push(back)
  2055. }
  2056. },
  2057. handleClick(tab) {
  2058. },
  2059. // 改变客户类型时进行值重置的操作
  2060. changeCustomerType(val) {
  2061. // 清空联系人下拉列表
  2062. this.assetsForm.clienteleContactId = null;
  2063. this.assetsForm.clienteleSubId = null;
  2064. this.customerContract = [];
  2065. if (val === "企业") {
  2066. this.getCustomerCompany(0);
  2067. this.itemHideStatus = true;
  2068. } else {
  2069. this.getCustomerContract(1);
  2070. this.itemHideStatus = false;
  2071. }
  2072. },
  2073. initCustomerSelect(val) {
  2074. if (val === "企业") {
  2075. this.getCustomerCompany(0);
  2076. // this.getCustomerContract();
  2077. this.itemHideStatus = true;
  2078. } else {
  2079. // this.getCustomerContract(1);
  2080. this.itemHideStatus = false;
  2081. }
  2082. },
  2083. // 获取部门下拉列表
  2084. getAllotDepartment() {
  2085. this.$api.department.allot('ASSET_BUSINESS').then(res => {
  2086. if (res.code === 200) {
  2087. this.allotDepartment = res.data;
  2088. }
  2089. })
  2090. },
  2091. // 获取客户信息
  2092. getCustomerCompany(val) {
  2093. if (val === 0) {
  2094. let simpleAll = new Object();
  2095. simpleAll.terminal = val;
  2096. this.$api.customerCompany.simpleAll(simpleAll).then(res => {
  2097. if (res.code === 200) {
  2098. this.customerCompany = res.data;
  2099. this.findSubClientele(0);
  2100. }
  2101. })
  2102. } else {
  2103. let simpleAll = new Object();
  2104. simpleAll.terminal = val;
  2105. this.$api.customerCompany.simpleAll(simpleAll).then(res => {
  2106. if (res.code === 200) {
  2107. this.tCustomerCompany = res.data;
  2108. }
  2109. })
  2110. }
  2111. },
  2112. // 打开新建客户联系人弹窗
  2113. createLinkman(val) {
  2114. // 打开前判断是否已经选择客户信息
  2115. if (this.targetFassetsFormorm.clienteleType === "个人" || this.assetsForm.clienteleType != null && this.assetsForm.clienteleId != null && this.assetsForm.clienteleSubId != null) {
  2116. this.createLinkmanVisible = true;
  2117. this.linkmanForm.terminal = val;
  2118. this.linkmanForm.clienteleType = this.assetsForm.clienteleType;
  2119. this.linkmanForm.clienteleId = this.assetsForm.clienteleId;
  2120. this.linkmanForm.clienteleSubId = this.assetsForm.clienteleSubId;
  2121. if (this.assetsForm.clienteleType === '企业') {
  2122. this.linkmanForm.ccId = this.assetsForm.clienteleSubId
  2123. } else {
  2124. this.assetsForm.clienteleSubId = 1;
  2125. this.linkmanForm.ccId = this.assetsForm.clienteleSubId;
  2126. }
  2127. } else {
  2128. this.$notify({
  2129. title: '警告',
  2130. message: '请先选择客户!',
  2131. type: 'warning',
  2132. duration: 2000
  2133. });
  2134. }
  2135. },
  2136. // 获取客户联系人列表
  2137. getCustomerContract(val) {
  2138. // if (this.assetsForm.clienteleSubId) {
  2139. let simpleAll = new Object();
  2140. simpleAll.terminal = 0;
  2141. if (val === 1) {
  2142. simpleAll.ccId = val;
  2143. } else {
  2144. simpleAll.ccId = this.assetsForm.clienteleSubId;
  2145. }
  2146. this.$api.customerLinkman.simpleAll(simpleAll).then(res => {
  2147. if (res.code === 200) {
  2148. this.customerContract = res.data;
  2149. }
  2150. })
  2151. // }
  2152. },
  2153. // 获取二级客户信息(业务来源)
  2154. findSubClientele(val) {
  2155. if (val === 0) {
  2156. if (this.assetsForm.clienteleId) {
  2157. let simpleAll = new Object();
  2158. simpleAll.terminal = val;
  2159. simpleAll.parentId = this.assetsForm.clienteleId;
  2160. this.$api.customerCompany.simpleAll(simpleAll).then(res => {
  2161. if (res.code === 200) {
  2162. this.subCustomerCompany = res.data;
  2163. }
  2164. })
  2165. }
  2166. } else {
  2167. if (this.assetsForm.terminalClienteleId) {
  2168. let simpleAll = new Object();
  2169. simpleAll.terminal = val;
  2170. simpleAll.ccId = this.assetsForm.terminalClienteleId;
  2171. this.$api.customerCompany.detail(this.assetsForm.terminalClienteleId).then(res => {
  2172. if (res.code === 200) {
  2173. this.assetsForm.tmobile = res.data.phone;
  2174. }
  2175. })
  2176. }
  2177. }
  2178. },
  2179. // 打开新增终端客户弹窗
  2180. createTerminalClient() {
  2181. this.createTerminalClientVisible = true;
  2182. },
  2183. // 根据部门id获取项目负责人列表
  2184. getPrincipalByAllotDepartment() {
  2185. let departmentId = this.assetsForm.departmentId;
  2186. if (departmentId) {
  2187. this.$api.user.usersByDepartmentId(departmentId).then(res => {
  2188. if (res.code === 200) {
  2189. this.principals = res.data;
  2190. }
  2191. })
  2192. }
  2193. },
  2194. // 获取用户下拉列表
  2195. getAllUser() {
  2196. this.$api.user.simpleAll().then(res => {
  2197. if (res.code === 200) {
  2198. let principals = this.principals;
  2199. let all = res.data;
  2200. let arr = principals.concat(all);
  2201. let obj = {}
  2202. arr = arr.reduce((pre, next) => {
  2203. obj[next.id] ? null : (obj[next.id] = true && pre.push(next))
  2204. return pre;
  2205. }, [])
  2206. this.allUsers = arr;
  2207. }
  2208. })
  2209. },
  2210. // 获取资产评估师用户
  2211. byAssetEvaluator() {
  2212. this.$api.user.byAssetEvaluator().then(res => {
  2213. if (res.code === 200) {
  2214. this.assetEvaluator = res.data;
  2215. }
  2216. })
  2217. },
  2218. // 根据部门名称获取部门及其下辖部门人员
  2219. byDepartmentName() {
  2220. this.$api.user.byDepartmentName("资产评估事业部").then(res => {
  2221. if (res.code === 200) {
  2222. this.depUsers = res.data;
  2223. }
  2224. })
  2225. },
  2226. // 获取流程节点信息
  2227. getCurrentNodeInfo() {
  2228. if (this.pageParams.row.assetsId) {
  2229. this.$api.workNodeInstance.currentNode({ "mainBusiness": "ASSET_BUSINESS", "businessId": this.pageParams.row.assetsId, "businessSubId": this.pageParams.row.statementNo, "businessMinId": this.pageParams.row.reportNo }).then(res => {
  2230. if (res.code === 200) {
  2231. if (res.data) {
  2232. this.currentNode = res.data;
  2233. this.nodeBusinessInfo.currentInstanceNodeId = res.data.instanceId;
  2234. this.nodeBusinessInfo.currentNodeInstanceCode = res.data.nodeCode;
  2235. this.nodeBusinessInfo.currentNodePermission.restartable = res.data.restartable;
  2236. this.nodeBusinessInfo.currentNodePermission.reversible = res.data.reversible;
  2237. this.nodeBusinessInfo.currentNodePermission.skippable = res.data.skippable;
  2238. this.nodeBusinessInfo.currentNodePermission.terminable = res.data.terminable;
  2239. // this.nodeBusinessInfo.businessId = this.pageParams.row.assetsId;
  2240. if (this.currentNode.nodeCode === 'REPORT_IN') {
  2241. this.getProductionRealAmount(this.pageParams.row.reportNo);
  2242. }
  2243. }
  2244. }
  2245. })
  2246. }
  2247. },
  2248. // 修改项目负责人与项目成员信息
  2249. updatePrincipalAndMembers() {
  2250. let assetsPrincipalMembers = new Object();
  2251. assetsPrincipalMembers.id = this.assetsForm.id;
  2252. assetsPrincipalMembers.principalId = this.assetsForm.principalId;
  2253. assetsPrincipalMembers.departmentId = this.assetsForm.departmentId;
  2254. assetsPrincipalMembers.members = JSON.stringify(this.assetsForm.members);
  2255. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2256. this.taskRecordDTO.taskData = assetsPrincipalMembers;
  2257. if (assetsPrincipalMembers.id && assetsPrincipalMembers.principalId && assetsPrincipalMembers.departmentId && this.assetsForm.members.length > 0) {
  2258. this.$api.assets.updatePrincipalAndMembers(this.taskRecordDTO).then(res => {
  2259. if (res.code === 200 && res.data) {
  2260. this.$notify({
  2261. title: '成功',
  2262. message: '保存成功,请提交节点继续流程。',
  2263. type: 'success',
  2264. duration: 2000
  2265. });
  2266. }
  2267. })
  2268. } else {
  2269. this.$notify({
  2270. title: '警告',
  2271. message: '请先完善项目负责人与项目成员信息!',
  2272. type: 'error',
  2273. duration: 2000
  2274. });
  2275. }
  2276. },
  2277. // 根据节点返回不同的操作按钮信息
  2278. hanlderType() {
  2279. if (this.currentNode) {
  2280. if (this.currentNode.nodeCode === 'SPOT_RECONNAISSANCE') {
  2281. return "编辑";
  2282. }
  2283. if (this.currentNode.nodeCode === 'INITIAL_PRICE') {
  2284. return "定价";
  2285. }
  2286. if (this.currentNode.nodeCode === 'REVIEW_QUOTATION') {
  2287. return "审核定价";
  2288. }
  2289. return "查看";
  2290. }
  2291. },
  2292. // 根据资产业务id获取资产业务评估对象集合
  2293. getAETargetListByAssetsId(productionNo) {
  2294. let aETargetListSelectDTO = new Object();
  2295. aETargetListSelectDTO.businessId = this.pageParams.row.assetsId;
  2296. // if (productionNo != null || productionNo != undefined || productionNo != '') {
  2297. // aETargetListSelectDTO.statementNo = productionNo;
  2298. // aETargetListSelectDTO.reportNo = productionNo;
  2299. // } else {
  2300. aETargetListSelectDTO.statementNo = this.pageParams.row.statementNo;
  2301. aETargetListSelectDTO.reportNo = this.pageParams.row.reportNo;
  2302. // }
  2303. this.$api.assets.getAETargetListByAssetsId(aETargetListSelectDTO).then(res => {
  2304. if (res.code === 200 && res.data !== null) {
  2305. this.assetsEvaluationTarget = res.data;
  2306. this.writeProductionStatementNos = this.assetsEvaluationTarget
  2307. // 过滤
  2308. .filter(obj => (!obj.statementCreateProductionDate && obj.statementNo))
  2309. // 获取
  2310. .map(obj => obj.statementNo)
  2311. // 去重
  2312. .filter((value, index, self) => self.indexOf(value) === index);
  2313. this.writeProductionReportNos = this.assetsEvaluationTarget
  2314. // 过滤
  2315. .filter(obj => (!obj.reportCreateProductionDate && obj.reportNo))
  2316. // 获取
  2317. .map(obj => obj.reportNo)
  2318. // 去重
  2319. .filter((value, index, self) => self.indexOf(value) === index);
  2320. // 获取资产产品列表
  2321. this.getProductionList();
  2322. // 计算所有评估对象评估总价
  2323. this.totalEvaluateValue = this.assetsEvaluationTarget.reduce((sum, target) => sum + target.estimatedValue, 0);
  2324. // 获取评估对象信息后查询产品选择信息
  2325. this.getChoiceLog();
  2326. }
  2327. })
  2328. },
  2329. // 获取所有资产评估目的集合
  2330. getPurpose() {
  2331. this.$api.assets.getPurpose().then(res => {
  2332. if (res.code === 200) {
  2333. this.assetsEvaluationTargetPurpose = res.data;
  2334. }
  2335. })
  2336. },
  2337. // 获取所有评估方法集合
  2338. getAssetsEvaluationMethod() {
  2339. this.$api.assets.getAssetsEvaluationMethod().then(res => {
  2340. if (res.code === 200) {
  2341. this.assetsEvaluationMethod = res.data;
  2342. }
  2343. })
  2344. },
  2345. // 获取所有资产价值类型
  2346. getAssetsValueType() {
  2347. this.$api.assets.getAssetsValueType().then(res => {
  2348. if (res.code === 200) {
  2349. this.assetsValueType = res.data;
  2350. }
  2351. })
  2352. },
  2353. // 根据父级id获取资产评估对象类型(id可为空)
  2354. getTypeList(val, level) {
  2355. let parentId = val;
  2356. // 每次进入方法清空二级下拉选择
  2357. // this.targetForm.evaluationTypeSecId = null;
  2358. this.assetsSecEvaluationTargetType = [];
  2359. this.$api.assets.getTypeList(parentId).then(res => {
  2360. if (res.code === 200) {
  2361. if (level == 1) {
  2362. // 等级为1赋值给assetsEvaluationTargetType
  2363. this.assetsEvaluationTargetType = res.data;
  2364. } else {
  2365. // 其他赋值给assetsEvaluationTargetType
  2366. this.assetsSecEvaluationTargetType = res.data;
  2367. }
  2368. }
  2369. })
  2370. },
  2371. // 打开新增评估对象弹窗表单
  2372. openTargetDialog() {
  2373. // 可视状态为true
  2374. this.targetDialogVisible = true;
  2375. // 初始表单所需信息
  2376. this.targetForm.principalId = this.assetsForm.principalId;
  2377. if (!this.targetForm.siteIds || !this.targetForm.siteIds.length > 0) {
  2378. this.targetForm.siteIds = this.assetsForm.members;
  2379. }
  2380. if (this.assetsEvaluationTargetPurpose.length == 0 || this.assetsEvaluationMethod.length == 0 || this.assetsValueType.length == 0 || this.assetsEvaluationTargetType.length == 0) {
  2381. this.getPurpose();
  2382. this.getAssetsEvaluationMethod();
  2383. this.getAssetsValueType();
  2384. this.getTypeList(0, 1);
  2385. }
  2386. },
  2387. // 文件选择改变触发事件
  2388. changeresTarget(res, file, fileList) {
  2389. // 上传成功向表单附件信息数组添加信息
  2390. if (res.code === 200) {
  2391. this.targetForm.filePath.push({ name: file.name, url: res.data.url });
  2392. } else {
  2393. this.$notify({
  2394. title: '错误',
  2395. message: '电子文档上传失败',
  2396. type: 'error',
  2397. duration: 2000
  2398. });
  2399. }
  2400. },
  2401. changeresProduction(res, file, fileList) {
  2402. // 上传成功向表单附件信息数组添加信息
  2403. if (res.code === 200) {
  2404. this.assetsProductionForm.filePath.push({ name: file.name, url: res.data.url });
  2405. } else {
  2406. this.$notify({
  2407. title: '错误',
  2408. message: '电子文档上传失败',
  2409. type: 'error',
  2410. duration: 2000
  2411. });
  2412. }
  2413. },
  2414. // 文件上传数量限制
  2415. handleExceed() {
  2416. this.$message.warning(`当前限制选择 3个文件!`);
  2417. },
  2418. handleAttachmentPreview(file) {
  2419. // window.open(file.url)
  2420. this.officeFileView(file.name, file.url);
  2421. },
  2422. // 移除文件
  2423. beforeRemove(file, fileList) {
  2424. fileList = fileList.filter((o) => {
  2425. return o.name !== file.name
  2426. });
  2427. this.targetForm.filePath = this.targetForm.filePath.filter((o) => {
  2428. return o.name !== file.name
  2429. });
  2430. },
  2431. // 移除文件
  2432. beforeRemovePro(file, fileList) {
  2433. fileList = fileList.filter((o) => {
  2434. return o.name !== file.name
  2435. });
  2436. this.assetsProductionForm.filePath = this.assetsProductionForm.filePath.filter((o) => {
  2437. return o.name !== file.name
  2438. });
  2439. },
  2440. resettargetForm() {
  2441. this.targetForm = {
  2442. id: null,
  2443. evaluationPurposeId: null,
  2444. evaluationTypeId: null,
  2445. evaluationTypeSecId: null,
  2446. theHolder: null,
  2447. assetsValueId: null,
  2448. principalId: null,
  2449. siteIds: [],
  2450. valuationBasisDate: null,
  2451. evaluationMethodId: [],
  2452. choiceEvaluationMethodId: [],
  2453. totalAssetCarryingAmount: null,
  2454. totalLiabilitiesCarryingAmount: null,
  2455. carryingAmountOfNetAssets: null,
  2456. estimatedValue: null,
  2457. checkValue: null,
  2458. filePath: [],
  2459. assetsId: null,
  2460. definedEvaluationMethod: null,
  2461. choiceDefinedEvaluationMethod: null
  2462. }
  2463. this.fileList = [];
  2464. },
  2465. clear() {
  2466. if (this.$refs.targetForm !== undefined) {
  2467. this.$refs.targetForm.clearValidate();
  2468. }
  2469. },
  2470. // 保存新增资产业务评估对象
  2471. assetsTargetSave() {
  2472. this.$refs.targetForm.validate(valid => {
  2473. if (valid) {
  2474. this.targetForm.assetsId = this.assetsForm.id;
  2475. this.targetForm.siteIds = JSON.stringify(this.targetForm.siteIds);
  2476. this.targetForm.evaluationMethodId = JSON.stringify(this.targetForm.evaluationMethodId);
  2477. this.targetForm.choiceEvaluationMethodId = JSON.stringify(this.targetForm.choiceEvaluationMethodId);
  2478. this.targetForm.filePath = JSON.stringify(this.targetForm.filePath);
  2479. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2480. this.taskRecordDTO.taskData = this.targetForm;
  2481. this.$api.assets.assetsTargetSave(this.taskRecordDTO).then(res => {
  2482. if (res.code === 200) {
  2483. this.$notify({
  2484. title: '成功',
  2485. message: '添加资产业务评估对象成功,可继续添加或提交节点',
  2486. type: 'success',
  2487. duration: 2000
  2488. });
  2489. this.targetDialogVisible = false;
  2490. //获取评估对象列表
  2491. this.getAETargetListByAssetsId();
  2492. }
  2493. })
  2494. }
  2495. })
  2496. },
  2497. // 根据id获取资产评估对象详情
  2498. getAssetsTargetDetail(id) {
  2499. this.$api.assets.getAssetsTargetDetail(id).then(res => {
  2500. if (res.code === 200) {
  2501. this.targetForm = res.data;
  2502. this.targetForm.siteIds = JSON.parse(res.data.siteIds);
  2503. this.targetForm.evaluationMethodId = JSON.parse(res.data.evaluationMethodId);
  2504. this.targetForm.choiceEvaluationMethodId = JSON.parse(res.data.choiceEvaluationMethodId);
  2505. this.targetForm.filePath = JSON.parse(res.data.filePath);
  2506. this.fileList = this.targetForm.filePath
  2507. this.getTypeList(this.targetForm.evaluationTypeId, 2);
  2508. this.openTargetDialog();
  2509. }
  2510. })
  2511. },
  2512. // 更新资产评估对象
  2513. assetsTargetUpdate() {
  2514. this.$refs.targetForm.validate(valid => {
  2515. if (valid) {
  2516. this.targetForm.assetsId = this.assetsForm.id;
  2517. this.targetForm.siteIds = JSON.stringify(this.targetForm.siteIds);
  2518. this.targetForm.evaluationMethodId = JSON.stringify(this.targetForm.evaluationMethodId);
  2519. this.targetForm.choiceEvaluationMethodId = JSON.stringify(this.targetForm.choiceEvaluationMethodId);
  2520. this.targetForm.filePath = JSON.stringify(this.targetForm.filePath);
  2521. this.$api.assets.assetsTargetUpdate(this.targetForm).then(res => {
  2522. if (res.code === 200) {
  2523. this.$notify({
  2524. title: '成功',
  2525. message: '更新资产业务评估对象成功!',
  2526. type: 'success',
  2527. duration: 2000
  2528. });
  2529. this.targetDialogVisible = false;
  2530. //获取评估对象列表
  2531. this.getAETargetListByAssetsId();
  2532. }
  2533. })
  2534. }
  2535. })
  2536. },
  2537. // 删除资产评估对象
  2538. assetsTargetDelete(id) {
  2539. this.$confirm('确认删除该评估对象?', '提示', {
  2540. confirmButtonText: '确定',
  2541. cancelButtonText: '取消',
  2542. type: 'warning'
  2543. }).then(() => {
  2544. this.$api.assets.assetsTargetDelete(id).then(res => {
  2545. if (res.code === 200) {
  2546. this.$notify({
  2547. title: '成功',
  2548. message: '删除资产业务评估对象成功!',
  2549. type: 'success',
  2550. duration: 2000
  2551. });
  2552. this.getAETargetListByAssetsId();
  2553. }
  2554. })
  2555. }).catch(() => {
  2556. this.$message({
  2557. type: 'info',
  2558. message: '已取消删除'
  2559. });
  2560. });
  2561. },
  2562. // 根据不同情况打开的评估对象表单可编辑状态不同
  2563. changeStatus(val) {
  2564. if (val == "edit") {
  2565. this.targetDisabledStatus = false;
  2566. this.updateButtonStatus = true;
  2567. this.saveButtonStatus = false;
  2568. } else if (val == "add") {
  2569. this.targetDisabledStatus = false;
  2570. this.saveButtonStatus = true;
  2571. this.updateButtonStatus = false;
  2572. } else if (val == "detail") {
  2573. this.targetDisabledStatus = true;
  2574. this.saveButtonStatus = false;
  2575. this.updateButtonStatus = false;
  2576. }
  2577. },
  2578. // 根据业务id获取资产业务款项信息
  2579. getOrderFundInvoiceById() {
  2580. this.$api.assets.getOrderFundInvoiceById(this.assetsForm.id).then(res => {
  2581. if (res.code === 200) {
  2582. // if (res.data != null) {
  2583. this.invoiceData = res.data;
  2584. this.invoiceData.leftAmount = this.invoiceData.shouldAmount - this.invoiceData.realAmount;
  2585. // }
  2586. }
  2587. })
  2588. },
  2589. // 获取产品信息类型
  2590. getProductionTypes(id) {
  2591. this.$api.assets.getProductionTypes(id).then(res => {
  2592. if (res.code === 200) {
  2593. this.nodeBusinessInfo.production = res.data;
  2594. this.$refs.board.getInstanceQueue();
  2595. }
  2596. })
  2597. },
  2598. // 提交节点
  2599. commit(state) {
  2600. this.flowDoFourthCheck();
  2601. this.$refs.board.commit(state);
  2602. },
  2603. getPreviousNode(pNode) {
  2604. this.pNode = pNode;
  2605. },
  2606. // 打开产品选择表单弹窗
  2607. openProductionDialog() {
  2608. this.productionChoiceDialogVisible = true;
  2609. // this.getProductionByBusinessId(this.pageParams.row.assetsId);
  2610. this.getChoiceLog();
  2611. },
  2612. // 获取产品选择记录
  2613. getChoiceLog() {
  2614. let selectDTO = {};
  2615. selectDTO.businessType = 'ASSET_BUSINESS';
  2616. selectDTO.businessId = this.pageParams.row.assetsId;
  2617. for (let i = 0; i < this.assetsEvaluationTarget.length; i++) {
  2618. if (this.assetsEvaluationTarget[i].reportNo === null) {
  2619. selectDTO.targetId = this.assetsEvaluationTarget[i].id;
  2620. break; // 找到第一个 reportNo 为 null 的元素后退出循环
  2621. }
  2622. // 如果 reportNo 不为 null,继续检查下一个元素
  2623. }
  2624. this.$api.businessProductionChoiceLog.getChoiceLog(selectDTO).then(res => {
  2625. if (res.code == 200 && res.data !== null) {
  2626. this.productionChoiceStatus = 1;
  2627. this.assetsProductionForm.id = res.data.productionId;
  2628. this.assetsProductionForm.productionType = res.data.productionType;
  2629. this.assetsProductionForm.printCount = res.data.printCount;
  2630. }
  2631. })
  2632. },
  2633. // 根据业务id获取是否已选择产品
  2634. // getProductionByBusinessId(id) {
  2635. // this.$api.assets.getProductionByBusinessId(id).then(res => {
  2636. // if (res.code === 200) {
  2637. // // 产品信息不为null,则证明已经选择过产品,将按钮改为修改
  2638. // if (res.data !== null) {
  2639. // if (res.data.productionType == 'STATEMENT' && (this.currentNode.nodeCode === 'PRODUCT_CHOICE' || this.currentNode.nodeCode === 'GENERATE_STATEMENT')) {
  2640. // this.assetsProductionForm = res.data;
  2641. // this.productionChoiceStatus = 1;
  2642. // }
  2643. // if (res.data.productionType !== 'STATEMENT' && (this.currentNode.nodeCode === 'REPORT_CHOICE' || this.currentNode.nodeCode === 'ASSET_REPORT_TAKE_NO')) {
  2644. // this.assetsProductionForm = res.data;
  2645. // this.productionChoiceStatus = 1;
  2646. // }
  2647. // }
  2648. // }
  2649. // })
  2650. // },
  2651. // 选择产品,新增产品信息
  2652. assetsProductionSave() {
  2653. this.$refs.assetsProductionForm.validate(valid => {
  2654. if (valid) {
  2655. this.assetsProductionForm.businessId = this.assetsForm.id;
  2656. // if (this.assetsProductionForm.productionType == 1) {
  2657. // // 价值意见书
  2658. // this.assetsProductionForm.productionType = 'STATEMENT';
  2659. // } else if (this.assetsProductionForm.productionType == 4) {
  2660. // // 意见函
  2661. // this.assetsProductionForm.productionType = 'LETTER';
  2662. // } else if (this.assetsProductionForm.productionType == 2) {
  2663. // // 咨询报告
  2664. // this.assetsProductionForm.productionType = 'CONSULT';
  2665. // } else {
  2666. // // 评估报告
  2667. // this.assetsProductionForm.productionType = 'REPORT';
  2668. // }
  2669. this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
  2670. this.assetsProductionForm.signatory = JSON.stringify(this.assetsProductionForm.signatory);
  2671. this.assetsProductionForm.targetIdList = this.assetsEvaluationTarget.map(item => item.id);
  2672. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2673. this.taskRecordDTO.taskData = this.assetsProductionForm;
  2674. this.$api.assets.assetsProductionSave(this.taskRecordDTO).then(res => {
  2675. if (res.code === 200) {
  2676. this.$notify({
  2677. title: '成功',
  2678. message: '选择产品成功!请继续提交流程节点!',
  2679. type: 'success',
  2680. duration: 2000
  2681. });
  2682. this.getProductionTypes(this.assetsForm.id);
  2683. this.productionChoiceDialogVisible = false;
  2684. this.$refs.assetsProductionForm.resetFields();
  2685. }
  2686. })
  2687. }
  2688. })
  2689. },
  2690. // 选择产品,更新已选择产品信息
  2691. assetsProductionUpdateChoice() {
  2692. this.$refs.assetsProductionForm.validate(valid => {
  2693. if (valid) {
  2694. this.assetsProductionForm.businessId = this.assetsForm.id;
  2695. // if (this.assetsProductionForm.productionType == 1) {
  2696. // // 价值意见书
  2697. // this.assetsProductionForm.productionType = 'STATEMENT';
  2698. // } else if (this.assetsProductionForm.productionType == 4) {
  2699. // // 意见函
  2700. // this.assetsProductionForm.productionType = 'LETTER';
  2701. // } else {
  2702. // // 报告
  2703. // this.assetsProductionForm.productionType = 'REPORT';
  2704. // }
  2705. this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
  2706. this.assetsProductionForm.signatory = JSON.stringify(this.assetsProductionForm.signatory);
  2707. this.assetsProductionForm.targetIdList = this.assetsEvaluationTarget.map(item => item.id);
  2708. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2709. this.taskRecordDTO.taskData = this.assetsProductionForm;
  2710. this.$api.assets.assetsProductionUpdateChoice(this.taskRecordDTO).then(res => {
  2711. if (res.code === 200) {
  2712. this.$notify({
  2713. title: '成功',
  2714. message: '选择产品成功!请继续提交流程节点!',
  2715. type: 'success',
  2716. duration: 2000
  2717. });
  2718. this.getProductionTypes(this.assetsForm.id);
  2719. this.productionChoiceDialogVisible = false;
  2720. this.$refs.assetsProductionForm.resetFields();
  2721. }
  2722. })
  2723. }
  2724. })
  2725. },
  2726. // 资产产品意见书取号
  2727. takeAssetsStatementProductionNo() {
  2728. this.takeAssetsProductionNoDTO.allTargetIdList = this.assetsEvaluationTarget.map(item => item.id);
  2729. // 提交的要取号数组长度与table长度一致则是全部取号
  2730. // if (this.takeAssetsProductionNoDTO.targetIdList.length === this.assetsEvaluationTarget.length) {
  2731. // this.takeAssetsProductionNoDTO.selectAll = true;
  2732. // } else {
  2733. // this.takeAssetsProductionNoDTO.selectAll = false;
  2734. // }
  2735. // 判断表格中是否还有未选择且未取号的评估对象,返回布尔
  2736. let notTakeNumTargetSelect = this.assetsEvaluationTarget.filter(item => !this.takeAssetsProductionNoDTO.targetIdList.includes(item.id));
  2737. this.takeAssetsProductionNoDTO.hasNotTakeNumTargetSelect = notTakeNumTargetSelect.some(target => target.statementNo === null || target.statementNo === '');
  2738. this.takeAssetsProductionNoDTO.businessId = this.assetsForm.id;
  2739. // this.getProductionByBusinessId(this.assetsForm.id);
  2740. // this.takeAssetsProductionNoDTO.productionType = this.assetsProductionForm.productionType;
  2741. // this.takeAssetsProductionNoDTO.productionType = this.nodeBusinessInfo.production[this.nodeBusinessInfo.production.length - 1];
  2742. // this.takeAssetsProductionNoDTO.printCount = this.assetsProductionForm.printCount;
  2743. if (!this.takeAssetsProductionNoDTO.targetIdList.length == 0) {
  2744. this.$api.assets.takeAssetsStatementProductionNo(this.takeAssetsProductionNoDTO).then(res => {
  2745. if (res.code === 200 && res.data) {
  2746. this.$notify({
  2747. title: '成功',
  2748. message: '产品取号成功!',
  2749. type: 'success',
  2750. duration: 2000
  2751. });
  2752. // this.pageParams.row.productionNo = res.data;
  2753. this.getAETargetListByAssetsId();
  2754. }
  2755. })
  2756. } else {
  2757. this.$notify({
  2758. title: '警告',
  2759. message: '您必须选择至少一个评估对象!',
  2760. type: 'warning',
  2761. duration: 2000
  2762. });
  2763. }
  2764. },
  2765. // 资产产品报告取号
  2766. takeAssetsReportProductionNo() {
  2767. this.takeAssetsProductionNoDTO.allTargetIdList = this.assetsEvaluationTarget.map(item => item.id);
  2768. this.takeAssetsProductionNoDTO.statementNo = this.assetsEvaluationTarget[0].statementNo;
  2769. // 提交的要取号数组长度与table长度一致则是全部取号
  2770. // if (this.takeAssetsProductionNoDTO.targetIdList.length === this.assetsEvaluationTarget.length) {
  2771. // this.takeAssetsProductionNoDTO.selectAll = true;
  2772. // } else {
  2773. // this.takeAssetsProductionNoDTO.selectAll = false;
  2774. // }
  2775. // 判断表格中是否还有未选择且未取号的评估对象,返回布尔
  2776. let notTakeNumTargetSelect = this.assetsEvaluationTarget.filter(item => !this.takeAssetsProductionNoDTO.targetIdList.includes(item.id));
  2777. this.takeAssetsProductionNoDTO.hasNotTakeNumTargetSelect = notTakeNumTargetSelect.some(target => target.reportNo === null || target.reportNo === '');
  2778. this.takeAssetsProductionNoDTO.businessId = this.assetsForm.id;
  2779. // this.getProductionByBusinessId(this.assetsForm.id);
  2780. // this.takeAssetsProductionNoDTO.productionType = this.assetsProductionForm.productionType;
  2781. // this.takeAssetsProductionNoDTO.productionType = this.nodeBusinessInfo.production[this.nodeBusinessInfo.production.length - 1];
  2782. // this.takeAssetsProductionNoDTO.printCount = this.assetsProductionForm.printCount;
  2783. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2784. this.taskRecordDTO.taskData = this.takeAssetsProductionNoDTO;
  2785. if (!this.takeAssetsProductionNoDTO.targetIdList.length == 0) {
  2786. this.$api.assets.takeAssetsReportProductionNo(this.taskRecordDTO).then(res => {
  2787. if (res.code === 200 && res.data) {
  2788. this.$notify({
  2789. title: '成功',
  2790. message: '产品取号成功!',
  2791. type: 'success',
  2792. duration: 2000
  2793. });
  2794. // this.pageParams.row.productionNo = res.data;
  2795. this.getAETargetListByAssetsId();
  2796. }
  2797. })
  2798. } else {
  2799. this.$notify({
  2800. title: '警告',
  2801. message: '您必须选择至少一个评估对象!',
  2802. type: 'warning',
  2803. duration: 2000
  2804. });
  2805. }
  2806. },
  2807. // 资产评估对象选取数据处理
  2808. targetSelectionChange(val) {
  2809. this.takeAssetsProductionNoDTO.targetIdList = val;
  2810. this.takeAssetsProductionNoDTO.targetIdList = this.takeAssetsProductionNoDTO.targetIdList.map(selection => selection.id);
  2811. },
  2812. // 判断行数据是否可选
  2813. selectable(row) {
  2814. if (row.statementNo != null && row.statementNo != '' && this.currentNode.nodeCode !== 'ASSET_REPORT_TAKE_NO') {
  2815. return false;
  2816. } else if (row.reportNo != null && row.reportNo != '' && this.currentNode.nodeCode !== 'GENERATE_STATEMENT') {
  2817. return false;
  2818. } else {
  2819. return true;
  2820. }
  2821. },
  2822. openWriteProductionDialog(status, type) {
  2823. this.productionWriteDialogVisible = true;
  2824. this.productionDisabledStatus = status;
  2825. this.writeType = type;
  2826. },
  2827. // 根据业务id与产品号获取资产产品信息并初始化表单
  2828. getAssetsProductionDetailByNo() {
  2829. let assetsProductionDetailDTO = new Object();
  2830. assetsProductionDetailDTO.businessId = this.assetsForm.id;
  2831. assetsProductionDetailDTO.productionNo = this.assetsProductionForm.productionNo;
  2832. this.$api.assets.getAssetsProductionDetailByNo(assetsProductionDetailDTO).then(res => {
  2833. if (res.code == 200 && res.data !== null) {
  2834. this.assetsProductionForm.productionType = res.data.productionType
  2835. this.assetsProductionForm.printCount = res.data.printCount;
  2836. this.assetsProductionForm.clientName = this.assetsForm.bailorContactName;
  2837. this.assetsProductionForm.clientTel = this.assetsForm.bailorContactTel;
  2838. this.assetsProductionForm.assetsName = this.assetsForm.name;
  2839. this.assetsProductionForm.owner = this.assetsEvaluationTarget.find(obj => obj.productionNo === assetsProductionDetailDTO.productionNo)?.theHolder;
  2840. this.assetsProductionForm.valuationBasisDate = this.assetsEvaluationTarget[0].valuationBasisDate;
  2841. this.assetsProductionForm.filePath = [];
  2842. this.assetsProductionForm.signatory = [];
  2843. }
  2844. })
  2845. },
  2846. // 当产品单价或面积改变时触发
  2847. computeAmount() {
  2848. this.assetsProductionForm.evaluateAmount = (this.assetsProductionForm.evaluatePrice * this.assetsProductionForm.evaluateAcreage) / 10000;
  2849. },
  2850. // 资产撰写产品(意见书和报告都是这个接口)
  2851. writeAssetsProduction() {
  2852. this.$refs.assetsProductionForm.validate(valid => {
  2853. if (valid) {
  2854. this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
  2855. if (this.assetsProductionForm.signatory !== null) {
  2856. this.assetsProductionForm.signatory = JSON.stringify(this.assetsProductionForm.signatory);
  2857. } else {
  2858. this.assetsProductionForm.signatory = null;
  2859. }
  2860. this.assetsProductionForm.businessId = this.assetsForm.id;
  2861. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2862. this.taskRecordDTO.taskData = this.assetsProductionForm;
  2863. this.$api.assets.writeAssetsProduction(this.taskRecordDTO).then(res => {
  2864. if (res.code == 200) {
  2865. this.$notify({
  2866. title: '成功',
  2867. message: '产品撰写成功!请继续提交流程节点!',
  2868. type: 'success',
  2869. duration: 2000
  2870. });
  2871. }
  2872. this.getAETargetListByAssetsId(this.assetsProductionForm.productionNo);
  2873. this.productionWriteDialogVisible = false;
  2874. this.getProductionList();
  2875. this.writeProductionReportNos = [];
  2876. this.writeProductionStatementNos = [];
  2877. })
  2878. }
  2879. })
  2880. },
  2881. resetProductionForm() {
  2882. this.assetsProductionForm = {
  2883. businessId: null,
  2884. productionNo: null,
  2885. productionType: null,
  2886. signatory: [],
  2887. clientName: null,
  2888. clientTel: null,
  2889. valuationBasisDate: null,
  2890. evaluateAcreage: null,
  2891. evaluatePrice: null,
  2892. evaluateAmount: null,
  2893. owner: null,
  2894. printCount: null,
  2895. createProductionDate: null,
  2896. comment: null,
  2897. filePath: [],
  2898. assetsName: null
  2899. }
  2900. this.fileList = [];
  2901. },
  2902. clearassetsProductionFormValidate() {
  2903. if (this.$refs.assetsProductionForm !== undefined) {
  2904. this.$refs.assetsProductionForm.clearValidate();
  2905. }
  2906. },
  2907. // 根据业务id与产品号查询产品信息
  2908. getProductionList() {
  2909. let aProListSelectDTO = new Object();
  2910. aProListSelectDTO.businessId = this.pageParams.row.assetsId;
  2911. // aProListSelectDTO.statementNo = this.pageParams.row.statementNo;
  2912. // aProListSelectDTO.reportNo = this.pageParams.row.reportNo;
  2913. // if (this.currentNode.nodeCode == 'WRITE_REPORT' && this.assetsEvaluationTarget[0].statementNo !== null) {
  2914. // aProListSelectDTO.reportNo = this.assetsEvaluationTarget[0].reportNo;
  2915. //获取评估对象中取的号
  2916. aProListSelectDTO.statementNos = this.assetsEvaluationTarget.filter(obj => obj.statementNo !== null && obj.statementNo !== '').map(obj => obj.statementNo);
  2917. aProListSelectDTO.reportNos = this.assetsEvaluationTarget.filter(obj => obj.reportNo !== null && obj.reportNo !== '').map(obj => obj.reportNo);
  2918. // }
  2919. this.assetsProductionData = null;
  2920. if (aProListSelectDTO.statementNos.length > 0 || aProListSelectDTO.reportNos.length > 0) {
  2921. this.$api.assets.getProductionList(aProListSelectDTO).then(res => {
  2922. if (res.code == 200) {
  2923. this.assetsProductionData = res.data;
  2924. this.assetsProductionData = this.assetsProductionData.map(item => {
  2925. // 检查 filePath 是否为字符串且不为空
  2926. if (typeof item.filePath === 'string' && item.filePath.trim() !== '') {
  2927. try {
  2928. // 使用 JSON.parse 解析 filePath 字符串
  2929. item.filePath = JSON.parse(item.filePath);
  2930. } catch (error) {
  2931. console.error('解析 filePath 时发生错误:', error);
  2932. }
  2933. }
  2934. // 返回更新后的对象
  2935. return item;
  2936. });
  2937. }
  2938. })
  2939. }
  2940. },
  2941. //选择要提交节点的产品号
  2942. pushProductionNo() {
  2943. // 查询该产品是否已有提交的流程
  2944. let aProListSelectDTO = { businessId: null, productionNo: null, productionNos: [] };
  2945. this.nodeBusinessInfo.reportNos = [];
  2946. this.nodeBusinessInfo.reportNos.push(this.commitProductionNo);
  2947. if (this.currentNode.nodeCode == 'GENERATE_STATEMENT') {
  2948. this.nodeBusinessInfo.businessSubId = this.commitProductionNo;
  2949. aProListSelectDTO.productionNos = this.assetsProductionData.filter(obj => obj.productionType == 'STATEMENT').map(obj => obj.productionNo);
  2950. }
  2951. if (this.currentNode.nodeCode == 'WRITE_REPORT') {
  2952. this.nodeBusinessInfo.businessMinId = this.commitProductionNo;
  2953. aProListSelectDTO.productionNos = this.assetsProductionData.filter(obj => obj.productionType !== 'STATEMENT').map(obj => obj.productionNo);
  2954. }
  2955. aProListSelectDTO.businessId = this.assetsForm.id;
  2956. aProListSelectDTO.productionNo = this.commitProductionNo;
  2957. this.$api.assets.getInatanceCount(aProListSelectDTO).then(res => {
  2958. if (res.code == 200) {
  2959. this.proInatanceCount = res.data;
  2960. }
  2961. })
  2962. //判断是否还有未撰写或未提交的产品(false:无,提交时完成节点 true:有,提交时不完成节点)
  2963. let isNotWriteAllPro = true;
  2964. if (this.currentNode.nodeCode === 'GENERATE_STATEMENT') {
  2965. isNotWriteAllPro = this.assetsEvaluationTarget.some(obj =>
  2966. (obj.statementCreateProductionDate === null || obj.statementCreateProductionDate === '')
  2967. );
  2968. }
  2969. if (this.currentNode.nodeCode === 'WRITE_REPORT') {
  2970. isNotWriteAllPro = this.assetsEvaluationTarget.some(obj =>
  2971. (obj.reportCreateProductionDate === null || obj.reportCreateProductionDate === '')
  2972. );
  2973. }
  2974. // 判断是否完成节点
  2975. if (isNotWriteAllPro) { // 还有未撰写或未提交产品不完成节点
  2976. this.nodeBusinessInfo.ifCheckTask = false;
  2977. } else {
  2978. this.$api.assets.getInatanceCountList(aProListSelectDTO).then(res => {
  2979. if (res.code == 200) {
  2980. // 未提交的同类型产品大于1时,不完成节点
  2981. if (res.data.filter(count => count === 0).length > 1) {
  2982. this.nodeBusinessInfo.ifCheckTask = false;
  2983. } else {
  2984. this.nodeBusinessInfo.ifCheckTask = true;
  2985. }
  2986. } else {
  2987. this.nodeBusinessInfo.ifCheckTask = true;
  2988. }
  2989. })
  2990. }
  2991. },
  2992. // 打开审核定价弹窗表单
  2993. openCheckValueDialog(id) {
  2994. this.checkValueDialogVisible = true;
  2995. this.$api.assets.getAssetsTargetDetail(id).then(res => {
  2996. if (res.code === 200) {
  2997. this.targetForm = res.data;
  2998. this.targetForm.evaluationMethodId = JSON.parse(res.data.evaluationMethodId);
  2999. this.targetForm.choiceEvaluationMethodId = JSON.parse(res.data.choiceEvaluationMethodId);
  3000. }
  3001. })
  3002. this.getAssetsEvaluationMethod()
  3003. },
  3004. // 评估对象审核定价
  3005. checkValue() {
  3006. this.$refs.targetForm.validate(valid => {
  3007. if (valid) {
  3008. this.targetForm.evaluationMethodId = JSON.stringify(this.targetForm.evaluationMethodId);
  3009. this.targetForm.choiceEvaluationMethodId = JSON.stringify(this.targetForm.choiceEvaluationMethodId);
  3010. this.$api.assets.checkValue(this.targetForm).then(res => {
  3011. if (res.code == 200) {
  3012. this.$notify({
  3013. title: '成功',
  3014. message: '审核定价已完成!',
  3015. type: 'success',
  3016. duration: 2000
  3017. });
  3018. this.checkValueDialogVisible = false;
  3019. this.getAETargetListByAssetsId();
  3020. // this.isCheckValue = true;
  3021. }
  3022. })
  3023. }
  3024. })
  3025. },
  3026. // 根据产品id获取产品详情
  3027. getAssetsProductionDetail(id) {
  3028. this.$api.assets.getAssetsProductionDetail(id).then(res => {
  3029. if (res.code == 200) {
  3030. this.assetsProductionForm = res.data;
  3031. this.assetsProductionForm.signatory = JSON.parse(res.data.signatory);
  3032. this.assetsProductionForm.filePath = JSON.parse(res.data.filePath);
  3033. this.fileList = this.assetsProductionForm.filePath;
  3034. this.productionWriteDialogVisible = true;
  3035. }
  3036. })
  3037. },
  3038. // 更新产品信息
  3039. productionUpdate() {
  3040. this.$refs.assetsProductionForm.validate(valid => {
  3041. if (valid) {
  3042. this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
  3043. if (this.assetsProductionForm.signatory !== null) {
  3044. this.assetsProductionForm.signatory = JSON.stringify(this.assetsProductionForm.signatory);
  3045. } else {
  3046. this.assetsProductionForm.signatory = null;
  3047. }
  3048. this.$api.assets.productionUpdate(this.assetsProductionForm).then(res => {
  3049. if (res.code == 200) {
  3050. this.$notify({
  3051. title: '成功',
  3052. message: '产品修改成功!',
  3053. type: 'success',
  3054. duration: 2000
  3055. });
  3056. }
  3057. this.getAETargetListByAssetsId();
  3058. this.productionWriteDialogVisible = false;
  3059. this.getProductionList();
  3060. })
  3061. }
  3062. })
  3063. },
  3064. // 根据业务类型,产品id及checkLoop获取质检信息
  3065. openProductionCheckDialog() {
  3066. this.$api.assets.getAssetsProductionDetail(this.productionPerformanceForm.productionId).then(res => {
  3067. if (res.code == 200) {
  3068. this.assetsProductionForm = res.data;
  3069. this.assetsProductionForm.filePath = JSON.parse(res.data.filePath);
  3070. this.fileList = this.assetsProductionForm.filePath;
  3071. }
  3072. })
  3073. const curNode = this.currentNode.nodeCode;
  3074. if (curNode === 'REVIEW_STATEMENT' || curNode === 'CHECK_REPORT') {
  3075. if (this.assetsEvaluationTarget.some(item => !item.checkValue)) {
  3076. this.$notify({
  3077. title: '警告',
  3078. message: '评估对象需要进行审核定价',
  3079. type: 'error',
  3080. duration: 3000
  3081. });
  3082. } else {
  3083. this.initProQuality(curNode);
  3084. }
  3085. } else {
  3086. this.initProQuality(curNode);
  3087. }
  3088. },
  3089. // 质检信息基础信息赋值
  3090. initProQuality(curNode) {
  3091. this.productionCheckDialogVisible = true;
  3092. this.productionPerformanceForm.businessType = 'ASSET_BUSINESS';
  3093. if (curNode === 'REVIEW_STATEMENT' || curNode === 'CHECK_REPORT') {
  3094. this.productionPerformanceForm.checkLoop = "初审";
  3095. }
  3096. if (curNode === 'REEXAMINE_STATEMENT' || curNode === 'RECHECK_REPORT') {
  3097. this.productionPerformanceForm.checkLoop = "复审";
  3098. }
  3099. if (curNode === 'FOURTH_CHECK_REPORT') {
  3100. this.productionPerformanceForm.checkLoop = "四审";
  3101. }
  3102. this.$api.businessProductionPerformance.getProductionPerformance(this.productionPerformanceForm).then(res => {
  3103. if (res.code === 200 && res.data !== null) {
  3104. this.productionPerformanceForm.id = res.data.id;
  3105. this.productionPerformanceForm.fatalMistake = res.data.fatalMistake;
  3106. this.productionPerformanceForm.hardMistake = res.data.hardMistake;
  3107. this.productionPerformanceForm.normalMistake = res.data.normalMistake;
  3108. this.productionPerformanceForm.reason = res.data.reason;
  3109. }
  3110. })
  3111. },
  3112. // 保存产品质检信息(新增与保存都是这个方法)
  3113. saveQuality() {
  3114. if ((this.productionPerformanceForm.hardMistake + this.productionPerformanceForm.fatalMistake + this.productionPerformanceForm.normalMistake) > 0) {
  3115. if (this.productionPerformanceForm.reason !== null && this.productionPerformanceForm.reason !== '') {
  3116. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3117. this.taskRecordDTO.taskData = this.productionPerformanceForm;
  3118. // id不为空更新
  3119. if (this.productionPerformanceForm.id) {
  3120. this.$api.businessProductionPerformance.edit(this.taskRecordDTO).then(res => {
  3121. if (res.code === 200 && res.data) {
  3122. this.$notify({
  3123. title: '成功',
  3124. message: '质检信息更新成功,请继续提交流程节点!',
  3125. type: 'success',
  3126. duration: 3000
  3127. });
  3128. if (this.currentNode.nodeCode === 'RECHECK_REPORT' || this.currentNode.nodeCode === 'FOURTH_CHECK_REPORT') {
  3129. this.updateProductionFileInfo();
  3130. }
  3131. this.productionCheckDialogVisible = false;
  3132. }
  3133. })
  3134. } else { // id为空新增
  3135. this.$api.businessProductionPerformance.add(this.taskRecordDTO).then(res => {
  3136. if (res.code === 200 && res.data) {
  3137. this.$notify({
  3138. title: '成功',
  3139. message: '质检信息保存成功,请继续提交流程节点!',
  3140. type: 'success',
  3141. duration: 3000
  3142. });
  3143. if (this.currentNode.nodeCode === 'RECHECK_REPORT' || this.currentNode.nodeCode === 'FOURTH_CHECK_REPORT') {
  3144. this.updateProductionFileInfo();
  3145. }
  3146. this.productionCheckDialogVisible = false;
  3147. }
  3148. })
  3149. }
  3150. } else {
  3151. this.$notify({
  3152. title: '错误',
  3153. message: '错误个数大于0时必须填写扣分原因',
  3154. type: 'error',
  3155. duration: 3000
  3156. });
  3157. }
  3158. } else {
  3159. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3160. this.taskRecordDTO.taskData = this.productionPerformanceForm;
  3161. // id不为空更新
  3162. if (this.productionPerformanceForm.id) {
  3163. this.$api.businessProductionPerformance.edit(this.taskRecordDTO).then(res => {
  3164. if (res.code === 200 && res.data) {
  3165. this.$notify({
  3166. title: '成功',
  3167. message: '质检信息更新成功,请继续提交流程节点!',
  3168. type: 'success',
  3169. duration: 3000
  3170. });
  3171. if (this.currentNode.nodeCode === 'RECHECK_REPORT' || this.currentNode.nodeCode === 'FOURTH_CHECK_REPORT') {
  3172. this.updateProductionFileInfo();
  3173. }
  3174. this.productionCheckDialogVisible = false;
  3175. }
  3176. })
  3177. } else { // id为空新增
  3178. this.$api.businessProductionPerformance.add(this.taskRecordDTO).then(res => {
  3179. if (res.code === 200 && res.data) {
  3180. this.$notify({
  3181. title: '成功',
  3182. message: '质检信息保存成功,请继续提交流程节点!',
  3183. type: 'success',
  3184. duration: 3000
  3185. });
  3186. if (this.currentNode.nodeCode === 'RECHECK_REPORT' || this.currentNode.nodeCode === 'FOURTH_CHECK_REPORT') {
  3187. this.updateProductionFileInfo();
  3188. }
  3189. this.productionCheckDialogVisible = false;
  3190. }
  3191. })
  3192. }
  3193. }
  3194. },
  3195. // 根据资产产品id更新文件路由信息
  3196. updateProductionFileInfo() {
  3197. this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
  3198. this.$api.assets.updateProductionFileInfo(this.assetsProductionForm).then(res => {
  3199. if (res.code === 200 && res.data) {
  3200. this.$notify({
  3201. title: '成功',
  3202. message: '产品附件保存成功',
  3203. type: 'success',
  3204. duration: 3000
  3205. });
  3206. }
  3207. })
  3208. },
  3209. // 打开产品出入库弹窗
  3210. openWareHouseDialog(row) {
  3211. this.warehouseDialog = true;
  3212. this.wareHouseProductionType = row.productionType;
  3213. this.wareHouseproductionId = row.id
  3214. },
  3215. handleScanEntry(scanData) {
  3216. this.scanEntryData = scanData;
  3217. },
  3218. cleanWareHouseProductionType() {
  3219. this.wareHouseProductionType = null;
  3220. this.wareHouseproductionId = null;
  3221. },
  3222. // 产品出入库
  3223. doWareHouse() {
  3224. let productionNo = this.scanEntryData
  3225. let wareHoaseDto = new Object();
  3226. if (productionNo) {
  3227. wareHoaseDto.productionNo = reportNo;
  3228. } else {
  3229. wareHoaseDto.productionNo = this.$refs.scanEntry.scanEntryData;
  3230. }
  3231. if (this.currentNode.nodeName.includes("入库")) {
  3232. wareHoaseDto.repertoryState = 0;
  3233. } else {
  3234. wareHoaseDto.repertoryState = 1;
  3235. }
  3236. wareHoaseDto.productionType = this.wareHouseProductionType;
  3237. wareHoaseDto.productionId = this.wareHouseproductionId;
  3238. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3239. this.taskRecordDTO.taskData = wareHoaseDto;
  3240. this.$api.assets.assetsProRepertory(this.taskRecordDTO).then(res => {
  3241. if (res.code === 200 && res.data) {
  3242. this.$notify({
  3243. title: '成功',
  3244. message: '库存操作成功,请继续提交流程节点!',
  3245. type: 'success',
  3246. duration: 2000
  3247. });
  3248. this.warehouseDialog = false;
  3249. this.getProductionList();
  3250. }
  3251. else {
  3252. this.$message({
  3253. type: 'info',
  3254. message: '取消操作'
  3255. });
  3256. }
  3257. })
  3258. },
  3259. // 判断流程是否进行四审
  3260. flowDoFourthCheck() {
  3261. if (this.currentNode.nodeCode == 'RECHECK_REPORT') {
  3262. // 判断评估值是否超过8000万
  3263. let isSubstantialAssets = this.assetsEvaluationTarget.reduce((sum, obj) => { return sum + obj.estimatedValue; }, 0) > 8000;
  3264. // 获取是否有评估目的为搬迁、司法涉讼的评估对象
  3265. let isLawsuit = this.assetsEvaluationTarget.some(obj => obj.purposeName === '搬迁' || obj.purposeName === '资产涉讼');
  3266. // 获取是否证券项目
  3267. let isSecurity = this.assetsForm.security;
  3268. // 是否证券项目,或是否评估目的搬迁、诉讼,或是否价值大于8000万
  3269. if (isSecurity || isLawsuit || isSubstantialAssets) {
  3270. this.nodeBusinessInfo.doFourthCheck = true;
  3271. }
  3272. }
  3273. },
  3274. // 根据产品号获取产品实收款
  3275. getProductionRealAmount(productionNo) {
  3276. this.$api.assets.getProductionRealAmount(productionNo).then(res => {
  3277. if (res.code === 200 && res.data !== null) {
  3278. this.nodeBusinessInfo.ifProductionFund = true;
  3279. } else {
  3280. this.nodeBusinessInfo.ifProductionFund = false;
  3281. }
  3282. })
  3283. },
  3284. // 打开绩效比例分配弹窗
  3285. openAssetsAchievementRatioDialog() {
  3286. // this.businessPerformanceDistributionForm.distributionList = [];
  3287. //获取报告附件信息
  3288. let assetsProductionDetailDTO = new Object();
  3289. assetsProductionDetailDTO.businessId = this.pageParams.row.assetsId;
  3290. assetsProductionDetailDTO.productionNo = this.pageParams.row.reportNo;
  3291. this.$api.assets.getAssetsProductionDetailByNo(assetsProductionDetailDTO).then(res => {
  3292. if (res.code == 200 && res.data !== null) {
  3293. this.assetsProductionForm = res.data;
  3294. this.assetsProductionForm.filePath = JSON.parse(res.data.filePath);
  3295. this.fileList = this.assetsProductionForm.filePath;
  3296. }
  3297. })
  3298. this.assetsAchievementRatioDialogVisible = true;
  3299. // this.getPerformanceDistributionList();
  3300. // if (this.businessPerformanceDistributionForm.distributionList !== null && this.businessPerformanceDistributionForm.distributionList[0].id !== null) {
  3301. // this.showDistributionButton = false;
  3302. // } else {
  3303. // this.showDistributionButton = true;
  3304. // }
  3305. },
  3306. // 新增资产绩效分配信息
  3307. saveBusinessPerformanceDistribution() {
  3308. const sum = this.businessPerformanceDistributionForm.distributionList.reduce((accumulator, obj) => {
  3309. return accumulator + obj.performanceDistribution;
  3310. }, 0);
  3311. if (sum === 100) {
  3312. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3313. this.taskRecordDTO.taskData = this.businessPerformanceDistributionForm;
  3314. this.$api.businessPerformanceDistribution.addAssetsPerformanceDistribution(this.taskRecordDTO).then(res => {
  3315. if (res.code === 200) {
  3316. this.$notify({
  3317. title: '成功',
  3318. message: '绩效分配新增完成,请继续提交流程节点!',
  3319. type: 'success',
  3320. duration: 3000
  3321. });
  3322. if (this.currentNode.nodeCode === 'CHECK_ARCHIVING') {
  3323. this.updateProductionFileInfo();
  3324. }
  3325. this.resetBusinessPerformanceDistributionForm();
  3326. }
  3327. })
  3328. } else {
  3329. this.$notify({
  3330. title: '警告',
  3331. message: '所有人员分配的绩效之和必须等于100%!',
  3332. type: 'error',
  3333. duration: 3000
  3334. });
  3335. }
  3336. },
  3337. // 重置绩效分配表单
  3338. resetBusinessPerformanceDistributionForm() {
  3339. this.assetsAchievementRatioDialogVisible = false;
  3340. this.businessPerformanceDistributionForm.businessId = null;
  3341. this.businessPerformanceDistributionForm.businessType = null;
  3342. this.businessPerformanceDistributionForm.reportNo = null;
  3343. },
  3344. // 获取资产绩效分配信息list
  3345. getPerformanceDistributionList() {
  3346. this.businessPerformanceDistributionForm.businessId = this.pageParams.row.assetsId;
  3347. this.businessPerformanceDistributionForm.businessType = 'ASSET_BUSINESS';
  3348. this.businessPerformanceDistributionForm.reportNo = this.pageParams.row.reportNo;
  3349. let selectDTO = this.businessPerformanceDistributionForm;
  3350. selectDTO.distributionList = null;
  3351. this.$api.businessPerformanceDistribution.getPerformanceDistributionList(this.businessPerformanceDistributionForm).then(res => {
  3352. if (res.code === 200 && res.data !== null && res.data.length > 0) {
  3353. this.businessPerformanceDistributionForm.distributionList = res.data;
  3354. this.getAssetsBusinessMembers();
  3355. this.showDistributionButton = false;
  3356. } else {
  3357. this.showDistributionButton = true;
  3358. this.getAssetsBusinessMembers(true);
  3359. }
  3360. })
  3361. },
  3362. // 获取项目参与人信息
  3363. getAssetsBusinessMembers(state) {
  3364. let assetsBusinessMembersDTO = { businessId: null, reportNo: null };
  3365. assetsBusinessMembersDTO.businessId = this.pageParams.row.assetsId;
  3366. assetsBusinessMembersDTO.reportNo = this.pageParams.row.reportNo;
  3367. this.$api.assets.getAssetsBusinessMembers(assetsBusinessMembersDTO).then(res => {
  3368. // 返回不为空,且没有绩效分配信息
  3369. if (res.code === 200 && res.data !== null) {
  3370. this.assetsBusinessMembers = res.data;
  3371. if (state) {
  3372. this.businessPerformanceDistributionForm.distributionList = [];
  3373. for (let i = 0; i < this.assetsBusinessMembers.length; i++) {
  3374. let memberInfo = { memberId: this.assetsBusinessMembers[i].memberId, performanceDistribution: 0, memberType: this.assetsBusinessMembers[i].memberType }
  3375. this.businessPerformanceDistributionForm.distributionList.push(memberInfo)
  3376. }
  3377. }
  3378. }
  3379. })
  3380. },
  3381. // 修改资产绩效分配信息
  3382. updateAssetsPerformanceDistribution() {
  3383. const sum = this.businessPerformanceDistributionForm.distributionList.reduce((accumulator, obj) => {
  3384. return accumulator + obj.performanceDistribution;
  3385. }, 0);
  3386. if (sum === 100) {
  3387. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3388. this.taskRecordDTO.taskData = this.businessPerformanceDistributionForm;
  3389. this.$api.businessPerformanceDistribution.updateAssetsPerformanceDistribution(this.taskRecordDTO).then(res => {
  3390. if (res.code === 200) {
  3391. this.$notify({
  3392. title: '成功',
  3393. message: '绩效分配修改完成,请继续提交流程节点!',
  3394. type: 'success',
  3395. duration: 3000
  3396. });
  3397. if (this.currentNode.nodeCode === 'CHECK_ARCHIVING') {
  3398. this.updateProductionFileInfo();
  3399. }
  3400. this.resetBusinessPerformanceDistributionForm();
  3401. }
  3402. })
  3403. } else {
  3404. this.$notify({
  3405. title: '警告',
  3406. message: '所有人员分配的绩效之和必须等于100%!',
  3407. type: 'error',
  3408. duration: 3000
  3409. });
  3410. }
  3411. },
  3412. // 获取联系信息
  3413. getContactInfo() {
  3414. if (this.assetsForm.clienteleContactId) {
  3415. this.$api.customerLinkman.detail(this.assetsForm.clienteleContactId).then(res => {
  3416. if (res.code === 200) {
  3417. this.linkmanInfo = res.data;
  3418. }
  3419. })
  3420. }
  3421. if (this.assetsForm.terminalClienteleContactId) {
  3422. this.$api.customerLinkman.detail(this.assetsForm.terminalClienteleContactId).then(res => {
  3423. if (res.code === 200) {
  3424. this.tLinkmanInfo = res.data;
  3425. this.$forceUpdate();
  3426. this.assetsForm.tmobile = this.tLinkmanInfo.mobile;
  3427. }
  3428. })
  3429. }
  3430. if (this.assetsForm.terminalClienteleId) {
  3431. this.$api.customerCompany.detail(this.assetsForm.terminalClienteleId).then(res => {
  3432. if (res.code === 200) {
  3433. this.tCustomerInfo = res.data;
  3434. // this.assetsForm.tmobile = this.tCustomerInfo.phone;
  3435. }
  3436. })
  3437. }
  3438. },
  3439. // 更新资产订单基本信息
  3440. updateOrderBaseInfo() {
  3441. this.$refs.assetsForm.validate(valid => {
  3442. if (valid) {
  3443. this.$confirm('是否确定要修改订单基本信息?', '提示', {
  3444. confirmButtonText: '确定',
  3445. cancelButtonText: '取消',
  3446. type: 'warning'
  3447. }).then(() => {
  3448. if (this.assetsForm.members) {
  3449. this.assetsForm.members = JSON.stringify(this.assetsForm.members);
  3450. }
  3451. this.$api.assets.updateOrderBaseInfo(this.assetsForm).then(res => {
  3452. if (res.code === 200 && res.data) {
  3453. this.$notify({
  3454. title: '成功',
  3455. message: '订单基本信息更新成功!',
  3456. type: 'success',
  3457. duration: 3000
  3458. });
  3459. this.getAssetsDetailById(this.pageParams.row.assetsId);
  3460. } else {
  3461. this.$notify({
  3462. title: '失败',
  3463. message: '订单基本信息更新失败!请稍后重试!',
  3464. type: 'warning',
  3465. duration: 3000
  3466. });
  3467. }
  3468. })
  3469. }).catch(() => {
  3470. this.$message({
  3471. type: 'info',
  3472. message: '已取消更新'
  3473. });
  3474. });
  3475. }
  3476. })
  3477. },
  3478. // 文档预览
  3479. officeFileView(name, url) {
  3480. if (name && url) {
  3481. const route = this.$router.resolve({
  3482. path: "/office/view/window",
  3483. query: {
  3484. // 文档标题
  3485. title: name,
  3486. // 文档url地址
  3487. url: url
  3488. }
  3489. });
  3490. // 在新窗口打开页面
  3491. window.open(route.href, "_blank");
  3492. } else {
  3493. this.$notify({
  3494. title: '失败',
  3495. message: 'url为空,无法打开,如未保存请保存后再试!',
  3496. type: 'error',
  3497. duration: 2000
  3498. });
  3499. }
  3500. }
  3501. }
  3502. }
  3503. </script>
  3504. <style lang="scss" scoped>
  3505. .row-style {
  3506. margin-left: 40px;
  3507. margin-right: 1%;
  3508. }
  3509. .major-radio {
  3510. width: 92px
  3511. }
  3512. .task-class {
  3513. /deep/ .el-form-item__label {
  3514. color: red;
  3515. }
  3516. }
  3517. .evaluate-table {
  3518. margin-left: 40px;
  3519. margin-top: 35px;
  3520. }
  3521. .pane-class {
  3522. height: 800px;
  3523. width: 100%;
  3524. overflow-y: scroll;
  3525. }
  3526. /deep/ .cell-class {
  3527. font-size: 13px;
  3528. color: black;
  3529. }
  3530. .table {
  3531. /deep/ thead {
  3532. .el-table-column--selection {
  3533. .cell {
  3534. display: none;
  3535. }
  3536. }
  3537. }
  3538. }
  3539. /deep/.doWarehouseClass {
  3540. border-radius: 10px;
  3541. }
  3542. .button-area {
  3543. position: absolute;
  3544. top: 20px;
  3545. right: 50px;
  3546. }
  3547. .error-type {
  3548. margin-right: 5px;
  3549. }
  3550. .error-type:hover {
  3551. cursor: pointer;
  3552. }
  3553. .box-card {
  3554. margin-top: 40px
  3555. }
  3556. .time {
  3557. font-size: 13px;
  3558. color: #999;
  3559. float: right;
  3560. margin-top: 5px;
  3561. }
  3562. .bottom {
  3563. margin-top: 13px;
  3564. line-height: 12px;
  3565. }
  3566. .button {
  3567. float: left;
  3568. }
  3569. .image {
  3570. width: 100%;
  3571. padding: 0%;
  3572. display: block;
  3573. }
  3574. .control {
  3575. z-index: 999;
  3576. position: relative;
  3577. top: 10px;
  3578. }
  3579. </style>