orderDetail.vue 139 KB

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