orderDetail.vue 96 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252
  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 }}</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">
  22. <el-button v-if="nodeBusinessInfo.currentNodePermission.commit" class="y-save" type="success" round
  23. @click="commit('PASS')" :disabled="!nodeBusinessInfo.doWorkflow">提交</el-button>
  24. <el-button v-if="nodeBusinessInfo.currentNodePermission.reversible" class="y-save" type="warning" round
  25. @click="commit('REVERSE')" :disabled="!nodeBusinessInfo.doWorkflow">退回</el-button>
  26. <el-button v-if="nodeBusinessInfo.currentNodePermission.skippable" class="y-save" type="warning" round
  27. @click="commit('SKIP')" :disabled="!nodeBusinessInfo.doWorkflow">跳过</el-button>
  28. <el-button v-if="nodeBusinessInfo.currentNodePermission.terminable" class="y-save" type="danger" round
  29. @click="commit('TERMINATE')" :disabled="!nodeBusinessInfo.doWorkflow">终止</el-button>
  30. <el-button v-if="nodeBusinessInfo.currentNodePermission.restartable" class="y-save" type="danger" round
  31. @click="commit('RESTART')" :disabled="!nodeBusinessInfo.doWorkflow">重置</el-button>
  32. <el-button class="y-save" round type="info" @click="goBack">返回</el-button>
  33. </div>
  34. <el-tabs v-model="activeTagName" @tab-click="handleClick" type="border-card">
  35. <el-tab-pane name="baseInfo" class="pane-class" :lazy=true>
  36. <span slot="label"><i class="el-icon-document"></i>基本信息</span>
  37. <y-detail-page-layout ref="addAssetsOrder" name="assets" :editStatus="editStatus">
  38. <el-form ref="assetsForm" :model="assetsForm" :rules="assetsFormRules" :disabled="disabledStatus">
  39. <div class="createMajor-main-container">
  40. <div class="postInfo-container">
  41. <div>
  42. <el-divider content-position="left">
  43. <h3 class="title">
  44. <div class="avatar-wrapper icon-title">订单</div>
  45. <div class="icon-info">资产订单</div>
  46. </h3>
  47. </el-divider>
  48. </div>
  49. <el-row class="row-style">
  50. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  51. <el-form-item label="客户经理:" prop="clientManager" label-width="120px" class="postInfo-container-item">
  52. <el-input :value="assetsForm.clientManagerName" class="filter-item" readonly disabled
  53. style=" width: 225px" />
  54. </el-form-item>
  55. </el-col>
  56. <el-col :xs="24" :sm="12" :lg="4" :span="6">
  57. <el-form-item label="接单部门:" prop="departmentId" label-width="120px" class="postInfo-container-item">
  58. <el-select v-model="assetsForm.departmentId">
  59. <el-option v-for="(d, id) in allotDepartment" :label="d.name" :value="d.id"
  60. :key="d.id"></el-option>
  61. </el-select>
  62. </el-form-item>
  63. </el-col>
  64. </el-row>
  65. <el-row class="row-style">
  66. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  67. <el-form-item prop="name" label-width="120px" class="postInfo-container-item" label="项目名称:">
  68. <el-input v-model="assetsForm.name" class="filter-item" />
  69. </el-form-item>
  70. </el-col>
  71. </el-row>
  72. <el-row class="row-style">
  73. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  74. <el-form-item label="业务类型:" prop="assetsBusinessGener" label-width="120px"
  75. class="postInfo-container-item">
  76. <el-select v-model="assetsForm.assetsBusinessGener" filterable placeholder="业务类型">
  77. <el-option v-for="(s, index) in assetsBusinessGeners" :label="s.label" :value="s.value"
  78. :key="s.id"></el-option>
  79. </el-select>
  80. </el-form-item>
  81. </el-col>
  82. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  83. <el-form-item label="客户再次委托:" prop="entrustAgain" label-width="140px" class="postInfo-container-item">
  84. <el-radio v-model="assetsForm.entrustAgain" :label="false" border size="medium">否</el-radio>
  85. <el-radio v-model="assetsForm.entrustAgain" :label="true" border size="medium">是</el-radio>
  86. </el-form-item>
  87. </el-col>
  88. </el-row>
  89. <el-row class="row-style">
  90. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  91. <el-form-item label="客户类型:" prop="clienteleType" label-width="120px" class="postInfo-container-item">
  92. <el-select v-model="assetsForm.clienteleType" placeholder="请选择"
  93. @change="changeCustomerType(assetsForm.clienteleType)">
  94. <el-option label="企业" value="企业"></el-option>
  95. <el-option label="个人" value="个人"></el-option>
  96. </el-select>
  97. </el-form-item>
  98. </el-col>
  99. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  100. <el-form-item label="客户名称:" prop="clienteleId" label-width="120px" class="postInfo-container-item"
  101. v-if="itemHideStatus">
  102. <el-select v-model="assetsForm.clienteleId" placeholder="请选择(可搜索)" @change="findSubClientele(0)"
  103. clearable filterable>
  104. <el-option v-for="(c, id) in customerCompany" :label="c.name" :value="c.id"
  105. :key="c.id"></el-option>
  106. </el-select>
  107. </el-form-item>
  108. </el-col>
  109. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  110. <el-form-item label="业务来源:" prop="clienteleSubId" label-width="120px" class="postInfo-container-item"
  111. v-if="itemHideStatus">
  112. <el-select v-model="assetsForm.clienteleSubId" placeholder="请选择(可搜索)" @change="getCustomerContract"
  113. clearable filterable>
  114. <el-option v-for="(s, id) in subCustomerCompany" :label="s.name" :value="s.id"
  115. :key="s.id"></el-option>
  116. </el-select>
  117. </el-form-item>
  118. </el-col>
  119. </el-row>
  120. <el-row class="row-style">
  121. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  122. <el-form-item label="客户联系人:" prop="clienteleContactId" label-width="120px"
  123. class="postInfo-container-item">
  124. <div>
  125. <el-select v-model="assetsForm.clienteleContactId" placeholder="请选择(可搜索)" clearable filterable
  126. @change="" style="width:60%">
  127. <el-option v-for="(c, id) in customerContract" :label="c.name" :value="c.id"
  128. :key="c.id"></el-option>
  129. </el-select>
  130. <!-- <el-tooltip class="item" effect="dark" content="没有联系人?点击新增" placement="top-end">
  131. <span style="margin-left:5%;color:RGB(64,158,255);cursor:pointer"
  132. @click="createLinkman(false)">新增</span>
  133. </el-tooltip> -->
  134. </div>
  135. </el-form-item>
  136. </el-col>
  137. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  138. <el-form-item label="联系人电话:" prop="mobile" label-width="120px" class="postInfo-container-item">
  139. <el-input :value="assetsForm.linkmanMobile" class="filter-item" readonly disabled
  140. style=" width: 225px" />
  141. </el-form-item>
  142. </el-col>
  143. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  144. <el-form-item label="联系人部门:" prop="department" label-width="120px" class="postInfo-container-item">
  145. <el-input :value="assetsForm.linkmanDepartment" class="filter-item" readonly disabled
  146. style=" width: 225px" />
  147. </el-form-item>
  148. </el-col>
  149. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  150. <el-form-item label="联系人职务:" prop="duty" label-width="120px" class="postInfo-container-item">
  151. <el-input :value="assetsForm.linkmanDuty" class="filter-item" readonly disabled
  152. style=" width: 225px" />
  153. </el-form-item>
  154. </el-col>
  155. </el-row>
  156. <el-row class="row-style">
  157. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  158. <el-form-item label="是否证券项目:" prop="security" label-width="140px" class="postInfo-container-item">
  159. <el-radio v-model="assetsForm.security" :label="false" border size="medium">否</el-radio>
  160. <el-radio v-model="assetsForm.security" :label="true" border size="medium">是</el-radio>
  161. </el-form-item>
  162. </el-col>
  163. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  164. <el-form-item label="是否资产重组项目:" prop="significantAssetsReorganization" label-width="200px"
  165. class="postInfo-container-item">
  166. <el-radio v-model="assetsForm.significantAssetsReorganization" :label="false" border
  167. size="medium">否</el-radio>
  168. <el-radio v-model="assetsForm.significantAssetsReorganization" :label="true" border
  169. 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="stateAssets" label-width="140px" class="postInfo-container-item">
  174. <el-radio v-model="assetsForm.stateAssets" :label="false" border size="medium">否</el-radio>
  175. <el-radio v-model="assetsForm.stateAssets" :label="true" border size="medium">是</el-radio>
  176. </el-form-item>
  177. </el-col>
  178. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  179. <el-form-item label="是否涉及境外资产:" prop="foreignAssetsInvolved" label-width="200px"
  180. class="postInfo-container-item">
  181. <el-radio v-model="assetsForm.foreignAssetsInvolved" :label="false" border
  182. size="medium">否</el-radio>
  183. <el-radio v-model="assetsForm.foreignAssetsInvolved" :label="true" border size="medium">是</el-radio>
  184. </el-form-item>
  185. </el-col>
  186. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  187. <el-form-item label="是否分配产值:" prop="dispenseBenefit" label-width="140px"
  188. class="postInfo-container-item">
  189. <el-radio v-model="assetsForm.dispenseBenefit" :label="false" border size="medium">否</el-radio>
  190. <el-radio v-model="assetsForm.dispenseBenefit" :label="true" border size="medium">是</el-radio>
  191. </el-form-item>
  192. </el-col>
  193. </el-row>
  194. <el-row class="row-style">
  195. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  196. <el-form-item label="委托人:" prop="bailor" label-width="120px" class="postInfo-container-item">
  197. <el-input v-model="assetsForm.bailor" class="filter-item" style=" width: 225px" />
  198. </el-form-item>
  199. </el-col>
  200. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  201. <el-form-item label="委托联系人:" prop="bailorContactName" label-width="120px"
  202. class="postInfo-container-item">
  203. <el-input v-model="assetsForm.bailorContactName" class="filter-item" style=" width: 225px" />
  204. </el-form-item>
  205. </el-col>
  206. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  207. <el-form-item label="委托人联系人电话:" prop="bailorContactTel" label-width="160px"
  208. class="postInfo-container-item">
  209. <el-input v-model="assetsForm.bailorContactTel" class="filter-item" style=" width: 225px" />
  210. </el-form-item>
  211. </el-col>
  212. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  213. <el-form-item label="委托人地址:" prop="bailorAddress" label-width="120px" class="postInfo-container-item">
  214. <el-input v-model="assetsForm.bailorAddress" class="filter-item" style=" width: 225px" />
  215. </el-form-item>
  216. </el-col>
  217. </el-row>
  218. <el-row class="row-style">
  219. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  220. <el-form-item label="终端客户类型:" prop="terminalClienteleType" label-width="140px"
  221. class="postInfo-container-item">
  222. <el-select v-model="assetsForm.terminalClienteleType" placeholder="请选择" style="width:205px">
  223. <el-option label="企业" value="企业"></el-option>
  224. <el-option label="个人" value="个人"></el-option>
  225. </el-select>
  226. </el-form-item>
  227. </el-col>
  228. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="assetsForm.terminalClienteleType === '企业'">
  229. <el-form-item label="终端客户名称:" prop="terminalClienteleId" label-width="140px"
  230. class="postInfo-container-item">
  231. <div v-if="couldEdit">
  232. <el-select v-model="assetsForm.terminalClienteleId" placeholder="请选择(可搜索)"
  233. @change="findSubClientele(1)" clearable filterable style="width:80%">
  234. <el-option v-for="(c, id) in tCustomerCompany" :label="c.name" :value="c.id"
  235. :key="c.id"></el-option>
  236. </el-select>
  237. <!-- <el-tooltip class="item" effect="dark" content="没有终端客户?点击新增" placement="top-end">
  238. <span style="margin-left:5%;color:RGB(64,158,255);cursor:pointer"
  239. @click="createTerminalClient()">新增</span>
  240. </el-tooltip> -->
  241. </div>
  242. <el-input :value="assetsForm.tterminalClienteleName" class="filter-item" style=" width: 225px"
  243. v-else />
  244. </el-form-item>
  245. </el-col>
  246. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="assetsForm.terminalClienteleType === '个人'">
  247. <el-form-item label="终端联系人:" prop="terminalClienteleContactId" label-width="120px"
  248. class="postInfo-container-item">
  249. <div v-if="couldEdit">
  250. <el-select v-model="assetsForm.terminalClienteleContactId" placeholder="请选择(可搜索)" clearable
  251. filterable @change="" style="width:80%">
  252. <el-option v-for="(c, id) in tCustomerContract" :label="c.name" :value="c.id"
  253. :key="c.id"></el-option>
  254. </el-select>
  255. <!-- <el-tooltip class="item" effect="dark" content="没有联系人?点击新增" placement="top-end">
  256. <span style="margin-left:5%;color:RGB(64,158,255);cursor:pointer"
  257. @click="createTlinkman()">新增</span>
  258. </el-tooltip> -->
  259. </div>
  260. <el-input :value="assetsForm.tterminalClienteleContactName" class="filter-item"
  261. style=" width: 225px" v-else />
  262. </el-form-item>
  263. </el-col>
  264. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  265. <el-form-item label="终端联系电话:" prop="clienteleType" label-width="150px"
  266. class="postInfo-container-item">
  267. <el-input :value="assetsForm.tlinkmanMobile" class="filter-item" readonly disabled
  268. style=" width: 215px" />
  269. </el-form-item>
  270. </el-col>
  271. </el-row>
  272. <el-row class="row-style">
  273. <el-col :xs="24" :sm="12" :lg="23" :span="12">
  274. <el-form-item label="备注:" prop="remark" label-width="120px" class="postInfo-container-item">
  275. <el-input v-model="assetsForm.remark" :autosize="{ minRows: 4, maxRows: 4 }" class="filter-item"
  276. type="textarea" />
  277. </el-form-item>
  278. </el-col>
  279. </el-row>
  280. </div>
  281. </div>
  282. </el-form>
  283. </y-detail-page-layout>
  284. <el-row>
  285. <el-col>
  286. <el-col :span="2">
  287. <el-button @click="openProductionDialog" v-if="currentNode.nodeCode === 'PRODUCT_CHOICE'" type="danger"
  288. round>选择产品</el-button>
  289. </el-col>
  290. </el-col>
  291. </el-row>
  292. </el-tab-pane>
  293. <el-tab-pane name="members" class="pane-class" :lazy=true>
  294. <span slot="label"><i class="el-icon-document"></i>项目人员</span>
  295. <y-detail-page-layout @save="updatePrincipalAndMembers" ref="addAssetsOrder" name="assets"
  296. :editStatus="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'">
  297. <el-form ref="assetsForm" :model="assetsForm" :rules="assetsFormRules"
  298. :disabled="currentNode.nodeCode !== 'DEPARTMENT_ALLOCATION'">
  299. <div class="createMajor-main-container">
  300. <div class="postInfo-container">
  301. <div style="margin-top: 35px;">
  302. <el-divider content-position="left">
  303. <h3 class="title">
  304. <div class="avatar-wrapper icon-title">成员</div>
  305. <div class="icon-info">项目成员</div>
  306. </h3>
  307. </el-divider>
  308. </div>
  309. <el-row class="row-style">
  310. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  311. <el-form-item label="项目负责人:" prop="principalId" label-width="120px"
  312. :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']"
  313. :rules="{ required: true, message: '项目负责人不能为空', trigger: 'blur' }">
  314. <el-select v-model="assetsForm.principalId" placeholder="请选择"
  315. :filterable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  316. :clearable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  317. :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'"
  318. :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'">
  319. <el-option v-for="(p, id) in principals" :label="p.name" :value="p.id" :key="p.id"></el-option>
  320. </el-select>
  321. </el-form-item>
  322. </el-col>
  323. </el-row>
  324. <el-row class="row-style">
  325. <el-col :xs="24" :sm="12" :lg="3" :span="6">
  326. <el-form-item label="项目成员:" prop="members" label-width="120px"
  327. :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']"
  328. :rules="{ required: true, message: '项目成员不能为空', trigger: 'blur' }">
  329. <el-select v-model="assetsForm.members" placeholder="请选择" multiple style=" width: 686px"
  330. :filterable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  331. :clearable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  332. :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'"
  333. :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'">
  334. <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
  335. </el-select>
  336. </el-form-item>
  337. </el-col>
  338. </el-row>
  339. </div>
  340. </div>
  341. </el-form>
  342. </y-detail-page-layout>
  343. </el-tab-pane>
  344. <el-tab-pane name="target" class="pane-class" :lazy=true>
  345. <span @click="getAETargetListByAssetsId()" slot="label"><i class="el-icon-document"></i>资产评估对象</span>
  346. <div class="createMajor-main-container">
  347. <div class="postInfo-container">
  348. <div style="margin-top: 35px;">
  349. <el-divider content-position="left">
  350. <h3 class="title">
  351. <div class="avatar-wrapper icon-title">评估</div>
  352. <div class="icon-info">资产评估对象</div>
  353. </h3>
  354. </el-divider>
  355. </div>
  356. <el-row>
  357. <el-col :span="2">
  358. <div>
  359. <el-statistic group-separator="," :precision="4" :value="totalEvaluateValue" title="估价对象总价(万)">
  360. <template slot="prefix">
  361. <i class="el-icon-coin"></i>
  362. </template>
  363. </el-statistic>
  364. </div>
  365. </el-col>
  366. <el-col :span="2">
  367. <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE'" type="danger"
  368. @click="openTargetDialog(), changeStatus('add')" round>添加评估对象</el-button>
  369. </el-col>
  370. <el-col :span="2"
  371. v-if="currentNode.nodeCode === 'GENERATE_STATEMENT' || currentNode.nodeCode === 'RECHECK_REPORT'">
  372. <el-tooltip class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
  373. <el-button type="success" @click="takeAssetsProductionNo" round>产品取号</el-button>
  374. </el-tooltip>
  375. </el-col>
  376. <el-col :span="2"
  377. v-if="currentNode.nodeCode === 'GENERATE_STATEMENT' || currentNode.nodeCode === 'WRITE_REPORT'">
  378. <el-tooltip class="item" effect="dark" content="请仔细确认产品内容" placement="right">
  379. <el-button type="success" @click="openWriteProductionDialog" round>撰写产品信息</el-button>
  380. </el-tooltip>
  381. </el-col>
  382. </el-row>
  383. <el-table ref="multipleTable" :data="assetsEvaluationTarget" stripe @selection-change="targetSelectionChange"
  384. :header-row-style="{ color: '#333333' }" border takeNumberItems style="width: 100%; margin-top:20px">
  385. <el-table-column type="selection" width="55" :selectable="selectable">
  386. </el-table-column>
  387. <el-table-column prop="id" label="id" width="80" align="center">
  388. </el-table-column>
  389. <el-table-column prop="productionNo" label="产品号" align="center" show-overflow-tooltip>
  390. </el-table-column>
  391. <el-table-column prop="purposeName" label="评估目的" align="center" show-overflow-tooltip>
  392. </el-table-column>
  393. <el-table-column label="评估对象" align="center" show-overflow-tooltip>
  394. <template slot-scope="{row}">
  395. <span>{{ row.targetTypename }}</span>
  396. <span>--</span>
  397. <span>{{ row.secTargetTypaName }}</span>
  398. </template>
  399. </el-table-column>
  400. <el-table-column prop="theHolder" label="产权持有人" align="center" show-overflow-tooltip>
  401. </el-table-column>
  402. <el-table-column prop="valueTypeName" label="价值类型" align="center" show-overflow-tooltip>
  403. </el-table-column>
  404. <el-table-column prop="totalAssetCarryingAmount" label="总资产账面值(万)" align="center" show-overflow-tooltip>
  405. </el-table-column>
  406. <el-table-column prop="totalLiabilitiesCarryingAmount" label="总负债账面值(万)" align="center"
  407. show-overflow-tooltip>
  408. </el-table-column>
  409. <el-table-column prop="carryingAmountOfNetAssets" label="净资产账面值(万)" align="center" show-overflow-tooltip>
  410. </el-table-column>
  411. <el-table-column prop="estimatedValue" label="评估价格(万)" align="center" show-overflow-tooltip>
  412. </el-table-column>
  413. <el-table-column prop="checkValue" label="审核价格(万)" align="center" show-overflow-tooltip>
  414. </el-table-column>
  415. <el-table-column label="操作" align="center" width="130" fixed="right">
  416. <template slot-scope="scope">
  417. <el-button type="text" size="small"
  418. @click="getAssetsTargetDetail(scope.row.id), changeStatus('detail')">
  419. 查看
  420. </el-button>
  421. <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE'" type="text"
  422. size="small" @click="getAssetsTargetDetail(scope.row.id), changeStatus('edit')">
  423. 编辑
  424. </el-button>
  425. <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE'" type="text"
  426. size="small" @click="assetsTargetDelete(scope.row.id)">删除</el-button>
  427. </template>
  428. </el-table-column>
  429. </el-table>
  430. </div>
  431. </div>
  432. </el-tab-pane>
  433. <el-tab-pane name="production" class="pane-class" :lazy=true>
  434. <span slot="label"><i class="el-icon-document"></i>产品信息</span>
  435. <div class="createMajor-main-container">
  436. <div class="postInfo-container">
  437. <div style="margin-top: 35px;">
  438. <el-divider content-position="left">
  439. <h3 class="title">
  440. <div class="avatar-wrapper icon-title">产品</div>
  441. <div class="icon-info">资产产品信息</div>
  442. </h3>
  443. </el-divider>
  444. </div>
  445. </div>
  446. </div>
  447. </el-tab-pane>
  448. <el-tab-pane name="finance" class="pane-class" :lazy=true>
  449. <span slot="label" @click="getOrderFundInvoiceById()"><i class="el-icon-document"></i>款项信息</span>
  450. <div class="createMajor-main-container">
  451. <div class="postInfo-container">
  452. <div style="margin-top: 35px;">
  453. <el-divider content-position="left">
  454. <h3 class="title">
  455. <div class="avatar-wrapper icon-title">款项</div>
  456. <div class="icon-info">资产款项信息</div>
  457. </h3>
  458. </el-divider>
  459. </div>
  460. </div>
  461. <el-form ref="invoiceData" :model="invoiceData" :disabled="true">
  462. <el-row>
  463. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  464. <el-form-item label="应收金额(元):" prop="shouldAmount" label-width="120px" class="postInfo-container-item">
  465. <el-input v-model="invoiceData.shouldAmount" class="filter-item" />
  466. </el-form-item>
  467. </el-col>
  468. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  469. <el-form-item label="实收金额(元):" prop="realAmount" label-width="120px" class="postInfo-container-item">
  470. <el-input v-model="invoiceData.realAmount" class="filter-item" />
  471. </el-form-item>
  472. </el-col>
  473. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  474. <el-form-item label="剩余金额(元):" prop="leftAmount" label-width="120px" class="postInfo-container-item">
  475. <el-input v-model="invoiceData.leftAmount" class="filter-item" />
  476. </el-form-item>
  477. </el-col>
  478. </el-row>
  479. <el-row>
  480. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  481. <el-form-item label="开票类型:" prop="type" label-width="120px" class="postInfo-container-item">
  482. <el-input v-model="invoiceData.type" class="filter-item" />
  483. </el-form-item>
  484. </el-col>
  485. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  486. <el-form-item label="发票抬头:" prop="title" label-width="120px" class="postInfo-container-item">
  487. <el-input v-model="invoiceData.title" class="filter-item" />
  488. </el-form-item>
  489. </el-col>
  490. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  491. <el-form-item label="税号:" prop="taxNo" label-width="120px" class="postInfo-container-item">
  492. <el-input v-model="invoiceData.taxNo" class="filter-item" />
  493. </el-form-item>
  494. </el-col>
  495. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  496. <el-form-item label="开户银行:" prop="bankName" label-width="120px" class="postInfo-container-item">
  497. <el-input v-model="invoiceData.bankName" class="filter-item" />
  498. </el-form-item>
  499. </el-col>
  500. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  501. <el-form-item label="银行地址:" prop="bankAddress" label-width="120px" class="postInfo-container-item">
  502. <el-input v-model="invoiceData.bankAddress" class="filter-item" />
  503. </el-form-item>
  504. </el-col>
  505. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  506. <el-form-item label="联系电话:" prop="bankTel" label-width="120px" class="postInfo-container-item">
  507. <el-input v-model="invoiceData.bankTel" class="filter-item" />
  508. </el-form-item>
  509. </el-col>
  510. </el-row>
  511. </el-form>
  512. </div>
  513. </el-tab-pane>
  514. </el-tabs>
  515. <el-dialog :visible.sync="targetDialogVisible" @open="clear()" @close="resettargetForm"
  516. custom-class="doWarehouseClass">
  517. <div>
  518. <el-form ref="targetForm" :model="targetForm" style="margin-top:20px" :rules="targetFormRules"
  519. :disabled="targetDisabledStatus">
  520. <el-divider content-position="left">【资产】评估对象</el-divider>
  521. <el-row class="row-style">
  522. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  523. <el-form-item label="评估目的:" prop="evaluationPurposeId" label-width="120px" class="postInfo-container-item">
  524. <el-select v-model="targetForm.evaluationPurposeId">
  525. <el-option v-for="(p, id) in assetsEvaluationTargetPurpose" :label="p.purposeName"
  526. :value="p.id"></el-option>
  527. </el-select>
  528. </el-form-item>
  529. </el-col>
  530. </el-row>
  531. <el-row class="row-style">
  532. <el-col :xs="24" :sm="12" :lg="12" :span="6" style="width: 350px;">
  533. <el-form-item label="评估对象:" prop="evaluationTypeId" label-width="120px" class="postInfo-container-item">
  534. <el-select v-model="targetForm.evaluationTypeId" @change="getTypeList(targetForm.evaluationTypeId, 2)">
  535. <el-option v-for="(t, id) in assetsEvaluationTargetType" :label="t.typeName" :value="t.id"
  536. :key="t.id"></el-option>
  537. </el-select>
  538. </el-form-item>
  539. </el-col>
  540. <el-col :xs="4" :sm="12" :lg="12" :span="6">
  541. <el-form-item prop="evaluationTypeSecId" label-width="10px" class="postInfo-container-item">
  542. <el-select v-model="targetForm.evaluationTypeSecId">
  543. <el-option v-for="(t, id) in assetsSecEvaluationTargetType" :label="t.typeName" :value="t.id"
  544. :key="t.id"></el-option>
  545. </el-select>
  546. </el-form-item>
  547. </el-col>
  548. </el-row>
  549. <el-row class="row-style">
  550. <el-col :xs="24" :sm="12" :lg="12" :span="6" style="width: 345px;">
  551. <el-form-item label="产权持有人:" prop="theHolder" label-width="120px" class="postInfo-container-item">
  552. <el-input v-model="targetForm.theHolder" class="filter-item" />
  553. </el-form-item>
  554. </el-col>
  555. </el-row>
  556. <el-row class="row-style">
  557. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  558. <el-form-item label="价值类型:" prop="assetsValueId" label-width="120px" class="postInfo-container-item">
  559. <el-select v-model="targetForm.assetsValueId">
  560. <el-option v-for="(t, id) in assetsValueType" :label="t.typeName" :value="t.id" :key="t.id"></el-option>
  561. </el-select>
  562. </el-form-item>
  563. </el-col>
  564. </el-row>
  565. <el-row class="row-style">
  566. <el-col :xs="24" :sm="12" :lg="12" :span="6" style="width: 400px;">
  567. <el-form-item label="项目负责人:" label-width="120px" class="postInfo-container-item">
  568. <el-select v-model="targetForm.principalId" placeholder="请选择" readonly disabled>
  569. <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
  570. </el-select>
  571. </el-form-item>
  572. </el-col>
  573. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  574. <el-form-item label="实勘人:" prop="siteIds" label-width="120px" class="postInfo-container-item">
  575. <el-select v-model="targetForm.siteIds" placeholder="请选择" readonly disabled multiple>
  576. <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
  577. </el-select>
  578. </el-form-item>
  579. </el-col>
  580. </el-row>
  581. <el-row class="row-style">
  582. <el-col :xs="24" :sm="12" :lg="7" :span="6">
  583. <el-form-item prop="valuationBasisDate" label-width="120px" label="估价基准日:" class="postInfo-container-item">
  584. <el-date-picker v-model="targetForm.valuationBasisDate" type="date" placeholder="选择日期" style="width:100%">
  585. </el-date-picker>
  586. </el-form-item>
  587. </el-col>
  588. </el-row>
  589. <el-row class="row-style">
  590. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  591. <el-form-item label="评估方法:" prop="evaluationMethodId" label-width="120px" class="postInfo-container-item">
  592. <el-select v-model="targetForm.evaluationMethodId">
  593. <el-option v-for="(m, id) in assetsEvaluationMethod" :label="m.methodName" :value="m.id"
  594. :key="m.id"></el-option>
  595. </el-select>
  596. </el-form-item>
  597. </el-col>
  598. </el-row>
  599. <el-row class="row-style">
  600. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  601. <el-form-item label="最终选择的评估方法:" prop="choiceEvaluationMethodId" label-width="200px"
  602. class="postInfo-container-item">
  603. <el-select v-model="targetForm.choiceEvaluationMethodId">
  604. <el-option v-for="(m, id) in assetsEvaluationMethod" :label="m.methodName" :value="m.id"
  605. :key="m.id"></el-option>
  606. </el-select>
  607. </el-form-item>
  608. </el-col>
  609. </el-row>
  610. <el-row class="row-style">
  611. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  612. <el-form-item label="总资产账面值:" prop="totalAssetCarryingAmount" label-width="140px"
  613. class="postInfo-container-item">
  614. <el-input-number v-model="targetForm.totalAssetCarryingAmount" controls-position="right" :precision="2"
  615. :step="0.1"></el-input-number>
  616. <span>(万)</span>
  617. </el-form-item>
  618. </el-col>
  619. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  620. <el-form-item label="总负债账面值:" prop="totalLiabilitiesCarryingAmount" label-width="140px"
  621. class="postInfo-container-item">
  622. <el-input-number v-model="targetForm.totalLiabilitiesCarryingAmount" controls-position="right"
  623. :precision="2" :step="0.1"></el-input-number>
  624. <span>(万)</span>
  625. </el-form-item>
  626. </el-col>
  627. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  628. <el-form-item label="净资产账面值:" prop="carryingAmountOfNetAssets" label-width="140px"
  629. class="postInfo-container-item">
  630. <el-input-number v-model="targetForm.carryingAmountOfNetAssets" controls-position="right" :precision="2"
  631. :step="0.1"></el-input-number>
  632. <span>(万)</span>
  633. </el-form-item>
  634. </el-col>
  635. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  636. <el-form-item label="评估结论对应的评估值:" prop="estimatedValue" label-width="200px" class="postInfo-container-item">
  637. <el-input-number v-model="targetForm.estimatedValue" controls-position="right" :precision="2"
  638. :step="0.1"></el-input-number>
  639. <span>(万)</span>
  640. </el-form-item>
  641. </el-col>
  642. </el-row>
  643. <el-row class="row-style" v-if="currentNode.nodeCode === 'REVIEW_QUOTATION'">
  644. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  645. <el-form-item label="审核定价:" prop="checkValue" label-width="200px" class="postInfo-container-item">
  646. <el-input-number v-model="targetForm.checkValue" controls-position="right" :precision="2"
  647. :step="0.1"></el-input-number>
  648. <span>(万)</span>
  649. </el-form-item>
  650. </el-col>
  651. </el-row>
  652. <el-row class="row-style">
  653. <el-col :xs="24" :sm="12" :lg="18" :span="6">
  654. <el-form-item prop="filePath" label="资料附件:" label-width="120px" class="postInfo-container-item">
  655. <el-upload action="/api/upload" :limit="3" :on-success="changeresTarget" :on-exceed="handleExceed"
  656. :on-preview="handleAttachmentPreview" :before-remove="beforeRemove" :file-list="fileList">
  657. <el-button plain type="info" round style="width: 100%">上传附件<i
  658. class="el-icon-upload el-icon--right"></i></el-button>
  659. </el-upload>
  660. </el-form-item>
  661. </el-col>
  662. </el-row>
  663. <el-row class="row-style">
  664. <el-col :xs="24" :sm="12" :lg="23" :span="12">
  665. <el-form-item label="备注:" prop="remark" label-width="120px" class="postInfo-container-item">
  666. <el-input v-model="targetForm.remark" :autosize="{ minRows: 4, maxRows: 4 }" class="filter-item"
  667. type="textarea" />
  668. </el-form-item>
  669. </el-col>
  670. </el-row>
  671. <el-row class="row-style">
  672. <el-button v-if="saveButtonStatus" @click="assetsTargetSave" style="width:100%;">保存</el-button>
  673. <el-button v-if="updateButtonStatus" @click="assetsTargetUpdate" style="width:100%;">更新</el-button>
  674. </el-row>
  675. </el-form>
  676. </div>
  677. </el-dialog>
  678. <el-dialog :visible.sync="productionChoiceDialogVisible">
  679. <el-form ref="assetsProductionFrom" :model="assetsProductionFrom" :rules="assetsProductionFromRules">
  680. <div class="createMajor-main-container">
  681. <div class="postInfo-container">
  682. <div>
  683. <el-divider content-position="left">
  684. <h3 class="title">
  685. <div class="avatar-wrapper icon-title">产品</div>
  686. <div class="icon-info">选择产品</div>
  687. </h3>
  688. </el-divider>
  689. </div>
  690. <el-row class="row-style">
  691. <el-col :xs="24" :sm="12" :lg="12" :span="6" style="width: 800px;">
  692. <el-form-item label="产品类型:" prop="productionType" label-width="120px" class="postInfo-container-item">
  693. <el-radio v-model="assetsProductionFrom.productionType" :label="1" border size="medium">价值意见书</el-radio>
  694. <el-radio v-model="assetsProductionFrom.productionType" :label="2" border size="medium">咨询报告</el-radio>
  695. <el-radio v-model="assetsProductionFrom.productionType" :label="3" border size="medium">评估报告</el-radio>
  696. <el-radio v-model="assetsProductionFrom.productionType" :label="4" border size="medium">意见函</el-radio>
  697. </el-form-item>
  698. </el-col>
  699. </el-row>
  700. <el-row class="row-style">
  701. <el-col :xs="24" :sm="12" :lg="12" :span="6" style="width: 345px;">
  702. <el-form-item label="打印份数:" prop="printCount" label-width="120px" class="postInfo-container-item">
  703. <el-input v-model.number="assetsProductionFrom.printCount" class="filter-item" />
  704. </el-form-item>
  705. </el-col>
  706. </el-row>
  707. <el-row class="row-style">
  708. <el-button v-if="productionChoiceStatus == 0" @click="assetsProductionSave"
  709. style="width:100%;">提交</el-button>
  710. <el-button v-if="productionChoiceStatus == 1" @click="assetsProductionUpdate"
  711. style="width:100%;">提交</el-button>
  712. </el-row>
  713. </div>
  714. </div>
  715. </el-form>
  716. </el-dialog>
  717. <el-dialog :visible.sync="productionWriteDialogVisible" @close="resetProductionForm">
  718. <el-form ref="assetsProductionFrom" :model="assetsProductionFrom" :rules="assetsProductionFromRules">
  719. <div class="createMajor-main-container">
  720. <div class="postInfo-container">
  721. <div>
  722. <el-divider content-position="left">
  723. <h3 class="title">
  724. <div class="avatar-wrapper icon-title">产品</div>
  725. <div class="icon-info">撰写产品信息</div>
  726. </h3>
  727. </el-divider>
  728. </div>
  729. <el-row class="row-style">
  730. <el-col>
  731. <el-form-item label="项目名称:" prop="assetsName" label-width="120px" class="postInfo-container-item">
  732. <el-input v-model.number="assetsProductionFrom.assetsName" class="filter-item" />
  733. </el-form-item>
  734. </el-col>
  735. </el-row>
  736. <el-row class="row-style" v-if="currentNode.nodeCode === 'WRITE_REPORT'">
  737. <el-col>
  738. <el-form-item label="签字人:" prop="signatory" label-width="120px" class="postInfo-container-item">
  739. <el-select v-model="assetsProductionFrom.signatory" placeholder="请选择" multiple>
  740. <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
  741. </el-select>
  742. </el-form-item>
  743. </el-col>
  744. </el-row>
  745. <el-row class="row-style">
  746. <el-col>
  747. <el-form-item label="委托方名称:" prop="clientName" label-width="120px" class="postInfo-container-item">
  748. <el-input v-model.number="assetsProductionFrom.clientName" class="filter-item" />
  749. </el-form-item>
  750. </el-col>
  751. </el-row>
  752. <el-row class="row-style">
  753. <el-col>
  754. <el-form-item label="委托方电话:" prop="clientTel" label-width="120px" class="postInfo-container-item">
  755. <el-input v-model.number="assetsProductionFrom.clientTel" class="filter-item" />
  756. </el-form-item>
  757. </el-col>
  758. </el-row>
  759. <el-row class="row-style">
  760. <el-col>
  761. <el-form-item label="估价基准日:" prop="valuationBasisDate" label-width="120px"
  762. class="postInfo-container-item">
  763. <el-date-picker v-model="assetsProductionFrom.valuationBasisDate" type="date" placeholder="选择日期"
  764. style="width:100%">
  765. </el-date-picker>
  766. </el-form-item>
  767. </el-col>
  768. </el-row>
  769. <el-row class="row-style">
  770. <el-col>
  771. <el-form-item label="评估面积:" prop="evaluateAcreage" label-width="140px" class="postInfo-container-item">
  772. <el-input-number v-model="assetsProductionFrom.evaluateAcreage" @change="computeAmount"
  773. controls-position="right" :precision="2" :step="0.1"></el-input-number>
  774. <span>(m²)</span>
  775. </el-form-item>
  776. </el-col>
  777. </el-row>
  778. <el-row class="row-style">
  779. <el-col>
  780. <el-form-item label="评估单价:" prop="evaluatePrice" label-width="140px" class="postInfo-container-item">
  781. <el-input-number v-model="assetsProductionFrom.evaluatePrice" @change="computeAmount"
  782. controls-position="right" :precision="2" :step="0.1"></el-input-number>
  783. <span>(元)</span>
  784. </el-form-item>
  785. </el-col>
  786. </el-row>
  787. <el-row class="row-style">
  788. <el-col>
  789. <el-form-item label="评估总价:" prop="evaluateAmount" label-width="140px" class="postInfo-container-item">
  790. <el-input-number v-model="assetsProductionFrom.evaluateAmount" controls-position="right" :precision="2"
  791. :step="0.1"></el-input-number>
  792. <span>(万)</span>
  793. </el-form-item>
  794. </el-col>
  795. </el-row>
  796. <el-row class="row-style">
  797. <el-col>
  798. <el-form-item label="资产持有人:" prop="owner" label-width="120px" class="postInfo-container-item">
  799. <el-input v-model.number="assetsProductionFrom.owner" class="filter-item" />
  800. </el-form-item>
  801. </el-col>
  802. </el-row>
  803. <el-row class="row-style">
  804. <el-col>
  805. <el-form-item label="产品打印份数:" prop="printCount" label-width="150px" class="postInfo-container-item">
  806. <el-input v-model.number="assetsProductionFrom.printCount" class="filter-item" />
  807. </el-form-item>
  808. </el-col>
  809. </el-row>
  810. <el-row class="row-style">
  811. <el-col>
  812. <el-form-item label="出具产品日期:" prop="createProductionDate" label-width="150px"
  813. class="postInfo-container-item">
  814. <el-date-picker v-model="assetsProductionFrom.createProductionDate" type="date" placeholder="选择日期"
  815. style="width:100%">
  816. </el-date-picker>
  817. </el-form-item>
  818. </el-col>
  819. </el-row>
  820. <el-row class="row-style">
  821. <el-col>
  822. <el-form-item prop="filePath" label="资料附件:" label-width="120px" class="postInfo-container-item">
  823. <el-upload action="/api/upload" :limit="3" :on-success="changeresProduction" :on-exceed="handleExceed"
  824. :on-preview="handleAttachmentPreview" :before-remove="beforeRemovePro" :file-list="fileList">
  825. <el-button plain type="info" round style="width: 100%">上传附件<i
  826. class="el-icon-upload el-icon--right"></i></el-button>
  827. </el-upload>
  828. </el-form-item>
  829. </el-col>
  830. </el-row>
  831. <el-row class="row-style">
  832. <el-col>
  833. <el-form-item label="特殊情况说明:" prop="comment" label-width="150px" class="postInfo-container-item">
  834. <el-input v-model="assetsProductionFrom.comment" :autosize="{ minRows: 4, maxRows: 4 }"
  835. class="filter-item" type="textarea" />
  836. </el-form-item>
  837. </el-col>
  838. </el-row>
  839. <el-row class="row-style">
  840. <el-button @click="writeAssetsProduction" style="width:100%;">提交</el-button>
  841. </el-row>
  842. </div>
  843. </div>
  844. </el-form>
  845. </el-dialog>
  846. </div>
  847. </template>
  848. <script>
  849. import YDetailPageLayout from '@/components/YDetailPageLayout/index_detail'
  850. import WorkflowBoard from '@/components/workflowBoard'
  851. import { isNumber, phoneNumber, postiveInteger, isIdNumber } from '@/utils/validate'
  852. import { calculateTargetPrice, validateParams } from '@/utils/personalUtil'
  853. export default {
  854. name: 'assetsDetail',
  855. components: {
  856. YDetailPageLayout,
  857. WorkflowBoard
  858. },
  859. data() {
  860. return {
  861. editStatus: false,
  862. // 资产业务表单禁用状态
  863. disabledStatus: true,
  864. // 评估对象表单禁用状态
  865. targetDisabledStatus: true,
  866. // 评估对象表单保存按钮显示状态
  867. saveButtonStatus: true,
  868. // 评估对象表单更新按钮显示状态
  869. updateButtonStatus: true,
  870. couldEdit: null,
  871. couldBack: null,
  872. // 表单项目隐藏字段
  873. itemHideStatus: false,
  874. createLinkmanVisible: false,
  875. // 文件上传数组
  876. fileList: [],
  877. // 资产业务下单表单校验规则
  878. assetsFormRules: {
  879. clientManager: [
  880. { required: true, message: '客户经理不能为空', trigger: 'blur' }
  881. ],
  882. departmentId: [
  883. { required: true, message: '请选择接单部门', trigger: 'change' }
  884. ],
  885. name: [
  886. { required: true, message: '项目名称不能为空', trigger: 'blur' }
  887. ],
  888. assetsBusinessGener: [
  889. { required: true, message: '请选择业务类型', trigger: 'change' }
  890. ],
  891. entrustAgain: [
  892. { required: true, message: '请选择客户是否再次委托', trigger: 'change' }
  893. ],
  894. clienteleType: [
  895. { required: true, message: '请选择客户类型', trigger: 'change' }
  896. ],
  897. clienteleId: [
  898. { required: true, message: '请选择客户名称', trigger: 'change' }
  899. ],
  900. clienteleSubId: [
  901. { required: true, message: '请选择业务来源', trigger: 'change' }
  902. ],
  903. clienteleContactId: [
  904. { required: true, message: '请选择客户联系人', trigger: 'change' }
  905. ],
  906. security: [
  907. { required: true, message: '请选择是否证券项目', trigger: 'change' }
  908. ],
  909. significantAssetsReorganization: [
  910. { required: true, message: '请选择是否资产重组项目', trigger: 'change' }
  911. ],
  912. stateAssets: [
  913. { required: true, message: '请选择是否是否国资项目', trigger: 'change' }
  914. ],
  915. foreignAssetsInvolved: [
  916. { required: true, message: '请选择是否 是否涉及境外资产', trigger: 'change' }
  917. ],
  918. dispenseBenefit: [
  919. { required: true, message: '请选择是否是否分配产值', trigger: 'change' }
  920. ],
  921. terminalClienteleType: [
  922. { required: true, message: '请选择终端客户类型', trigger: 'change' }
  923. ],
  924. terminalClienteleId: [
  925. { required: true, message: '终端客户名称不能为空', trigger: 'blur' }
  926. ],
  927. terminalClienteleContactId: [
  928. { required: true, message: '终端联系人不能为空', trigger: 'blur' }
  929. ]
  930. },
  931. workflowLogs: [],
  932. activeName: 'workflowInfo',
  933. activeTagName: "baseInfo",
  934. nodeBusinessInfo: {
  935. currentNodePermission: {
  936. commit: true,
  937. reversible: true,
  938. restartable: true,
  939. terminable: true,
  940. skippable: true,
  941. },
  942. mainBusiness: "ASSET_BUSINESS",
  943. doWorkflow: true,
  944. businessId: null,
  945. currentNodeInstanceId: null,
  946. currentNodeInstanceCode: null,
  947. production: [],
  948. reportNos: ["川友预报字(2024)第0106-1号","川友预报字(2024)第0106-2号"],
  949. businessSubId: null,
  950. ifFeedback: null
  951. },
  952. currentNode: {
  953. flowId: null,
  954. pnodeId: null,
  955. nodeId: null,
  956. flowCode: null,
  957. nodeName: "",
  958. nodeCode: null,
  959. state: "",
  960. instanceId: null,
  961. sequence: null,
  962. restartable: null,
  963. reversible: null,
  964. skippable: null,
  965. terminable: null,
  966. tasks: []
  967. },
  968. assetsForm: {
  969. // 项目名
  970. name: null,
  971. // 客户经理id
  972. clientManagerId: this.$store.getters.userInfo.id,
  973. // 客户经理
  974. clientManagerName: this.$store.getters.userInfo.name,
  975. // 接单部门id
  976. departmentId: null,
  977. // 资产业务类型
  978. assetsBusinessGener: null,
  979. // 客户再次委托
  980. entrustAgain: null,
  981. // 客户类型(企业,个人)
  982. clienteleType: null,
  983. // 客户id
  984. clienteleId: null,
  985. // 业务来源(下级客户id)
  986. clienteleSubId: null,
  987. // 客户联系人id
  988. clienteleContactId: null,
  989. // 是否证券项目
  990. security: null,
  991. // 是否资产重组项目
  992. significantAssetsReorganization: null,
  993. // 是否国资项目
  994. stateAssets: null,
  995. // 是否涉及境外资产
  996. foreignAssetsInvolved: null,
  997. // 是否分配产值
  998. dispenseBenefit: null,
  999. // 委托人
  1000. bailor: null,
  1001. // 委托人地址
  1002. bailorAddress: null,
  1003. // 委托联系人姓名
  1004. bailorContactName: null,
  1005. // 委托人联系人电话
  1006. bailorContactTel: null,
  1007. // 终端客户id
  1008. terminalClienteleId: null,
  1009. // 终端客户类型
  1010. terminalClienteleType: null,
  1011. // 终端联系人id
  1012. terminalClienteleContactId: null,
  1013. // 备注
  1014. remark: null,
  1015. // 终端联系电话
  1016. tmobile: null,
  1017. // 分单类型
  1018. allotType: "指派",
  1019. // 项目成员
  1020. members: null,
  1021. },
  1022. // 客户联系人信息
  1023. linkmanInfo: {
  1024. },
  1025. //
  1026. pageParams: {
  1027. back: null,
  1028. row: null
  1029. },
  1030. // 业务类型下拉列表
  1031. assetsBusinessGeners: [
  1032. {
  1033. value: '单项资产',
  1034. label: '单项资产'
  1035. }, {
  1036. value: '整体资产',
  1037. label: '整体资产'
  1038. }, {
  1039. value: '无形资产',
  1040. label: '无形资产'
  1041. }, {
  1042. value: '债权',
  1043. label: '债权'
  1044. }, {
  1045. value: '其他',
  1046. label: '其他'
  1047. }
  1048. ],
  1049. // 接单部门
  1050. allotDepartment: [],
  1051. // 客户信息
  1052. customerCompany: [],
  1053. // 业务信息(二级客户)
  1054. subCustomerCompany: [],
  1055. // 客户联系人下拉列表
  1056. customerContract: [],
  1057. // 终端客户下拉列表
  1058. tCustomerCompany: [],
  1059. // 终端联系人下拉列表
  1060. tCustomerContract: [],
  1061. // 项目负责人下拉列表
  1062. principals: [],
  1063. // 用户下拉列表
  1064. allUsers: [],
  1065. // 资产评估对象信息
  1066. assetsEvaluationTarget: [],
  1067. // 估计对象总价
  1068. totalEvaluateValue: 0.00,
  1069. // 评估对象表单
  1070. targetForm: {
  1071. // 资产评估目的id
  1072. evaluationPurposeId: null,
  1073. // 资产评估对象类型一级id
  1074. evaluationTypeId: null,
  1075. // 资产评估对象类型二级id
  1076. evaluationTypeSecId: null,
  1077. // 产权持有人
  1078. theHolder: null,
  1079. // 资产价值类型id
  1080. assetsValueId: null,
  1081. // 项目负责人id
  1082. principalId: null,
  1083. // 实勘人id (json 可多个)
  1084. siteIds: [],
  1085. // 估价基准日
  1086. valuationBasisDate: null,
  1087. // 评估方法id
  1088. evaluationMethodId: null,
  1089. // 最终选择的评估方法id
  1090. choiceEvaluationMethodId: null,
  1091. // 总资产账面值(万)
  1092. totalAssetCarryingAmount: null,
  1093. // 总负债账面值(万)
  1094. totalLiabilitiesCarryingAmount: null,
  1095. // 净资产账面值(万)
  1096. carryingAmountOfNetAssets: null,
  1097. // 评估结论对应的评估值(万)
  1098. estimatedValue: null,
  1099. // 审核价格
  1100. checkValue: null,
  1101. // 资料路由信息
  1102. filePath: [],
  1103. // 资产业务id
  1104. assetsId: null
  1105. },
  1106. targetFormBack: {
  1107. evaluationPurposeId: null,
  1108. evaluationTypeId: null,
  1109. evaluationTypeSecId: null,
  1110. theHolder: null,
  1111. assetsValueId: null,
  1112. principalId: null,
  1113. siteIds: [],
  1114. valuationBasisDate: null,
  1115. evaluationMethodId: null,
  1116. choiceEvaluationMethodId: null,
  1117. totalAssetCarryingAmount: null,
  1118. totalLiabilitiesCarryingAmount: null,
  1119. carryingAmountOfNetAssets: null,
  1120. estimatedValue: null,
  1121. checkValue: null,
  1122. filePath: [],
  1123. assetsId: null
  1124. },
  1125. // 资产评估对象评估目的
  1126. assetsEvaluationTargetPurpose: [],
  1127. // 资产评估方法
  1128. assetsEvaluationMethod: [],
  1129. // 资产价值类型
  1130. assetsValueType: [],
  1131. // 资产评估对象类型
  1132. assetsEvaluationTargetType: [],
  1133. // 二级资产评估对象类型
  1134. assetsSecEvaluationTargetType: [],
  1135. // 评估对象弹窗可视状态
  1136. targetDialogVisible: false,
  1137. // 添加评估对象表单校验规则
  1138. targetFormRules: {
  1139. evaluationPurposeId: [
  1140. { required: true, message: '请选择评估目的', trigger: 'change' }
  1141. ],
  1142. evaluationTypeId: [
  1143. { required: true, message: '请选择评估对象', trigger: 'change' }
  1144. ],
  1145. evaluationTypeSecId: [
  1146. { required: true, message: '请选择评估对象', trigger: 'change' }
  1147. ],
  1148. theHolder: [
  1149. { required: true, message: '请填写产权持有人', trigger: 'blur' }
  1150. ],
  1151. assetsValueId: [
  1152. { required: true, message: '请选择价值类型', trigger: 'change' }
  1153. ],
  1154. principalId: [
  1155. { required: true, message: '请选择项目负责人', trigger: 'change' }
  1156. ],
  1157. siteIds: [
  1158. { required: true, message: '请选择实勘人', trigger: 'change' }
  1159. ],
  1160. valuationBasisDate: [
  1161. { required: true, message: '请选择价格基准日', trigger: 'change' }
  1162. ],
  1163. evaluationMethodId: [
  1164. { required: true, message: '请选择评估方法', trigger: 'change' }
  1165. ],
  1166. choiceEvaluationMethodId: [
  1167. { required: true, message: '请选择最终选择的评估方法', trigger: 'change' }
  1168. ],
  1169. totalAssetCarryingAmount: [
  1170. { required: true, message: '请填写总资产账面值', trigger: 'blur' }
  1171. ],
  1172. totalLiabilitiesCarryingAmount: [
  1173. { required: true, message: '请填写总负债账面值', trigger: 'blur' }
  1174. ],
  1175. carryingAmountOfNetAssets: [
  1176. { required: true, message: '请填写净资产账面值', trigger: 'blur' }
  1177. ],
  1178. estimatedValue: [
  1179. { required: true, message: '请填写评估结论对应的评估值', trigger: 'blur' }
  1180. ],
  1181. filePath: [
  1182. { required: true, message: '请上传附件资料', trigger: 'change' }
  1183. ]
  1184. },
  1185. // 款项信息
  1186. invoiceData: {
  1187. businessId: null,
  1188. shouldAmount: null,
  1189. realAmount: null,
  1190. leftAmount: null,
  1191. title: null,
  1192. type: null,
  1193. taxNo: null,
  1194. bankName: null,
  1195. bankAddress: null,
  1196. bankTel: null
  1197. },
  1198. // 节点任务提交dto
  1199. taskRecordDTO: {
  1200. recordId: null,
  1201. taskData: {}
  1202. },
  1203. pNode: null,
  1204. // 产品选择表单可视状态
  1205. productionChoiceDialogVisible: false,
  1206. // 产品信息撰写表单可视状态
  1207. productionWriteDialogVisible: false,
  1208. // 0:新增,1:更新
  1209. productionChoiceStatus: 0,
  1210. // 产品表单
  1211. assetsProductionFrom: {
  1212. businessId: null,
  1213. productionNo: null,
  1214. productionType: null,
  1215. signatory: [],
  1216. clientName: null,
  1217. clientTel: null,
  1218. valuationBasisDate: null,
  1219. evaluateAcreage: null,
  1220. evaluatePrice: null,
  1221. evaluateAmount: null,
  1222. owner: null,
  1223. printCount: null,
  1224. createProductionDate: null,
  1225. comment: null,
  1226. filePath: [],
  1227. assetsName: null
  1228. },
  1229. // 产品选择表单校验规则
  1230. assetsProductionFromRules: {
  1231. productionType: [
  1232. { required: true, message: '请选择产品类型', trigger: 'change' }
  1233. ],
  1234. printCount: [
  1235. { required: true, message: '请填写打印份数', trigger: 'blur' },
  1236. { type: 'number', message: '请填写数字' }
  1237. ],
  1238. signatory: [
  1239. { required: true, message: '请选择签字人', trigger: 'change' }
  1240. ],
  1241. clientName: [
  1242. { required: true, message: '请填写委托方名称', trigger: 'blur' }
  1243. ],
  1244. clientTel: [
  1245. { required: true, message: '请填写委托方电话', trigger: 'blur' }
  1246. ],
  1247. valuationBasisDate: [
  1248. { required: true, message: '请选择估价基准日', trigger: 'change' }
  1249. ],
  1250. evaluateAcreage: [
  1251. { required: true, message: '请填写评估面积', trigger: 'blur' }
  1252. ],
  1253. evaluatePrice: [
  1254. { required: true, message: '请填写评估单价', trigger: 'blur' }
  1255. ],
  1256. owner: [
  1257. { required: true, message: '请填写持有人', trigger: 'blur' }
  1258. ],
  1259. createProductionDate: [
  1260. { required: true, message: '请选择产品出具日期', trigger: 'change' }
  1261. ],
  1262. filePath: [
  1263. { required: true, message: '请上传附件资料', trigger: 'change' }
  1264. ],
  1265. assetsName: [
  1266. { required: true, message: '请填写项目名称', trigger: 'change' }
  1267. ]
  1268. },
  1269. // 资产业务取号dto
  1270. takeAssetsProductionNoDTO: {
  1271. targetIdList: [],
  1272. businessId: null,
  1273. productionType: null,
  1274. hasNotTakeNumTargetSelect: null,
  1275. selectAll: null,
  1276. printCount: null
  1277. }
  1278. }
  1279. },
  1280. watch: {
  1281. },
  1282. created() {
  1283. this.couldEdit = true;
  1284. this.couldBack = true;
  1285. // 获取页面参数
  1286. this.pageParams.back = this.$route.query.back;
  1287. this.pageParams.row = JSON.parse(this.$route.query.row);
  1288. this.nodeBusinessInfo.businessSubId=this.pageParams.row.productionNo;
  1289. this.getProductionTypes(this.pageParams.row.assetsId);
  1290. this.getCurrentNodeInfo();
  1291. this.getAllotDepartment();
  1292. this.getCustomerCompany(0);
  1293. this.getCustomerCompany(1);
  1294. this.getAssetsDetailById(this.pageParams.row.assetsId);
  1295. this.getProductionByBusinessId(this.pageParams.row.assetsId);
  1296. },
  1297. methods: {
  1298. // 根据业务id获取资产业务详情
  1299. getAssetsDetailById(id) {
  1300. this.$api.assets.getAssetsDetailById(id).then(res => {
  1301. if (res.code === 200) {
  1302. this.assetsForm = res.data;
  1303. this.assetsForm.members = JSON.parse(res.data.members);
  1304. this.initCustomerSelect(this.assetsForm.clienteleType);
  1305. this.getPrincipalByAllotDepartment();
  1306. this.getAllUser();
  1307. this.$refs.board.getInstanceQueue();
  1308. }
  1309. })
  1310. },
  1311. handleChange() {
  1312. },
  1313. workflowCommitVerify(val, callback) {
  1314. let commit = val.commit;
  1315. let verify = new Object();
  1316. verify.state = true;
  1317. verify.cleanReport = false;
  1318. verify.nextHandlerId = this.secondCheckUserId;
  1319. if (commit.state === 'PASS') {
  1320. let nodeCode = this.currentNode.nodeCode;
  1321. switch (nodeCode) {
  1322. case 'GENERATE_STATEMENT':
  1323. let notTakeNumberTargets = this.evaluateLandData.filter(function (e) {
  1324. return e.statementNo == null;
  1325. })
  1326. if (notTakeNumberTargets.length > 0) {
  1327. this.$notify({
  1328. title: '提示',
  1329. message: '还有价值意见书号未取的估价对象,请先完成取号操作。',
  1330. type: 'error',
  1331. duration: 3000
  1332. });
  1333. verify.state = false;
  1334. callback(verify);
  1335. return;
  1336. }
  1337. if (typeof (commit.businessSubId) == 'undefined' || commit.businessSubId == null || commit.ifCheckTask == null) {
  1338. this.$notify({
  1339. title: '提示',
  1340. message: '请选择一个产品后,再进行流程提交。',
  1341. type: 'error',
  1342. duration: 3000
  1343. });
  1344. verify.state = false;
  1345. callback(verify);
  1346. return;
  1347. }
  1348. let selected = this.productions.filter(function (e) {
  1349. return e.reportNo === commit.businessSubId
  1350. })
  1351. if (!selected[0].name) {
  1352. this.$notify({
  1353. title: '提示',
  1354. message: '请完成所选产品的基本信息后,再进行流程提交。',
  1355. type: 'error',
  1356. duration: 3000
  1357. });
  1358. verify.state = false;
  1359. callback(verify);
  1360. return;
  1361. }
  1362. break;
  1363. case 'WRITE_REPORT':
  1364. let notTakeReportNoTargets = this.evaluateLandData.filter(function (e) {
  1365. return e.reportNo == null;
  1366. })
  1367. if (notTakeReportNoTargets.length > 0) {
  1368. this.$notify({
  1369. title: '提示',
  1370. message: '还有报告号未取的估价对象,请先完成取号操作。',
  1371. type: 'error',
  1372. duration: 3000
  1373. });
  1374. verify.state = false;
  1375. callback(verify);
  1376. return;
  1377. }
  1378. if (typeof (commit.businessMinId) == 'undefined' || commit.businessMinId == null || commit.ifCheckTask == null) {
  1379. this.$notify({
  1380. title: '提示',
  1381. message: '请选择一个产品后,再进行流程提交。',
  1382. type: 'error',
  1383. duration: 3000
  1384. });
  1385. verify.state = false;
  1386. callback(verify);
  1387. return;
  1388. }
  1389. let selected1 = this.productions.filter(function (e) {
  1390. return e.reportNo === commit.businessMinId
  1391. })
  1392. if (!selected1[0].name) {
  1393. this.$notify({
  1394. title: '提示',
  1395. message: '请完成所选产品的基本信息后,再进行流程提交。',
  1396. type: 'error',
  1397. duration: 3000
  1398. });
  1399. verify.state = false;
  1400. callback(verify);
  1401. return;
  1402. }
  1403. break;
  1404. case 'WRITE_LETTER':
  1405. let notTakeLetterNumberTargets = this.evaluateLandData.filter(function (e) {
  1406. return e.letterNo == null;
  1407. })
  1408. if (notTakeLetterNumberTargets.length > 0) {
  1409. this.$notify({
  1410. title: '提示',
  1411. message: '还有复评函号未取的估价对象,请先完成取号操作。',
  1412. type: 'error',
  1413. duration: 3000
  1414. });
  1415. verify.state = false;
  1416. callback(verify);
  1417. return;
  1418. }
  1419. if (typeof (commit.businessMinId) == 'undefined' || commit.businessMinId == null || commit.ifCheckTask == null) {
  1420. this.$notify({
  1421. title: '提示',
  1422. message: '请选择一个产品后,再进行流程提交。',
  1423. type: 'error',
  1424. duration: 3000
  1425. });
  1426. verify.state = false;
  1427. callback(verify);
  1428. return;
  1429. }
  1430. let selected2 = this.productions.filter(function (e) {
  1431. return e.reportNo === commit.businessMinId
  1432. })
  1433. if (!selected2[0].name) {
  1434. this.$notify({
  1435. title: '提示',
  1436. message: '请完成所选产品的基本信息后,再进行流程提交。',
  1437. type: 'error',
  1438. duration: 3000
  1439. });
  1440. verify.state = false;
  1441. callback(verify);
  1442. return;
  1443. }
  1444. break;
  1445. case "CHECK_STATEMENT":
  1446. case "CHECK_REPORT":
  1447. case "CHECK_LETTER":
  1448. if (!verify.nextHandlerId) {
  1449. verify.state = false;
  1450. callback(verify);
  1451. this.chooseSecondCheckerDialog = true
  1452. this.$api.dictData.remark("MAJOR_SECOND_CHECK_USERS").then(res => {
  1453. if (res.code === 200) {
  1454. this.secondCheckUsers = res.data;
  1455. //默认复审人
  1456. this.secondCheckUserId = res.data[0].remark;
  1457. }
  1458. })
  1459. return;
  1460. }
  1461. }
  1462. callback(verify);
  1463. }
  1464. let specialNodesForReverse = ["GENERATE_STATEMENT", "WRITE_REPORT", "WRITE_LETTER"];
  1465. if (commit.state === 'REVERSE' && specialNodesForReverse.includes(this.currentNode.nodeCode)) {
  1466. this.$refs.board.getPreviousNode();
  1467. let reportNos = this.evaluateLandData.map(item => item.reportNo);
  1468. //取了子号不能退回节点
  1469. if (this.pNode.nodeCode === "QUOTATION_FEEDBACK" && reportNos[0].includes("-")) {
  1470. this.$notify({
  1471. title: '提示',
  1472. message: '该订单已取了其他子号,不能退回节点。',
  1473. type: 'info',
  1474. duration: 3000
  1475. });
  1476. verify.state = false;
  1477. verify.cleanReport = false;
  1478. callback(verify);
  1479. }
  1480. if (this.pNode.nodeCode === "QUOTATION_FEEDBACK" && !reportNos[0].includes("-")) {
  1481. verify.cleanReport = true;
  1482. callback(verify);
  1483. }
  1484. callback(verify);
  1485. }
  1486. },
  1487. goBack() {
  1488. const back = this.$route.query.back
  1489. if (back) {
  1490. this.$router.push(back)
  1491. }
  1492. },
  1493. handleClick(tab) {
  1494. },
  1495. // 改变客户类型时进行值重置的操作
  1496. changeCustomerType(val) {
  1497. // 清空联系人下拉列表
  1498. this.assetsForm.clienteleContactId = null;
  1499. this.assetsForm.clienteleSubId = null;
  1500. this.customerContract = [];
  1501. if (val === "企业") {
  1502. this.getCustomerCompany(0);
  1503. this.itemHideStatus = true;
  1504. } else {
  1505. this.getCustomerContract(1);
  1506. this.itemHideStatus = false;
  1507. }
  1508. },
  1509. initCustomerSelect(val) {
  1510. if (val === "企业") {
  1511. this.getCustomerCompany(0);
  1512. this.getCustomerContract();
  1513. this.itemHideStatus = true;
  1514. } else {
  1515. this.getCustomerContract(1);
  1516. this.itemHideStatus = false;
  1517. }
  1518. },
  1519. // 获取部门下拉列表
  1520. getAllotDepartment() {
  1521. this.$api.department.allot().then(res => {
  1522. if (res.code === 200) {
  1523. this.allotDepartment = res.data;
  1524. }
  1525. })
  1526. },
  1527. // 获取客户信息
  1528. getCustomerCompany(val) {
  1529. if (val === 0) {
  1530. let simpleAll = new Object();
  1531. simpleAll.terminal = val;
  1532. this.$api.customerCompany.simpleAll(simpleAll).then(res => {
  1533. if (res.code === 200) {
  1534. this.customerCompany = res.data;
  1535. this.findSubClientele(0);
  1536. }
  1537. })
  1538. } else {
  1539. let simpleAll = new Object();
  1540. simpleAll.terminal = val;
  1541. this.$api.customerCompany.simpleAll(simpleAll).then(res => {
  1542. if (res.code === 200) {
  1543. this.tCustomerCompany = res.data;
  1544. }
  1545. })
  1546. }
  1547. },
  1548. // 打开新建客户联系人弹窗
  1549. createLinkman(val) {
  1550. // 打开前判断是否已经选择客户信息
  1551. if (this.targetFassetsFormorm.clienteleType === "个人" || this.assetsForm.clienteleType != null && this.assetsForm.clienteleId != null && this.assetsForm.clienteleSubId != null) {
  1552. this.createLinkmanVisible = true;
  1553. this.linkmanFrom.terminal = val;
  1554. this.linkmanFrom.clienteleType = this.assetsForm.clienteleType;
  1555. this.linkmanFrom.clienteleId = this.assetsForm.clienteleId;
  1556. this.linkmanFrom.clienteleSubId = this.assetsForm.clienteleSubId;
  1557. if (this.assetsForm.clienteleType === '企业') {
  1558. this.linkmanFrom.ccId = this.assetsForm.clienteleSubId
  1559. } else {
  1560. this.assetsForm.clienteleSubId = 1;
  1561. this.linkmanFrom.ccId = this.assetsForm.clienteleSubId;
  1562. }
  1563. } else {
  1564. this.$notify({
  1565. title: '警告',
  1566. message: '请先选择客户!',
  1567. type: 'warning',
  1568. duration: 2000
  1569. });
  1570. }
  1571. },
  1572. // 获取客户联系人列表
  1573. getCustomerContract(val) {
  1574. // if (this.assetsForm.clienteleSubId) {
  1575. let simpleAll = new Object();
  1576. simpleAll.terminal = 0;
  1577. if (val === 1) {
  1578. simpleAll.ccId = val;
  1579. } else {
  1580. simpleAll.ccId = this.assetsForm.clienteleSubId;
  1581. }
  1582. this.$api.customerLinkman.simpleAll(simpleAll).then(res => {
  1583. if (res.code === 200) {
  1584. this.customerContract = res.data;
  1585. }
  1586. })
  1587. // }
  1588. },
  1589. // 获取二级客户信息(业务来源)
  1590. findSubClientele(val) {
  1591. if (val === 0) {
  1592. if (this.assetsForm.clienteleId) {
  1593. let simpleAll = new Object();
  1594. simpleAll.terminal = val;
  1595. simpleAll.parentId = this.assetsForm.clienteleId;
  1596. this.$api.customerCompany.simpleAll(simpleAll).then(res => {
  1597. if (res.code === 200) {
  1598. this.subCustomerCompany = res.data;
  1599. }
  1600. })
  1601. }
  1602. } else {
  1603. if (this.assetsForm.terminalClienteleId) {
  1604. let simpleAll = new Object();
  1605. simpleAll.terminal = val;
  1606. simpleAll.ccId = this.assetsForm.terminalClienteleId;
  1607. this.$api.customerCompany.detail(this.assetsForm.terminalClienteleId).then(res => {
  1608. if (res.code === 200) {
  1609. this.assetsForm.tmobile = res.data.phone;
  1610. }
  1611. })
  1612. }
  1613. }
  1614. },
  1615. // 打开新增终端客户弹窗
  1616. createTerminalClient() {
  1617. this.createTerminalClientVisible = true;
  1618. },
  1619. // 根据部门id获取项目负责人列表
  1620. getPrincipalByAllotDepartment() {
  1621. let departmentId = this.assetsForm.departmentId;
  1622. if (departmentId) {
  1623. this.$api.user.usersByDepartmentId(departmentId).then(res => {
  1624. if (res.code === 200) {
  1625. this.principals = res.data;
  1626. }
  1627. })
  1628. }
  1629. },
  1630. // 获取用户下拉列表
  1631. getAllUser() {
  1632. this.$api.user.simpleAll().then(res => {
  1633. if (res.code === 200) {
  1634. this.allUsers = res.data;
  1635. }
  1636. })
  1637. },
  1638. // 获取流程节点信息
  1639. getCurrentNodeInfo() {
  1640. if (this.pageParams.row.assetsId) {
  1641. this.$api.workNodeInstance.currentNode({ "mainBusiness": "ASSET_BUSINESS", "businessId": this.pageParams.row.assetsId, "businessSubId": this.pageParams.row.businessSubId, "businessMinId": this.pageParams.row.businessMinId }).then(res => {
  1642. if (res.code === 200) {
  1643. if (res.data) {
  1644. this.currentNode = res.data;
  1645. this.nodeBusinessInfo.currentInstanceNodeId = res.data.instanceId;
  1646. this.nodeBusinessInfo.currentNodeInstanceCode = res.data.nodeCode;
  1647. this.nodeBusinessInfo.currentNodePermission.restartable = res.data.restartable;
  1648. this.nodeBusinessInfo.currentNodePermission.reversible = res.data.reversible;
  1649. this.nodeBusinessInfo.currentNodePermission.skippable = res.data.skippable;
  1650. this.nodeBusinessInfo.currentNodePermission.terminable = res.data.terminable;
  1651. this.nodeBusinessInfo.businessId = this.pageParams.row.assetsId;
  1652. }
  1653. }
  1654. })
  1655. }
  1656. },
  1657. // 修改项目负责人与项目成员信息
  1658. updatePrincipalAndMembers() {
  1659. let assetsPrincipalMembers = new Object();
  1660. assetsPrincipalMembers.id = this.assetsForm.id;
  1661. assetsPrincipalMembers.principalId = this.assetsForm.principalId;
  1662. assetsPrincipalMembers.members = JSON.stringify(this.assetsForm.members);
  1663. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  1664. this.taskRecordDTO.taskData = assetsPrincipalMembers;
  1665. this.$api.assets.updatePrincipalAndMembers(this.taskRecordDTO).then(res => {
  1666. if (res.code === 200 && res.data) {
  1667. this.$notify({
  1668. title: '成功',
  1669. message: '保存成功,请提交节点继续流程。',
  1670. type: 'success',
  1671. duration: 2000
  1672. });
  1673. }
  1674. })
  1675. },
  1676. // 根据节点返回不同的操作按钮信息
  1677. hanlderType() {
  1678. if (this.currentNode) {
  1679. if (this.currentNode.nodeCode === 'SPOT_RECONNAISSANCE') {
  1680. return "编辑";
  1681. }
  1682. if (this.currentNode.nodeCode === 'INITIAL_PRICE') {
  1683. return "定价";
  1684. }
  1685. if (this.currentNode.nodeCode === 'REVIEW_QUOTATION') {
  1686. return "审核定价";
  1687. }
  1688. return "查看";
  1689. }
  1690. },
  1691. // 根据资产业务id获取资产业务评估对象集合
  1692. getAETargetListByAssetsId() {
  1693. let aETargetListSelectDTO = { businessId: null, productionNo: null }
  1694. aETargetListSelectDTO.businessId = this.assetsForm.id;
  1695. aETargetListSelectDTO.productionNo = this.pageParams.row.productionNo;
  1696. this.$api.assets.getAETargetListByAssetsId(aETargetListSelectDTO).then(res => {
  1697. if (res.code === 200) {
  1698. this.assetsEvaluationTarget = res.data;
  1699. for (let i = 0; i < res.data.length; i++) {
  1700. // this.nodeBusinessInfo.reportNos.push(res.data[i].productionNo);
  1701. }
  1702. }
  1703. })
  1704. },
  1705. // 获取所有资产评估目的集合
  1706. getPurpose() {
  1707. this.$api.assets.getPurpose().then(res => {
  1708. if (res.code === 200) {
  1709. this.assetsEvaluationTargetPurpose = res.data;
  1710. }
  1711. })
  1712. },
  1713. // 获取所有评估方法集合
  1714. getAssetsEvaluationMethod() {
  1715. this.$api.assets.getAssetsEvaluationMethod().then(res => {
  1716. if (res.code === 200) {
  1717. this.assetsEvaluationMethod = res.data;
  1718. }
  1719. })
  1720. },
  1721. // 获取所有资产价值类型
  1722. getAssetsValueType() {
  1723. this.$api.assets.getAssetsValueType().then(res => {
  1724. if (res.code === 200) {
  1725. this.assetsValueType = res.data;
  1726. }
  1727. })
  1728. },
  1729. // 根据父级id获取资产评估对象类型(id可为空)
  1730. getTypeList(val, level) {
  1731. let parentId = val;
  1732. // 每次进入方法清空二级下拉选择
  1733. // this.targetForm.evaluationTypeSecId = null;
  1734. this.assetsSecEvaluationTargetType = [];
  1735. this.$api.assets.getTypeList(parentId).then(res => {
  1736. if (res.code === 200) {
  1737. if (level == 1) {
  1738. // 等级为1赋值给assetsEvaluationTargetType
  1739. this.assetsEvaluationTargetType = res.data;
  1740. } else {
  1741. // 其他赋值给assetsEvaluationTargetType
  1742. this.assetsSecEvaluationTargetType = res.data;
  1743. }
  1744. }
  1745. })
  1746. },
  1747. // 打开新增评估对象弹窗表单
  1748. openTargetDialog() {
  1749. // 可视状态为true
  1750. this.targetDialogVisible = true;
  1751. // 初始表单所需信息
  1752. this.targetForm.principalId = this.assetsForm.principalId;
  1753. this.targetForm.siteIds = this.assetsForm.members;
  1754. if (this.assetsEvaluationTargetPurpose.length == 0 || this.assetsEvaluationMethod.length == 0 || this.assetsValueType.length == 0 || this.assetsEvaluationTargetType.length == 0) {
  1755. this.getPurpose();
  1756. this.getAssetsEvaluationMethod();
  1757. this.getAssetsValueType();
  1758. this.getTypeList(0, 1);
  1759. }
  1760. },
  1761. // 文件选择改变触发事件
  1762. changeresTarget(res, file, fileList) {
  1763. // 上传成功向表单附件信息数组添加信息
  1764. if (res.code === 200) {
  1765. this.targetForm.filePath.push({ name: file.name, url: res.data.url });
  1766. } else {
  1767. this.$notify({
  1768. title: '错误',
  1769. message: '电子文档上传失败',
  1770. type: 'error',
  1771. duration: 2000
  1772. });
  1773. }
  1774. },
  1775. changeresProduction(res, file, fileList) {
  1776. // 上传成功向表单附件信息数组添加信息
  1777. if (res.code === 200) {
  1778. this.assetsProductionFrom.filePath.push({ name: file.name, url: res.data.url });
  1779. } else {
  1780. this.$notify({
  1781. title: '错误',
  1782. message: '电子文档上传失败',
  1783. type: 'error',
  1784. duration: 2000
  1785. });
  1786. }
  1787. },
  1788. // 文件上传数量限制
  1789. handleExceed() {
  1790. this.$message.warning(`当前限制选择 3个文件!`);
  1791. },
  1792. // 打开Windows文件选择器
  1793. handleAttachmentPreview(file) {
  1794. window.open(file.url)
  1795. },
  1796. // 移除文件
  1797. beforeRemove(file, fileList) {
  1798. fileList = fileList.filter((o) => {
  1799. return o.name !== file.name
  1800. });
  1801. this.targetForm.filePath = this.targetForm.filePath.filter((o) => {
  1802. return o.name !== file.name
  1803. });
  1804. },
  1805. // 移除文件
  1806. beforeRemovePro(file, fileList) {
  1807. fileList = fileList.filter((o) => {
  1808. return o.name !== file.name
  1809. });
  1810. this.assetsProductionFrom.filePath = this.assetsProductionFrom.filePath.filter((o) => {
  1811. return o.name !== file.name
  1812. });
  1813. },
  1814. resettargetForm() {
  1815. this.targetForm = this.targetFormBack;
  1816. this.fileList = [];
  1817. },
  1818. clear() {
  1819. if (this.$refs.targetForm !== undefined) {
  1820. this.$refs.targetForm.clearValidate();
  1821. }
  1822. },
  1823. // 保存新增资产业务评估对象
  1824. assetsTargetSave() {
  1825. this.$refs.targetForm.validate(valid => {
  1826. if (valid) {
  1827. this.targetForm.assetsId = this.assetsForm.id;
  1828. this.targetForm.siteIds = JSON.stringify(this.targetForm.siteIds);
  1829. this.targetForm.filePath = JSON.stringify(this.targetForm.filePath);
  1830. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  1831. this.taskRecordDTO.taskData = this.targetForm;
  1832. this.$api.assets.assetsTargetSave(this.taskRecordDTO).then(res => {
  1833. if (res.code === 200) {
  1834. this.$notify({
  1835. title: '成功',
  1836. message: '添加资产业务评估对象成功!',
  1837. type: 'success',
  1838. duration: 2000
  1839. });
  1840. setTimeout(() => {
  1841. this.targetDialogVisible = false;
  1842. //获取评估对象列表
  1843. this.getAETargetListByAssetsId();
  1844. }, 2000);
  1845. }
  1846. })
  1847. }
  1848. })
  1849. },
  1850. // 根据id获取资产评估对象详情
  1851. getAssetsTargetDetail(id) {
  1852. this.$api.assets.getAssetsTargetDetail(id).then(res => {
  1853. if (res.code === 200) {
  1854. this.targetForm = res.data;
  1855. this.targetForm.siteIds = JSON.parse(res.data.siteIds);
  1856. this.targetForm.filePath = JSON.parse(res.data.filePath);
  1857. this.fileList = this.targetForm.filePath
  1858. this.getTypeList(this.targetForm.evaluationTypeId, 2);
  1859. this.openTargetDialog();
  1860. }
  1861. })
  1862. },
  1863. // 更新资产评估对象
  1864. assetsTargetUpdate() {
  1865. this.$refs.targetForm.validate(valid => {
  1866. if (valid) {
  1867. this.targetForm.assetsId = this.targetForm.id;
  1868. this.targetForm.siteIds = JSON.stringify(this.targetForm.siteIds);
  1869. this.targetForm.filePath = JSON.stringify(this.targetForm.filePath);
  1870. this.$api.assets.assetsTargetUpdate(this.targetForm).then(res => {
  1871. if (res.code === 200) {
  1872. this.$notify({
  1873. title: '成功',
  1874. message: '更新资产业务评估对象成功!',
  1875. type: 'success',
  1876. duration: 2000
  1877. });
  1878. setTimeout(() => {
  1879. this.targetDialogVisible = false;
  1880. //获取评估对象列表
  1881. this.getAETargetListByAssetsId();
  1882. }, 2000);
  1883. }
  1884. })
  1885. }
  1886. })
  1887. },
  1888. // 删除资产评估对象
  1889. assetsTargetDelete(id) {
  1890. this.$api.assets.assetsTargetDelete(id).then(res => {
  1891. if (res.code === 200) {
  1892. this.$notify({
  1893. title: '成功',
  1894. message: '删除资产业务评估对象成功!',
  1895. type: 'success',
  1896. duration: 2000
  1897. });
  1898. this.getAETargetListByAssetsId();
  1899. }
  1900. })
  1901. },
  1902. // 根据不同情况打开的评估对象表单可编辑状态不同
  1903. changeStatus(val) {
  1904. if (val == "edit") {
  1905. this.targetDisabledStatus = false;
  1906. this.updateButtonStatus = true;
  1907. this.saveButtonStatus = false;
  1908. } else if (val == "add") {
  1909. this.targetDisabledStatus = false;
  1910. this.saveButtonStatus = true;
  1911. this.updateButtonStatus = false;
  1912. } else if (val == "detail") {
  1913. this.targetDisabledStatus = true;
  1914. this.saveButtonStatus = false;
  1915. this.updateButtonStatus = false;
  1916. }
  1917. },
  1918. // 根据业务id获取资产业务款项信息
  1919. getOrderFundInvoiceById() {
  1920. this.$api.assets.getOrderFundInvoiceById(this.assetsForm.id).then(res => {
  1921. if (res.code === 200) {
  1922. if (res.data != null) {
  1923. this.invoiceData = res.data;
  1924. this.invoiceData.leftAmount = this.invoiceData.shouldAmount - this.invoiceData.realAmount;
  1925. }
  1926. }
  1927. })
  1928. },
  1929. // 获取产品信息类型
  1930. getProductionTypes(id) {
  1931. this.$api.assets.getProductionTypes(id).then(res => {
  1932. if (res.code === 200) {
  1933. this.nodeBusinessInfo.production = res.data;
  1934. }
  1935. })
  1936. },
  1937. // 提交节点
  1938. commit(state) {
  1939. this.$refs.board.commit(state);
  1940. },
  1941. getPreviousNode(pNode) {
  1942. this.pNode = pNode;
  1943. },
  1944. // 打开产品选择表单弹窗
  1945. openProductionDialog() {
  1946. this.productionChoiceDialogVisible = true;
  1947. this.getProductionByBusinessId(this.pageParams.row.assetsId);
  1948. },
  1949. // 根据业务id获取是否已选择产品
  1950. getProductionByBusinessId(id) {
  1951. this.$api.assets.getProductionByBusinessId(id).then(res => {
  1952. if (res.code === 200) {
  1953. // 产品信息不为null,则证明已经选择过产品,将按钮改为修改
  1954. if (res.data !== null) {
  1955. this.assetsProductionFrom = res.data;
  1956. this.productionChoiceStatus = 1;
  1957. }
  1958. }
  1959. })
  1960. },
  1961. // 选择产品,新增产品信息
  1962. assetsProductionSave() {
  1963. this.$refs.assetsProductionFrom.validate(valid => {
  1964. if (valid) {
  1965. this.assetsProductionFrom.businessId = this.assetsForm.id;
  1966. if (this.assetsProductionFrom.productionType == 1) {
  1967. // 价值意见书
  1968. this.assetsProductionFrom.productionType = 'STATEMENT';
  1969. } else if (this.assetsProductionFrom.productionType == 4) {
  1970. // 意见函
  1971. this.assetsProductionFrom.productionType = 'LETTER';
  1972. } else if (this.assetsProductionFrom.productionType == 2) {
  1973. // 咨询报告
  1974. this.assetsProductionFrom.productionType = 'CONSULT';
  1975. } else {
  1976. // 评估报告
  1977. this.assetsProductionFrom.productionType = 'REPORT';
  1978. }
  1979. this.assetsProductionFrom.filePath = JSON.stringify(this.assetsProductionFrom.filePath);
  1980. this.assetsProductionFrom.signatory = JSON.stringify(this.assetsProductionFrom.signatory);
  1981. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  1982. this.taskRecordDTO.taskData = this.assetsProductionFrom;
  1983. this.$api.assets.assetsProductionSave(this.taskRecordDTO).then(res => {
  1984. if (res.code === 200) {
  1985. this.$notify({
  1986. title: '成功',
  1987. message: '选择产品成功!请继续提交流程节点!',
  1988. type: 'success',
  1989. duration: 2000
  1990. });
  1991. this.getProductionTypes(this.assetsForm.id);
  1992. this.productionChoiceDialogVisible = false;
  1993. this.$refs.assetsProductionFrom.resetFields();
  1994. }
  1995. })
  1996. }
  1997. })
  1998. },
  1999. // 选择产品,更新已选择产品信息
  2000. assetsProductionUpdate() {
  2001. this.$refs.assetsProductionFrom.validate(valid => {
  2002. if (valid) {
  2003. this.assetsProductionFrom.businessId = this.assetsForm.id;
  2004. if (this.assetsProductionFrom.productionType == 1) {
  2005. // 价值意见书
  2006. this.assetsProductionFrom.productionType = 'STATEMENT';
  2007. } else if (this.assetsProductionFrom.productionType == 4) {
  2008. // 意见函
  2009. this.assetsProductionFrom.productionType = 'LETTER';
  2010. } else {
  2011. // 报告
  2012. this.assetsProductionFrom.productionType = 'REPORT';
  2013. }
  2014. this.assetsProductionFrom.filePath = JSON.stringify(this.assetsProductionFrom.filePath);
  2015. this.assetsProductionFrom.signatory = JSON.stringify(this.assetsProductionFrom.signatory);
  2016. this.$api.assets.assetsProductionUpdate(this.assetsProductionFrom).then(res => {
  2017. if (res.code === 200) {
  2018. this.$notify({
  2019. title: '成功',
  2020. message: '选择产品成功!',
  2021. type: 'success',
  2022. duration: 2000
  2023. });
  2024. this.getProductionTypes(this.assetsForm.id);
  2025. this.productionChoiceDialogVisible = false;
  2026. this.$refs.assetsProductionFrom.resetFields();
  2027. }
  2028. })
  2029. }
  2030. })
  2031. },
  2032. // 资产产品取号
  2033. takeAssetsProductionNo() {
  2034. // 提交的要取号数组长度与table长度一致则是全部取号
  2035. if (this.takeAssetsProductionNoDTO.targetIdList.length === this.assetsEvaluationTarget.length) {
  2036. this.takeAssetsProductionNoDTO.selectAll = true;
  2037. } else {
  2038. this.takeAssetsProductionNoDTO.selectAll = false;
  2039. }
  2040. // 判断表格中是否还有未选择且未取号的评估对象,返回布尔
  2041. let notTakeNumTargetSelect = this.assetsEvaluationTarget.filter(item => !this.takeAssetsProductionNoDTO.targetIdList.includes(item.id));
  2042. this.takeAssetsProductionNoDTO.hasNotTakeNumTargetSelect = notTakeNumTargetSelect.some(target => target.productionNo === null || target.productionNo === '');
  2043. this.takeAssetsProductionNoDTO.businessId = this.assetsForm.id;
  2044. this.takeAssetsProductionNoDTO.productionType = this.nodeBusinessInfo.production[0];
  2045. this.getProductionByBusinessId(this.assetsForm.id);
  2046. this.takeAssetsProductionNoDTO.printCount = this.assetsProductionFrom.printCount;
  2047. if (!this.takeAssetsProductionNoDTO.targetIdList.length == 0) {
  2048. this.$api.assets.takeAssetsProductionNo(this.takeAssetsProductionNoDTO).then(res => {
  2049. if (res.code === 200) {
  2050. this.$notify({
  2051. title: '成功',
  2052. message: '产品取号成功!',
  2053. type: 'success',
  2054. duration: 2000
  2055. });
  2056. this.pageParams.row.productionNo = res.data;
  2057. this.getAETargetListByAssetsId();
  2058. }
  2059. })
  2060. } else {
  2061. this.$notify({
  2062. title: '警告',
  2063. message: '您必须选择至少一个评估对象!',
  2064. type: 'warning',
  2065. duration: 2000
  2066. });
  2067. }
  2068. },
  2069. // 资产评估对象选取数据处理
  2070. targetSelectionChange(val) {
  2071. this.takeAssetsProductionNoDTO.targetIdList = val;
  2072. this.takeAssetsProductionNoDTO.targetIdList = this.takeAssetsProductionNoDTO.targetIdList.map(selection => selection.id);
  2073. },
  2074. // 判断行数据是否可选
  2075. selectable(row) {
  2076. if (row.productionNo != null && row.productionNo != '') {
  2077. return false;
  2078. } else {
  2079. return true;
  2080. }
  2081. },
  2082. openWriteProductionDialog() {
  2083. this.productionWriteDialogVisible = true;
  2084. this.getAssetsProductionDetail();
  2085. },
  2086. // 根据业务id与产品号获取资产产品详细信息
  2087. getAssetsProductionDetail() {
  2088. let assetsProductionDetailDTO = { businessId: null, productionNo: null };
  2089. assetsProductionDetailDTO.businessId = this.assetsForm.id;
  2090. assetsProductionDetailDTO.productionNo = this.pageParams.row.productionNo;
  2091. this.$api.assets.getAssetsProductionDetail(assetsProductionDetailDTO).then(res => {
  2092. if (res.code == 200 && res.data !== null) {
  2093. this.assetsProductionFrom.printCount = res.data.printCount;
  2094. this.assetsProductionFrom.clientName = this.assetsForm.bailorContactName;
  2095. this.assetsProductionFrom.clientTel = this.assetsForm.bailorContactTel;
  2096. this.assetsProductionFrom.assetsName = this.assetsForm.name;
  2097. this.assetsProductionFrom.owner = this.assetsEvaluationTarget[0].theHolder;
  2098. this.assetsProductionFrom.valuationBasisDate = this.assetsEvaluationTarget[0].valuationBasisDate;
  2099. this.assetsProductionFrom.filePath = [];
  2100. this.assetsProductionFrom.signatory = [];
  2101. console.log(this.assetsProductionFrom);
  2102. }
  2103. })
  2104. },
  2105. // 当产品单价或面积改变时触发
  2106. computeAmount() {
  2107. this.assetsProductionFrom.evaluateAmount = (this.assetsProductionFrom.evaluatePrice * this.assetsProductionFrom.evaluateAcreage) / 10000;
  2108. },
  2109. // 资产撰写产品(意见书和报告都是这个接口)
  2110. writeAssetsProduction() {
  2111. this.assetsProductionFrom.filePath = JSON.stringify(this.assetsProductionFrom.filePath);
  2112. if (this.assetsProductionFrom.signatory.length > 0) {
  2113. this.assetsProductionFrom.signatory = JSON.stringify(this.assetsProductionFrom.signatory);
  2114. } else {
  2115. this.assetsProductionFrom.signatory = null;
  2116. }
  2117. this.assetsProductionFrom.businessId = this.assetsForm.id;
  2118. this.assetsProductionFrom.productionNo = this.assetsEvaluationTarget[0].productionNo;
  2119. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2120. this.taskRecordDTO.taskData = this.assetsProductionFrom;
  2121. this.$api.assets.writeAssetsProduction(this.taskRecordDTO).then(res => {
  2122. if (res.code == 200) {
  2123. this.$notify({
  2124. title: '成功',
  2125. message: '产品撰写成功!请继续提交流程节点!',
  2126. type: 'success',
  2127. duration: 2000
  2128. });
  2129. }
  2130. })
  2131. },
  2132. resetProductionForm() {
  2133. this.fileList = [];
  2134. }
  2135. }
  2136. }
  2137. </script>
  2138. <style lang="scss" scoped>
  2139. .row-style {
  2140. margin-left: 40px;
  2141. margin-right: 1%;
  2142. }
  2143. .major-radio {
  2144. width: 92px
  2145. }
  2146. .task-class {
  2147. /deep/ .el-form-item__label {
  2148. color: red;
  2149. }
  2150. }
  2151. .evaluate-table {
  2152. margin-left: 40px;
  2153. margin-top: 35px;
  2154. }
  2155. .pane-class {
  2156. height: 800px;
  2157. width: 100%;
  2158. overflow-y: scroll;
  2159. }
  2160. /deep/ .cell-class {
  2161. font-size: 13px;
  2162. color: black;
  2163. }
  2164. .table {
  2165. /deep/ thead {
  2166. .el-table-column--selection {
  2167. .cell {
  2168. display: none;
  2169. }
  2170. }
  2171. }
  2172. }
  2173. /deep/.doWarehouseClass {
  2174. border-radius: 10px;
  2175. }
  2176. .button-area {
  2177. position: absolute;
  2178. top: 20px;
  2179. right: 50px;
  2180. }
  2181. .error-type {
  2182. margin-right: 5px;
  2183. }
  2184. .error-type:hover {
  2185. cursor: pointer;
  2186. }
  2187. .box-card {
  2188. margin-top: 40px
  2189. }
  2190. .time {
  2191. font-size: 13px;
  2192. color: #999;
  2193. float: right;
  2194. margin-top: 5px;
  2195. }
  2196. .bottom {
  2197. margin-top: 13px;
  2198. line-height: 12px;
  2199. }
  2200. .button {
  2201. float: left;
  2202. }
  2203. .image {
  2204. width: 100%;
  2205. padding: 0%;
  2206. display: block;
  2207. }
  2208. .control {
  2209. z-index: 999;
  2210. position: relative;
  2211. top: 10px;
  2212. }
  2213. </style>