todoDetail.vue 113 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474
  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> 项目编号:{{nodeBusinessInfo.businessSubId}}</span>
  10. </span>
  11. <span style="font-size:15px; margin-left:15px;letter-spacing:2px; color:RGB(168,168,168)">
  12. 点击展开查看实时流程图
  13. </span>
  14. </template>
  15. <WorkflowBoard ref='board' @workflowCommitVerify="workflowCommitVerify" :nodeBusinessInfo="nodeBusinessInfo"/>
  16. </el-collapse-item>
  17. </el-collapse>
  18. <div class="button-area">
  19. <el-button v-if="nodeBusinessInfo.currentNodePermission.commit" class="y-save" type="success" round @click="commit('PASS')" :disabled="!nodeBusinessInfo.doWorkflow">提交</el-button>
  20. <el-button v-if="nodeBusinessInfo.currentNodePermission.reversible" class="y-save" type="warning" round @click="commit('REVERSE')" :disabled="!nodeBusinessInfo.doWorkflow">退回</el-button>
  21. <el-button v-if="nodeBusinessInfo.currentNodePermission.skippable" class="y-save" type="warning" round @click="commit('SKIP')" :disabled="!nodeBusinessInfo.doWorkflow">跳过</el-button>
  22. <el-button v-if="nodeBusinessInfo.currentNodePermission.terminable" class="y-save" type="danger" round @click="commit('TERMINATE')" :disabled="!nodeBusinessInfo.doWorkflow">终止</el-button>
  23. <el-button v-if="nodeBusinessInfo.currentNodePermission.restartable" class="y-save" type="danger" round @click="commit('RESTART')" :disabled="!nodeBusinessInfo.doWorkflow">重置</el-button>
  24. <el-button class="y-save" round type="info" @click="goBack">返回</el-button>
  25. </div>
  26. <el-tabs v-model="activeTagName" @tab-click="handleClick" type="border-card">
  27. <el-tab-pane name="order" class="pane-class" :lazy=true>
  28. <span slot="label"><i class="el-icon-document"></i> 个贷订单</span>
  29. <y-detail-page-layout :name="'order'" :edit-status="false">
  30. <el-form ref="personalForm" :model="personal">
  31. <div class="createMajor-main-container">
  32. <div class="postInfo-container">
  33. <div>
  34. <el-divider content-position="left">
  35. <h3 class="title">
  36. <div class="avatar-wrapper icon-title">订单</div>
  37. <div class="icon-info">个贷订单</div>
  38. </h3>
  39. </el-divider>
  40. </div>
  41. <el-row class="row-style">
  42. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  43. <el-form-item
  44. label="项目编号:"
  45. prop="orderId"
  46. label-width="120px"
  47. class="postInfo-container-item"
  48. >
  49. <el-input :value="personal.orderId" class="filter-item" readonly style=" width: 225px" />
  50. </el-form-item>
  51. </el-col>
  52. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  53. <el-form-item
  54. label="评估目的:"
  55. prop="evaluateAim"
  56. label-width="120px"
  57. class="postInfo-container-item"
  58. >
  59. <el-select v-model="personal.evaluateAim" placeholder="请选择">
  60. <el-option label="按揭" value="按揭"></el-option>
  61. <el-option label="抵押" value="抵押"></el-option>
  62. <el-option label="咨询" value="咨询"></el-option>
  63. </el-select>
  64. </el-form-item>
  65. </el-col>
  66. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  67. <el-form-item
  68. label="房屋用途:"
  69. prop="purpose"
  70. label-width="160px"
  71. class="postInfo-container-item"
  72. >
  73. <el-checkbox-group v-model="personal.purpose">
  74. <el-checkbox-button label="HOUSE" name="purpose">住宅</el-checkbox-button>
  75. <el-checkbox-button label="BUSINESS" name="purpose">商业</el-checkbox-button>
  76. <el-checkbox-button label="OFFICE" name="purpose">办公</el-checkbox-button>
  77. <el-checkbox-button label="INDUSTRIAL" name="purpose">工业</el-checkbox-button>
  78. <el-checkbox-button label="OTHER" name="purpose">其他</el-checkbox-button>
  79. </el-checkbox-group>
  80. </el-form-item>
  81. </el-col>
  82. </el-row>
  83. <el-row class="row-style">
  84. <el-col :xs="12" :sm="12" :lg="23" :span="6">
  85. <el-form-item
  86. label="坐落:"
  87. prop="location"
  88. label-width="120px"
  89. class="postInfo-container-item"
  90. >
  91. <el-input v-model="personal.location" class="filter-item" style=" width: 100%"/>
  92. </el-form-item>
  93. </el-col>
  94. </el-row>
  95. <el-row class="row-style">
  96. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  97. <el-form-item
  98. label="客户类型:"
  99. prop="clienteleType"
  100. label-width="120px"
  101. class="postInfo-container-item"
  102. >
  103. <el-select v-model="personal.clienteleType" placeholder="请选择" >
  104. <el-option label="企业" value="企业"></el-option>
  105. <el-option label="个人" value="个人"></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
  111. label="客户名称:"
  112. prop="clienteleId"
  113. label-width="120px"
  114. class="postInfo-container-item"
  115. >
  116. <el-input :value="personal.clientName" class="filter-item" style=" width: 225px"/>
  117. </el-form-item>
  118. </el-col>
  119. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  120. <el-form-item
  121. label="业务来源:"
  122. prop="clienteleSubId"
  123. label-width="120px"
  124. class="postInfo-container-item"
  125. >
  126. <el-input :value="personal.clientSubName" class="filter-item" style=" width: 225px" />
  127. </el-form-item>
  128. </el-col>
  129. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  130. <el-form-item
  131. label="客户联系人:"
  132. prop="clienteleContactId"
  133. label-width="120px"
  134. class="postInfo-container-item"
  135. >
  136. <el-input :value="personal.contactName" class="filter-item" style=" width: 225px"/>
  137. </el-form-item>
  138. </el-col>
  139. </el-row>
  140. <el-row class="row-style">
  141. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  142. <el-form-item
  143. label="联系人电话:"
  144. prop="clienteleContactId"
  145. label-width="120px"
  146. class="postInfo-container-item"
  147. >
  148. <el-input :value="personal.contactTel" class="filter-item" style=" width: 225px"/>
  149. </el-form-item>
  150. </el-col>
  151. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  152. <el-form-item
  153. label="联系人部门:"
  154. prop="clienteleContactId"
  155. label-width="120px"
  156. class="postInfo-container-item"
  157. >
  158. <el-input :value="personal.cdepartment" class="filter-item" style=" width: 225px"/>
  159. </el-form-item>
  160. </el-col>
  161. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  162. <el-form-item
  163. label="联系人职务:"
  164. prop="clienteleContactId"
  165. label-width="120px"
  166. class="postInfo-container-item"
  167. >
  168. <el-input :value="personal.cduty" class="filter-item" style=" width: 225px"/>
  169. </el-form-item>
  170. </el-col>
  171. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  172. <el-form-item
  173. label="中介:"
  174. prop="agent"
  175. label-width="120px"
  176. class="postInfo-container-item"
  177. >
  178. <el-input :value="personal.agent" class="filter-item" style=" width: 225px" />
  179. </el-form-item>
  180. </el-col>
  181. </el-row>
  182. <el-row class="row-style">
  183. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  184. <el-form-item
  185. label="贷款性质:"
  186. prop="loanNature"
  187. label-width="120px"
  188. class="postInfo-container-item"
  189. >
  190. <el-input v-model="personal.loanNature" class="filter-item" style=" width: 225px" />
  191. </el-form-item>
  192. </el-col>
  193. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  194. <el-form-item
  195. label="贷款用途:"
  196. prop="loanAim"
  197. label-width="120px"
  198. class="postInfo-container-item"
  199. >
  200. <el-input v-model="personal.loanAim" class="filter-item" style=" width: 225px" />
  201. </el-form-item>
  202. </el-col>
  203. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  204. <el-form-item
  205. label="贷款额度:"
  206. prop="loanLimit"
  207. label-width="120px"
  208. class="postInfo-container-item"
  209. >
  210. <el-input v-model="personal.loanLimit" class="filter-item" style=" width: 225px" >
  211. <template slot="append">万元</template>
  212. </el-input>
  213. </el-form-item>
  214. </el-col>
  215. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  216. <el-form-item
  217. label="贷款期限:"
  218. prop="loanPeriod"
  219. label-width="120px"
  220. class="postInfo-container-item"
  221. >
  222. <el-input v-model="personal.loanPeriod" class="filter-item" style=" width: 225px" >
  223. <template slot="append">年</template>
  224. </el-input>
  225. </el-form-item>
  226. </el-col>
  227. </el-row>
  228. <el-row class="row-style">
  229. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  230. <el-form-item
  231. label="贷款是否到期:"
  232. prop="loanExpire"
  233. label-width="140px"
  234. class="postInfo-container-item"
  235. >
  236. <el-radio v-model="personal.loanExpire" :label="false" border >否</el-radio>
  237. <el-radio v-model="personal.loanExpire" :label="true" border >是</el-radio>
  238. </el-form-item>
  239. </el-col>
  240. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  241. <el-form-item
  242. label="资料说明:"
  243. prop="credentials"
  244. label-width="120px"
  245. class="postInfo-container-item"
  246. >
  247. <el-checkbox-group v-model="personal.credentials">
  248. <el-checkbox-button label="HOUSE_CERTIFICATE" name="credentials">房产证</el-checkbox-button>
  249. <el-checkbox-button label="LAND_CERTIFICATE" name="credentials">国土证</el-checkbox-button>
  250. <el-checkbox-button label="IMMOVABLE_CERTIFICATE" name="credentials">不动产权证</el-checkbox-button>
  251. </el-checkbox-group>
  252. </el-form-item>
  253. </el-col>
  254. </el-row>
  255. <el-row class="row-style">
  256. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  257. <el-form-item
  258. label="委托人1:"
  259. prop="bailorA"
  260. label-width="120px"
  261. class="postInfo-container-item"
  262. >
  263. <el-input v-model="personal.bailorA" class="filter-item" style=" width: 225px" />
  264. </el-form-item>
  265. </el-col>
  266. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  267. <el-form-item
  268. label="委托人1电话:"
  269. prop="bailorATel"
  270. label-width="120px"
  271. class="postInfo-container-item"
  272. >
  273. <el-input v-model="personal.bailorATel" class="filter-item" style=" width: 225px"/>
  274. </el-form-item>
  275. </el-col>
  276. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  277. <el-form-item
  278. label="委托人2:"
  279. prop="bailorB"
  280. label-width="120px"
  281. class="postInfo-container-item"
  282. >
  283. <el-input v-model="personal.bailorB" class="filter-item" style=" width: 225px" />
  284. </el-form-item>
  285. </el-col>
  286. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  287. <el-form-item
  288. label="委托人2电话:"
  289. prop="bailorBTel"
  290. label-width="120px"
  291. class="postInfo-container-item"
  292. >
  293. <el-input v-model="personal.bailorBTel" class="filter-item" style=" width: 225px" />
  294. </el-form-item>
  295. </el-col>
  296. </el-row>
  297. <el-row class="row-style">
  298. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  299. <el-form-item
  300. label="终端客户类型:"
  301. prop="terminalClienteleType"
  302. label-width="140px"
  303. class="postInfo-container-item"
  304. >
  305. <el-select v-model="personal.terminalClienteleType" placeholder="请选择" style="width:205px">
  306. <el-option label="企业" value="企业"></el-option>
  307. <el-option label="个人" value="个人"></el-option>
  308. </el-select>
  309. </el-form-item>
  310. </el-col>
  311. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-show="personal.terminalClienteleType==='企业'">
  312. <el-form-item
  313. label="终端客户名称:"
  314. prop="terminalClienteleId"
  315. label-width="140px"
  316. class="postInfo-container-item"
  317. >
  318. <el-input :value="personal.tterminalClienteleName" class="filter-item" style="width:225px" />
  319. </el-form-item>
  320. </el-col>
  321. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-show="personal.terminalClienteleType==='个人'">
  322. <el-form-item
  323. label="终端联系人:"
  324. prop="terminalClienteleContactId"
  325. label-width="120px"
  326. class="postInfo-container-item"
  327. >
  328. <el-input :value="personal.tterminalClienteleContactName" class="filter-item" style=" width: 225px"/>
  329. </el-form-item>
  330. </el-col>
  331. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  332. <el-form-item
  333. label="终端联系电话:"
  334. prop="clienteleType"
  335. label-width="130px"
  336. class="postInfo-container-item"
  337. >
  338. <el-input :value="personal.tmobile" class="filter-item" style=" width: 215px"/>
  339. </el-form-item>
  340. </el-col>
  341. </el-row>
  342. <el-row class="row-style">
  343. <el-col :xs="24" :sm="12" :lg="23" :span="12">
  344. <el-form-item
  345. label="订单备注:"
  346. prop="remark"
  347. label-width="120px"
  348. class="postInfo-container-item"
  349. >
  350. <el-input :value="personal.remark" class="filter-item" type="text"/>
  351. </el-form-item>
  352. </el-col>
  353. </el-row>
  354. </div>
  355. </div>
  356. </el-form>
  357. </y-detail-page-layout>
  358. <el-form ref="personalMemberForm" :model="personal" :rules="rules">
  359. <div class="createMajor-main-container">
  360. <div class="postInfo-container">
  361. <div>
  362. <el-divider content-position="left">
  363. <h3 class="title">
  364. <div class="avatar-wrapper icon-title">人员</div>
  365. <div class="icon-info">项目人员</div>
  366. </h3>
  367. </el-divider>
  368. </div>
  369. <el-row class="row-style">
  370. <el-col :xs="24" :sm="12" :lg="5" :span="6">
  371. <el-form-item
  372. label="客户经理:"
  373. prop="clientManager"
  374. label-width="120px"
  375. class="postInfo-container-item"
  376. >
  377. <el-input :value="personal.clientManager" class="filter-item" readonly disabled style=" width: 225px" />
  378. </el-form-item>
  379. </el-col>
  380. <el-col :xs="24" :sm="12" :lg="5" :span="6">
  381. <el-form-item
  382. label="内业人员:"
  383. prop="inwardStaffName"
  384. label-width="120px"
  385. class="postInfo-container-item"
  386. >
  387. <el-input :value="personal.inwardStaffName" class="filter-item" readonly disabled style=" width: 225px" />
  388. </el-form-item>
  389. </el-col>
  390. <el-col :xs="24" :sm="12" :lg="5" :span="6">
  391. <el-form-item
  392. label="外业人员:"
  393. prop="outwardStaff"
  394. label-width="120px"
  395. class="postInfo-container-item"
  396. >
  397. <el-tooltip v-if="currentNode.nodeCode==='DEPARTMENT_ALLOCATION'"
  398. placement="top-start"
  399. content="请确定外业人员"
  400. :manual=true
  401. v-model="outwardStaffTip"
  402. >
  403. <el-select v-model="personal.outwardStaff" filterable clearable>
  404. <el-option
  405. v-for="(item,id) in outwardStaffs" :key="item.id" :label="item.name" :value="item.id">
  406. </el-option>
  407. </el-select>
  408. </el-tooltip>
  409. <el-input :value="personal.outwardStaffName" class="filter-item" readonly disabled style=" width: 225px" v-else />
  410. </el-form-item>
  411. </el-col>
  412. <el-col :xs="24" :sm="12" :lg="5" :span="6">
  413. <el-form-item
  414. label="定价内业:"
  415. prop="pricingStaffName"
  416. label-width="120px"
  417. class="postInfo-container-item"
  418. >
  419. <el-input :value="personal.pricingStaffName" class="filter-item" readonly disabled style=" width: 225px" />
  420. </el-form-item>
  421. </el-col>
  422. <el-col :xs="24" :sm="12" :lg="4" :span="6">
  423. <el-form-item
  424. label-width="160px"
  425. >
  426. <el-button v-if="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'" type="primary" round @click="saveOutwardStaff()">保存</el-button>
  427. </el-form-item>
  428. </el-col>
  429. </el-row>
  430. </div>
  431. </div>
  432. </el-form>
  433. </el-tab-pane>
  434. <el-tab-pane id="evaluteObject" name="evaluate" class="pane-class" :lazy=true>
  435. <span slot="label"><i class="el-icon-office-building"></i> 评估对象</span>
  436. <el-form ref="targetForm" :model="target">
  437. <div class="createMajor-main-container">
  438. <div class="postInfo-container">
  439. <div>
  440. <el-divider content-position="left">
  441. <h3 class="title">
  442. <div class="avatar-wrapper icon-title">价格</div>
  443. <div class="icon-info">评估价格</div>
  444. </h3>
  445. </el-divider>
  446. </div>
  447. </div>
  448. </div>
  449. <el-row class="row-style">
  450. <el-col :xs="24" :sm="12" :lg="2" :span="6">
  451. <el-form-item
  452. label="线上计算:"
  453. prop="acreage"
  454. label-width="140px"
  455. class="postInfo-container-item"
  456. >
  457. <el-switch v-model="target.isOnline" active-color="#13ce66" inactive-color="#ff4949" @change="calculateSwith()" :readonly="currentNode.nodeCode!='DETERMINE_PRICE'" :disabled="currentNode.nodeCode!='DETERMINE_PRICE'"></el-switch>
  458. </el-form-item>
  459. </el-col>
  460. <el-col :xs="12" :sm="12" :lg="20" :span="6">
  461. <el-form-item
  462. label="坐落:"
  463. prop="location"
  464. label-width="140px"
  465. class="postInfo-container-item"
  466. >
  467. <el-input :value="target.location" class="filter-item" disabled readonly style=" width: 100%"/>
  468. </el-form-item>
  469. </el-col>
  470. </el-row>
  471. <el-row class="row-style">
  472. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  473. <el-form-item
  474. label="评估面积(平):"
  475. prop="acreage"
  476. label-width="140px"
  477. :rules="{required: true, message: '评估面积不能为空', trigger: 'blur'}"
  478. class="postInfo-container-item"
  479. >
  480. <el-input-number v-model="target.acreage" size="medium" controls-position="right" :min="0" :step="0.1" :max="10000"></el-input-number>
  481. </el-form-item>
  482. </el-col>
  483. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  484. <el-form-item
  485. label="评估单价(元):"
  486. prop="price"
  487. label-width="140px"
  488. :rules="{required: true, message: '评估单价不能为空', trigger: 'blur'}"
  489. class="postInfo-container-item"
  490. >
  491. <el-input-number v-model="target.price" size="medium" controls-position="right" :min="0"></el-input-number>
  492. </el-form-item>
  493. </el-col>
  494. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  495. <el-form-item
  496. label="评估总价(元):"
  497. prop="amount"
  498. label-width="140px"
  499. :rules="{required: true, message: '评估总价不能为空', trigger: 'blur'}"
  500. class="postInfo-container-item"
  501. >
  502. <el-input-number v-model="target.amount" size="medium" controls-position="right" :min="0"></el-input-number>
  503. </el-form-item>
  504. </el-col>
  505. <el-col :xs="24" :sm="12" :lg="6" :span="6" >
  506. <el-button v-show="!target.isOnline" type="text" @click="savePrice()" v-if="currentNode.nodeCode==='DETERMINE_PRICE'">保存价格</el-button>
  507. </el-col>
  508. </el-row>
  509. </el-form>
  510. <el-form ref="compareToForm" :model="compareList" v-if="target.isOnline">
  511. <div class="createMajor-main-container">
  512. <div class="postInfo-container">
  513. <div>
  514. <el-divider content-position="left">
  515. <h3 class="title">
  516. <div class="avatar-wrapper icon-title">实例</div>
  517. <div class="icon-info">可比实例</div>
  518. </h3>
  519. </el-divider>
  520. </div>
  521. </div>
  522. </div>
  523. <el-card class="box-card" >
  524. <el-row class="row-style">
  525. <el-col :xs="24" :sm="12" :lg="5" :span="6">
  526. <el-form-item
  527. label="修正系数:"
  528. prop="fixValue"
  529. label-width="120px"
  530. :rules="{required: true, message: '修正系数不能为空', trigger: 'blur'}"
  531. class="postInfo-container-item"
  532. >
  533. <el-input-number v-model="compareList.fixValue" :step="0.1" :min="1" size="medium" controls-position="right"></el-input-number>
  534. </el-form-item>
  535. </el-col>
  536. <el-col :xs="24" :sm="12" :lg="5" :span="6">
  537. <el-form-item
  538. label="是否划拨:"
  539. prop="rightsType"
  540. label-width="120px"
  541. :rules="{required: true, message: '是否划拨不能为空', trigger: 'blur'}"
  542. class="postInfo-container-item"
  543. >
  544. <el-select v-model="compareList.rightsType" placeholder="请选择" @change="selectRightsType()">
  545. <el-option label="划拨" value="ALLOT">划拨</el-option>
  546. <el-option label="出让" value="SELL">出让</el-option>
  547. </el-select>
  548. </el-form-item>
  549. </el-col>
  550. <el-col :xs="24" :sm="12" :lg="5" :span="6" v-if="compareList.rightsType==='ALLOT'">
  551. <el-form-item
  552. label="环线位置:"
  553. prop="rollingLevel"
  554. label-width="120px"
  555. :rules="{required: compareList.rightsType==='ALLOT', message: '是否划拨不能为空', trigger: 'blur'}"
  556. class="postInfo-container-item"
  557. >
  558. <el-select v-model="compareList.rollingLevel" placeholder="请选择" @change="selectRoll()">
  559. <el-option label="二环内" :value=1>二环内</el-option>
  560. <el-option label="二至三环" :value=2>二至三环</el-option>
  561. <el-option label="三环外" :value=3>三环外</el-option>
  562. </el-select>
  563. </el-form-item>
  564. </el-col>
  565. <el-col :xs="24" :sm="12" :lg="5" :span="6">
  566. <el-form-item
  567. label="计算方式:"
  568. prop="calculateType"
  569. label-width="120px"
  570. :rules="{required: true, message: '计算方式不能为空', trigger: 'blur'}"
  571. class="postInfo-container-item"
  572. >
  573. <el-select v-model="compareList.calculateType" clearable placeholder="请选择" @change="selectCalculateType()">
  574. <el-option label="简单算术平均" value="SIMPLE">简单算术平均</el-option>
  575. <el-option label="加权算术平均" value="WEIGHT">加权算术平均</el-option>
  576. </el-select>
  577. </el-form-item>
  578. </el-col>
  579. <el-col :xs="24" :sm="12" :lg="3" :span="6" style="float:right">
  580. <el-button type="text" @click="calulate()" v-if="currentNode.nodeCode==='DETERMINE_PRICE'">计算价格</el-button>
  581. <el-button type="text" @click="saveCalulateResult()" v-if="currentNode.nodeCode==='DETERMINE_PRICE'">保存价格</el-button>
  582. </el-col>
  583. </el-row>
  584. <el-table v-loading="calculating"
  585. element-loading-text="正在计算..."
  586. element-loading-spinner="el-icon-loading"
  587. element-loading-background="rgba(144, 147, 153, 0.5)" :data="compareList.analysisData" border="border" stripe :header-cell-style="{ color:'#606266'}">
  588. <el-table-column prop="index" label="指标" width="180" align="center">
  589. <template scope="scope">
  590. <span v-if="requiredIndex.includes(scope.row.index)" style="color:red">* </span>
  591. <span >{{ scope.row.index }}</span>
  592. </template>
  593. </el-table-column>
  594. <el-table-column prop="compareA" label="实例A" align="center">
  595. <template scope="scope" style="float:right">
  596. <div v-if="needWeight.includes(scope.row.index)">
  597. <el-input style="width:60%" v-model="scope.row.compareA.valueA"/>
  598. <el-input-number v-model="scope.row.compareA.weight" :max="150"
  599. :min="1" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  600. </div>
  601. <div v-else-if="scope.row.index==='市场状况'">
  602. <el-date-picker
  603. v-model="scope.row.compareA.valueA"
  604. type="month" style="width:60%"
  605. placeholder="选择月">
  606. </el-date-picker>
  607. <el-input-number v-model="scope.row.compareA.weight" :max="150"
  608. :min="1" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  609. </div>
  610. <div v-else-if="scope.row.index==='楼层/总楼层'">
  611. <el-input style="width:27%" v-model="scope.row.compareA.valueA"/>
  612. <span style="margin-left:2%;margin-right:2%">/</span>
  613. <el-input style="width:27%" v-model="scope.row.compareA.valueB"/>
  614. <el-input-number v-model="scope.row.compareA.weight"
  615. :min="1" :max="150" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  616. </div>
  617. <div v-else-if="scope.row.index==='修正后价格'">
  618. <span v-if="scope.row.compareA.valueA" style="color:RGB(144,147,153);font-weight:bold;font-size:20px">¥{{parseFloat(scope.row.compareA.valueA).toLocaleString()}}</span>
  619. </div>
  620. <div v-else-if="scope.row.index==='权重' ">
  621. <el-input-number v-if="compareList.calculateType==='WEIGHT' " v-model="scope.row.compareA.valueA" style="width:100%;"
  622. :min="0" :max="1" size="small" :step="0.1" controls-position="right"></el-input-number>
  623. </div>
  624. <div v-else-if="scope.row.index==='总价(元)' || scope.row.index==='单价(元)' ">
  625. <el-input-number v-model="scope.row.compareA.valueA" style="width:100%;"
  626. :min="0" size="small" controls-position="right"></el-input-number>
  627. </div>
  628. <div v-else-if="scope.row.index==='总价(元)' || scope.row.index==='单价(元)' ">
  629. <el-input-number v-model="scope.row.compareA.valueA" style="width:100%;"
  630. :min="0" size="small" controls-position="right"></el-input-number>
  631. </div>
  632. <div v-else-if="scope.row.index==='室内装饰'">
  633. <el-select v-model="scope.row.compareA.valueA" placeholder="请选择" style="width:60%">
  634. <el-option label="精装" value="精装">精装</el-option>
  635. <el-option label="中等装修" value="中等装修">中等装修</el-option>
  636. <el-option label="简装" value="简装">简装</el-option>
  637. <el-option label="清水" value="清水">清水</el-option>
  638. </el-select>
  639. <el-input-number v-model="scope.row.compareA.weight" :max="150"
  640. :min="1" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  641. </div>
  642. <div v-else>
  643. <el-input style="width:100%" v-model="scope.row.compareA.valueA"/>
  644. </div>
  645. </template>
  646. </el-table-column>
  647. <el-table-column prop="compareB" label="实例B" align="center">
  648. <template scope="scope" style="float:right">
  649. <div v-if="needWeight.includes(scope.row.index)">
  650. <el-input style="width:60%" v-model="scope.row.compareB.valueA"/>
  651. <el-input-number v-model="scope.row.compareB.weight" :max="150"
  652. :min="1" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  653. </div>
  654. <div v-else-if="scope.row.index==='市场状况'">
  655. <el-date-picker
  656. v-model="scope.row.compareB.valueA"
  657. type="month" style="width:60%"
  658. placeholder="选择月">
  659. </el-date-picker>
  660. <el-input-number v-model="scope.row.compareB.weight" :max="150"
  661. :min="1" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  662. </div>
  663. <div v-else-if="scope.row.index==='楼层/总楼层'">
  664. <el-input style="width:27%" v-model="scope.row.compareB.valueA"/>
  665. <span style="margin-left:2%;margin-right:2%">/</span>
  666. <el-input style="width:27%" v-model="scope.row.compareB.valueB"/>
  667. <el-input-number v-model="scope.row.compareB.weight"
  668. :min="1" :max="150" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  669. </div>
  670. <div v-else-if="scope.row.index==='修正后价格'">
  671. <span v-if="scope.row.compareB.valueA" style="color:RGB(144,147,153);font-weight:bold;font-size:20px">¥{{parseFloat(scope.row.compareB.valueA).toLocaleString()}}</span>
  672. </div>
  673. <div v-else-if="scope.row.index==='权重'">
  674. <el-input-number v-if="compareList.calculateType==='WEIGHT' " v-model="scope.row.compareB.valueA" style="width:100%;"
  675. :min="0" :max="1" size="small" :step="0.1" controls-position="right"></el-input-number>
  676. </div>
  677. <div v-else-if="scope.row.index==='总价(元)' || scope.row.index==='单价(元)' ">
  678. <el-input-number v-model="scope.row.compareB.valueA" style="width:100%;"
  679. :min="0" size="small" controls-position="right"></el-input-number>
  680. </div>
  681. <div v-else-if="scope.row.index==='室内装饰'">
  682. <el-select v-model="scope.row.compareB.valueA" placeholder="请选择" style="width:60%">
  683. <el-option label="精装" value="精装">精装</el-option>
  684. <el-option label="简装" value="简装">简装</el-option>
  685. <el-option label="清水" value="清水">清水</el-option>
  686. </el-select>
  687. <el-input-number v-model="scope.row.compareB.weight" :max="150"
  688. :min="1" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  689. </div>
  690. <div v-else>
  691. <el-input style="width:100%" v-model="scope.row.compareB.valueA"/>
  692. </div>
  693. </template>
  694. </el-table-column>
  695. <el-table-column prop="compareC" label="实例C" align="center">
  696. <template scope="scope" style="float:right">
  697. <div v-if="needWeight.includes(scope.row.index)">
  698. <el-input style="width:60%" v-model="scope.row.compareC.valueA"/>
  699. <el-input-number v-model="scope.row.compareC.weight" :max="150"
  700. :min="1" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  701. </div>
  702. <div v-else-if="scope.row.index==='市场状况'">
  703. <el-date-picker
  704. v-model="scope.row.compareC.valueA"
  705. type="month" style="width:60%"
  706. placeholder="选择月">
  707. </el-date-picker>
  708. <el-input-number v-model="scope.row.compareC.weight" :max="150"
  709. :min="1" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  710. </div>
  711. <div v-else-if="scope.row.index==='楼层/总楼层'">
  712. <el-input style="width:27%" v-model="scope.row.compareC.valueA"/>
  713. <span style="margin-left:2%;margin-right:2%">/</span>
  714. <el-input style="width:27%" v-model="scope.row.compareC.valueB"/>
  715. <el-input-number v-model="scope.row.compareC.weight"
  716. :min="1" :max="150" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  717. </div>
  718. <div v-else-if="scope.row.index==='修正后价格'">
  719. <span v-if="scope.row.compareC.valueA" style="color:RGB(144,147,153);font-weight:bold;font-size:20px">¥{{parseFloat(scope.row.compareC.valueA).toLocaleString()}}</span>
  720. </div>
  721. <div v-else-if="scope.row.index==='权重'">
  722. <el-input-number v-if="compareList.calculateType==='WEIGHT' " v-model="scope.row.compareC.valueA" style="width:100%;"
  723. :min="0" :max="1" size="small" :step="0.1" controls-position="right"></el-input-number>
  724. </div>
  725. <div v-else-if="scope.row.index==='总价(元)' || scope.row.index==='单价(元)' ">
  726. <el-input-number v-model="scope.row.compareC.valueA" style="width:100%;"
  727. :min="0" size="small" controls-position="right"></el-input-number>
  728. </div>
  729. <div v-else-if="scope.row.index==='室内装饰'">
  730. <el-select v-model="scope.row.compareC.valueA" placeholder="请选择" style="width:60%">
  731. <el-option label="精装" value="精装">精装</el-option>
  732. <el-option label="简装" value="简装">简装</el-option>
  733. <el-option label="清水" value="清水">清水</el-option>
  734. </el-select>
  735. <el-input-number v-model="scope.row.compareC.weight" :max="150"
  736. :min="1" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  737. </div>
  738. <div v-else>
  739. <el-input style="width:100%" v-model="scope.row.compareC.valueA"/>
  740. </div>
  741. </template>
  742. </el-table-column>
  743. <el-table-column prop="target" label="评估对象" align="center">
  744. <template scope="scope" style="float:right">
  745. <div v-if="needWeight.includes(scope.row.index)">
  746. <el-input style="width:60%" v-model="scope.row.target.valueA"/>
  747. <el-input-number v-model="scope.row.target.weight"
  748. :min="1" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  749. </div>
  750. <div v-else-if="scope.row.index==='市场状况'">
  751. <el-date-picker
  752. v-model="scope.row.target.valueA"
  753. type="month" style="width:60%"
  754. placeholder="选择月">
  755. </el-date-picker>
  756. <el-input-number v-model="scope.row.target.weight" :max="150"
  757. :min="1" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  758. </div>
  759. <div v-else-if="scope.row.index==='楼层/总楼层'">
  760. <el-input style="width:27%" v-model="scope.row.target.valueA"/>
  761. <span style="margin-left:2%;margin-right:2%">/</span>
  762. <el-input style="width:27%" v-model="scope.row.target.valueB"/>
  763. <el-input-number v-model="scope.row.target.weight" :max="150"
  764. :min="1" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  765. </div>
  766. <div v-else-if="scope.row.index==='修正后价格'">
  767. <span v-if="scope.row.target.valueA" style="color:red;font-weight:bold;font-size:20px">¥{{parseFloat(scope.row.target.valueA).toLocaleString()}}</span>
  768. </div>
  769. <div v-else-if="scope.row.index==='权重'">
  770. <el-input-number v-if="false" v-model="scope.row.target.valueA" style="width:100%;"
  771. :min="0" :max="1" size="small" :step="0.1" controls-position="right"></el-input-number>
  772. </div>
  773. <div v-else-if="scope.row.index==='总价(元)' || scope.row.index==='单价(元)' ">
  774. <el-input-number disabled readonly v-model="scope.row.target.valueA" style="width:100%;"
  775. :min="0" size="small" controls-position="right"></el-input-number>
  776. </div>
  777. <div v-else-if="scope.row.index==='室内装饰'">
  778. <el-select v-model="scope.row.target.valueA" placeholder="请选择" style="width:60%">
  779. <el-option label="精装" value="精装">精装</el-option>
  780. <el-option label="简装" value="简装">简装</el-option>
  781. <el-option label="清水" value="清水">清水</el-option>
  782. </el-select>
  783. <el-input-number v-model="scope.row.target.weight" :max="150"
  784. :min="1" size="small" controls-position="right" style="width:30%;margin-left:10%"></el-input-number>
  785. </div>
  786. <div v-else>
  787. <el-input style="width:100%" v-model="scope.row.target.valueA"/>
  788. </div>
  789. </template>
  790. </el-table-column>
  791. </el-table>
  792. </el-card>
  793. </el-form>
  794. </el-tab-pane>
  795. <el-tab-pane name="certificateInfo" class="pane-class" :lazy=true>
  796. <span slot="label"><i class="el-icon-office-building"></i> 证件信息</span>
  797. <div class="createMajor-main-container">
  798. <div class="postInfo-container">
  799. <div>
  800. <el-divider content-position="left">
  801. <h3 class="title">
  802. <div class="avatar-wrapper icon-title">证件</div>
  803. <div class="icon-info">换证</div>
  804. </h3>
  805. </el-divider>
  806. <div style="margin-left:40px;margin-bottom:50px;margin-top:30px">
  807. <el-checkbox-group v-model="personal.credentials">
  808. <el-checkbox-button label="HOUSE_CERTIFICATE" name="credentials">房产证</el-checkbox-button>
  809. <el-checkbox-button label="LAND_CERTIFICATE" name="credentials" >国土证</el-checkbox-button>
  810. <el-checkbox-button label="IMMOVABLE_CERTIFICATE" name="credentials" >不动产权证</el-checkbox-button>
  811. </el-checkbox-group>
  812. </div>
  813. </div>
  814. <div>
  815. <el-divider content-position="left">
  816. <div>
  817. <h3 class="title">
  818. <div class="avatar-wrapper icon-title">证件</div>
  819. <div class="icon-info">证件详情</div>
  820. </h3>
  821. </div>
  822. </el-divider>
  823. </div>
  824. <el-card class="box-card">
  825. <el-collapse v-model="certificateName" accordion>
  826. <el-collapse-item name="1" v-show="showCred.showHouseCer">
  827. <template slot="title">
  828. <span style="font-weight:bold;margin-left:30px;margin-right:10px" class="el-icon-document">房产证</span>
  829. </template>
  830. <HouseCertificate :id="target.id" :linkAttributes="linkAttributes" :houseCertificateObject="target.houseCertificate" :editStatus="certificateCouldEdit"></HouseCertificate>
  831. </el-collapse-item>
  832. <el-collapse-item name="2" v-show="showCred.showLandCer">
  833. <template slot="title">
  834. <span style="font-weight:bold;margin-left:30px;margin-right:10px" class="el-icon-document">国土证</span>
  835. </template>
  836. <LandCertificate :id="target.id" :landCertificateObject="target.landCertificate" :editStatus="certificateCouldEdit"></LandCertificate>
  837. </el-collapse-item>
  838. <el-collapse-item name="3" v-show="showCred.showImmovableCer">
  839. <template slot="title">
  840. <span style="font-weight:bold;margin-left:30px;margin-right:10px" class="el-icon-document">不动产权证</span>
  841. </template>
  842. <ImmovableCertificate :id="target.id" :linkAttributes="linkAttributes" :immovableCertificateObject="target.immovableCertificate" :editStatus="certificateCouldEdit"></ImmovableCertificate>
  843. </el-collapse-item>
  844. <el-collapse-item name="4" v-show="showCred.showleaseCer">
  845. <template slot="title">
  846. <span style="font-weight:bold;margin-left:30px;margin-right:10px" class="el-icon-document">租赁合同</span>
  847. </template>
  848. </el-collapse-item>
  849. <el-collapse-item name="5" v-show="showCred.showIdCer">
  850. <template slot="title">
  851. <span style="font-weight:bold;margin-left:30px;margin-right:10px" class="el-icon-document">身份证</span>
  852. </template>
  853. </el-collapse-item>
  854. </el-collapse>
  855. </el-card>
  856. </div>
  857. </div>
  858. </el-tab-pane>
  859. <el-tab-pane name="otherInfo" class="pane-class" :lazy=true>
  860. <span slot="label"><i class="el-icon-office-building"></i> 附加信息</span>
  861. <div class="createMajor-main-container">
  862. <div class="postInfo-container">
  863. <div>
  864. <el-divider content-position="left">
  865. <h3 class="title">
  866. <div class="avatar-wrapper icon-title">附加</div>
  867. <div class="icon-info">附加信息</div>
  868. </h3>
  869. </el-divider>
  870. </div>
  871. <el-card class="box-card">
  872. <el-collapse v-model="otherInfo" accordion>
  873. <el-collapse-item name="4">
  874. <template slot="title">
  875. <span style="font-weight:bold;margin-left:30px;margin-right:10px" class="el-icon-document">实物状况</span>
  876. </template>
  877. <EntityInfo ref="entityCompent" :id="target.id" :linkAttributes="linkAttributes" :entityInfoObject="target.entityInfo" :editStatus="certificateCouldEdit"></EntityInfo>
  878. </el-collapse-item>
  879. <el-collapse-item name="5">
  880. <template slot="title">
  881. <span style="font-weight:bold;margin-left:30px;margin-right:10px" class="el-icon-document">区位状况</span>
  882. </template>
  883. <BackgroundInfo :id="target.id" :backgroundInfoObject="target.backgroundInfo" :editStatus="certificateCouldEdit"></BackgroundInfo>
  884. </el-collapse-item>
  885. <el-collapse-item name="6">
  886. <template slot="title">
  887. <span style="font-weight:bold;margin-left:30px;margin-right:10px" class="el-icon-document">变现能力分析</span>
  888. </template>
  889. <SellingAbilityInfo :id="target.id" :sellingAbilityInfoObject="target.sellingAbility" :editStatus="certificateCouldEdit"></SellingAbilityInfo>
  890. </el-collapse-item>
  891. </el-collapse>
  892. </el-card>
  893. </div>
  894. </div>
  895. </el-tab-pane>
  896. <el-tab-pane name="producution" class="pane-class" :lazy=true>
  897. <span slot="label"><i class="el-icon-document-checked"></i> 产品信息</span>
  898. <div class="createMajor-main-container">
  899. <div class="postInfo-container">
  900. <div>
  901. <el-divider content-position="left">
  902. <h3 class="title">
  903. <div class="avatar-wrapper icon-title">反馈</div>
  904. <div class="icon-info">客户反馈</div>
  905. </h3>
  906. </el-divider>
  907. </div>
  908. <el-form ref="feedbackFrom" class="form-container" style="margin-top:30px" :rules="rules">
  909. <el-row >
  910. <el-col :xs="24" :sm="12" :lg="8" :span="6">
  911. <el-form-item
  912. label="出具产品类型:"
  913. prop="production"
  914. label-width="160px"
  915. class="postInfo-container-item"
  916. >
  917. <el-checkbox-group v-model="feedback" style="width:300px">
  918. <el-checkbox-button label="STATEMENT" name="production">价值意见书</el-checkbox-button>
  919. <el-checkbox-button label="REPORT" name="production">报告</el-checkbox-button>
  920. <el-checkbox-button label="LETTER" name="production">复评函</el-checkbox-button>
  921. <el-tooltip class="item" effect="dark" content="只出具价值意见书,不再出具其他产品。" placement="top-start">
  922. <el-checkbox-button v-if="currentNode.nodeCode ==='STATEMENT_FEEDBACK'" label="NONE" name="production">不再出具</el-checkbox-button>
  923. </el-tooltip>
  924. </el-checkbox-group>
  925. </el-form-item>
  926. </el-col>
  927. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="currentNode.nodeCode==='QUOTATION_FEEDBACK' || currentNode.nodeCode==='STATEMENT_FEEDBACK'">
  928. <el-button type="primary" round plain @click="saveFeedback()">保存反馈</el-button>
  929. </el-col>
  930. </el-row>
  931. </el-form>
  932. </div>
  933. </div>
  934. <div class="createMajor-main-container">
  935. <div class="postInfo-container">
  936. <div>
  937. <el-divider content-position="left">
  938. <h3 class="title">
  939. <div class="avatar-wrapper icon-title">产品</div>
  940. <div class="icon-info">产品信息</div>
  941. </h3>
  942. </el-divider>
  943. </div>
  944. </div>
  945. </div>
  946. <div v-if="showProds" style="display: flex;margin-top: 100px; width: 100%;">
  947. <el-card :body-style="{ padding: '0px'}" shadow="always" style="margin-left: 5%; margin-right: 5%; width: 20%;" v-if="hasStatement">
  948. <img :src="statementCardPNG" class="image">
  949. <div style="padding: 14px;">
  950. <span>房地产意见书</span>
  951. <span class="checked">{{ statementProd.checkState }}<i v-if="statementProd.checkState" class="el-icon-circle-check"></i></span>
  952. <time class="time">{{ statementProd.modified }}</time>
  953. <div class="control" >
  954. <el-button type="text" class="button" @click="doStamp(statementProd.files)" :disabled="currentNode.nodeCode!='GENERATE_STATEMENT'">加盖公章</el-button>
  955. <el-button type="text" class="button" @click="warehouse()" :disabled="currentNode.nodeCode!='STATEMENT_IN' && currentNode.nodeCode!='STATEMENT_OUT'">出入库</el-button>
  956. <el-button type="text" class="button" @click="genProductionFile(1)" :disabled="currentNode.nodeCode!='GENERATE_STATEMENT'">系统生成</el-button>
  957. </div>
  958. </div>
  959. <el-upload style="position: relative; top: -10px; padding: 10px;"
  960. :action="'/api/personalProduction/upload/'+target.id+'/1'" :file-list="statementProd.files"
  961. :limit="1" :on-exceed="handleExceed" :on-preview="handleAttachmentPreview" :on-success="getProductions"
  962. :before-remove="handleRemoveFile" >
  963. <el-button type="text" style="position: relative; left: 10px;top: -4px;" :disabled="currentNode.nodeCode!='GENERATE_STATEMENT'">手动上传</el-button>
  964. </el-upload>
  965. </el-card>
  966. <el-card :body-style="{ padding: '0px' }" shadow="always" style="margin-left: 5%; margin-right: 5%;width: 20%;" v-if="hasReport">
  967. <img :src="technicCardPNG" class="image">
  968. <div style="padding: 14px;">
  969. <span>技术报告</span>
  970. <span class="checked">{{ technicReportProd.checkState }}<i v-if="technicReportProd.checkState" class="el-icon-circle-check"></i></span>
  971. <time class="time">{{ technicReportProd.modified }}</time>
  972. <div class="control">
  973. <el-button type="text" class="button" @click="doStamp(technicReportProd.files)" :disabled="currentNode.nodeCode!='WRITE_REPORT'">加盖公章</el-button>
  974. <el-button type="text" class="button" @click="warehouse()" :disabled="currentNode.nodeCode!='REPORT_IN' && currentNode.nodeCode!='REPORT_OUT'">出入库</el-button>
  975. <el-button type="text" class="button" @click="genProductionFile(2)" :disabled="currentNode.nodeCode!='WRITE_REPORT'">系统生成</el-button>
  976. </div>
  977. </div>
  978. <el-upload style="position: relative; top: -10px; padding: 10px;"
  979. :action="'/api/personalProduction/upload/'+target.id+'/2'" :file-list="technicReportProd.files"
  980. :limit="1" :on-exceed="handleExceed" :on-preview="handleAttachmentPreview" :on-success="getProductions"
  981. :before-remove="handleRemoveFile">
  982. <el-button type="text" style="position: relative; left: 10px;top: -4px;" :disabled="currentNode.nodeCode!='WRITE_REPORT'">手动上传</el-button>
  983. </el-upload>
  984. </el-card>
  985. <el-card :body-style="{ padding: '0px'}" shadow="always" style="margin-left: 5%; margin-right: 5%;width: 20%;" v-if="hasReport">
  986. <img :src="finalCardPNG" class="image">
  987. <div style="padding: 14px;">
  988. <span>结果报告</span>
  989. <span class="checked">{{ finalReprotProd.checkState }}<i v-if="finalReprotProd.checkState" class="el-icon-circle-check"></i></span>
  990. <time class="time">{{ finalReprotProd.modified }}</time>
  991. <div class="control" >
  992. <el-button type="text" class="button" @click="doStamp(finalReprotProd.files)" :disabled="currentNode.nodeCode!='WRITE_REPORT'">加盖公章</el-button>
  993. <el-button type="text" class="button" @click="warehouse()" :disabled="currentNode.nodeCode!='REPORT_IN' && currentNode.nodeCode!='REPORT_OUT'">出入库</el-button>
  994. <el-button type="text" class="button" @click="genProductionFile(3)" :disabled="currentNode.nodeCode!='WRITE_REPORT'">系统生成</el-button>
  995. </div>
  996. </div>
  997. <el-upload style="position: relative; top: -10px;padding: 10px;"
  998. :action="'/api/personalProduction/upload/'+target.id+'/3'" :file-list="finalReprotProd.files"
  999. :limit="1" :on-exceed="handleExceed" :on-preview="handleAttachmentPreview" :on-success="getProductions"
  1000. :before-remove="handleRemoveFile">
  1001. <el-button type="text" style="position: relative; left: 10px;top: -4px;" :disabled="currentNode.nodeCode!='WRITE_REPORT'">手动上传</el-button>
  1002. </el-upload>
  1003. </el-card>
  1004. <el-card :body-style="{ padding: '0px'}" shadow="always" style="margin-left: 5%; margin-right: 5%;width: 20%;" v-if="hasLetter">
  1005. <img :src="letterCardPNG" class="image">
  1006. <div style="padding: 14px;">
  1007. <span>复评函</span>
  1008. <span class="checked">{{ letterReprotProd.checkState }}<i v-if="letterReprotProd.checkState" class="el-icon-circle-check"></i></span>
  1009. <time class="time">{{ letterReprotProd.modified }}</time>
  1010. <div class="control" >
  1011. <el-button type="text" class="button" @click="warehouse()" :disabled="currentNode.nodeCode!='LETTER_IN' && currentNode.nodeCode!='LETTER_OUT'">出入库</el-button>
  1012. </div>
  1013. </div>
  1014. <el-upload style="position: relative; top: -10px;padding: 10px;"
  1015. :action="'/api/personalProduction/upload/'+target.id+'/4'" :file-list="letterReprotProd.files"
  1016. :limit="1" :on-exceed="handleExceed" :on-preview="handleAttachmentPreview" :on-success="getProductions"
  1017. :before-remove="handleRemoveFile">
  1018. <el-button type="text" style="position: relative; left: 10px;top: -4px;" :disabled="currentNode.nodeCode!='WRITE_LETTER'">手动上传</el-button>
  1019. </el-upload>
  1020. </el-card>
  1021. </div>
  1022. <div v-else style="display: flex;margin-top: 100px; width: 100%;">
  1023. <span style="color:rgb(144,147,153); margin-left: 2.2%; width: 20%; margin-top:-3%">还没有选择产品类型</span>
  1024. </div>
  1025. </el-tab-pane>
  1026. <el-tab-pane name="workflowLog" class="pane-class" :lazy=true>
  1027. <span slot="label"><i class="el-icon-date"></i> 流程日志</span>
  1028. <div class="createMajor-main-container">
  1029. <div class="postInfo-container">
  1030. <div>
  1031. <el-divider content-position="left">
  1032. <h3 class="title">
  1033. <div class="avatar-wrapper icon-title">日志</div>
  1034. <div class="icon-info">流程审批日志</div>
  1035. </h3>
  1036. </el-divider>
  1037. </div>
  1038. </div>
  1039. </div>
  1040. <el-table
  1041. :data="workflowLogs"
  1042. stripe
  1043. :header-row-style="{ color: '#333333' }"
  1044. border
  1045. style="width: 100%; margin-top:20px">
  1046. <el-table-column
  1047. prop="nodeName"
  1048. label="节点名称"
  1049. align="center">
  1050. </el-table-column>
  1051. <el-table-column
  1052. prop="state"
  1053. label="处理结果"
  1054. align="center">
  1055. </el-table-column>
  1056. <el-table-column
  1057. prop="handlerName"
  1058. label="处理人"
  1059. align="center">
  1060. </el-table-column>
  1061. <el-table-column
  1062. prop="longTime"
  1063. label="处理时长"
  1064. align="center">
  1065. </el-table-column>
  1066. <el-table-column
  1067. prop="created"
  1068. label="处理时间"
  1069. align="center">
  1070. </el-table-column>
  1071. <el-table-column
  1072. prop="comments"
  1073. label="处理意见"
  1074. align="center"
  1075. show-overflow-tooltip>
  1076. </el-table-column>
  1077. </el-table>
  1078. </el-tab-pane>
  1079. </el-tabs>
  1080. <el-dialog :visible.sync="decideProductionTypeDialog" width="25%" center top="35vh" custom-class="doWarehouseClass">
  1081. <div>
  1082. <i class="el-icon-warning" style="color:RGB(230,162,60);font-size:22px;margin-right:10px;"></i>
  1083. <span style="position:absolute;top:58px">在此节点是否确定产品类型?</span>
  1084. </div>
  1085. <div style="margin-top:30px;margin-left:20px">
  1086. <el-radio-group v-model="target.feedback">
  1087. <el-radio label="NONE" value="NONE">不确定</el-radio>
  1088. <el-radio label="STATEMENT" value="STATEMENT">价值意见书</el-radio>
  1089. <el-radio label="REPORT" value="REPORT">报告</el-radio>
  1090. <el-radio label="LETTER" value="LETTER">复评函</el-radio>
  1091. </el-radio-group>
  1092. </div>
  1093. <span slot="footer" class="dialog-footer">
  1094. <el-button @click="decideProductionTypeDialog = false">取消</el-button>
  1095. <el-button type="primary" @click="saveFeedbackWhenPrice()" >保存</el-button>
  1096. </span>
  1097. </el-dialog>
  1098. <el-dialog :visible.sync="inWarehouseDialog" width="30%" center top="35vh" custom-class="doWarehouseClass">
  1099. <div>
  1100. <i class="el-icon-warning" style="color:RGB(230,162,60);font-size:22px;margin-right:10px;"></i>
  1101. <span style="position:absolute;top:58px;padding-right:50px">{{ warehouseTip }}</span>
  1102. </div>
  1103. <span slot="footer" class="dialog-footer">
  1104. <el-button @click="inWarehouseDialog = false">取 消</el-button>
  1105. <el-button type="primary" @click="doInWareHouse()">确 定</el-button>
  1106. </span>
  1107. </el-dialog>
  1108. <el-dialog :visible.sync="outWarehouseDialog" width="30%" center top="35vh" custom-class="doWarehouseClass">
  1109. <div>
  1110. <i class="el-icon-warning" style="color:RGB(230,162,60);font-size:22px;margin-right:10px;"></i>
  1111. <span style="position:absolute;top:58px">{{ warehouseTip }}</span>
  1112. </div>
  1113. <span slot="footer" class="dialog-footer">
  1114. <el-button @click="outWarehouseDialog = false">取 消</el-button>
  1115. <el-button type="primary" @click="doOutWareHouse()">确 定</el-button>
  1116. </span>
  1117. </el-dialog>
  1118. <el-dialog :visible.sync="checkDialog" width="50%" center top="25vh" custom-class="doWarehouseClass">
  1119. <el-divider content-position="left">产品审核</el-divider>
  1120. <el-form ref="targetForm" :model="target">
  1121. <el-row>
  1122. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  1123. <el-form-item
  1124. label="坐落:"
  1125. prop="location"
  1126. label-width="140px"
  1127. class="postInfo-container-item"
  1128. >
  1129. <el-input :value="target.location" class="filter-item" disabled readonly style=" width: 100%"/>
  1130. </el-form-item>
  1131. </el-col>
  1132. </el-row>
  1133. <el-row>
  1134. <el-col :xs="24" :sm="12" :lg="8" :span="6">
  1135. <el-form-item
  1136. label="评估面积(平):"
  1137. prop="acreage"
  1138. label-width="140px"
  1139. class="postInfo-container-item"
  1140. >
  1141. <el-input v-model="target.acreage" disabled readonly ></el-input>
  1142. </el-form-item>
  1143. </el-col>
  1144. <el-col :xs="24" :sm="12" :lg="8" :span="6">
  1145. <el-form-item
  1146. label="评估单价(元):"
  1147. prop="price"
  1148. label-width="140px"
  1149. class="postInfo-container-item"
  1150. >
  1151. <el-input v-model="target.price" disabled readonly></el-input>
  1152. </el-form-item>
  1153. </el-col>
  1154. <el-col :xs="24" :sm="12" :lg="8" :span="6">
  1155. <el-form-item
  1156. label="评估总价(元):"
  1157. prop="amount"
  1158. label-width="140px"
  1159. class="postInfo-container-item"
  1160. >
  1161. <el-input v-model="target.amount" disabled readonly></el-input>
  1162. </el-form-item>
  1163. </el-col>
  1164. </el-row>
  1165. <el-row>
  1166. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  1167. <el-form-item
  1168. label="备注:"
  1169. prop="amount"
  1170. label-width="140px"
  1171. class="postInfo-container-item"
  1172. >
  1173. <span style="font-weight: bolder; color: red;">本人已对评估结果信息及报告文档完成审核,已确认无误。</span>
  1174. </el-form-item>
  1175. </el-col>
  1176. </el-row>
  1177. <el-row>
  1178. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  1179. <el-button type="info" plain style="margin-left: 40%;" @click="checkDialog=false">取消</el-button>
  1180. <el-button type="success" plain @click="checkPass()">确认</el-button>
  1181. </el-col>
  1182. </el-row>
  1183. </el-form>
  1184. </el-dialog>
  1185. </div>
  1186. </template>
  1187. <script>
  1188. import YDetailPageLayout from '@/components/YDetailPageLayout/index_detail'
  1189. import WorkflowBoard from '@/components/workflowBoard'
  1190. import {calculateTargetPrice,validateParams} from '@/utils/personalUtil'
  1191. import HouseCertificate from '@/components/personalForms/houseCertificate'
  1192. import LandCertificate from '@/components/personalForms/landCertificate'
  1193. import ImmovableCertificate from '@/components/personalForms/immovableCertificate'
  1194. import EntityInfo from '@/components/personalForms/entityInfo'
  1195. import BackgroundInfo from '@/components/personalForms/backgroundInfo'
  1196. import SellingAbilityInfo from '@/components/personalForms/sellingAbilityInfo'
  1197. import existPNG from '@/assets/images/exist.png'
  1198. import emptyPNG from '@/assets/images/empty.png'
  1199. export default {
  1200. name: 'personalTodoDetail',
  1201. components: {
  1202. YDetailPageLayout,
  1203. WorkflowBoard,
  1204. HouseCertificate,
  1205. LandCertificate,
  1206. ImmovableCertificate,
  1207. EntityInfo,
  1208. BackgroundInfo,
  1209. SellingAbilityInfo
  1210. },
  1211. watch:{
  1212. personal:{
  1213. handler(newVal,oldVal){
  1214. if (newVal.outwardStaff){
  1215. this.outwardStaffTip = false;
  1216. }else {
  1217. this.outwardStaffTip = true;
  1218. }
  1219. this.showCredentials();
  1220. },
  1221. deep:true
  1222. },
  1223. activeTagName:{
  1224. handler(newVal,oldVal){
  1225. if(newVal!='order'){
  1226. this.outwardStaffTip = false;
  1227. }
  1228. },
  1229. },
  1230. target:{
  1231. handler(newVal,oldVal){
  1232. if (newVal.acreage!=null && newVal.price!=null){
  1233. newVal.amount = Math.round(newVal.acreage * newVal.price)
  1234. }
  1235. if (newVal.id){
  1236. this.getProductions();
  1237. }
  1238. },
  1239. deep:true
  1240. },
  1241. feedback:{
  1242. handler(newVal,oldVal){
  1243. if (newVal!=oldVal){
  1244. this.nodeBusinessInfo.production = this.feedback;
  1245. this.$refs.board.getInstanceQueue();
  1246. if (this.feedback.includes("STATEMENT")){
  1247. this.hasStatement = true;
  1248. }else{
  1249. this.hasStatement = false;
  1250. }
  1251. if (this.feedback.includes("REPORT")){
  1252. this.hasReport = true;
  1253. }else{
  1254. this.hasReport = false;
  1255. }
  1256. if (this.feedback.includes("LETTER")){
  1257. this.hasLetter = true;
  1258. }else{
  1259. this.hasLetter = false;
  1260. }
  1261. if (this.feedback.includes("REPORT") && this.feedback.includes("LETTER")){
  1262. this.$message.error('报告和复评函只能选其一');
  1263. this.feedback = oldVal;
  1264. }
  1265. }
  1266. if (this.feedback.length>0){
  1267. this.showProds = true
  1268. }else{
  1269. this.showProds = false;
  1270. }
  1271. },
  1272. deep:true
  1273. }
  1274. },
  1275. computed: {
  1276. certificateCouldEdit(){
  1277. let currentNodeCode = this.$route.query.currentNodeCode;
  1278. if (currentNodeCode==='GENERATE_STATEMENT' || currentNodeCode==='WRITE_REPORT' || currentNodeCode==='WRITE_LETTER'){
  1279. return true;
  1280. }else{
  1281. return false;
  1282. }
  1283. },
  1284. },
  1285. data() {
  1286. return {
  1287. rules:{
  1288. outwardStaff: [
  1289. { required: true, message: '外业人员不能为空', trigger: 'blur' },
  1290. ],
  1291. },
  1292. workflowLogs:[],
  1293. activeName:'workflowInfo',
  1294. activeTagName:null,
  1295. nodeBusinessInfo:{
  1296. currentNodePermission:{
  1297. commit:true,
  1298. reversible:true,
  1299. restartable:true,
  1300. terminable:true,
  1301. skippable:true,
  1302. },
  1303. mainBusiness:"PERSONAL_BUSINESS",
  1304. doWorkflow:false,
  1305. businessId:null,
  1306. currentNodeInstanceId:null,
  1307. currentNodeInstanceCode:null,
  1308. production:[],
  1309. businessSubId:null,
  1310. ifFeedback:null,
  1311. ccId:null
  1312. },
  1313. currentNode:{
  1314. flowId:null,
  1315. pnodeId:null,
  1316. nodeId:null,
  1317. flowCode:null,
  1318. nodeName:"",
  1319. nodeCode:null,
  1320. state:"",
  1321. instanceId:null,
  1322. sequence:null,
  1323. restartable:null,
  1324. reversible:null,
  1325. skippable:null,
  1326. terminable:null,
  1327. tasks:[]
  1328. },
  1329. personal:{
  1330. id:null,
  1331. clientManagerId:null,
  1332. clientManager:null,
  1333. evaluateAim:null,
  1334. purpose:[],
  1335. location:null,
  1336. clienteleType:null,
  1337. clienteleId:null,
  1338. cclienteleName:null,
  1339. cclienteleSubName:null,
  1340. agent:null,
  1341. cclienteleContactName:null,
  1342. cmobile:null,
  1343. cdepartment:null,
  1344. cduty:null,
  1345. loanNature:null,
  1346. loanAim:null,
  1347. loanLimit:null,
  1348. loanPeriod:null,
  1349. loanExpire:false,
  1350. credentials:[],
  1351. bailorA:null,
  1352. bailorATel:null,
  1353. bailorB:null,
  1354. bailorBTel:null,
  1355. terminalClienteleType:null,
  1356. tterminalClienteleName:null,
  1357. tterminalClienteleContactName:null,
  1358. tmobile:null,
  1359. remark:null,
  1360. inwardStaffName:null,
  1361. outwardStaff:null,
  1362. outwardStaffName:null,
  1363. pricingStaffName:null,
  1364. inwardStaffName:null,
  1365. },
  1366. outwardStaffs:[],
  1367. outwardStaffTip:true,
  1368. certificateName:null,
  1369. otherInfo:null,
  1370. target:{
  1371. id:null,
  1372. personalId:null,
  1373. location:null,
  1374. acreage:null,
  1375. amount:null,
  1376. price:null,
  1377. isOnline:false,
  1378. feedback:null,
  1379. houseCertificate:null,
  1380. landCertificate:null,
  1381. immovableCertificate:null,
  1382. entityInfo:null,
  1383. backgroundInfo:null,
  1384. sellingAbility:null,
  1385. sellMoney:null,
  1386. sellMoneyBase:null,
  1387. sellMoneyRate:null
  1388. },
  1389. compareList:{
  1390. targetId:null,
  1391. calculateId:null,
  1392. fixValue:1,
  1393. rightsType:'SELL',
  1394. rollingLevel:1,
  1395. calculateType:'SIMPLE',
  1396. method:'COMPARE',
  1397. analysisData:[
  1398. {
  1399. "sorted":null,
  1400. "index":"坐落",
  1401. "compareA":{valueA:null},
  1402. "compareB":{valueA:null},
  1403. "compareC":{valueA:null},
  1404. "target":{valueA:null},
  1405. },
  1406. {
  1407. "sorted":null,
  1408. "index":"总价(元)",
  1409. "compareA":{valueA:null},
  1410. "compareB":{valueA:null},
  1411. "compareC":{valueA:null},
  1412. "target":{valueA:null},
  1413. },
  1414. {
  1415. "sorted":null,
  1416. "index":"单价(元)",
  1417. "compareA":{valueA:null},
  1418. "compareB":{valueA:null},
  1419. "compareC":{valueA:null},
  1420. "target":{valueA:null},
  1421. },
  1422. {
  1423. "sorted":null,
  1424. "index":"市场状况",
  1425. "compareA":{valueA:null,weight:100},
  1426. "compareB":{valueA:null,weight:100},
  1427. "compareC":{valueA:null,weight:100},
  1428. "target":{valueA:null,weight:100},
  1429. },
  1430. {
  1431. "sorted":null,
  1432. "index":"所在楼栋",
  1433. "compareA":{valueA:'对中庭',weight:100},
  1434. "compareB":{valueA:'对中庭',weight:100},
  1435. "compareC":{valueA:'对中庭',weight:100},
  1436. "target":{valueA:'对中庭',weight:100},
  1437. },
  1438. {
  1439. "sorted":null,
  1440. "index":"建筑面积(平)",
  1441. "compareA":{valueA:0,weight:100},
  1442. "compareB":{valueA:0,weight:100},
  1443. "compareC":{valueA:0,weight:100},
  1444. "target":{valueA:0,weight:100},
  1445. },
  1446. {
  1447. "sorted":null,
  1448. "index":"楼层/总楼层",
  1449. "compareA":{valueA:null,valueb:null,weight:100},
  1450. "compareB":{valueA:null,valueb:null,weight:100},
  1451. "compareC":{valueA:null,valueb:null,weight:100},
  1452. "target":{valueA:null,valueb:null,weight:100},
  1453. },
  1454. {
  1455. "sorted":null,
  1456. "index":"户型",
  1457. "compareA":{valueA:null,weight:100},
  1458. "compareB":{valueA:null,weight:100},
  1459. "compareC":{valueA:null,weight:100},
  1460. "target":{valueA:null,weight:100},
  1461. },
  1462. {
  1463. "sorted":null,
  1464. "index":"室内装饰",
  1465. "compareA":{valueA:'精装',weight:100},
  1466. "compareB":{valueA:'精装',weight:100},
  1467. "compareC":{valueA:'精装',weight:100},
  1468. "target":{valueA:'精装',weight:100},
  1469. },
  1470. {
  1471. "sorted":null,
  1472. "index":"其他",
  1473. "compareA":{valueA:null,weight:100},
  1474. "compareB":{valueA:null,weight:100},
  1475. "compareC":{valueA:null,weight:100},
  1476. "target":{valueA:null,weight:100},
  1477. },
  1478. {
  1479. "sorted":null,
  1480. "index":"修正后价格",
  1481. "compareA":{valueA:null},
  1482. "compareB":{valueA:null},
  1483. "compareC":{valueA:null},
  1484. "target":{valueA:null},
  1485. }
  1486. ],
  1487. price:null,
  1488. amount:null,
  1489. acreage:null,
  1490. sellMoney:null,
  1491. sellMoneyBase:null,
  1492. sellMoneyRate:null
  1493. },
  1494. needWeight:['所在楼栋','建筑面积(平)','户型','其他'],
  1495. requiredIndex:['单价(元)','坐落','市场状况','所在楼栋','建筑面积(平)','户型','室内装饰','楼层/总楼层','权重'],
  1496. calculateWeight:{
  1497. "sorted":null,
  1498. "index":"权重",
  1499. "compareA":{valueA:null},
  1500. "compareB":{valueA:null},
  1501. "compareC":{valueA:null},
  1502. "target":{valueA:null},
  1503. },
  1504. calculating:false,
  1505. decideProductionTypeDialog:false,
  1506. showCred:{
  1507. showHouseCer:false,
  1508. showLandCer:false,
  1509. showImmovableCer:false,
  1510. showleaseCer:false,
  1511. showIdCer:false
  1512. },
  1513. linkAttributes:{
  1514. location:null,
  1515. bailor1:null,
  1516. bailor1Tel:null,
  1517. bailor2:null,
  1518. bailor2Tel:null,
  1519. acreage:null,
  1520. allFloor:null,
  1521. purpose:null,
  1522. ownerName:null,
  1523. atFloor:null
  1524. },
  1525. statementProd:{
  1526. id:null,
  1527. targetId:null,
  1528. files:[],
  1529. created:null,
  1530. checkState:null
  1531. },
  1532. technicReportProd:{
  1533. id:null,
  1534. targetId:null,
  1535. files:[],
  1536. created:null,
  1537. checkState:null
  1538. },
  1539. finalReprotProd:{
  1540. id:null,
  1541. targetId:null,
  1542. files:[],
  1543. created:null,
  1544. checkState:null
  1545. },
  1546. letterReprotProd:{
  1547. id:null,
  1548. targetId:null,
  1549. files:[],
  1550. created:null,
  1551. checkSatae:null
  1552. },
  1553. statementCardPNG:emptyPNG,
  1554. technicCardPNG:emptyPNG,
  1555. finalCardPNG:emptyPNG,
  1556. letterCardPNG:emptyPNG,
  1557. outWarehouseDialog:false,
  1558. inWarehouseDialog:false,
  1559. warehouseTip:null,
  1560. productionId:null,
  1561. hasStatement:false,
  1562. hasReport:false,
  1563. hasLetter:false,
  1564. feedback:null,
  1565. checkDialog:false,
  1566. checkProDTO:{
  1567. targetId:null,
  1568. production:null
  1569. },
  1570. showProds:true
  1571. }
  1572. },
  1573. created() {
  1574. this.personalId = this.$route.query.id;
  1575. this.businessSubId = this.$route.query.orderId;
  1576. this.nodeBusinessInfo.currentNodeInstanceCode = this.$route.query.currentNodeCode;
  1577. this.nodeBusinessInfo.doWorkflow = this.$route.query.doWorkflow ==='true';
  1578. this.nodeBusinessInfo.businessId= this.$route.query.id;
  1579. this.nodeBusinessInfo.businessSubId = this.$route.query.orderId;
  1580. this.activeTagName = this.jumpTabs();
  1581. this.getPersonalTarget();
  1582. this.getPersonal();
  1583. this.getOutWardStaffList();
  1584. this.getWorkflowLogs();
  1585. this.getCurrentNodeInfo();
  1586. this.getProductions();
  1587. },
  1588. methods: {
  1589. getPersonal(){
  1590. if (this.personalId){
  1591. this.$api.personal.detail(this.personalId).then(res=>{
  1592. if (res.code ===200 ){
  1593. res.data.credentials = JSON.parse(res.data.credentials);
  1594. res.data.purpose = JSON.parse(res.data.purpose);
  1595. this.personal = res.data;
  1596. this.linkAttributes.location = this.personal.location;
  1597. this.linkAttributes.bailor1 = this.personal.bailorA;
  1598. this.linkAttributes.bailor1Tel = this.personal.bailoraTel;
  1599. this.linkAttributes.bailor2 = this.personal.bailorB;
  1600. this.linkAttributes.bailor2Tel = this.personal.bailorbTel;
  1601. this.linkAttributes.purpose = this.personal.purpose;
  1602. if (this.personal.evaluateAim==='抵押'){
  1603. this.linkAttributes.ownerName = this.personal.bailorA;
  1604. }
  1605. this.nodeBusinessInfo.ccId = this.personal.clienteleId;
  1606. }
  1607. })
  1608. }
  1609. },
  1610. getPersonalTarget(){
  1611. if (this.personalId){
  1612. this.$api.personalTarget.detail(this.personalId).then(res=>{
  1613. if (res.code === 200){
  1614. this.target = res.data;
  1615. this.linkAttributes.acreage = this.target.acreage;
  1616. if (res.data.isOnline){
  1617. this.getCaluateTable(res.data.id)
  1618. }
  1619. if (res.data.houseCertificate){
  1620. this.target.houseCertificate = JSON.parse(res.data.houseCertificate);
  1621. }
  1622. if (res.data.landCertificate){
  1623. this.target.landCertificate = JSON.parse(res.data.landCertificate);
  1624. }
  1625. if (res.data.immovableCertificate){
  1626. this.target.immovableCertificate = JSON.parse(res.data.immovableCertificate);
  1627. }
  1628. if (res.data.entityInfo){
  1629. this.target.entityInfo = JSON.parse(res.data.entityInfo);
  1630. }
  1631. if (res.data.backgroundInfo){
  1632. this.target.backgroundInfo = JSON.parse(res.data.backgroundInfo);
  1633. }
  1634. if (res.data.sellingAbility){
  1635. this.target.sellingAbility = JSON.parse(res.data.sellingAbility);
  1636. }
  1637. if (res.data.feedback){
  1638. this.feedback = JSON.parse(res.data.feedback);
  1639. this.nodeBusinessInfo.production = this.feedback;
  1640. }else{
  1641. this.feedback = []
  1642. }
  1643. }
  1644. })
  1645. }
  1646. },
  1647. getCurrentNodeInfo(){
  1648. if (this.personalId){
  1649. this.$api.workNodeInstance.currentNode({"mainBusiness":"PERSONAL_BUSINESS","businessId":this.personalId,"businessSubId":this.businessSubId}).then(res=>{
  1650. if (res.code === 200){
  1651. if(res.data){
  1652. this.currentNode = res.data;
  1653. this.nodeBusinessInfo.currentInstanceNodeId = res.data.instanceId;
  1654. this.nodeBusinessInfo.currentNodeInstanceCode = res.data.nodeCode;
  1655. this.nodeBusinessInfo.currentNodePermission.restartable = res.data.restartable;
  1656. this.nodeBusinessInfo.currentNodePermission.reversible = res.data.reversible;
  1657. this.nodeBusinessInfo.currentNodePermission.skippable = res.data.skippable;
  1658. this.nodeBusinessInfo.currentNodePermission.terminable = res.data.terminable;
  1659. }
  1660. }
  1661. })
  1662. }
  1663. },
  1664. handleClick(tab) {
  1665. if ("producution" === tab && this.feedback==null){
  1666. this.feedback=[];
  1667. }
  1668. },
  1669. showCredentials(){
  1670. this.showCred = {};
  1671. this.personal.credentials.forEach(element => {
  1672. if (element==='HOUSE_CERTIFICATE'){
  1673. this.showCred.showHouseCer = true;
  1674. }
  1675. if (element==='LAND_CERTIFICATE'){
  1676. this.showCred.showLandCer = true;
  1677. }
  1678. if (element==='IMMOVABLE_CERTIFICATE'){
  1679. this.showCred.showImmovableCer = true;
  1680. }
  1681. if (element==='LEASE_CONTRACT'){
  1682. this.showCred.showleaseCer = true;
  1683. }
  1684. if (element==='IDENTITY_CARD'){
  1685. this.showCred.showIdCer = true;
  1686. }
  1687. });
  1688. },
  1689. getWorkflowLogs(){
  1690. let param = {
  1691. businessId:this.personalId,
  1692. businessType:'PERSONAL_BUSINESS',
  1693. businessSubId:this.businessSubId
  1694. }
  1695. this.$api.workflowLog.list(param).then(res=>{
  1696. if (res.code === 200){
  1697. this.workflowLogs = res.data;
  1698. }
  1699. })
  1700. },
  1701. workflowCommitVerify(val,callback){
  1702. let commit = val.commit;
  1703. let verify = new Object();
  1704. verify.state = true;
  1705. verify.productionType = this.feedback;
  1706. if (commit.state ==='PASS'){
  1707. let nodeCode = this.nodeBusinessInfo.currentNodeInstanceCode
  1708. switch(nodeCode){
  1709. case 'DEPARTMENT_ALLOCATION':
  1710. if (!this.personal.outwardStaff){
  1711. this.$notify({
  1712. title: '提示',
  1713. message: '请确定外业人员后,再提交流程。',
  1714. type: 'error',
  1715. duration: 3000
  1716. });
  1717. verify.state = false;
  1718. }else{
  1719. verify.nextHandlerId = this.personal.outwardStaff;
  1720. }
  1721. callback(verify);
  1722. return ;
  1723. case "DETERMINE_PRICE":
  1724. if (!this.target.feedback){
  1725. verify.state = false;
  1726. callback(verify);
  1727. this.decideProductionTypeDialog = true
  1728. return ;
  1729. }else{
  1730. callback(verify);
  1731. return ;
  1732. }
  1733. case "GENERATE_STATEMENT":
  1734. if (this.statementProd==null || this.statementProd.files.length===0){
  1735. this.$notify({
  1736. title: '提示',
  1737. message: '请生成或上传房地产意见书后,再提交流程',
  1738. type: 'error',
  1739. duration: 3000
  1740. });
  1741. verify.state = false;
  1742. }
  1743. callback(verify);
  1744. return ;
  1745. case "REVIEW_STATEMENT":
  1746. if (this.statementProd.checkState==='待审核'){
  1747. verify.state = false;
  1748. callback(verify);
  1749. this.checkProDTO.production = "STATEMENT";
  1750. this.checkProDTO.targetId = this.target.id;
  1751. this.checkDialog = true
  1752. return ;
  1753. }
  1754. callback(verify);
  1755. return ;
  1756. case "WRITE_REPORT":
  1757. if (this.technicReportProd==null || this.technicReportProd.files.length===0){
  1758. this.$notify({
  1759. title: '提示',
  1760. message: '请生成或上传技术报告后,再提交流程',
  1761. type: 'error',
  1762. duration: 3000
  1763. });
  1764. verify.state = false;
  1765. callback(verify);
  1766. return
  1767. }
  1768. if (this.finalReprotProd==null || this.finalReprotProd.files.length===0){
  1769. this.$notify({
  1770. title: '提示',
  1771. message: '请生成或上传结果报告后,再提交流程',
  1772. type: 'error',
  1773. duration: 3000
  1774. });
  1775. verify.state = false;
  1776. callback(verify);
  1777. return
  1778. }
  1779. callback(verify);
  1780. return ;
  1781. case "CHECK_REPORT":
  1782. console.log(this.technicReportProd.checkState)
  1783. if (this.technicReportProd.checkState==='待审核' || this.finalReprotProd.checkState==='待审核'){
  1784. verify.state = false;
  1785. callback(verify);
  1786. this.checkProDTO.production = "REPORT";
  1787. this.checkProDTO.targetId = this.target.id;
  1788. this.checkDialog = true
  1789. return ;
  1790. }
  1791. callback(verify);
  1792. return ;
  1793. case "CHECK_LETTER":
  1794. if (!this.letterReprotProd.checkState){
  1795. verify.state = false;
  1796. callback(verify);
  1797. this.checkProDTO.production = "LETTER";
  1798. this.checkProDTO.targetId = this.target.id;
  1799. this.checkDialog = true
  1800. return ;
  1801. }
  1802. callback(verify);
  1803. return ;
  1804. }
  1805. }
  1806. },
  1807. handleChange(){
  1808. },
  1809. goBack(){
  1810. const back = this.$route.query.back
  1811. if (back) {
  1812. this.$router.push(back)
  1813. }
  1814. },
  1815. getOutWardStaffList(){
  1816. this.$api.user.postUser("个贷外业岗").then(res=>{
  1817. if (res.code === 200){
  1818. this.outwardStaffs = res.data;
  1819. }
  1820. })
  1821. },
  1822. saveOutwardStaff(){
  1823. this.$refs.personalMemberForm.validate(valid=>{
  1824. if (valid){
  1825. if (this.personal.id){
  1826. const personalMember = new Object();
  1827. personalMember.id = this.personal.id;
  1828. personalMember.outwardStaff = this.personal.outwardStaff
  1829. const taskRecordDTO = this.buildTaskRecordDTO(personalMember);
  1830. this.$api.personal.allotOutward(taskRecordDTO).then(res=>{
  1831. if (res.code ===200 && res.data){
  1832. this.$notify({
  1833. title: '成功',
  1834. message: '保存成功,请提交节点继续流程。',
  1835. type: 'success',
  1836. duration: 2000
  1837. });
  1838. }else{
  1839. this.$notify({
  1840. title: '失败',
  1841. message: '保存失败,请提联系系统管理员',
  1842. type: 'success',
  1843. duration: 2000
  1844. });
  1845. }
  1846. })
  1847. }
  1848. }
  1849. })
  1850. },
  1851. //构建任务处理对象
  1852. buildTaskRecordDTO(data){
  1853. const taskRecordDTO = new Object();
  1854. taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  1855. taskRecordDTO.taskData = data;
  1856. return taskRecordDTO;
  1857. },
  1858. //提交节点
  1859. commit(state){
  1860. this.$refs.board.commit(state);
  1861. },
  1862. jumpTabs(){
  1863. const orderTag = ['OPENING_ORDER','DEPARTMENT_ALLOCATION'];
  1864. const evaluate = ['SPOT_RECONNAISSANCE','DETERMINE_PRICE'];
  1865. const certificates = ['GENERATE_STATEMENT','WRITE_REPORT','WRITE_LETTER']
  1866. const nodeCode = this.$route.query.currentNodeCode;
  1867. if (orderTag.includes(nodeCode)){
  1868. return 'order';
  1869. }
  1870. if (evaluate.includes(nodeCode)){
  1871. return 'evaluate'
  1872. }
  1873. if (certificates.includes(nodeCode)){
  1874. return 'certificateInfo';
  1875. }
  1876. if (this.feedback==null){
  1877. this.feedback = [];
  1878. }
  1879. return 'producution'
  1880. },
  1881. calulate(){
  1882. this.calculating = true;
  1883. this.$refs.compareToForm.validate(valid=>{
  1884. if (valid){
  1885. if (validateParams(this.compareList.analysisData)){
  1886. this.compareList = calculateTargetPrice(this.compareList);
  1887. }
  1888. }
  1889. })
  1890. setTimeout(()=>{
  1891. this.calculating = false;
  1892. },500)
  1893. },
  1894. saveCalulateResult(){
  1895. this.target.amount = this.compareList.amount;
  1896. this.target.price = this.compareList.price;
  1897. this.target.acreage = this.compareList.acreage;
  1898. this.compareList.targetId= this.target.id;
  1899. this.target.sellMoneyRate = this.compareList.sellMoneyRate;
  1900. this.target.sellMoney = this.compareList.sellMoney;
  1901. this.target.sellMoneyBase = this.compareList.sellMoneyBase;
  1902. let taskRecord = this.buildTaskRecordDTO(this.compareList);
  1903. this.$api.personalCalculate.calculate(taskRecord).then(res=>{
  1904. if (res.code ===200 && res.data){
  1905. this.getCaluateTable(this.target.id);
  1906. this.$notify({
  1907. title: '保存成功',
  1908. type: 'success',
  1909. duration: 2000
  1910. });
  1911. }else{
  1912. this.$notify({
  1913. title: '保存失败',
  1914. type: 'error',
  1915. duration: 2000
  1916. });
  1917. }
  1918. })
  1919. },
  1920. savePrice(){
  1921. this.$refs.targetForm.validate(valid=>{
  1922. if (valid){
  1923. let taskRecord = this.buildTaskRecordDTO(this.target);
  1924. this.$api.personalTarget.price(taskRecord).then(res=>{
  1925. if (res.code === 200 && res.data){
  1926. this.$notify({
  1927. title: '保存成功',
  1928. type: 'success',
  1929. duration: 2000
  1930. });
  1931. }else{
  1932. this.$notify({
  1933. title: '保存失败',
  1934. type: 'error',
  1935. duration: 2000
  1936. });
  1937. }
  1938. })
  1939. }
  1940. })
  1941. },
  1942. getCaluateTable(targetId){
  1943. if (targetId){
  1944. this.$api.personalCalculate.getResult(targetId).then(res=>{
  1945. if (res.code === 200 && res.data){
  1946. this.compareList = res.data;
  1947. this.linkAttributes.allFloor = this.compareList.analysisData[6].target.valueB;
  1948. this.linkAttributes.atFloor = this.compareList.analysisData[6].target.valueA;
  1949. this.linkAttributes.houseType = this.compareList.analysisData[7].target.valueA;
  1950. this.selectCalculateType();
  1951. }
  1952. })
  1953. }
  1954. },
  1955. calculateSwith(){
  1956. this.$api.personalTarget.calculateSwith(this.target.isOnline,this.target.id);
  1957. if (this.target.isOnline && !this.compareList.calculateId){
  1958. this.getCaluateTable(this.target.id);
  1959. }
  1960. if (this.target.isOnline){
  1961. setTimeout(() => {
  1962. const element = document.getElementById("evaluteObject");
  1963. element.scrollTop = element.scrollHeight;
  1964. }, 500);
  1965. }
  1966. },
  1967. selectCalculateType(){
  1968. let data = this.compareList.analysisData
  1969. if (this.compareList.calculateType==='SIMPLE'){
  1970. let dataX = data.filter(function(item){
  1971. return item.index !='权重'
  1972. })
  1973. this.compareList.analysisData = dataX;
  1974. }else {
  1975. if (!data.map(item=>item.index).includes("权重")){
  1976. data.splice(10,0,this.calculateWeight)
  1977. }
  1978. }
  1979. },
  1980. saveFeedbackWhenPrice(){
  1981. this.nodeBusinessInfo.ifFeedback = true;
  1982. if (this.target.id && this.target.feedback && this.target.feedback!='NONE'){
  1983. this.nodeBusinessInfo.ifFeedback = false;
  1984. const feedbackReq = new Object();
  1985. feedbackReq.feedback = this.target.feedback;
  1986. feedbackReq.id = this.target.id;
  1987. this.$api.personalTarget.feedback(feedbackReq);
  1988. }
  1989. this.decideProductionTypeDialog = false;
  1990. this.commit("PASS");
  1991. },
  1992. selectHouse(){
  1993. this.showCred.showHouseCer = !this.showCred.showHouseCer ;
  1994. },
  1995. selectLand(){
  1996. this.showCred.showLandCer = !this.showCred.showLandCer ;
  1997. },
  1998. selectImmovable(){
  1999. this.showCred.showImmovableCer = !this.showCred.showImmovableCer;
  2000. },
  2001. selectLease(){
  2002. this.showCred.showleaseCer = !this.showCred.showleaseCer;
  2003. },
  2004. selectIdCard(){
  2005. this.showCred.showIdCer = !this.showCred.showIdCer;
  2006. },
  2007. genProductionFile(tag){
  2008. const certificates = this.personal.credentials
  2009. for (let i in certificates){
  2010. if (certificates[i]==='HOUSE_CERTIFICATE' && !this.target.houseCertificate){
  2011. this.$message.error('房产证信息未完善');
  2012. return;
  2013. }
  2014. if (certificates[i]==='LAND_CERTIFICATE' && !this.target.landCertificate){
  2015. this.$message.error('国土证信息未完善');
  2016. return;
  2017. }
  2018. if (certificates[i]==='IMMOVABLE_CERTIFICATE' && !this.target.immovableCertificate){
  2019. this.$message.error('不动产权证信息未完善');
  2020. return;
  2021. }
  2022. }
  2023. if (!this.target.entityInfo){
  2024. this.$message.error('实物状况信息未完善');
  2025. return ;
  2026. }
  2027. if (!this.target.backgroundInfo){
  2028. this.$message.error('区位状况信息未完善');
  2029. return ;
  2030. }
  2031. if (!this.target.sellingAbility){
  2032. this.$message.error('变现能力分析未完善');
  2033. return ;
  2034. }
  2035. this.$confirm('系统生成将会覆盖原有文档,请确认是否继续?','提示',{
  2036. confirmButtonText: '确认',
  2037. cancelButtonText: '取消',
  2038. type: 'warning',
  2039. center: true
  2040. }).then(()=>{
  2041. if (this.personal.id && this.target.id){
  2042. this.$api.personalProduction.genFile(this.personal.id,tag).then(res=>{
  2043. if (res.code === 200 && res.data){
  2044. this.$notify({
  2045. title: '成功',
  2046. message:'生成文档成功',
  2047. type: 'success',
  2048. duration: 2000
  2049. });
  2050. this.getProductions();
  2051. }else {
  2052. this.$notify({
  2053. title: '失败',
  2054. message:'生成文档失败',
  2055. type: 'error',
  2056. duration: 2000
  2057. });
  2058. }
  2059. })
  2060. }
  2061. })
  2062. },
  2063. getProductions(){
  2064. if (this.target.id){
  2065. this.$api.personalProduction.getProductions(this.target.id).then(res=>{
  2066. if (res.code ===200){
  2067. const words = res.data
  2068. words.forEach(word => {
  2069. if (word.production==='STATEMENT'){
  2070. this.statementProd = word;
  2071. const fs = [];
  2072. if (word.filePath){
  2073. this.statementCardPNG = existPNG;
  2074. const sta = JSON.parse(word.filePath)
  2075. sta.id= word.id;
  2076. fs.push(sta);
  2077. }else{
  2078. this.statementCardPNG =emptyPNG;
  2079. }
  2080. this.statementProd.files = fs;
  2081. }
  2082. if (word.production==='TECHNIC'){
  2083. this.technicReportProd = word;
  2084. const fs = [];
  2085. if (word.filePath){
  2086. const tec = JSON.parse(word.filePath)
  2087. tec.id= word.id;
  2088. this.technicCardPNG = existPNG;
  2089. fs.push(tec);
  2090. }else{
  2091. this.technicCardPNG =emptyPNG;
  2092. }
  2093. this.technicReportProd.files = fs;
  2094. }
  2095. if (word.production==='FINAL'){
  2096. this.finalReprotProd = word;
  2097. const fs = [];
  2098. if (word.filePath){
  2099. const final = JSON.parse(word.filePath)
  2100. final.id= word.id;
  2101. this.finalCardPNG = existPNG;
  2102. fs.push(final);
  2103. }else{
  2104. this.finalCardPNG =emptyPNG;
  2105. }
  2106. this.finalReprotProd.files = fs;
  2107. }
  2108. });
  2109. }
  2110. })
  2111. }
  2112. },
  2113. handleExceed(files, fileList) {
  2114. this.$message.warning(`当前限制选择 1个文件,本次选择了 ${files.length} 个文件`);
  2115. },
  2116. handleAttachmentPreview(file){
  2117. window.open(file.url)
  2118. },
  2119. handleRemoveFile(file,fileList){
  2120. this.$confirm('请确认是否移除已存在的报告?','提示',{
  2121. confirmButtonText: '确定',
  2122. cancelButtonText: '取消',
  2123. type: 'warning',
  2124. center: true
  2125. }).then(()=>{
  2126. let pid = file.id;
  2127. if (pid){
  2128. this.$api.personalProduction.removeFile(pid).then(res=>{
  2129. if (res.code ===200 && res.data){
  2130. this.$notify({
  2131. title: '成功',
  2132. message:'文档移除成功',
  2133. type: 'success',
  2134. duration: 2000
  2135. });
  2136. this.getProductions();
  2137. }
  2138. })
  2139. }
  2140. })
  2141. },
  2142. selectRoll(){
  2143. let roll = this.compareList.rollingLevel;
  2144. this.compareList.sellMoneyRate = 0.01;
  2145. if (roll === 1){
  2146. this.compareList.sellMoneyBase = 12000;
  2147. this.compareList.sellMoney = 12000 * 0.01;
  2148. }else if (roll === 2){
  2149. this.compareList.sellMoneyBase = 10800;
  2150. this.compareList.sellMoney = 10800 * 0.01;
  2151. }else {
  2152. this.compareList.sellMoneyBase = 10100;
  2153. this.compareList.sellMoney = 10100 * 0.01;
  2154. }
  2155. },
  2156. selectRightsType(){
  2157. if (this.compareList.rightsType==='SELL'){
  2158. this.compareList.sellMoneyRate = null;
  2159. this.compareList.sellMoneyBase = null;
  2160. this.compareList.sellMoney = null;
  2161. this.target.sellMoneyRate = null;
  2162. this.target.sellMoneyBase = null;
  2163. this.target.sellMoney = null;
  2164. }else {
  2165. this.selectRoll();
  2166. }
  2167. },
  2168. downloadPkg(){
  2169. if (this.target.id){
  2170. this.$api.personalProduction.downloadPkg(this.target.id);
  2171. }
  2172. },
  2173. doStamp(files){
  2174. const file = files[0];
  2175. this.$api.businessProduction.doStamp(file).then(res=>{
  2176. if (res.code ===200 && res.data){
  2177. this.$notify({
  2178. title: '成功',
  2179. message:'加盖公章成功',
  2180. type: 'success',
  2181. duration: 2000
  2182. });
  2183. }else{
  2184. this.$notify({
  2185. title: '失败',
  2186. message:'加盖公章失败',
  2187. type: 'error',
  2188. duration: 2000
  2189. });
  2190. }
  2191. })
  2192. },
  2193. checkPass(){
  2194. if (this.checkProDTO.targetId && this.checkProDTO.production){
  2195. const taskRecordDTO = this.buildTaskRecordDTO(this.checkProDTO);
  2196. this.$api.personalProduction.checkPass(taskRecordDTO).then(res=>{
  2197. if (res.code ===200 && res.data){
  2198. this.$notify({
  2199. title: '成功',
  2200. message:'审核成功',
  2201. type: 'success',
  2202. duration: 2000
  2203. });
  2204. const prodType = this.checkProDTO.production;
  2205. if (prodType==='REPORT'){
  2206. this.technicReportProd.checkState = '已审核';
  2207. this.finalReprotProd.checkState = '已审核';
  2208. }
  2209. if (prodType==='STATEMENT'){
  2210. this.statementProd.checkState = '已审核';
  2211. }
  2212. if (prodType==='LETTER'){
  2213. this.letterReprotProd.checkState = '已审核';
  2214. }
  2215. this.commit("PASS");
  2216. }else{
  2217. this.$notify({
  2218. title: '失败',
  2219. message:'审核失败',
  2220. type: 'error',
  2221. duration: 2000
  2222. });
  2223. }
  2224. this.checkDialog = false;
  2225. })
  2226. }
  2227. },
  2228. warehouse(){
  2229. const code = this.currentNode.nodeCode;
  2230. if (code==='STATEMENT_IN'){
  2231. const fileName = this.statementProd.files[0].name
  2232. this.warehouseTip = "请确认将["+fileName+"]入库?";
  2233. this.checkProDTO.production = "STATEMENT";
  2234. this.checkProDTO.targetId = this.target.id;
  2235. this.inWarehouseDialog = true;
  2236. }
  2237. if (code==='STATEMENT_OUT'){
  2238. const fileName = this.statementProd.files[0].name
  2239. this.warehouseTip = "请确认将["+fileName+"]出库?";
  2240. this.checkProDTO.production = "STATEMENT";
  2241. this.checkProDTO.targetId = this.target.id;
  2242. this.outWarehouseDialog = true;
  2243. }
  2244. if (code==='REPORT_IN'){
  2245. const technicName = this.technicReportProd.files[0].name;
  2246. const fianlName = this.finalReprotProd.files[0].name;
  2247. this.warehouseTip = "请确认将["+technicName+"],["+fianlName+"]入库?";
  2248. this.checkProDTO.production = "REPORT";
  2249. this.checkProDTO.targetId = this.target.id;
  2250. this.inWarehouseDialog = true;
  2251. }
  2252. if (code==='REPORT_OUT'){
  2253. const technicName = this.technicReportProd.files[0].name
  2254. const fianlName = this.finalReprotProd.files[0].name;
  2255. this.warehouseTip = "请确认将["+technicName+"],["+fianlName+"]出库?";
  2256. this.checkProDTO.production = "REPORT";
  2257. this.checkProDTO.targetId = this.target.id;
  2258. this.outWarehouseDialog = true;
  2259. }
  2260. },
  2261. doInWareHouse(){
  2262. if (this.checkProDTO.targetId && this.checkProDTO.production){
  2263. let taskRecordDTO = this.buildTaskRecordDTO(this.checkProDTO);
  2264. this.$api.personalProduction.inWareHouse(taskRecordDTO).then(res=>{
  2265. if (res.code ===200 && res.data){
  2266. this.$notify({
  2267. title: '成功',
  2268. message:'入库操作成功',
  2269. type: 'success',
  2270. duration: 2000
  2271. });
  2272. }else{
  2273. this.$notify({
  2274. title: '失败',
  2275. message:'入库操作失败',
  2276. type: 'error',
  2277. duration: 2000
  2278. });
  2279. }
  2280. })
  2281. }
  2282. this.inWarehouseDialog = false;
  2283. },
  2284. doOutWareHouse(){
  2285. if (this.checkProDTO.targetId && this.checkProDTO.production){
  2286. let taskRecordDTO = this.buildTaskRecordDTO(this.checkProDTO);
  2287. this.$api.personalProduction.outWareHouse(taskRecordDTO).then(res=>{
  2288. if (res.code ===200 && res.data){
  2289. this.$notify({
  2290. title: '成功',
  2291. message:'出库操作成功',
  2292. type: 'success',
  2293. duration: 2000
  2294. });
  2295. }else{
  2296. this.$notify({
  2297. title: '失败',
  2298. message:'出库操作失败',
  2299. type: 'error',
  2300. duration: 2000
  2301. });
  2302. }
  2303. })
  2304. }
  2305. this.outWarehouseDialog = false;
  2306. },
  2307. saveFeedback(){
  2308. let flag = true;
  2309. if (this.target.feedback){
  2310. const oldFeedback = JSON.parse(this.target.feedback);
  2311. oldFeedback.forEach(element => {
  2312. if (!this.feedback.includes(element)){
  2313. if (element==='STATEMENT' && this.statementProd.id){
  2314. this.$notify({
  2315. title: '提示',
  2316. message:'不能移除已存在的产品类型',
  2317. type: 'info',
  2318. duration: 2000
  2319. });
  2320. flag =false;
  2321. return;
  2322. }
  2323. if (element==='REPORT' && (this.technicReportProd.id || this.finalReprotProd.id)){
  2324. this.$notify({
  2325. title: '提示',
  2326. message:'不能移除已存在的产品类型',
  2327. type: 'info',
  2328. duration: 2000
  2329. });
  2330. flag =false;
  2331. return;
  2332. }
  2333. }
  2334. });
  2335. }
  2336. if (flag){
  2337. const feedbackDTO = new Object();
  2338. feedbackDTO.id = this.target.id;
  2339. feedbackDTO.feedback = JSON.stringify(this.feedback);
  2340. const taskRecordDTO = this.buildTaskRecordDTO(feedbackDTO)
  2341. this.$api.personalTarget.doFeedback(taskRecordDTO).then(res=>{
  2342. if (res.code ===200 && res.data){
  2343. this.$notify({
  2344. title: '成功',
  2345. message:'反馈客户信息成功',
  2346. type: 'success',
  2347. duration: 2000
  2348. });
  2349. this.getPersonalTarget();
  2350. }else{
  2351. this.$notify({
  2352. title: '失败',
  2353. message:'反馈客户信息失败',
  2354. type: 'error',
  2355. duration: 2000
  2356. });
  2357. }
  2358. })
  2359. }
  2360. },
  2361. }
  2362. }
  2363. </script>
  2364. <style lang="scss" scoped>
  2365. .row-style{
  2366. margin-left:40px;
  2367. margin-right:1%;
  2368. }
  2369. .major-radio{
  2370. width:92px
  2371. }
  2372. .task-class{
  2373. /deep/ .el-form-item__label {
  2374. color: red;
  2375. }
  2376. }
  2377. .evaluate-table{
  2378. margin-left:40px;
  2379. margin-top:35px;
  2380. }
  2381. .pane-class{
  2382. height:800px;
  2383. width:100%;
  2384. overflow-y: scroll;
  2385. }
  2386. /deep/ .cell-class{
  2387. font-size:13px;
  2388. color:black;
  2389. }
  2390. .table {
  2391. /deep/ thead {
  2392. .el-table-column--selection {
  2393. .cell {
  2394. display: none;
  2395. }
  2396. }
  2397. }
  2398. }
  2399. /deep/.doWarehouseClass {
  2400. border-radius: 10px;
  2401. }
  2402. .button-area{
  2403. position: absolute;
  2404. top: 20px;
  2405. right: 50px;
  2406. }
  2407. .error-type{
  2408. margin-right:5px;
  2409. }
  2410. .error-type:hover{
  2411. cursor:pointer;
  2412. }
  2413. .box-card{
  2414. margin-top:40px
  2415. }
  2416. .time {
  2417. font-size: 13px;
  2418. color: #999;
  2419. float:right;
  2420. margin-top:5px;
  2421. }
  2422. .bottom {
  2423. margin-top: 13px;
  2424. line-height: 12px;
  2425. }
  2426. .button {
  2427. float:left;
  2428. }
  2429. .image {
  2430. width: 100%;
  2431. padding: 0%;
  2432. display: block;
  2433. }
  2434. .control{
  2435. z-index: 999;
  2436. position: relative;
  2437. top: 10px;
  2438. }
  2439. .checked{
  2440. margin-left:10px;
  2441. font-size:12px;
  2442. color:green;
  2443. }
  2444. </style>