todoDetail.vue 129 KB

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