todoDetail.vue 123 KB

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