todoDetail.vue 129 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967
  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. if (newVal.outwardStaff) {
  1155. this.outwardStaffTip = false;
  1156. } else {
  1157. this.outwardStaffTip = true;
  1158. }
  1159. this.certificateInfo = newVal.credentials[0];
  1160. if (newVal.credentials.includes("HOUSE_CERTIFICATE")) {
  1161. this.houseShow = true;
  1162. } else {
  1163. this.houseShow = false;
  1164. }
  1165. if (newVal.credentials.includes("LAND_CERTIFICATE")) {
  1166. this.landShow = true;
  1167. } else {
  1168. this.landShow = false;
  1169. }
  1170. if (newVal.credentials.includes("IMMOVABLE_CERTIFICATE")) {
  1171. this.immovalbeShow = true;
  1172. } else {
  1173. this.immovalbeShow = false;
  1174. }
  1175. this.changeCredentials = newVal.credentials;
  1176. },
  1177. deep: true
  1178. },
  1179. activeTagName: {
  1180. handler(newVal, oldVal) {
  1181. if (newVal != 'order') {
  1182. this.outwardStaffTip = false;
  1183. }
  1184. },
  1185. },
  1186. target: {
  1187. handler(newVal, oldVal) {
  1188. this.getPersonal();
  1189. if (newVal.acreage != null && newVal.price != null && newVal.price !=null && newVal.price != 0) {
  1190. let acrege = Decimal(newVal.acreage);
  1191. let price = Decimal(newVal.price);
  1192. let wan = Decimal(10000);
  1193. let amount = acrege.mul(price).div(wan);
  1194. newVal.amount = utils.roundToDecimalPlace(amount,2)
  1195. }
  1196. if (newVal.id) {
  1197. this.getProductions();
  1198. }
  1199. if (newVal.isOnline) {
  1200. this.jumpTabs();
  1201. }
  1202. if (this.$refs.backgroundInfoComponet) {
  1203. this.$refs.backgroundInfoComponet.refreshLinkAttributes();
  1204. }
  1205. },
  1206. deep: true
  1207. },
  1208. feedback: {
  1209. handler(newVal, oldVal) {
  1210. if (this.currentNode.nodeCode === 'STATEMENT_FEEDBACK' && !newVal.includes("STATEMENT")) {
  1211. //this.feedback.push("STATEMENT");
  1212. }
  1213. // if (this.currentNode.nodeCode === 'QUOTATION_FEEDBACK' && newVal.length>1) {
  1214. // this.$message("只能选择一种产品类型。");
  1215. // //this.feedback = oldVal;
  1216. // }
  1217. // if (this.currentNode.nodeCode === 'STATEMENT_FEEDBACK' && newVal.length!=2) {
  1218. // this.$message("只能选择一种产品类型。");
  1219. // //this.feedback = oldVal;
  1220. // }
  1221. // if ((newVal.includes("REPORT") && newVal.includes("LETTER")) ||
  1222. // (newVal.includes("REPORT") && newVal.includes("NONE")) ||
  1223. // (newVal.includes("LETTER") && newVal.includes("NONE"))) {
  1224. // this.$message('除意见书以外,只能选择剩余中的一种选项');
  1225. // //this.feedback = oldVal;
  1226. // }
  1227. this.nodeBusinessInfo.production = this.feedback;
  1228. this.$refs.board.getInstanceQueue();
  1229. if (this.feedback.includes("STATEMENT")) {
  1230. this.hasStatement = true;
  1231. } else {
  1232. this.hasStatement = false;
  1233. }
  1234. if (this.feedback.includes("REPORT")) {
  1235. this.hasReport = true;
  1236. } else {
  1237. this.hasReport = false;
  1238. }
  1239. if (this.feedback.includes("LETTER")) {
  1240. this.hasLetter = true;
  1241. } else {
  1242. this.hasLetter = false;
  1243. }
  1244. if (this.feedback.length > 0) {
  1245. this.showProds = true
  1246. } else {
  1247. this.showProds = false;
  1248. }
  1249. },
  1250. deep: true
  1251. },
  1252. 'compareList.analysisData': {
  1253. handler(newVal, oldVal) {
  1254. if (newVal[2].compareA.valueA && newVal[5].compareA.valueA) {
  1255. newVal[1].compareA.valueA = newVal[2].compareA.valueA * newVal[5].compareA.valueA;
  1256. }
  1257. if (newVal[2].compareB.valueA && newVal[5].compareB.valueA) {
  1258. newVal[1].compareB.valueA = newVal[2].compareB.valueA * newVal[5].compareB.valueA;
  1259. }
  1260. if (newVal[2].compareC.valueA && newVal[5].compareC.valueA) {
  1261. newVal[1].compareC.valueA = newVal[2].compareC.valueA * newVal[5].compareC.valueA;
  1262. }
  1263. },
  1264. deep: true,
  1265. },
  1266. certificateInfo: {
  1267. handler() {
  1268. this.$nextTick(() => {
  1269. if (this.$refs.immovComponent) {
  1270. this.$refs.immovComponent.refreshLinkAttributes();
  1271. }
  1272. if (this.$refs.houseComponent) {
  1273. this.$refs.houseComponent.refreshLinkAttributes();
  1274. }
  1275. if (this.$refs.landComponent) {
  1276. this.$refs.landComponent.refreshLinkAttributes();
  1277. }
  1278. })
  1279. },
  1280. immediate: true
  1281. }
  1282. },
  1283. computed: {
  1284. certificateCouldEdit() {
  1285. let currentNodeCode = this.$route.query.currentNodeCode;
  1286. if (currentNodeCode === 'GENERATE_STATEMENT' || currentNodeCode === 'WRITE_REPORT' || currentNodeCode === 'WRITE_LETTER'
  1287. || currentNodeCode === 'REVIEW_STATEMENT' || currentNodeCode === 'CHECK_REPORT' || currentNodeCode === 'CHECK_LETTER'
  1288. ) {
  1289. return true;
  1290. } else {
  1291. return false;
  1292. }
  1293. },
  1294. showStatement(){
  1295. if (this.$route.query.currentNodeCode=== 'QUOTATION_FEEDBACK'){
  1296. return true;
  1297. }
  1298. },
  1299. showChangeStatement(){
  1300. if (this.$route.query.currentNodeCode=== 'STATEMENT_FEEDBACK'){
  1301. return true;
  1302. }
  1303. },
  1304. showReport(){
  1305. if (this.$route.query.currentNodeCode=== 'QUOTATION_FEEDBACK' || this.$route.query.currentNodeCode=== 'STATEMENT_FEEDBACK'){
  1306. return true;
  1307. }
  1308. },
  1309. showChangeReport(){
  1310. if (this.$route.query.currentNodeCode=== 'REPORT_FEEDBACK' ){
  1311. return true;
  1312. }
  1313. },
  1314. showLetter(){
  1315. if (this.$route.query.currentNodeCode=== 'QUOTATION_FEEDBACK' ||this.$route.query.currentNodeCode=== 'REPORT_FEEDBACK' || this.$route.query.currentNodeCode=== 'STATEMENT_FEEDBACK'){
  1316. return true;
  1317. }
  1318. },
  1319. showChangeLetter(){
  1320. if (this.$route.query.currentNodeCode=== 'LETTER_FEEDBACK' ){
  1321. return true;
  1322. }
  1323. }
  1324. },
  1325. data() {
  1326. return {
  1327. rules: {
  1328. outwardStaff: [
  1329. { required: true, message: '外业人员不能为空', trigger: 'blur' },
  1330. ],
  1331. },
  1332. workflowLogs: [],
  1333. activeName: null,
  1334. activeTagName: null,
  1335. nodeBusinessInfo: {
  1336. currentNodePermission: {
  1337. commit: true,
  1338. reversible: true,
  1339. restartable: true,
  1340. terminable: true,
  1341. skippable: true,
  1342. },
  1343. mainBusiness: "PERSONAL_BUSINESS",
  1344. doWorkflow: false,
  1345. businessId: null,
  1346. currentNodeInstanceId: null,
  1347. currentNodeInstanceCode: null,
  1348. production: [],
  1349. businessSubId: null,
  1350. ifFeedback: null,
  1351. ccId: null
  1352. },
  1353. currentNode: {
  1354. flowId: null,
  1355. pnodeId: null,
  1356. nodeId: null,
  1357. flowCode: null,
  1358. nodeName: "",
  1359. nodeCode: null,
  1360. state: "",
  1361. instanceId: null,
  1362. sequence: null,
  1363. restartable: null,
  1364. reversible: null,
  1365. skippable: null,
  1366. terminable: null,
  1367. tasks: []
  1368. },
  1369. personal: {
  1370. id: null,
  1371. clientManagerId: null,
  1372. clientManager: null,
  1373. evaluateAim: null,
  1374. purpose: [],
  1375. location: null,
  1376. clienteleType: null,
  1377. clienteleId: null,
  1378. cclienteleName: null,
  1379. cclienteleSubName: null,
  1380. agent: null,
  1381. cclienteleContactName: null,
  1382. cmobile: null,
  1383. cdepartment: null,
  1384. cduty: null,
  1385. loanNature: null,
  1386. loanAim: null,
  1387. loanLimit: null,
  1388. loanPeriod: null,
  1389. loanExpire: false,
  1390. credentials: [],
  1391. bailorA: null,
  1392. bailorATel: null,
  1393. bailorB: null,
  1394. bailorBTel: null,
  1395. terminalClienteleType: null,
  1396. tterminalClienteleName: null,
  1397. tterminalClienteleContactName: null,
  1398. tmobile: null,
  1399. remark: null,
  1400. inwardStaffName: null,
  1401. outwardStaff: null,
  1402. outwardStaffName: null,
  1403. pricingStaffName: null,
  1404. inwardStaffName: null,
  1405. },
  1406. outwardStaffs: [],
  1407. outwardStaffTip: true,
  1408. certificateName: null,
  1409. otherInfo: 'entityInfo',
  1410. certificateInfo: null,
  1411. target: {
  1412. id: null,
  1413. personalId: null,
  1414. location: null,
  1415. bailorA: null,
  1416. bailorB: null,
  1417. acreage: null,
  1418. amount: null,
  1419. price: null,
  1420. isOnline: null,
  1421. feedback: null,
  1422. houseCertificate: null,
  1423. landCertificate: null,
  1424. immovableCertificate: null,
  1425. entityInfo: null,
  1426. backgroundInfo: null,
  1427. sellingAbility: null,
  1428. sellMoney: null,
  1429. sellMoneyBase: null,
  1430. sellMoneyRate: null,
  1431. validateCode: null
  1432. },
  1433. compareList: {
  1434. targetId: null,
  1435. calculateId: null,
  1436. fixValue: 1,
  1437. rightsType: 'SELL',
  1438. rollingLevel: 1,
  1439. calculateType: 'SIMPLE',
  1440. method: 'COMPARE',
  1441. analysisData: [
  1442. {
  1443. "sorted": null,
  1444. "index": "坐落",
  1445. "compareA": { valueA: null },
  1446. "compareB": { valueA: null },
  1447. "compareC": { valueA: null },
  1448. "target": { valueA: null },
  1449. },
  1450. {
  1451. "sorted": null,
  1452. "index": "总价(元)",
  1453. "compareA": { valueA: null },
  1454. "compareB": { valueA: null },
  1455. "compareC": { valueA: null },
  1456. "target": { valueA: null },
  1457. },
  1458. {
  1459. "sorted": null,
  1460. "index": "单价(元)",
  1461. "compareA": { valueA: null },
  1462. "compareB": { valueA: null },
  1463. "compareC": { valueA: null },
  1464. "target": { valueA: null },
  1465. },
  1466. {
  1467. "sorted": null,
  1468. "index": "市场状况",
  1469. "compareA": { valueA: null, weight: 100 },
  1470. "compareB": { valueA: null, weight: 100 },
  1471. "compareC": { valueA: null, weight: 100 },
  1472. "target": { valueA: null, weight: 100 },
  1473. },
  1474. {
  1475. "sorted": null,
  1476. "index": "所在楼栋",
  1477. "compareA": { valueA: '对中庭', weight: 100 },
  1478. "compareB": { valueA: '对中庭', weight: 100 },
  1479. "compareC": { valueA: '对中庭', weight: 100 },
  1480. "target": { valueA: '对中庭', weight: 100 },
  1481. },
  1482. {
  1483. "sorted": null,
  1484. "index": "建筑面积(平)",
  1485. "compareA": { valueA: 0, weight: 100 },
  1486. "compareB": { valueA: 0, weight: 100 },
  1487. "compareC": { valueA: 0, weight: 100 },
  1488. "target": { valueA: 0, weight: 100 },
  1489. },
  1490. {
  1491. "sorted": null,
  1492. "index": "楼层/总楼层",
  1493. "compareA": { valueA: null, valueb: null, weight: 100 },
  1494. "compareB": { valueA: null, valueb: null, weight: 100 },
  1495. "compareC": { valueA: null, valueb: null, weight: 100 },
  1496. "target": { valueA: null, valueb: null, weight: 100 },
  1497. },
  1498. {
  1499. "sorted": null,
  1500. "index": "户型",
  1501. "compareA": { valueA: null, weight: 100 },
  1502. "compareB": { valueA: null, weight: 100 },
  1503. "compareC": { valueA: null, weight: 100 },
  1504. "target": { valueA: null, weight: 100 },
  1505. },
  1506. {
  1507. "sorted": null,
  1508. "index": "室内装饰",
  1509. "compareA": { valueA: null, weight: 100 },
  1510. "compareB": { valueA: null, weight: 100 },
  1511. "compareC": { valueA: null, weight: 100 },
  1512. "target": { valueA: null, weight: 100 },
  1513. },
  1514. {
  1515. "sorted": null,
  1516. "index": "其他",
  1517. "compareA": { valueA: null, weight: 100 },
  1518. "compareB": { valueA: null, weight: 100 },
  1519. "compareC": { valueA: null, weight: 100 },
  1520. "target": { valueA: null, weight: 100 },
  1521. },
  1522. {
  1523. "sorted": null,
  1524. "index": "修正后价格",
  1525. "compareA": { valueA: null },
  1526. "compareB": { valueA: null },
  1527. "compareC": { valueA: null },
  1528. "target": { valueA: null },
  1529. }
  1530. ],
  1531. price: null,
  1532. amount: null,
  1533. acreage: null,
  1534. sellMoney: null,
  1535. sellMoneyBase: null,
  1536. sellMoneyRate: null
  1537. },
  1538. needWeight: ['所在楼栋', '建筑面积(平)', '户型', '其他','室内装饰'],
  1539. requiredIndex: ['单价(元)', '坐落', '市场状况', '所在楼栋', '建筑面积(平)', '户型', '室内装饰', '楼层/总楼层', '权重'],
  1540. calculateWeight: {
  1541. "sorted": null,
  1542. "index": "权重",
  1543. "compareA": { valueA: null },
  1544. "compareB": { valueA: null },
  1545. "compareC": { valueA: null },
  1546. "target": { valueA: null },
  1547. },
  1548. calculating: false,
  1549. decideProductionTypeDialog: false,
  1550. linkAttributes: {
  1551. location: null,
  1552. bailor1: null,
  1553. bailor1Tel: null,
  1554. bailor2: null,
  1555. bailor2Tel: null,
  1556. acreage: null,
  1557. allFloor: null,
  1558. purpose: null,
  1559. ownerName: null,
  1560. atFloor: null,
  1561. communityName:null
  1562. },
  1563. statementProd: {
  1564. id: null,
  1565. targetId: null,
  1566. files: [],
  1567. created: null,
  1568. checkState: null,
  1569. isOnline: null
  1570. },
  1571. technicReportProd: {
  1572. id: null,
  1573. targetId: null,
  1574. files: [],
  1575. created: null,
  1576. checkState: null
  1577. },
  1578. finalReprotProd: {
  1579. id: null,
  1580. targetId: null,
  1581. files: [],
  1582. created: null,
  1583. checkState: null
  1584. },
  1585. letterReprotProd: {
  1586. id: null,
  1587. targetId: null,
  1588. files: [],
  1589. created: null,
  1590. checkSatae: null
  1591. },
  1592. statementCardPNG: emptyPNG,
  1593. technicCardPNG: emptyPNG,
  1594. finalCardPNG: emptyPNG,
  1595. letterCardPNG: emptyPNG,
  1596. outWarehouseDialog: false,
  1597. inWarehouseDialog: false,
  1598. warehouseTip: null,
  1599. productionId: null,
  1600. hasStatement: false,
  1601. hasReport: false,
  1602. hasLetter: false,
  1603. feedback: null,
  1604. checkDialog: false,
  1605. checkProDTO: {
  1606. targetId: null,
  1607. production: null
  1608. },
  1609. showProds: true,
  1610. sceneForm: {
  1611. id: null,
  1612. personalId: null,
  1613. inRingDewlling: null,
  1614. outRingDewlling: null,
  1615. inRingBuilding: null,
  1616. outRingBuilding: null,
  1617. remark: null
  1618. },
  1619. houseShow: false,
  1620. immovalbeShow: false,
  1621. landShow: false,
  1622. changeCredentials: [],
  1623. showQR:true,
  1624. checkerDialog:false,
  1625. checkerId:null,
  1626. checkers:[],
  1627. decideProduction:false,
  1628. checkStateFlag:false,
  1629. valueTiming:null
  1630. }
  1631. },
  1632. created() {
  1633. this.personalId = this.$route.query.id;
  1634. this.businessSubId = this.$route.query.orderId;
  1635. this.isOnline = this.$route.query.isOnline === 'true';
  1636. this.nodeBusinessInfo.currentNodeInstanceCode = this.$route.query.currentNodeCode;
  1637. this.nodeBusinessInfo.doWorkflow = this.$route.query.doWorkflow === 'true';
  1638. this.nodeBusinessInfo.businessId = this.$route.query.id;
  1639. this.nodeBusinessInfo.businessSubId = this.$route.query.orderId;
  1640. this.activeTagName = this.jumpTabs();
  1641. this.getPersonalTarget();
  1642. this.getPersonal();
  1643. this.getOutWardStaffList();
  1644. this.getWorkflowLogs();
  1645. this.getCurrentNodeInfo();
  1646. this.getProductions();
  1647. this.getScene();
  1648. },
  1649. methods: {
  1650. getPersonal() {
  1651. if (this.personalId) {
  1652. this.$api.personal.detail(this.personalId).then(res => {
  1653. if (res.code === 200) {
  1654. res.data.credentials = JSON.parse(res.data.credentials);
  1655. res.data.purpose = JSON.parse(res.data.purpose);
  1656. this.personal = res.data;
  1657. // this.linkAttributes.location = this.personal.location;
  1658. // this.linkAttributes.bailor1 = this.personal.bailorA;
  1659. // this.linkAttributes.bailor1Tel = this.personal.bailoraTel;
  1660. // this.linkAttributes.bailor2 = this.personal.bailorB;
  1661. // this.linkAttributes.bailor2Tel = this.personal.bailorbTel;
  1662. this.linkAttributes.purpose = this.personal.purpose;
  1663. if (this.personal.evaluateAim === '抵押') {
  1664. this.linkAttributes.ownerName = this.personal.bailorA;
  1665. }
  1666. this.nodeBusinessInfo.ccId = this.personal.clienteleId;
  1667. }
  1668. })
  1669. }
  1670. },
  1671. getPersonalTarget() {
  1672. if (this.personalId) {
  1673. this.$api.personalTarget.detail(this.personalId).then(res => {
  1674. if (res.code === 200) {
  1675. this.target = res.data;
  1676. //如果没有单价,则只用总价。 个贷多套有这情况
  1677. if (this.target.price==null || this.target.price===0){
  1678. if (this.target.amount){
  1679. let amount = Decimal(this.target.amount);
  1680. let wan = Decimal(10000);
  1681. this.target.amount = utils.roundToDecimalPlace(amount.div(wan),2);
  1682. }
  1683. }
  1684. this.linkAttributes.acreage = this.target.acreage;
  1685. if (res.data.isOnline) {
  1686. this.getCaluateTable(res.data.id)
  1687. }
  1688. if (res.data.houseCertificate) {
  1689. this.target.houseCertificate = JSON.parse(res.data.houseCertificate);
  1690. this.linkAttributes.location = this.target.houseCertificate.location;
  1691. }
  1692. if (res.data.landCertificate) {
  1693. this.target.landCertificate = JSON.parse(res.data.landCertificate)
  1694. }
  1695. if (res.data.immovableCertificate) {
  1696. this.target.immovableCertificate = JSON.parse(res.data.immovableCertificate);
  1697. this.linkAttributes.location = this.target.immovableCertificate.location;
  1698. }
  1699. if (res.data.entityInfo) {
  1700. this.target.entityInfo = JSON.parse(res.data.entityInfo);
  1701. }
  1702. if (res.data.backgroundInfo) {
  1703. this.target.backgroundInfo = JSON.parse(res.data.backgroundInfo);
  1704. this.linkAttributes.location = this.target.backgroundInfo.location;
  1705. }
  1706. if (res.data.sellingAbility) {
  1707. this.target.sellingAbility = JSON.parse(res.data.sellingAbility);
  1708. }
  1709. if (res.data.feedback) {
  1710. this.feedback = JSON.parse(res.data.feedback);
  1711. this.nodeBusinessInfo.production = this.feedback;
  1712. this.nodeBusinessInfo.ifFeedback = this.feedback?false:true;
  1713. } else {
  1714. this.feedback = []
  1715. }
  1716. this.qrCodeUrl = this.target.qrCode;
  1717. }
  1718. })
  1719. }
  1720. },
  1721. getCurrentNodeInfo() {
  1722. if (this.personalId) {
  1723. this.$api.workNodeInstance.currentNode({ "mainBusiness": "PERSONAL_BUSINESS", "businessId": this.personalId, "businessSubId": this.businessSubId }).then(res => {
  1724. if (res.code === 200) {
  1725. if (res.data) {
  1726. this.currentNode = res.data;
  1727. this.nodeBusinessInfo.currentInstanceNodeId = res.data.instanceId;
  1728. this.nodeBusinessInfo.currentNodeInstanceCode = res.data.nodeCode;
  1729. this.nodeBusinessInfo.currentNodePermission.restartable = res.data.restartable;
  1730. this.nodeBusinessInfo.currentNodePermission.reversible = res.data.reversible;
  1731. this.nodeBusinessInfo.currentNodePermission.skippable = res.data.skippable;
  1732. this.nodeBusinessInfo.currentNodePermission.terminable = res.data.terminable;
  1733. }
  1734. }
  1735. })
  1736. }
  1737. },
  1738. handleClick(tab) {
  1739. if ("producution" === tab && this.feedback == null) {
  1740. this.feedback = [];
  1741. }
  1742. if ("scene" === tab) {
  1743. this.getScene();
  1744. }
  1745. },
  1746. getWorkflowLogs() {
  1747. let param = {
  1748. businessId: this.personalId,
  1749. businessType: 'PERSONAL_BUSINESS',
  1750. businessSubId: this.businessSubId
  1751. }
  1752. this.$api.workflowLog.list(param).then(res => {
  1753. if (res.code === 200) {
  1754. this.workflowLogs = res.data;
  1755. const sences = this.workflowLogs.filter(item=>item.nodeName=='现场勘查');
  1756. this.valueTiming = sences[sences.length-1].created
  1757. }
  1758. })
  1759. },
  1760. workflowCommitVerify(val, callback) {
  1761. let commit = val.commit;
  1762. let verify = new Object();
  1763. verify.state = true;
  1764. verify.productionType = this.feedback;
  1765. verify.nextHandlerId = this.checkerId;
  1766. if (commit.state === 'PASS') {
  1767. let nodeCode = this.nodeBusinessInfo.currentNodeInstanceCode;
  1768. switch (nodeCode) {
  1769. case 'DEPARTMENT_ALLOCATION':
  1770. if (!this.personal.outwardStaff) {
  1771. this.$message('请确定外业人员后,再提交流程。')
  1772. verify.state = false;
  1773. } else {
  1774. verify.nextHandlerId = this.personal.outwardStaff;
  1775. }
  1776. callback(verify);
  1777. return;
  1778. case "DETERMINE_PRICE":
  1779. if (!this.decideProduction) {
  1780. verify.state = false;
  1781. callback(verify);
  1782. this.decideProductionTypeDialog = true
  1783. return;
  1784. } else {
  1785. callback(verify);
  1786. return;
  1787. }
  1788. case "GENERATE_STATEMENT":
  1789. case "WRITE_REPORT":
  1790. case "WRITE_LETTER":
  1791. // if (this.isOnline) {
  1792. // let ok = true;
  1793. // this.personal.credentials.forEach(item => {
  1794. // if (item === 'HOUSE_CERTIFICATE' && !this.target.houseCertificate) {
  1795. // this.$notify({
  1796. // title: '提示',
  1797. // message: '请先完成房产证信息录入再提交,否则请切换为线下流程。',
  1798. // type: 'error',
  1799. // duration: 2000
  1800. // });
  1801. // ok = false;
  1802. // }
  1803. // if (item === 'LAND_CERTIFICATE' && !this.target.landCertificate) {
  1804. // this.$notify({
  1805. // title: '提示',
  1806. // message: '请先完成国土证信息录入再提交,否则请切换为线下流程。',
  1807. // type: 'error',
  1808. // duration: 2000
  1809. // });
  1810. // ok = false;
  1811. // }
  1812. // if (item === 'IMMOVABLE_CERTIFICATE' && !this.target.immovableCertificate) {
  1813. // this.$notify({
  1814. // title: '提示',
  1815. // message: '请先完成不动产权证信息录入再提交,否则请切换为线下流程。',
  1816. // type: 'error',
  1817. // duration: 2000
  1818. // });
  1819. // ok = false;
  1820. // }
  1821. // })
  1822. // if (!ok){
  1823. // verify.state = false;
  1824. // callback(verify);
  1825. // return;
  1826. // }
  1827. // if (this.compareList.calculateId==null || this.compareList.targetId==null){
  1828. // this.$notify({
  1829. // title: '提示',
  1830. // message: '请先完成可比实例表。',
  1831. // type: 'error',
  1832. // duration: 2000
  1833. // });
  1834. // verify.state = false;
  1835. // callback(verify);
  1836. // return;
  1837. // }
  1838. // if (ok && nodeCode === 'GENERATE_STATEMENT' && (this.statementProd == null || this.statementProd.files.length === 0)) {
  1839. // this.$notify({
  1840. // title: '提示',
  1841. // message: '请生成意见书,再提交流程',
  1842. // type: 'error',
  1843. // duration: 2000
  1844. // });
  1845. // verify.state = false;
  1846. // callback(verify);
  1847. // return;
  1848. // }
  1849. // if (ok && nodeCode === 'WRITE_REPORT' && (this.technicReportProd == null || this.technicReportProd.files.length === 0)) {
  1850. // this.$notify({
  1851. // title: '提示',
  1852. // message: '请生成报告,再提交流程',
  1853. // type: 'error',
  1854. // duration: 2000
  1855. // });
  1856. // verify.state = false;
  1857. // callback(verify);
  1858. // return;
  1859. // }
  1860. // if (ok && nodeCode === 'WRITE_LETTER' && (this.letterReprotProd == null || this.letterReprotProd.files.length === 0)) {
  1861. // this.$notify({
  1862. // title: '提示',
  1863. // message: '请生成复评函,再提交流程',
  1864. // type: 'error',
  1865. // duration: 2000
  1866. // });
  1867. // verify.state = false;
  1868. // callback(verify);
  1869. // return;
  1870. // }
  1871. // }
  1872. // else{
  1873. // if (nodeCode === 'GENERATE_STATEMENT' && (this.statementProd == null || this.statementProd.files.length === 0)) {
  1874. // this.$notify({
  1875. // title: '提示',
  1876. // message: '流程类型为下线请上传意见书,再提交流程',
  1877. // type: 'error',
  1878. // duration: 2000
  1879. // });
  1880. // verify.state = false;
  1881. // callback(verify);
  1882. // return;
  1883. // }
  1884. // if (nodeCode === 'WRITE_REPORT' && (this.technicReportProd == null || this.technicReportProd.files.length === 0)) {
  1885. // this.$notify({
  1886. // title: '提示',
  1887. // message: '流程类型为下线请上传报告,再提交流程',
  1888. // type: 'error',
  1889. // duration: 2000
  1890. // });
  1891. // verify.state = false;
  1892. // callback(verify);
  1893. // return;
  1894. // }
  1895. // if (nodeCode === 'WRITE_LETTER' && (this.letterReprotProd == null || this.letterReprotProd.files.length === 0)) {
  1896. // this.$notify({
  1897. // title: '提示',
  1898. // message: '流程类型为下线请上传复评函,再提交流程',
  1899. // type: 'error',
  1900. // duration: 2000
  1901. // });
  1902. // verify.state = false;
  1903. // callback(verify);
  1904. // return;
  1905. // }
  1906. // }
  1907. if (!verify.nextHandlerId ){
  1908. this.checkerDialog = true;
  1909. this.$api.user.postUserVOList("个贷审核岗").then(res => {
  1910. if (res.code === 200) {
  1911. this.checkers = res.data;
  1912. //默认复审人
  1913. this.checkerId = res.data[0].id;
  1914. }
  1915. })
  1916. verify.state = false;
  1917. callback(verify);
  1918. return;
  1919. }
  1920. callback(verify);
  1921. return;
  1922. case "REVIEW_STATEMENT":
  1923. if (!this.checkStateFlag) {
  1924. verify.state = false;
  1925. callback(verify);
  1926. this.checkProDTO.production = "STATEMENT";
  1927. this.checkProDTO.targetId = this.target.id;
  1928. this.getPersonalTarget();
  1929. this.checkDialog = true
  1930. return;
  1931. }
  1932. callback(verify);
  1933. return;
  1934. case "CHECK_REPORT":
  1935. if (!this.checkStateFlag) {
  1936. verify.state = false;
  1937. callback(verify);
  1938. this.checkProDTO.production = "REPORT";
  1939. this.checkProDTO.targetId = this.target.id;
  1940. this.getPersonalTarget();
  1941. this.checkDialog = true
  1942. return;
  1943. }
  1944. callback(verify);
  1945. return;
  1946. case "CHECK_LETTER":
  1947. if (!this.checkStateFlag) {
  1948. verify.state = false;
  1949. callback(verify);
  1950. this.checkProDTO.production = "LETTER";
  1951. this.checkProDTO.targetId = this.target.id;
  1952. this.getPersonalTarget();
  1953. this.checkDialog = true
  1954. return;
  1955. }
  1956. callback(verify);
  1957. return;
  1958. case "QUOTATION_FEEDBACK":
  1959. if (this.feedback.length != 1) {
  1960. verify.state = false;
  1961. callback(verify);
  1962. this.$message("还没有确定产品类型");
  1963. return;
  1964. }
  1965. callback(verify);
  1966. return;
  1967. case "STATEMENT_FEEDBACK":
  1968. if (this.feedback.length != 2) {
  1969. verify.state = false;
  1970. callback(verify);
  1971. this.$message("意见书送达后,还没有确定后续产品类型。");
  1972. return;
  1973. }
  1974. callback(verify);
  1975. return;
  1976. }
  1977. }
  1978. },
  1979. handleChange(tab) {
  1980. if (this.outwardStaffTip) {
  1981. this.outwardStaffTip = false;
  1982. }
  1983. },
  1984. goBack() {
  1985. const back = this.$route.query.back
  1986. if (back) {
  1987. this.$router.push(back)
  1988. }
  1989. },
  1990. getOutWardStaffList() {
  1991. this.$api.user.postUser("个贷外业岗").then(res => {
  1992. if (res.code === 200) {
  1993. this.outwardStaffs = res.data;
  1994. }
  1995. })
  1996. },
  1997. saveOutwardStaff() {
  1998. this.$refs.personalMemberForm.validate(valid => {
  1999. if (valid) {
  2000. if (this.personal.id) {
  2001. const personalMember = new Object();
  2002. personalMember.id = this.personal.id;
  2003. personalMember.outwardStaff = this.personal.outwardStaff
  2004. const taskRecordDTO = this.buildTaskRecordDTO(personalMember);
  2005. this.$api.personal.allotOutward(taskRecordDTO).then(res => {
  2006. if (res.code === 200 && res.data) {
  2007. this.$notify({
  2008. title: '成功',
  2009. message: '保存成功,请提交节点继续流程。',
  2010. type: 'success',
  2011. duration: 2000
  2012. });
  2013. } else {
  2014. this.$notify({
  2015. title: '失败',
  2016. message: '保存失败,请提联系系统管理员',
  2017. type: 'success',
  2018. duration: 2000
  2019. });
  2020. }
  2021. })
  2022. }
  2023. }
  2024. })
  2025. },
  2026. //构建任务处理对象
  2027. buildTaskRecordDTO(data) {
  2028. const taskRecordDTO = new Object();
  2029. taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2030. taskRecordDTO.taskData = data;
  2031. return taskRecordDTO;
  2032. },
  2033. //提交节点
  2034. commit(state) {
  2035. this.$refs.board.commit(state);
  2036. },
  2037. jumpTabs() {
  2038. const orderTag = ['OPENING_ORDER', 'DEPARTMENT_ALLOCATION'];
  2039. const evaluate = ['DETERMINE_PRICE', 'REVIEW_STATEMENT', 'CHECK_REPORT', 'CHECK_LETTER'];
  2040. const certificates = ['GENERATE_STATEMENT', 'WRITE_REPORT', 'WRITE_LETTER']
  2041. const scenesTag = ['SPOT_RECONNAISSANCE']
  2042. const nodeCode = this.$route.query.currentNodeCode;
  2043. if (orderTag.includes(nodeCode)) {
  2044. return 'order';
  2045. }
  2046. if (evaluate.includes(nodeCode)) {
  2047. return 'evaluate'
  2048. }
  2049. if (certificates.includes(nodeCode) && this.isOnline) {
  2050. return 'certificateInfo';
  2051. }
  2052. if (this.feedback == null) {
  2053. this.feedback = [];
  2054. }
  2055. if (scenesTag.includes(nodeCode)) {
  2056. return 'scene';
  2057. }
  2058. return 'producution'
  2059. },
  2060. calulate(){
  2061. this.calculating = true;
  2062. this.$refs.compareToForm.validate(valid => {
  2063. if (valid) {
  2064. if (validateParams(this.compareList.analysisData)) {
  2065. this.compareList = calculateTargetPrice(this.compareList);
  2066. }
  2067. }
  2068. })
  2069. setTimeout(() => {
  2070. this.calculating = false;
  2071. }, 500)
  2072. },
  2073. calulateAndSave() {
  2074. this.calculating = true;
  2075. this.$refs.compareToForm.validate(valid => {
  2076. if (valid) {
  2077. if (validateParams(this.compareList.analysisData)) {
  2078. this.compareList = calculateTargetPrice(this.compareList);
  2079. }
  2080. }
  2081. })
  2082. this.saveCalulateResult();
  2083. setTimeout(() => {
  2084. this.calculating = false;
  2085. }, 500)
  2086. },
  2087. saveCalulateResult() {
  2088. this.target.amount = this.compareList.amount;
  2089. this.target.price = this.compareList.price;
  2090. this.target.acreage = this.compareList.acreage;
  2091. this.compareList.targetId = this.target.id;
  2092. this.target.sellMoneyRate = this.compareList.sellMoneyRate;
  2093. this.target.sellMoney = this.compareList.sellMoney;
  2094. this.target.sellMoneyBase = this.compareList.sellMoneyBase;
  2095. let message = this.target.price?'价格保存成功。':'价格未计算,暂存可比实例信息。';
  2096. let type = this.target.price?'success':'warning';
  2097. let taskRecord = this.buildTaskRecordDTO(this.compareList);
  2098. this.$api.personalCalculate.calculate(taskRecord).then(res => {
  2099. if (res.code === 200 && res.data) {
  2100. this.getCaluateTable(this.target.id);
  2101. this.$notify({
  2102. title: '成功',
  2103. message: message,
  2104. type: type,
  2105. duration: 2000
  2106. });
  2107. } else {
  2108. this.$notify({
  2109. title: '失败',
  2110. message: '保存失败',
  2111. type: 'error',
  2112. duration: 2000
  2113. });
  2114. }
  2115. })
  2116. },
  2117. savePrice() {
  2118. this.$refs.targetForm.validate(valid => {
  2119. if (valid) {
  2120. let target = new Object();
  2121. target.id = this.target.id;
  2122. target.personalId = this.target.personalId;
  2123. target.price = this.target.price
  2124. target.amount = this.target.amount*10000;
  2125. target.acreage = this.target.acreage;
  2126. target.location = this.personal.location;
  2127. target.bailorA = this.personal.bailorA;
  2128. target.bailorB = this.personal.bailorB;
  2129. let taskRecord = this.buildTaskRecordDTO(target);
  2130. this.$api.personalTarget.price(taskRecord).then(res => {
  2131. if (res.code === 200 && res.data) {
  2132. this.$notify({
  2133. title: '成功',
  2134. message: '保存成功',
  2135. type: 'success',
  2136. duration: 2000
  2137. });
  2138. this.getPersonalTarget();
  2139. } else {
  2140. this.$notify({
  2141. title: '失败',
  2142. message: '保存失败',
  2143. type: 'error',
  2144. duration: 2000
  2145. });
  2146. }
  2147. })
  2148. }
  2149. })
  2150. },
  2151. getCaluateTable(targetId) {
  2152. if (targetId) {
  2153. this.$api.personalCalculate.getResult(targetId).then(res => {
  2154. if (res.code === 200 && res.data) {
  2155. this.compareList = res.data;
  2156. this.linkAttributes.allFloor = this.compareList.analysisData[6].target.valueB;
  2157. this.linkAttributes.atFloor = this.compareList.analysisData[6].target.valueA;
  2158. this.linkAttributes.houseType = this.compareList.analysisData[7].target.valueA;
  2159. this.linkAttributes.communityName = this.compareList.analysisData[0].target.valueA;
  2160. this.selectCalculateType();
  2161. }else {
  2162. this.defalutYearMonth();
  2163. }
  2164. })
  2165. }
  2166. },
  2167. calculateSwith() {
  2168. this.$api.personalTarget.calculateSwith(this.target.isOnline, this.target.id).then(res => {
  2169. if (res.code === 200 && res.data) {
  2170. this.isOnline = this.target.isOnline;
  2171. }
  2172. })
  2173. if (this.target.isOnline && !this.compareList.calculateId) {
  2174. this.getCaluateTable(this.target.id);
  2175. }
  2176. },
  2177. selectCalculateType() {
  2178. let data = this.compareList.analysisData
  2179. if (this.compareList.calculateType === 'SIMPLE') {
  2180. let dataX = data.filter(function (item) {
  2181. return item.index != '权重'
  2182. })
  2183. this.compareList.analysisData = dataX;
  2184. } else {
  2185. if (!data.map(item => item.index).includes("权重")) {
  2186. data.splice(10, 0, this.calculateWeight)
  2187. }
  2188. }
  2189. },
  2190. saveFeedbackWhenPrice() {
  2191. this.decideProduction = true;
  2192. if (this.target.id && this.target.feedback && this.target.feedback != 'NONE') {
  2193. this.nodeBusinessInfo.ifFeedback = false;
  2194. this.nodeBusinessInfo.production = [this.target.feedback];
  2195. const feedbackReq = new Object();
  2196. feedbackReq.feedback = this.target.feedback;
  2197. feedbackReq.id = this.target.id;
  2198. feedbackReq.personalId = this.target.personalId;
  2199. this.$api.personalTarget.feedback(feedbackReq);
  2200. }
  2201. this.decideProductionTypeDialog = false;
  2202. this.commit("PASS");
  2203. },
  2204. genProductionFile(tag) {
  2205. const certificates = this.personal.credentials
  2206. for (let i in certificates) {
  2207. if (certificates[i] === 'HOUSE_CERTIFICATE' && !this.target.houseCertificate) {
  2208. this.$message('房产证未点击保存');
  2209. return;
  2210. }
  2211. if (certificates[i] === 'LAND_CERTIFICATE' && !this.target.landCertificate) {
  2212. this.$message('国土证未点击保存');
  2213. return;
  2214. }
  2215. if (certificates[i] === 'IMMOVABLE_CERTIFICATE' && !this.target.immovableCertificate) {
  2216. this.$message('不动产权证未点击保存');
  2217. return;
  2218. }
  2219. }
  2220. if (!this.target.entityInfo) {
  2221. this.$message('实物状况未点击保存');
  2222. return;
  2223. }
  2224. if (!this.target.backgroundInfo) {
  2225. this.$message('区位状况未点击保存');
  2226. return;
  2227. }
  2228. if (!this.target.sellingAbility) {
  2229. this.$message('变现能力未点击保存');
  2230. return;
  2231. }
  2232. this.$confirm('系统生成将会覆盖原有文档,请确认是否继续?', '提示', {
  2233. confirmButtonText: '确认',
  2234. cancelButtonText: '取消',
  2235. type: 'warning',
  2236. center: true
  2237. }).then(() => {
  2238. if (this.personal.id && this.target.id) {
  2239. this.$api.personalProduction.genFile(this.personal.id, tag).then(res => {
  2240. if (res.code === 200 && res.data) {
  2241. this.$notify({
  2242. title: '成功',
  2243. message: '生成文档成功',
  2244. type: 'success',
  2245. duration: 2000
  2246. });
  2247. this.getProductions();
  2248. this.getPersonalTarget();
  2249. } else {
  2250. this.$notify({
  2251. title: '失败',
  2252. message: '生成文档失败',
  2253. type: 'error',
  2254. duration: 2000
  2255. });
  2256. }
  2257. })
  2258. }
  2259. })
  2260. },
  2261. getProductions() {
  2262. if (this.target.id) {
  2263. this.$api.personalProduction.getProductions(this.target.id).then(res => {
  2264. if (res.code === 200) {
  2265. const words = res.data
  2266. words.forEach(word => {
  2267. if (word.production === 'STATEMENT') {
  2268. this.statementProd = word;
  2269. const fs = [];
  2270. if (word.filePath) {
  2271. this.statementCardPNG = existPNG;
  2272. const sta = JSON.parse(word.filePath)
  2273. sta.id = word.id;
  2274. fs.push(sta);
  2275. } else {
  2276. this.statementCardPNG = emptyPNG;
  2277. }
  2278. this.statementProd.files = fs;
  2279. }
  2280. if (word.production === 'TECHNIC') {
  2281. this.technicReportProd = word;
  2282. const fs = [];
  2283. if (word.filePath) {
  2284. const tec = JSON.parse(word.filePath)
  2285. tec.id = word.id;
  2286. this.technicCardPNG = existPNG;
  2287. fs.push(tec);
  2288. } else {
  2289. this.technicCardPNG = emptyPNG;
  2290. }
  2291. this.technicReportProd.files = fs;
  2292. }
  2293. if (word.production === 'FINAL') {
  2294. this.finalReprotProd = word;
  2295. const fs = [];
  2296. if (word.filePath) {
  2297. const final = JSON.parse(word.filePath)
  2298. final.id = word.id;
  2299. this.finalCardPNG = existPNG;
  2300. fs.push(final);
  2301. } else {
  2302. this.finalCardPNG = emptyPNG;
  2303. }
  2304. this.finalReprotProd.files = fs;
  2305. }
  2306. if (word.production === 'LETTER') {
  2307. this.letterReprotProd = word;
  2308. const fs = [];
  2309. if (word.filePath) {
  2310. const final = JSON.parse(word.filePath)
  2311. final.id = word.id;
  2312. this.letterCardPNG = existPNG;
  2313. fs.push(final);
  2314. } else {
  2315. this.letterCardPNG = emptyPNG;
  2316. }
  2317. this.letterReprotProd.files = fs;
  2318. }
  2319. });
  2320. }
  2321. })
  2322. }
  2323. },
  2324. handleExceed(files, fileList) {
  2325. this.$message(`当前限制选择 1个文件,本次选择了 ${files.length} 个文件`);
  2326. },
  2327. handleAttachmentPreview(file) {
  2328. // window.open(file.url)
  2329. // this.officeFileView(name,url);
  2330. this.openPageoffice(file.name,file.url);
  2331. },
  2332. handleRemoveFile(file, fileList) {
  2333. this.$confirm('请确认是否移除已存在的报告?', '提示', {
  2334. confirmButtonText: '确定',
  2335. cancelButtonText: '取消',
  2336. type: 'warning',
  2337. center: true
  2338. }).then(() => {
  2339. let pid = file.id;
  2340. if (pid) {
  2341. this.$api.personalProduction.removeFile(pid).then(res => {
  2342. if (res.code === 200 && res.data) {
  2343. this.$notify({
  2344. title: '成功',
  2345. message: '文档移除成功',
  2346. type: 'success',
  2347. duration: 2000
  2348. });
  2349. this.getProductions();
  2350. }
  2351. })
  2352. }
  2353. })
  2354. },
  2355. selectRoll() {
  2356. let roll = this.compareList.rollingLevel;
  2357. this.compareList.sellMoneyRate = 0.01;
  2358. if (roll === 1) {
  2359. this.compareList.sellMoneyBase = 12000;
  2360. this.compareList.sellMoney = 12000 * 0.01;
  2361. } else if (roll === 2) {
  2362. this.compareList.sellMoneyBase = 10800;
  2363. this.compareList.sellMoney = 10800 * 0.01;
  2364. } else {
  2365. this.compareList.sellMoneyBase = 10100;
  2366. this.compareList.sellMoney = 10100 * 0.01;
  2367. }
  2368. },
  2369. selectRightsType() {
  2370. if (this.compareList.rightsType === 'SELL') {
  2371. this.compareList.sellMoneyRate = null;
  2372. this.compareList.sellMoneyBase = null;
  2373. this.compareList.sellMoney = null;
  2374. this.target.sellMoneyRate = null;
  2375. this.target.sellMoneyBase = null;
  2376. this.target.sellMoney = null;
  2377. } else {
  2378. this.selectRoll();
  2379. }
  2380. },
  2381. doStamp(files) {
  2382. const file = files[0];
  2383. if (file) {
  2384. this.$api.businessProduction.doStamp(file).then(res => {
  2385. if (res.code === 200 && res.data) {
  2386. this.$notify({
  2387. title: '成功',
  2388. message: '加盖公章成功',
  2389. type: 'success',
  2390. duration: 2000
  2391. });
  2392. } else {
  2393. this.$notify({
  2394. title: '失败',
  2395. message: '加盖公章失败',
  2396. type: 'error',
  2397. duration: 2000
  2398. });
  2399. }
  2400. })
  2401. } else {
  2402. this.$notify({
  2403. title: '失败',
  2404. message: '加盖公章失败,请先生成意见书或报告',
  2405. type: 'error',
  2406. duration: 2000
  2407. });
  2408. }
  2409. },
  2410. checkPass() {
  2411. this.checkStateFlag = true;
  2412. if (this.checkProDTO.targetId && this.checkProDTO.production) {
  2413. const taskRecordDTO = this.buildTaskRecordDTO(this.checkProDTO);
  2414. this.$api.personalProduction.checkPass(taskRecordDTO).then(res => {
  2415. if (res.code === 200 && res.data) {
  2416. this.$notify({
  2417. title: '成功',
  2418. message: '审核成功',
  2419. type: 'success',
  2420. duration: 2000
  2421. });
  2422. const prodType = this.checkProDTO.production;
  2423. if (prodType === 'REPORT') {
  2424. this.technicReportProd.checkState = '已审核';
  2425. this.finalReprotProd.checkState = '已审核';
  2426. }
  2427. if (prodType === 'STATEMENT') {
  2428. this.statementProd.checkState = '已审核';
  2429. }
  2430. if (prodType === 'LETTER') {
  2431. this.letterReprotProd.checkState = '已审核';
  2432. }
  2433. this.commit("PASS");
  2434. } else {
  2435. this.$notify({
  2436. title: '失败',
  2437. message: '审核失败',
  2438. type: 'error',
  2439. duration: 2000
  2440. });
  2441. }
  2442. this.checkDialog = false;
  2443. })
  2444. }
  2445. },
  2446. warehouse() {
  2447. const code = this.currentNode.nodeCode;
  2448. if (code === 'STATEMENT_IN') {
  2449. const orderId = this.personal.orderId
  2450. this.warehouseTip = "请确认将项目编号为[" + orderId + "]的意见书入库?";
  2451. this.checkProDTO.production = "STATEMENT";
  2452. this.checkProDTO.targetId = this.target.id;
  2453. this.inWarehouseDialog = true;
  2454. }
  2455. const orderId = this.personal.orderId
  2456. if (code === 'STATEMENT_OUT') {
  2457. this.warehouseTip = "请确认将项目编号为[" + orderId + "]的意见书出库?";
  2458. this.checkProDTO.production = "STATEMENT";
  2459. this.checkProDTO.targetId = this.target.id;
  2460. this.outWarehouseDialog = true;
  2461. }
  2462. if (code === 'REPORT_IN') {
  2463. this.warehouseTip = "请确认将项目编号为[" + orderId + "]的报告入库?";
  2464. this.checkProDTO.production = "REPORT";
  2465. this.checkProDTO.targetId = this.target.id;
  2466. this.inWarehouseDialog = true;
  2467. }
  2468. if (code === 'REPORT_OUT') {
  2469. this.warehouseTip = "请确认将项目编号为[" + orderId + "]的报告出库?";
  2470. this.checkProDTO.production = "REPORT";
  2471. this.checkProDTO.targetId = this.target.id;
  2472. this.outWarehouseDialog = true;
  2473. }
  2474. },
  2475. doInWareHouse() {
  2476. if (this.checkProDTO.targetId && this.checkProDTO.production) {
  2477. let taskRecordDTO = this.buildTaskRecordDTO(this.checkProDTO);
  2478. this.$api.personalProduction.inWareHouse(taskRecordDTO).then(res => {
  2479. if (res.code === 200 && res.data) {
  2480. this.$notify({
  2481. title: '成功',
  2482. message: '入库操作成功',
  2483. type: 'success',
  2484. duration: 2000
  2485. });
  2486. } else {
  2487. this.$notify({
  2488. title: '失败',
  2489. message: '入库操作失败',
  2490. type: 'error',
  2491. duration: 2000
  2492. });
  2493. }
  2494. })
  2495. }
  2496. this.inWarehouseDialog = false;
  2497. },
  2498. doOutWareHouse() {
  2499. if (this.checkProDTO.targetId && this.checkProDTO.production) {
  2500. let taskRecordDTO = this.buildTaskRecordDTO(this.checkProDTO);
  2501. this.$api.personalProduction.outWareHouse(taskRecordDTO).then(res => {
  2502. if (res.code === 200 && res.data) {
  2503. this.$notify({
  2504. title: '成功',
  2505. message: '出库操作成功',
  2506. type: 'success',
  2507. duration: 2000
  2508. });
  2509. } else {
  2510. this.$notify({
  2511. title: '失败',
  2512. message: '出库操作失败',
  2513. type: 'error',
  2514. duration: 2000
  2515. });
  2516. }
  2517. })
  2518. }
  2519. this.outWarehouseDialog = false;
  2520. },
  2521. saveFeedback() {
  2522. let flag = true;
  2523. const oldFeedback = JSON.parse(this.target.feedback);
  2524. console.log(oldFeedback)
  2525. if (oldFeedback) {
  2526. oldFeedback.forEach(element => {
  2527. if (!this.feedback.includes(element)) {
  2528. if (element === 'STATEMENT' && this.statementProd.id) {
  2529. this.$message("不能移除已存在的产品类型");
  2530. flag = false;
  2531. }
  2532. if (element === 'REPORT' && (this.technicReportProd.id || this.finalReprotProd.id)) {
  2533. this.$message("不能移除已存在的产品类型");
  2534. flag = false;
  2535. }
  2536. }
  2537. });
  2538. if (this.currentNode.nodeCode === 'QUOTATION_FEEDBACK' && this.feedback.length > 1) {
  2539. this.$message("只能选择一种产品类型");
  2540. flag = false;
  2541. }
  2542. if (this.currentNode.nodeCode === 'STATEMENT_FEEDBACK' && this.feedback.length > 2) {
  2543. this.$message("只能选择一种产品类型");
  2544. flag = false;
  2545. }
  2546. if (this.currentNode.nodeCode === 'REPORT_FEEDBACK' && this.feedback.length > 3) {
  2547. this.$message("只能选择一种产品类型");
  2548. flag = false;
  2549. }
  2550. if (this.currentNode.nodeCode === 'LETTER_FEEDBACK' && this.feedback.length > 4) {
  2551. this.$message("只能选择一种产品类型");
  2552. flag = false;
  2553. }
  2554. }
  2555. if (flag) {
  2556. const feedbackDTO = new Object();
  2557. feedbackDTO.id = this.target.id;
  2558. feedbackDTO.personalId = this.target.personalId;
  2559. if (this.feedback.length == 0) {
  2560. return;
  2561. }
  2562. feedbackDTO.feedback = JSON.stringify(this.feedback);
  2563. const taskRecordDTO = this.buildTaskRecordDTO(feedbackDTO)
  2564. this.$api.personalTarget.doFeedback(taskRecordDTO).then(res => {
  2565. if (res.code === 200 && res.data) {
  2566. this.$notify({
  2567. title: '成功',
  2568. message: '反馈客户信息成功',
  2569. type: 'success',
  2570. duration: 2000
  2571. });
  2572. this.getPersonalTarget();
  2573. } else {
  2574. this.$notify({
  2575. title: '失败',
  2576. message: '反馈客户信息失败',
  2577. type: 'error',
  2578. duration: 2000
  2579. });
  2580. }
  2581. })
  2582. } else {
  2583. this.feedback = oldFeedback;
  2584. }
  2585. },
  2586. saveScene() {
  2587. this.$refs.sceneForm.validate((valid) => {
  2588. if (valid) {
  2589. if (this.sceneForm.id) {
  2590. const taskRecordDTO = this.buildTaskRecordDTO(this.sceneForm)
  2591. this.$api.personalScene.saveScene(taskRecordDTO).then(res => {
  2592. if (res.code === 200 && res.data) {
  2593. this.$notify({
  2594. title: '成功',
  2595. message: '实勘信息更新成功',
  2596. type: 'success',
  2597. duration: 2000
  2598. })
  2599. this.getScene();
  2600. }
  2601. })
  2602. } else {
  2603. this.sceneForm.personalId = this.personal.id;
  2604. const taskRecordDTO = this.buildTaskRecordDTO(this.sceneForm)
  2605. this.$api.personalScene.saveScene(taskRecordDTO).then(res => {
  2606. if (res.code === 200 && res.data) {
  2607. this.$notify({
  2608. title: '成功',
  2609. message: '实勘信息添加成功',
  2610. type: 'success',
  2611. duration: 2000
  2612. })
  2613. this.getScene();
  2614. }
  2615. })
  2616. }
  2617. }
  2618. })
  2619. },
  2620. getScene() {
  2621. this.$api.personalScene.getScene(this.personalId).then(res => {
  2622. if (res.code === 200 && res.data) {
  2623. this.sceneForm = res.data;
  2624. }
  2625. })
  2626. },
  2627. saveChangeCer() {
  2628. this.$confirm('是否确定需要换证。换证之后,已录入的证件信息将被清空。请确认?', '提示', {
  2629. confirmButtonText: '确定',
  2630. cancelButtonText: '取消',
  2631. type: 'warning'
  2632. }).then(() => {
  2633. const personal = new Object();
  2634. personal.id = this.personal.id;
  2635. personal.credentials = JSON.stringify(this.changeCredentials);
  2636. this.$api.personal.changeCredentials(personal).then(res => {
  2637. if (res.code === 200) {
  2638. this.$notify({
  2639. title: '成功',
  2640. message: '换证成功',
  2641. type: 'success',
  2642. duration: 2000
  2643. });
  2644. this.getPersonal();
  2645. }
  2646. })
  2647. })
  2648. },
  2649. // 文档预览
  2650. officeFileView(name, url) {
  2651. if (name || url) {
  2652. const route = this.$router.resolve({
  2653. path: "/office/view/window",
  2654. query: {
  2655. // 文档标题
  2656. title: name,
  2657. // 文档url地址
  2658. url: url,
  2659. mode: 'edit'
  2660. }
  2661. });
  2662. // 在新窗口打开页面
  2663. window.open(route.href, "_blank");
  2664. } else {
  2665. this.$notify({
  2666. title: '失败',
  2667. message: 'url为空,无法打开,如未保存请保存后再试!',
  2668. type: 'error',
  2669. duration: 2000
  2670. });
  2671. }
  2672. },
  2673. printQR(path) {
  2674. if (!path) {
  2675. this.$message("二维码还未生成,无法打印。")
  2676. return;
  2677. }
  2678. let routeUrl = this.$router.resolve({
  2679. path: `/print/code?path=${path}`
  2680. });
  2681. window.open(routeUrl.href, '_blank');
  2682. },
  2683. defalutYearMonth(){
  2684. const currentDate = new Date();
  2685. const currentYear = currentDate.getFullYear();
  2686. let month = currentDate.getMonth();
  2687. this.compareList.analysisData[3].target.valueA = new Date(currentYear,month,2);
  2688. if (month==1){
  2689. this.compareList.analysisData[3].compareC.valueA = new Date(currentYear-1,12,2)
  2690. this.compareList.analysisData[3].compareB.valueA = new Date(currentYear-1,11,2)
  2691. this.compareList.analysisData[3].compareA.valueA = new Date(currentYear-1,10,2)
  2692. }else if(month==2){
  2693. this.compareList.analysisData[3].compareC.valueA = new Date(currentYear,month-1,2)
  2694. this.compareList.analysisData[3].compareB.valueA = new Date(currentYear-1,12,2)
  2695. this.compareList.analysisData[3].compareA.valueA = new Date(currentYear-1,11,2)
  2696. }else if(month==3){
  2697. this.compareList.analysisData[3].compareC.valueA = new Date(currentYear,month-1,2)
  2698. this.compareList.analysisData[3].compareB.valueA = new Date(currentYear,month-2,2)
  2699. this.compareList.analysisData[3].compareA.valueA = new Date(currentYear-1,12,2)
  2700. }
  2701. else{
  2702. this.compareList.analysisData[3].compareC.valueA = new Date(currentYear,month-1,2)
  2703. this.compareList.analysisData[3].compareB.valueA = new Date(currentYear,month-2,2)
  2704. this.compareList.analysisData[3].compareA.valueA = new Date(currentYear,month-3,2)
  2705. }
  2706. },
  2707. generateAll(){
  2708. const certificates = this.personal.credentials
  2709. for (let i in certificates) {
  2710. if (certificates[i] === 'HOUSE_CERTIFICATE' && !this.target.houseCertificate) {
  2711. this.$message('房产证未点击保存');
  2712. return;
  2713. }
  2714. if (certificates[i] === 'LAND_CERTIFICATE' && !this.target.landCertificate) {
  2715. this.$message('国土证未点击保存');
  2716. return;
  2717. }
  2718. if (certificates[i] === 'IMMOVABLE_CERTIFICATE' && !this.target.immovableCertificate) {
  2719. this.$message('不动产权证未点击保存');
  2720. return;
  2721. }
  2722. }
  2723. if (!this.target.entityInfo) {
  2724. this.$message('实物状况未点击保存');
  2725. return;
  2726. }
  2727. if (!this.target.backgroundInfo) {
  2728. this.$message('区位状况未点击保存');
  2729. return;
  2730. }
  2731. if (!this.target.sellingAbility) {
  2732. this.$message('变现能力未点击保存');
  2733. return;
  2734. }
  2735. this.$confirm('系统生成将会覆盖原有文档,请确认是否继续?', '提示', {
  2736. confirmButtonText: '确认',
  2737. cancelButtonText: '取消',
  2738. type: 'warning',
  2739. center: true
  2740. }).then(() => {
  2741. if (this.personal.id && this.target.id) {
  2742. this.$api.personalProduction.genFileAll(this.personal.id).then(res => {
  2743. if (res.code === 200 && res.data) {
  2744. this.$notify({
  2745. title: '成功',
  2746. message: '一键生成成功',
  2747. type: 'success',
  2748. duration: 2000
  2749. });
  2750. this.getProductions();
  2751. this.getPersonalTarget();
  2752. } else {
  2753. this.$notify({
  2754. title: '失败',
  2755. message: '一键生成失败',
  2756. type: 'error',
  2757. duration: 2000
  2758. });
  2759. }
  2760. })
  2761. }
  2762. })
  2763. },
  2764. downloadAll(){
  2765. if (this.target.id) {
  2766. let fileName = this.businessSubId;
  2767. this.$api.personalProduction.downloadPkg(this.target.id).then(res=>{
  2768. let blob = new Blob([res],{type:"application/octet-stream;"})
  2769. const url = window.URL.createObjectURL(blob);
  2770. const link = document.createElement('a');
  2771. link.href = url;
  2772. link.setAttribute('download',fileName+'产品包.zip');
  2773. document.body.appendChild(link);
  2774. link.click();
  2775. })
  2776. }
  2777. },
  2778. downloadDoc(files){
  2779. if (files[0] && files[0].url){
  2780. window.open('http://mbs.scdayou.com'+files[0].url,'_blank');
  2781. }
  2782. },
  2783. cleanCheckId(){
  2784. this.checkerId = null;
  2785. },
  2786. cleanFlag(){
  2787. this.decideProduction = false;
  2788. this.checkStateFlag = false;
  2789. },
  2790. openPageoffice(fileName,fileUrl) {
  2791. let paramJson={};
  2792. paramJson.fileName=fileName;
  2793. paramJson.fileUrl=fileUrl;
  2794. let paramString=JSON.stringify(paramJson);
  2795. //openWindow()第三个参数用来向弹出的PageOffice浏览器(POBrowser)窗口传递参数(参数长度不限),支持json格式字符串。
  2796. //此处为了方便演示,我们传递了file_id和file_name两个参数,具体以您实际开发为准。
  2797. POBrowser.openWindow('/admin/#/showDoc', 'width=1150px;height=900px;',paramString);
  2798. },
  2799. }
  2800. }
  2801. </script>
  2802. <style lang="scss" scoped>
  2803. .row-style {
  2804. margin-left: 40px;
  2805. margin-right: 1%;
  2806. }
  2807. .major-radio {
  2808. width: 92px
  2809. }
  2810. .task-class {
  2811. /deep/ .el-form-item__label {
  2812. color: red;
  2813. }
  2814. }
  2815. .evaluate-table {
  2816. margin-left: 40px;
  2817. margin-top: 35px;
  2818. }
  2819. .pane-class {
  2820. width: 100%;
  2821. overflow-y: scroll;
  2822. }
  2823. /deep/ .cell-class {
  2824. font-size: 13px;
  2825. color: black;
  2826. }
  2827. .table {
  2828. /deep/ thead {
  2829. .el-table-column--selection {
  2830. .cell {
  2831. display: none;
  2832. }
  2833. }
  2834. }
  2835. }
  2836. /deep/.doWarehouseClass {
  2837. border-radius: 10px;
  2838. }
  2839. .button-area {
  2840. position: absolute;
  2841. top: 20px;
  2842. right: 50px;
  2843. }
  2844. .error-type {
  2845. margin-right: 5px;
  2846. }
  2847. .error-type:hover {
  2848. cursor: pointer;
  2849. }
  2850. .box-card {
  2851. margin-top: 40px
  2852. }
  2853. .time {
  2854. font-size: 13px;
  2855. color: #999;
  2856. float: right;
  2857. margin-top: 5px;
  2858. }
  2859. .bottom {
  2860. margin-top: 13px;
  2861. line-height: 12px;
  2862. }
  2863. .button {
  2864. float: left;
  2865. }
  2866. .image {
  2867. width: 100%;
  2868. padding: 0%;
  2869. display: block;
  2870. }
  2871. .control {
  2872. z-index: 999;
  2873. position: relative;
  2874. top: 10px;
  2875. }
  2876. .checked {
  2877. margin-left: 10px;
  2878. font-size: 12px;
  2879. color: green;
  2880. }
  2881. .qr-code-div {
  2882. background-color: RGB(245, 245, 245);
  2883. width: 150px;
  2884. height: 150px;
  2885. position: absolute;
  2886. display: flex;
  2887. justify-content: center;
  2888. align-items: center;
  2889. }
  2890. .qr-code {
  2891. width: 150px;
  2892. height: 150px;
  2893. z-index: 999;
  2894. border: 1px #919398 solid;
  2895. border-radius: 5px;
  2896. }
  2897. .qr-code-div:hover {
  2898. cursor: pointer;
  2899. // background-color:RGB(220,220,220);
  2900. // width: 180px;
  2901. // height: 180px;
  2902. }
  2903. a:hover{
  2904. cursor: pointer;
  2905. color: #5a9cf8
  2906. }
  2907. .xRadio{
  2908. margin-right: 5px;
  2909. margin-bottom: 10px;
  2910. float: left;
  2911. }
  2912. </style>