orderDetail.vue 166 KB

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