todoDetail.vue 106 KB

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