orderDetail.vue 160 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521
  1. <template>
  2. <div class="app-container">
  3. <el-collapse v-model="activeName" @change="handleChange">
  4. <el-collapse-item>
  5. <template slot="title">
  6. <span style="font-size:20px; margin-left:20px;letter-spacing:2px;color:red">
  7. <i class="el-icon-warning"></i>
  8. <span> 当前节点:{{ currentNode == null ? '???' : currentNode.nodeName ? currentNode.nodeName : '结束' }}</span>
  9. <!-- <span v-if = "currentNode.tasks.length>0" style="margin-left:30px">任务:</span> -->
  10. <!-- <span v-for="( t,index) in currentNode.tasks" :key=index >{{t.info}}</span> -->
  11. <!-- <span style="margin-left:30px" v-if="statementNo || reportNo">该流程已取:<el-tag type="success" v-if="statementNo">{{statementNo}}</el-tag> <el-tag type="danger" v-if="reportNo">{{reportNo}}</el-tag></span> -->
  12. </span>
  13. <span style="font-size:15px; margin-left:15px;letter-spacing:2px; color:RGB(168,168,168)">
  14. 点击展开查看实时流程图
  15. </span>
  16. </template>
  17. <WorkflowBoard ref='board' @workflowCommitVerify="workflowCommitVerify" :nodeBusinessInfo="nodeBusinessInfo"
  18. @getPreviousNode="getPreviousNode" />
  19. </el-collapse-item>
  20. </el-collapse>
  21. <div class="button-area" v-if="couldEdit">
  22. <el-button @click="openProductionDialog"
  23. v-if="currentNode.nodeCode === 'PRODUCT_CHOICE' || currentNode.nodeCode === 'REPORT_CHOICE'" type="danger" round>
  24. 选择产品
  25. </el-button>
  26. <el-button @click="openAssetsAchievementRatioDialog()" v-if="currentNode.nodeCode === 'CHECK_ARCHIVING'"
  27. type="danger" round>
  28. <span v-if="currentNode.nodeCode === 'RECHECK_ARCHIVING'">复审部</span>归档审核
  29. </el-button>
  30. <el-button v-if="nodeBusinessInfo.currentNodePermission.commit" class="y-save" type="success" round
  31. @click="commit('PASS')" :disabled="!nodeBusinessInfo.doWorkflow">提交</el-button>
  32. <el-button v-if="nodeBusinessInfo.currentNodePermission.reversible" class="y-save" type="warning" round
  33. @click="commit('REVERSE')" :disabled="!nodeBusinessInfo.doWorkflow">退回</el-button>
  34. <el-button v-if="nodeBusinessInfo.currentNodePermission.skippable" class="y-save" type="warning" round
  35. @click="commit('SKIP')" :disabled="!nodeBusinessInfo.doWorkflow">跳过</el-button>
  36. <el-button v-if="nodeBusinessInfo.currentNodePermission.terminable" class="y-save" type="danger" round
  37. @click="commit('TERMINATE')" :disabled="!nodeBusinessInfo.doWorkflow">终止</el-button>
  38. <el-button v-if="nodeBusinessInfo.currentNodePermission.restartable" class="y-save" type="danger" round
  39. @click="commit('RESTART')" :disabled="!nodeBusinessInfo.doWorkflow">重置</el-button>
  40. <el-button class="y-save" round type="info" @click="goBack">返回</el-button>
  41. </div>
  42. <el-tabs v-model="activeTabName" @tab-click="handleClick" type="border-card">
  43. <el-tab-pane name="baseInfo" class="pane-class" :lazy=true>
  44. <span slot="label"><i class="el-icon-document"></i>基本信息</span>
  45. <y-detail-page-layout ref="addAssetsOrder" name="assets">
  46. <el-form ref="assetsForm" :model="assetsForm" :rules="assetsFormRules" :disabled="disabledStatus">
  47. <div class="createMajor-main-container">
  48. <div class="postInfo-container">
  49. <el-row class="row-style" style="margin-top: 20px; float: right; position: relative; z-index: 2;">
  50. <el-col :xs="24" :sm="12" :lg="23" :span="12">
  51. <el-button type="danger" @click="updateOrderBaseInfo()" round>更新基本信息</el-button>
  52. </el-col>
  53. </el-row>
  54. <div>
  55. <el-divider content-position="left">
  56. <h3 class="title">
  57. <div class="avatar-wrapper icon-title">订单</div>
  58. <div class="icon-info">资产订单</div>
  59. </h3>
  60. </el-divider>
  61. </div>
  62. <el-row class="row-style">
  63. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  64. <el-form-item label="客户经理:" prop="clientManager" label-width="120px" class="postInfo-container-item">
  65. <el-input :value="assetsForm.clientManagerName" class="filter-item" readonly disabled
  66. style=" width: 225px" />
  67. </el-form-item>
  68. </el-col>
  69. <el-col :xs="24" :sm="12" :lg="4" :span="6">
  70. <el-form-item label="接单部门:" prop="departmentId" label-width="120px" class="postInfo-container-item">
  71. <el-select v-model="assetsForm.departmentId" readonly disabled>
  72. <el-option v-for="(d, id) in allotDepartment" :label="d.name" :value="d.id"
  73. :key="d.id"></el-option>
  74. </el-select>
  75. </el-form-item>
  76. </el-col>
  77. </el-row>
  78. <el-row class="row-style">
  79. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  80. <el-form-item prop="name" label-width="120px" class="postInfo-container-item" label="项目名称:">
  81. <el-input v-model="assetsForm.name" class="filter-item" />
  82. </el-form-item>
  83. </el-col>
  84. </el-row>
  85. <el-row class="row-style">
  86. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  87. <el-form-item label="业务类型:" prop="assetsBusinessGener" label-width="120px"
  88. class="postInfo-container-item">
  89. <el-select v-model="assetsForm.assetsBusinessGener" filterable placeholder="业务类型">
  90. <el-option v-for="(s, index) in assetsBusinessGeners" :label="s.label" :value="s.value"
  91. :key="s.id"></el-option>
  92. </el-select>
  93. </el-form-item>
  94. </el-col>
  95. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  96. <el-form-item label="客户再次委托:" prop="entrustAgain" label-width="140px" class="postInfo-container-item">
  97. <el-radio v-model="assetsForm.entrustAgain" :label="false" border size="medium">否</el-radio>
  98. <el-radio v-model="assetsForm.entrustAgain" :label="true" border size="medium">是</el-radio>
  99. </el-form-item>
  100. </el-col>
  101. </el-row>
  102. <el-row class="row-style">
  103. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  104. <el-form-item label="客户类型:" prop="clienteleType" label-width="120px" class="postInfo-container-item">
  105. <el-select v-model="assetsForm.clienteleType" placeholder="请选择"
  106. @change="changeCustomerType(assetsForm.clienteleType)" readonly disabled>
  107. <el-option label="企业" value="企业"></el-option>
  108. <el-option label="个人" value="个人"></el-option>
  109. </el-select>
  110. </el-form-item>
  111. </el-col>
  112. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  113. <el-form-item label="客户名称:" prop="clienteleId" label-width="120px" class="postInfo-container-item"
  114. v-if="itemHideStatus">
  115. <el-select v-model="assetsForm.clienteleId" placeholder="请选择(可搜索)" @change="findSubClientele(0)"
  116. clearable filterable readonly disabled>
  117. <el-option v-for="(c, id) in customerCompany" :label="c.name" :value="c.id"
  118. :key="c.id"></el-option>
  119. </el-select>
  120. </el-form-item>
  121. </el-col>
  122. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  123. <el-form-item label="业务来源:" prop="clienteleSubId" label-width="120px" class="postInfo-container-item"
  124. v-if="itemHideStatus">
  125. <el-select v-model="assetsForm.clienteleSubId" placeholder="请选择(可搜索)" @change="getCustomerContract"
  126. clearable filterable readonly disabled>
  127. <el-option v-for="(s, id) in subCustomerCompany" :label="s.name" :value="s.id"
  128. :key="s.id"></el-option>
  129. </el-select>
  130. </el-form-item>
  131. </el-col>
  132. </el-row>
  133. <el-row class="row-style">
  134. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  135. <el-form-item label="客户联系人:" prop="clienteleContactId" label-width="120px"
  136. class="postInfo-container-item">
  137. <div>
  138. <el-select v-model="assetsForm.clienteleContactId" placeholder="请选择(可搜索)" clearable filterable
  139. @change="getContactInfo();" style="width:60%" readonly disabled>
  140. <!-- <el-option v-for="(c, id) in customerContract" :label="c.name" :value="c.id"
  141. :key="c.id"></el-option> -->
  142. <el-option :label="linkmanInfo.name" :value="linkmanInfo.id" :key="linkmanInfo.id"></el-option>
  143. </el-select>
  144. <!-- <el-tooltip class="item" effect="dark" content="没有联系人?点击新增" placement="top-end">
  145. <span style="margin-left:5%;color:RGB(64,158,255);cursor:pointer"
  146. @click="createLinkman(false)">新增</span>
  147. </el-tooltip> -->
  148. </div>
  149. </el-form-item>
  150. </el-col>
  151. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  152. <el-form-item label="联系人电话:" prop="mobile" label-width="120px" class="postInfo-container-item">
  153. <el-input :value="assetsForm.linkmanMobile" class="filter-item" readonly disabled
  154. style=" width: 225px" />
  155. </el-form-item>
  156. </el-col>
  157. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  158. <el-form-item label="联系人部门:" prop="department" label-width="120px" class="postInfo-container-item">
  159. <el-input :value="assetsForm.linkmanDepartment" class="filter-item" readonly disabled
  160. style=" width: 225px" />
  161. </el-form-item>
  162. </el-col>
  163. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  164. <el-form-item label="联系人职务:" prop="duty" label-width="120px" class="postInfo-container-item">
  165. <el-input :value="assetsForm.linkmanDuty" class="filter-item" readonly disabled
  166. style=" width: 225px" />
  167. </el-form-item>
  168. </el-col>
  169. </el-row>
  170. <el-row class="row-style">
  171. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  172. <el-form-item label="是否证券项目:" prop="security" label-width="140px" class="postInfo-container-item">
  173. <el-radio v-model="assetsForm.security" :label="false" border size="medium">否</el-radio>
  174. <el-radio v-model="assetsForm.security" :label="true" border size="medium">是</el-radio>
  175. </el-form-item>
  176. </el-col>
  177. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  178. <el-form-item label="是否资产重组项目:" prop="significantAssetsReorganization" label-width="200px"
  179. class="postInfo-container-item">
  180. <el-radio v-model="assetsForm.significantAssetsReorganization" :label="false" border
  181. size="medium">否</el-radio>
  182. <el-radio v-model="assetsForm.significantAssetsReorganization" :label="true" border
  183. size="medium">是</el-radio>
  184. </el-form-item>
  185. </el-col>
  186. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  187. <el-form-item label=" 是否国资项目:" prop="stateAssets" label-width="140px" class="postInfo-container-item">
  188. <el-radio v-model="assetsForm.stateAssets" :label="false" border size="medium">否</el-radio>
  189. <el-radio v-model="assetsForm.stateAssets" :label="true" border size="medium">是</el-radio>
  190. </el-form-item>
  191. </el-col>
  192. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  193. <el-form-item label="是否涉及境外资产:" prop="foreignAssetsInvolved" label-width="200px"
  194. class="postInfo-container-item">
  195. <el-radio v-model="assetsForm.foreignAssetsInvolved" :label="false" border
  196. size="medium">否</el-radio>
  197. <el-radio v-model="assetsForm.foreignAssetsInvolved" :label="true" border size="medium">是</el-radio>
  198. </el-form-item>
  199. </el-col>
  200. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  201. <el-form-item label="是否分配产值:" prop="dispenseBenefit" label-width="140px"
  202. class="postInfo-container-item">
  203. <el-radio v-model="assetsForm.dispenseBenefit" :label="false" border size="medium">否</el-radio>
  204. <el-radio v-model="assetsForm.dispenseBenefit" :label="true" border size="medium">是</el-radio>
  205. </el-form-item>
  206. </el-col>
  207. </el-row>
  208. <el-row class="row-style">
  209. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  210. <el-form-item label="委托人:" prop="bailor" label-width="120px" class="postInfo-container-item">
  211. <el-input v-model="assetsForm.bailor" class="filter-item" style=" width: 225px" />
  212. </el-form-item>
  213. </el-col>
  214. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  215. <el-form-item label="委托联系人:" prop="bailorContactName" label-width="120px"
  216. class="postInfo-container-item">
  217. <el-input v-model="assetsForm.bailorContactName" class="filter-item" style=" width: 225px" />
  218. </el-form-item>
  219. </el-col>
  220. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  221. <el-form-item label="委托人联系人电话:" prop="bailorContactTel" label-width="160px"
  222. class="postInfo-container-item">
  223. <el-input v-model="assetsForm.bailorContactTel" class="filter-item" style=" width: 225px" />
  224. </el-form-item>
  225. </el-col>
  226. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  227. <el-form-item label="委托人地址:" prop="bailorAddress" label-width="120px" class="postInfo-container-item">
  228. <el-input v-model="assetsForm.bailorAddress" class="filter-item" style=" width: 225px" />
  229. </el-form-item>
  230. </el-col>
  231. </el-row>
  232. <el-row class="row-style">
  233. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  234. <el-form-item label="终端客户类型:" prop="terminalClienteleType" label-width="140px"
  235. class="postInfo-container-item">
  236. <el-select v-model="assetsForm.terminalClienteleType" placeholder="请选择" style="width:205px" readonly
  237. disabled>
  238. <el-option label="企业" value="企业"></el-option>
  239. <el-option label="个人" value="个人"></el-option>
  240. </el-select>
  241. </el-form-item>
  242. </el-col>
  243. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="assetsForm.terminalClienteleType === '企业'">
  244. <el-form-item label="终端客户名称:" prop="terminalClienteleId" label-width="140px"
  245. class="postInfo-container-item">
  246. <!-- <div v-if="couldEdit"> -->
  247. <el-select v-model="assetsForm.terminalClienteleId" placeholder="请选择(可搜索)"
  248. @change="findSubClientele(1)" clearable filterable style="width:80%" readonly disabled>
  249. <!-- <el-option v-for="(c, id) in tCustomerCompany" :label="c.name" :value="c.id"
  250. :key="c.id"></el-option> -->
  251. <el-option :label="tCustomerInfo.name" :value="tCustomerInfo.id"
  252. :key="tCustomerInfo.id"></el-option>
  253. </el-select>
  254. <!-- <el-tooltip class="item" effect="dark" content="没有终端客户?点击新增" placement="top-end">
  255. <span style="margin-left:5%;color:RGB(64,158,255);cursor:pointer"
  256. @click="createTerminalClient()">新增</span>
  257. </el-tooltip> -->
  258. <!-- </div> -->
  259. <!-- <el-input :value="assetsForm.tterminalClienteleName" class="filter-item" style=" width: 225px"
  260. v-else /> -->
  261. </el-form-item>
  262. </el-col>
  263. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="assetsForm.terminalClienteleType === '个人'">
  264. <el-form-item label="终端联系人:" prop="terminalClienteleContactId" label-width="120px"
  265. class="postInfo-container-item">
  266. <div v-if="couldEdit">
  267. <el-select v-model="assetsForm.terminalClienteleContactId" placeholder="请选择(可搜索)" clearable
  268. filterable @change="" style="width:80%" readonly disabled>
  269. <!-- <el-option v-for="(c, id) in tCustomerContract" :label="c.name" :value="c.id"
  270. :key="c.id"></el-option> -->
  271. <el-option :label="tLinkmanInfo.name" :value="tLinkmanInfo.id"
  272. :key="tLinkmanInfo.id"></el-option>
  273. </el-select>
  274. <!-- <el-tooltip class="item" effect="dark" content="没有联系人?点击新增" placement="top-end">
  275. <span style="margin-left:5%;color:RGB(64,158,255);cursor:pointer"
  276. @click="createTlinkman()">新增</span>
  277. </el-tooltip> -->
  278. </div>
  279. <el-input :value="assetsForm.tterminalClienteleContactName" class="filter-item"
  280. style=" width: 225px" v-else />
  281. </el-form-item>
  282. </el-col>
  283. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  284. <el-form-item label="终端联系电话:" prop="clienteleType" label-width="150px"
  285. class="postInfo-container-item">
  286. <el-input :value="assetsForm.tmobile" class="filter-item" readonly disabled style=" width: 215px" />
  287. </el-form-item>
  288. </el-col>
  289. </el-row>
  290. <el-row class="row-style">
  291. <el-col :xs="24" :sm="12" :lg="23" :span="12">
  292. <el-form-item label="备注:" prop="remark" label-width="120px" class="postInfo-container-item">
  293. <el-input v-model="assetsForm.remark" :autosize="{ minRows: 4, maxRows: 4 }" class="filter-item"
  294. type="textarea" />
  295. </el-form-item>
  296. </el-col>
  297. </el-row>
  298. </div>
  299. </div>
  300. </el-form>
  301. </y-detail-page-layout>
  302. </el-tab-pane>
  303. <el-tab-pane name="members" class="pane-class" :lazy=true>
  304. <span slot="label"><i class="el-icon-document"></i>项目人员</span>
  305. <!-- <y-detail-page-layout @save="updatePrincipalAndMembers" ref="addAssetsOrder" name="assets"
  306. :editStatus="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' || !disabledStatus"> -->
  307. <el-form ref="assetsForm" :model="assetsForm" :rules="assetsFormRules"
  308. :disabled="currentNode.nodeCode !== 'DEPARTMENT_ALLOCATION' || disabledStatus">
  309. <div class="createMajor-main-container">
  310. <div class="postInfo-container">
  311. <div style="margin-top: 35px;">
  312. <el-divider content-position="left">
  313. <h3 class="title">
  314. <div class="avatar-wrapper icon-title">成员</div>
  315. <div class="icon-info">项目成员</div>
  316. </h3>
  317. </el-divider>
  318. </div>
  319. <el-row class="row-style">
  320. <el-col :xs="24" :sm="12" :lg="4" :span="6">
  321. <el-form-item label="接单部门:" prop="departmentId" label-width="120px"
  322. :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']">
  323. <el-select @change="getPrincipalByAllotDepartment()" v-model="assetsForm.departmentId">
  324. <el-option v-for="(d, id) in allotDepartment" :label="d.name" :value="d.id" :key="d.id"></el-option>
  325. </el-select>
  326. </el-form-item>
  327. </el-col>
  328. </el-row>
  329. <el-row class="row-style">
  330. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  331. <el-form-item label="项目负责人:" prop="principalId" label-width="120px"
  332. :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']"
  333. :rules="{ required: true, message: '项目负责人不能为空', trigger: 'blur' }">
  334. <el-select v-model="assetsForm.principalId" placeholder="请选择(可搜索)"
  335. :filterable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  336. :clearable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  337. :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'"
  338. :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'">
  339. <el-option v-for="(p, id) in principals" :label="p.name" :value="p.id" :key="p.id"></el-option>
  340. </el-select>
  341. </el-form-item>
  342. </el-col>
  343. </el-row>
  344. <el-row class="row-style">
  345. <el-col :xs="24" :sm="12" :lg="3" :span="6">
  346. <el-form-item label="项目成员:" prop="members" label-width="120px"
  347. :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']"
  348. :rules="{ required: true, message: '项目成员不能为空', trigger: 'blur' }">
  349. <el-select v-model="assetsForm.members" placeholder="请选择(可搜索)" multiple style=" width: 686px"
  350. :filterable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  351. :clearable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  352. :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'"
  353. :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'">
  354. <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
  355. </el-select>
  356. </el-form-item>
  357. </el-col>
  358. </el-row>
  359. <el-row class="row-style">
  360. <el-col :xs="24" :sm="12" :lg="3" :span="6">
  361. <el-button type="danger" @click="updatePrincipalAndMembers()" round>保存项目人员信息</el-button>
  362. </el-col>
  363. </el-row>
  364. </div>
  365. </div>
  366. </el-form>
  367. <!-- </y-detail-page-layout> -->
  368. </el-tab-pane>
  369. <el-tab-pane name="target" class="pane-class" :lazy=true>
  370. <span @click="getAETargetListByAssetsId()" slot="label"><i class="el-icon-document"></i>资产评估对象</span>
  371. <div class="createMajor-main-container">
  372. <div class="postInfo-container">
  373. <div style="margin-top: 35px;">
  374. <el-divider content-position="left">
  375. <h3 class="title">
  376. <div class="avatar-wrapper icon-title">评估</div>
  377. <div class="icon-info">资产评估对象</div>
  378. </h3>
  379. </el-divider>
  380. </div>
  381. <el-row>
  382. <el-col :span="2">
  383. <div>
  384. <el-statistic group-separator="," :precision="4" :value="totalEvaluateValue" title="估价对象总价(万)">
  385. <template slot="prefix">
  386. <i class="el-icon-coin"></i>
  387. </template>
  388. </el-statistic>
  389. </div>
  390. </el-col>
  391. <el-col :span="2">
  392. <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE' && couldEdit"
  393. type="danger" @click="openTargetDialog(), changeStatus('add')" round>添加评估对象</el-button>
  394. </el-col>
  395. <el-col :span="2" v-if="currentNode.nodeCode === 'GENERATE_STATEMENT' && couldEdit">
  396. <el-tooltip class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
  397. <el-button type="success" @click="takeAssetsStatementProductionNo('STATEMENT')" round>意见书取号</el-button>
  398. </el-tooltip>
  399. </el-col>
  400. <el-col :span="2" v-if="currentNode.nodeCode === 'ASSET_REPORT_TAKE_NO' && couldEdit">
  401. <el-tooltip class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
  402. <el-button type="success" @click="takeAssetsReportProductionNo('REPORT')" round>报告取号</el-button>
  403. </el-tooltip>
  404. </el-col>
  405. <el-col :span="2" v-if="(currentNode.nodeCode === 'GENERATE_STATEMENT' && writeProductionStatementNos.length > 0)
  406. || (currentNode.nodeCode === 'WRITE_REPORT' && writeProductionReportNos.length > 0)
  407. && couldEdit">
  408. <el-tooltip class="item" effect="dark" content="请仔细确认产品内容" placement="right">
  409. <el-button type="success" @click="openWriteProductionDialog(false, 'add')" round>撰写产品信息</el-button>
  410. </el-tooltip>
  411. </el-col>
  412. </el-row>
  413. <el-table ref="multipleTable" :data="assetsEvaluationTarget" stripe @selection-change="targetSelectionChange"
  414. :header-row-style="{ color: '#333333' }" border takeNumberItems style="width: 100%; margin-top:20px">
  415. <el-table-column type="selection" width="55" :selectable="selectable">
  416. </el-table-column>
  417. <el-table-column prop="id" label="id" width="80" align="center">
  418. </el-table-column>
  419. <el-table-column width="220" prop="statementNo" label="意见书号" align="center" show-overflow-tooltip>
  420. </el-table-column>
  421. <el-table-column width="220" prop="reportNo" label="报告号" align="center" show-overflow-tooltip>
  422. </el-table-column>
  423. <el-table-column prop="statementCreateProductionDate" label="意见书出具状态" align="center" show-overflow-tooltip>
  424. <template slot-scope="{row}">
  425. <el-tag v-if="row.statementCreateProductionDate !== null" type='success'> 已出具</el-tag>
  426. <el-tag v-if="row.statementCreateProductionDate == null" type='danger'> 未出具</el-tag>
  427. </template>
  428. </el-table-column>
  429. <el-table-column prop="reportCreateProductionDate" label="报告出具状态" align="center" show-overflow-tooltip>
  430. <template slot-scope="{row}">
  431. <el-tag v-if="row.reportCreateProductionDate !== null" type='success'> 已出具</el-tag>
  432. <el-tag v-if="row.reportCreateProductionDate == null" type='danger'> 未出具</el-tag>
  433. </template>
  434. </el-table-column>
  435. <el-table-column prop="purposeName" label="评估目的" align="center" show-overflow-tooltip>
  436. </el-table-column>
  437. <el-table-column label="评估对象" align="center" show-overflow-tooltip>
  438. <template slot-scope="{row}">
  439. <span>{{ row.targetTypename }}</span>
  440. <span>--</span>
  441. <span>{{ row.secTargetTypaName }}</span>
  442. </template>
  443. </el-table-column>
  444. <el-table-column prop="theHolder" label="产权持有人" align="center" show-overflow-tooltip>
  445. </el-table-column>
  446. <el-table-column prop="valueTypeName" label="价值类型" align="center" show-overflow-tooltip>
  447. </el-table-column>
  448. <el-table-column prop="totalAssetCarryingAmount" label="总资产账面值(万)" align="center" show-overflow-tooltip>
  449. </el-table-column>
  450. <el-table-column prop="totalLiabilitiesCarryingAmount" label="总负债账面值(万)" align="center"
  451. show-overflow-tooltip>
  452. </el-table-column>
  453. <el-table-column prop="carryingAmountOfNetAssets" label="净资产账面值(万)" align="center" show-overflow-tooltip>
  454. </el-table-column>
  455. <el-table-column prop="estimatedValue" label="评估价格(万)" align="center" show-overflow-tooltip>
  456. </el-table-column>
  457. <el-table-column prop="checkValue" label="审核价格(万)" align="center" show-overflow-tooltip>
  458. </el-table-column>
  459. <el-table-column label="操作" align="center" width="130" fixed="right">
  460. <template slot-scope="scope">
  461. <el-button type="text" size="small"
  462. @click="getAssetsTargetDetail(scope.row.id), changeStatus('detail')">
  463. 查看
  464. </el-button>
  465. <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE'" type="text"
  466. size="small" @click="getAssetsTargetDetail(scope.row.id), changeStatus('edit')">
  467. 编辑
  468. </el-button>
  469. <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE'" type="text"
  470. size="small" @click="assetsTargetDelete(scope.row.id)">删除</el-button>
  471. <el-button v-if="currentNode.nodeCode === 'REVIEW_STATEMENT' || currentNode.nodeCode === 'CHECK_REPORT'"
  472. type="text" size="small" @click="openCheckValueDialog(scope.row.id);">审核定价</el-button>
  473. </template>
  474. </el-table-column>
  475. </el-table>
  476. </div>
  477. </div>
  478. </el-tab-pane>
  479. <el-tab-pane name="production" class="pane-class" :lazy=true>
  480. <span slot="label" @click="getProductionList()"><i class="el-icon-document"></i>产品信息</span>
  481. <div class="createMajor-main-container">
  482. <div class="postInfo-container">
  483. <div style="margin-top: 35px;">
  484. <el-divider content-position="left">
  485. <h3 class="title">
  486. <div class="avatar-wrapper icon-title">产品</div>
  487. <div class="icon-info">资产产品信息</div>
  488. </h3>
  489. </el-divider>
  490. </div>
  491. <div style="margin-top: 30px; color: red;" v-if="currentNode.nodeCode === 'GENERATE_STATEMENT' && couldEdit">
  492. 选择要提交的意见书:
  493. <el-select v-model="commitProductionNo" @change="pushProductionNo()" placeholder="请选择要提交的产品"
  494. style="width: 300px;">
  495. <el-option v-for="(pro, productionNo) in assetsProductionData" v-if="pro.productionType == 'STATEMENT'"
  496. :label="pro.productionNo" :value="pro.productionNo" :key="pro.id"></el-option>
  497. </el-select>
  498. </div>
  499. <div style="margin-top: 30px; color: red;" v-if="currentNode.nodeCode === 'WRITE_REPORT' && couldEdit">
  500. 选择要提交的报告:
  501. <el-select v-model="commitProductionNo" @change="pushProductionNo()" placeholder="请选择要提交的产品"
  502. style="width: 300px;">
  503. <el-option v-for="(pro, productionNo) in assetsProductionData" v-if="pro.productionType !== 'STATEMENT'"
  504. :label="pro.productionNo" :value="pro.productionNo" :key="pro.id"></el-option>
  505. </el-select>
  506. </div>
  507. <div style="margin-top: 30px;">
  508. <span v-if="currentNode.nodeCode === 'STATEMENT_BOOKBINDING_STAMP'">
  509. <span v-for="pro in assetsProductionData" :key="pro.id" style="color: red;">
  510. 打印份数:{{ pro.printCount }}
  511. </span>
  512. </span>
  513. </div>
  514. <!-- <el-table ref="multipleTable" :data="assetsProductionData" stripe :header-row-style="{ color: '#333333' }"
  515. border takeNumberItems style="width: 100%; margin-top:20px">
  516. <el-table-column prop="id" label="id" width="80" align="center">
  517. </el-table-column>
  518. <el-table-column width="200" prop="productionNo" label="产品号" align="center" show-overflow-tooltip>
  519. </el-table-column>
  520. <el-table-column prop="productionType" label="产品类型" align="center" show-overflow-tooltip>
  521. <template slot-scope="{row}">
  522. <span v-if="row.productionType === 'STATEMENT'">价值意见书</span>
  523. <span v-if="row.productionType == 'LETTER'">意见函</span>
  524. <span v-if="row.productionType == 'CONSULT'">咨询报告</span>
  525. <span v-if="row.productionType == 'REPORT'">评估报告</span>
  526. </template>
  527. </el-table-column>
  528. <el-table-column prop="clientName" label="委托方名称" align="center" show-overflow-tooltip>
  529. </el-table-column>
  530. <el-table-column prop="clientTel" label="委托方电话" align="center" show-overflow-tooltip>
  531. </el-table-column>
  532. <el-table-column prop="valuationBasisDate" label="评估基准日" align="center" show-overflow-tooltip>
  533. </el-table-column>
  534. <el-table-column prop="evaluateAcreage" label="评估面积" align="center" show-overflow-tooltip>
  535. </el-table-column>
  536. <el-table-column prop="evaluatePrice" label="评估单价" align="center" show-overflow-tooltip>
  537. </el-table-column>
  538. <el-table-column prop="evaluateAmount" label="评估总价" align="center" show-overflow-tooltip>
  539. </el-table-column>
  540. <el-table-column prop="owner" label="产权人" align="center" show-overflow-tooltip>
  541. </el-table-column>
  542. <el-table-column prop="printCount" label="产品打印数量" align="center" show-overflow-tooltip>
  543. </el-table-column>
  544. <el-table-column prop="createProductionDate" label="产品出具日期" align="center" show-overflow-tooltip>
  545. </el-table-column>
  546. <el-table-column prop="comment" label="特殊情况说明" align="center" show-overflow-tooltip>
  547. </el-table-column>
  548. <el-table-column prop="repertoryState" label="库存状态" align="center" show-overflow-tooltip>
  549. <template slot-scope="{row}">
  550. <span v-if="row.repertoryState === null">未入库</span>
  551. <span v-if="row.repertoryState === true">已出库</span>
  552. <span v-if="row.repertoryState === false">已入库</span>
  553. </template>
  554. </el-table-column>
  555. <el-table-column prop="repertoryInTime" label="入库时间" align="center" show-overflow-tooltip>
  556. </el-table-column>
  557. <el-table-column prop="repertoryOutTime" label="出库时间" align="center" show-overflow-tooltip>
  558. </el-table-column>
  559. <el-table-column prop="saveFileDate" label="归档日期" align="center" show-overflow-tooltip>
  560. </el-table-column>
  561. <el-table-column prop="delivery" label="送达状态" align="center" show-overflow-tooltip>
  562. <template slot-scope="{row}">
  563. <span v-if="!row.delivery">未送达</span>
  564. <span v-if="row.delivery">已送达</span>
  565. </template>
  566. </el-table-column>
  567. <el-table-column label="操作" align="center" width="180" fixed="right">
  568. <template slot-scope="scope">
  569. <el-button type="text" size="small"
  570. @click="openWriteProductionDialog(true, 'detail'), getAssetsProductionDetail(scope.row.id)">
  571. 查看
  572. </el-button>
  573. <el-button v-if="currentNode.nodeCode === 'REVIEW_STATEMENT'" type="text" size="small"
  574. @click="openWriteProductionDialog(false, 'edit'), getAssetsProductionDetail(scope.row.id)">
  575. 编辑
  576. </el-button>
  577. <el-button
  578. v-if="currentNode.nodeCode === 'REVIEW_STATEMENT' && scope.row.productionType === 'STATEMENT'"
  579. type="text" size="small"
  580. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  581. 审核意见书
  582. </el-button>
  583. <el-button
  584. v-if="currentNode.nodeCode === 'REEXAMINE_STATEMENT' && scope.row.productionType === 'STATEMENT'"
  585. type="text" size="small"
  586. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  587. 复审意见书
  588. </el-button>
  589. <el-button v-if="currentNode.nodeCode === 'CHECK_REPORT' && scope.row.productionType !== 'STATEMENT'"
  590. type="text" size="small"
  591. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  592. 审核报告
  593. </el-button>
  594. <el-button v-if="currentNode.nodeCode === 'RECHECK_REPORT' && scope.row.productionType !== 'STATEMENT'"
  595. type="text" size="small"
  596. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  597. 复审报告
  598. </el-button>
  599. <el-button
  600. v-if="currentNode.nodeCode === 'FOURTH_CHECK_REPORT' && scope.row.productionType !== 'STATEMENT'"
  601. type="text" size="small"
  602. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  603. 四审报告
  604. </el-button>
  605. <el-button
  606. v-if="(currentNode.nodeCode === 'STATEMENT_IN' || currentNode.nodeCode === 'REPORT_IN') && scope.row.repertoryState === null"
  607. type="text" size="small" @click="openWareHouseDialog(scope.row);">产品入库</el-button>
  608. <el-button
  609. v-if="(currentNode.nodeCode === 'STATEMENT_OUT' || currentNode.nodeCode === 'REPORT_OUT') && scope.row.repertoryState === false"
  610. type="text" size="small" @click="openWareHouseDialog(scope.row);">产品出库</el-button>
  611. </template>
  612. </el-table-column>
  613. </el-table> -->
  614. <el-table :data="assetsProductionData" stripe :header-row-style="{ color: '#333333' }" border takeNumberItems
  615. style="width: 100%; margin-top:20px">
  616. <el-table-column type="expand">
  617. <template slot-scope="props">
  618. <el-form label-position="left">
  619. <el-tag style="margin-left: 20px;" effect="plain" size="medium" disable-transitions><span
  620. style="font-size:16px">基本信息</span></el-tag>
  621. <el-row class="row-style">
  622. <el-col :xs="24" :sm="6" :lg="3" :span="3" class="postInfo-container-item">
  623. <el-form-item label-width="150px" label="委托方名称:">
  624. <span>{{ props.row.clientName }}</span>
  625. </el-form-item>
  626. </el-col>
  627. <el-col :xs="24" :sm="6" :lg="3" :span="3" class="postInfo-container-item">
  628. <el-form-item label-width="150px" label="委托方电话:">
  629. <span>{{ props.row.clientTel }}</span>
  630. </el-form-item>
  631. </el-col>
  632. </el-row>
  633. <el-row class="row-style">
  634. <el-col :xs="24" :sm="6" :lg="3" :span="3" class="postInfo-container-item">
  635. <el-form-item label-width="150px" label="评估基准日:">
  636. <span>{{ props.row.valuationBasisDate }}</span>
  637. </el-form-item>
  638. </el-col>
  639. <el-col :xs="24" :sm="6" :lg="3" :span="3" class="postInfo-container-item">
  640. <el-form-item label-width="150px" label="评估面积:">
  641. <span>{{ props.row.evaluateAcreage }} m²</span>
  642. </el-form-item>
  643. </el-col>
  644. <el-col :xs="24" :sm="6" :lg="3" :span="3" class="postInfo-container-item">
  645. <el-form-item label-width="150px" label="评估单价:">
  646. <span>{{ props.row.evaluatePrice }}(元)</span>
  647. </el-form-item>
  648. </el-col>
  649. <el-col :xs="24" :sm="6" :lg="3" :span="3" class="postInfo-container-item">
  650. <el-form-item label-width="150px" label="评估总价:">
  651. <span>{{ props.row.evaluateAmount }}(万)</span>
  652. </el-form-item>
  653. </el-col>
  654. <el-col :xs="24" :sm="6" :lg="3" :span="3" class="postInfo-container-item">
  655. <el-form-item label-width="150px" label="产权人:">
  656. <span>{{ props.row.owner }}</span>
  657. </el-form-item>
  658. </el-col>
  659. </el-row>
  660. <el-row class="row-style">
  661. <el-col :xs="24" :sm="6" :lg="3" :span="3" class="postInfo-container-item">
  662. <el-form-item label-width="150px" label="产品打印数量:">
  663. <span>{{ props.row.printCount }}(份)</span>
  664. </el-form-item>
  665. </el-col>
  666. <el-col :xs="24" :sm="6" :lg="3" :span="3" class="postInfo-container-item">
  667. <el-form-item label-width="150px" label="产品出具日期:">
  668. <span>{{ props.row.createProductionDate }}</span>
  669. </el-form-item>
  670. </el-col>
  671. </el-row>
  672. <el-row class="row-style">
  673. <el-col :xs="24" :sm="6" :lg="3" :span="3" class="postInfo-container-item">
  674. <el-form-item label-width="150px" label="资料附件:">
  675. <el-link type="primary" v-for="file in props.row.filePath" :key="file.name" :href="file.url">
  676. {{ file.name }}
  677. </el-link>
  678. </el-form-item>
  679. </el-col>
  680. </el-row>
  681. <el-row class="row-style">
  682. <el-col :xs="24" :sm="6" :lg="3" :span="3" class="postInfo-container-item">
  683. <el-form-item prop="qrCode" label-width="150px" label="产品二维码:">
  684. <img style="width:130px;height:120px; display:inline-block ;" :src="props.row.qrCode"
  685. alt="NULL" />
  686. </el-form-item>
  687. </el-col>
  688. </el-row>
  689. <el-row class="row-style">
  690. <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
  691. <el-form-item label-width="150px" label="特殊情况说明:">
  692. <span>{{ props.row.comment }}</span>
  693. </el-form-item>
  694. </el-col>
  695. </el-row>
  696. <el-tag style="margin-left: 20px;" effect="plain" size="medium" disable-transitions><span
  697. style="font-size:16px">库存状态</span></el-tag>
  698. <el-steps :active="props.row.repertoryState == null ? 0 : (props.row.repertoryState ? 2 : 1)"
  699. process-status="success" finish-status="success" simple style="margin: 10px 1% 20px 40px">
  700. <el-step title="未入库"></el-step>
  701. <el-step title="已入库"></el-step>
  702. <el-step title="已出库"></el-step>
  703. </el-steps>
  704. </el-form>
  705. </template>
  706. </el-table-column>
  707. <el-table-column prop="id" label="id" width="120" align="center">
  708. </el-table-column>
  709. <el-table-column prop="productionNo" label="产品号" align="center" show-overflow-tooltip>
  710. <template slot-scope="{row}">
  711. <el-tag type="success"><span>{{ row.productionNo }}</span></el-tag>
  712. </template>
  713. </el-table-column>
  714. <el-table-column prop="productionType" label="产品类型" align="center" show-overflow-tooltip>
  715. <template slot-scope="{row}">
  716. <el-tag v-if="row.productionType === 'STATEMENT'">价值意见书</el-tag>
  717. <el-tag v-if="row.productionType == 'LETTER'">意见函</el-tag>
  718. <el-tag v-if="row.productionType == 'CONSULT'">咨询报告</el-tag>
  719. <el-tag v-if="row.productionType == 'REPORT'">评估报告</el-tag>
  720. </template>
  721. </el-table-column>
  722. <el-table-column prop="repertoryState" label="库存状态" align="center" show-overflow-tooltip>
  723. <template slot-scope="{row}">
  724. <el-tag type="danger" v-if="row.repertoryState === null">未入库</el-tag>
  725. <el-tag type="success" v-if="row.repertoryState === true">已出库</el-tag>
  726. <el-tag type="warning" v-if="row.repertoryState === false">已入库</el-tag>
  727. </template>
  728. </el-table-column>
  729. <el-table-column prop="comment" label="特殊情况说明" align="center" show-overflow-tooltip>
  730. </el-table-column>
  731. <el-table-column label="操作" align="center" width="180" fixed="right">
  732. <template slot-scope="scope">
  733. <el-button type="text" size="small"
  734. @click="openWriteProductionDialog(true, 'detail'), getAssetsProductionDetail(scope.row.id)">
  735. 查看
  736. </el-button>
  737. <el-button v-if="currentNode.nodeCode === 'REVIEW_STATEMENT'" type="text" size="small"
  738. @click="openWriteProductionDialog(false, 'edit'), getAssetsProductionDetail(scope.row.id)">
  739. 编辑
  740. </el-button>
  741. <el-button
  742. v-if="currentNode.nodeCode === 'REVIEW_STATEMENT' && scope.row.productionType === 'STATEMENT'"
  743. type="text" size="small"
  744. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  745. 审核意见书
  746. </el-button>
  747. <el-button
  748. v-if="currentNode.nodeCode === 'REEXAMINE_STATEMENT' && scope.row.productionType === 'STATEMENT'"
  749. type="text" size="small"
  750. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  751. 复审意见书
  752. </el-button>
  753. <el-button v-if="currentNode.nodeCode === 'CHECK_REPORT' && scope.row.productionType !== 'STATEMENT'"
  754. type="text" size="small"
  755. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  756. 审核报告
  757. </el-button>
  758. <el-button v-if="currentNode.nodeCode === 'RECHECK_REPORT' && scope.row.productionType !== 'STATEMENT'"
  759. type="text" size="small"
  760. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  761. 复审报告
  762. </el-button>
  763. <el-button
  764. v-if="currentNode.nodeCode === 'FOURTH_CHECK_REPORT' && scope.row.productionType !== 'STATEMENT'"
  765. type="text" size="small"
  766. @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
  767. 四审报告
  768. </el-button>
  769. <el-button
  770. v-if="(currentNode.nodeCode === 'STATEMENT_IN' || currentNode.nodeCode === 'REPORT_IN') && scope.row.repertoryState === null"
  771. type="text" size="small" @click="openWareHouseDialog(scope.row);">产品入库</el-button>
  772. <el-button
  773. v-if="(currentNode.nodeCode === 'STATEMENT_OUT' || currentNode.nodeCode === 'REPORT_OUT') && scope.row.repertoryState === false"
  774. type="text" size="small" @click="openWareHouseDialog(scope.row);">产品出库</el-button>
  775. </template>
  776. </el-table-column>
  777. </el-table>
  778. </div>
  779. </div>
  780. </el-tab-pane>
  781. <el-tab-pane name="finance" class="pane-class" :lazy=true>
  782. <span slot="label" @click="getOrderFundInvoiceById()"><i class="el-icon-document"></i>款项信息</span>
  783. <div class="createMajor-main-container">
  784. <div class="postInfo-container">
  785. <div style="margin-top: 35px;">
  786. <el-divider content-position="left">
  787. <h3 class="title">
  788. <div class="avatar-wrapper icon-title">款项</div>
  789. <div class="icon-info">资产款项信息</div>
  790. </h3>
  791. </el-divider>
  792. </div>
  793. </div>
  794. <el-form ref="invoiceData" :model="invoiceData" :disabled="true">
  795. <el-row>
  796. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  797. <el-form-item label="应收金额(元):" prop="shouldAmount" label-width="120px" class="postInfo-container-item">
  798. <el-input v-model="invoiceData.shouldAmount" class="filter-item" />
  799. </el-form-item>
  800. </el-col>
  801. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  802. <el-form-item label="实收金额(元):" prop="realAmount" label-width="120px" class="postInfo-container-item">
  803. <el-input v-model="invoiceData.realAmount" class="filter-item" />
  804. </el-form-item>
  805. </el-col>
  806. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  807. <el-form-item label="剩余金额(元):" prop="leftAmount" label-width="120px" class="postInfo-container-item">
  808. <el-input v-model="invoiceData.leftAmount" class="filter-item" />
  809. </el-form-item>
  810. </el-col>
  811. </el-row>
  812. <el-row>
  813. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  814. <el-form-item label="开票类型:" prop="type" label-width="120px" class="postInfo-container-item">
  815. <el-input v-model="invoiceData.type" class="filter-item" />
  816. </el-form-item>
  817. </el-col>
  818. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  819. <el-form-item label="发票抬头:" prop="title" label-width="120px" class="postInfo-container-item">
  820. <el-input v-model="invoiceData.title" class="filter-item" />
  821. </el-form-item>
  822. </el-col>
  823. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  824. <el-form-item label="税号:" prop="taxNo" label-width="120px" class="postInfo-container-item">
  825. <el-input v-model="invoiceData.taxNo" class="filter-item" />
  826. </el-form-item>
  827. </el-col>
  828. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  829. <el-form-item label="开户银行:" prop="bankName" label-width="120px" class="postInfo-container-item">
  830. <el-input v-model="invoiceData.bankName" class="filter-item" />
  831. </el-form-item>
  832. </el-col>
  833. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  834. <el-form-item label="银行地址:" prop="bankAddress" label-width="120px" class="postInfo-container-item">
  835. <el-input v-model="invoiceData.bankAddress" class="filter-item" />
  836. </el-form-item>
  837. </el-col>
  838. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  839. <el-form-item label="联系电话:" prop="bankTel" label-width="120px" class="postInfo-container-item">
  840. <el-input v-model="invoiceData.bankTel" class="filter-item" />
  841. </el-form-item>
  842. </el-col>
  843. </el-row>
  844. </el-form>
  845. </div>
  846. </el-tab-pane>
  847. </el-tabs>
  848. <el-dialog :visible.sync="targetDialogVisible" @open="clear()" @close="resettargetForm"
  849. custom-class="doWarehouseClass">
  850. <div>
  851. <el-form ref="targetForm" :model="targetForm" style="margin-top:20px" :rules="targetFormRules"
  852. :disabled="targetDisabledStatus">
  853. <el-divider content-position="left">【资产】评估对象</el-divider>
  854. <el-row class="row-style">
  855. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  856. <el-form-item label="评估目的:" prop="evaluationPurposeId" label-width="120px" class="postInfo-container-item">
  857. <el-select v-model="targetForm.evaluationPurposeId">
  858. <el-option v-for="(p, id) in assetsEvaluationTargetPurpose" :label="p.purposeName"
  859. :value="p.id"></el-option>
  860. </el-select>
  861. </el-form-item>
  862. </el-col>
  863. </el-row>
  864. <el-row class="row-style">
  865. <el-col :xs="24" :sm="12" :lg="12" :span="6" style="width: 350px;">
  866. <el-form-item label="评估对象:" prop="evaluationTypeId" label-width="120px" class="postInfo-container-item">
  867. <el-select v-model="targetForm.evaluationTypeId"
  868. @change="getTypeList(targetForm.evaluationTypeId, 2), targetForm.evaluationTypeSecId = null">
  869. <el-option v-for="(t, id) in assetsEvaluationTargetType" :label="t.typeName" :value="t.id"
  870. :key="t.id"></el-option>
  871. </el-select>
  872. </el-form-item>
  873. </el-col>
  874. <el-col :xs="4" :sm="12" :lg="12" :span="6">
  875. <el-form-item prop="evaluationTypeSecId" label-width="10px" class="postInfo-container-item">
  876. <el-select v-model="targetForm.evaluationTypeSecId">
  877. <el-option v-for="(t, id) in assetsSecEvaluationTargetType" :label="t.typeName" :value="t.id"
  878. :key="t.id"></el-option>
  879. </el-select>
  880. </el-form-item>
  881. </el-col>
  882. </el-row>
  883. <el-row class="row-style">
  884. <el-col :xs="24" :sm="12" :lg="12" :span="6" style="width: 345px;">
  885. <el-form-item label="产权持有人:" prop="theHolder" label-width="120px" class="postInfo-container-item">
  886. <el-input v-model="targetForm.theHolder" class="filter-item" />
  887. </el-form-item>
  888. </el-col>
  889. </el-row>
  890. <el-row class="row-style">
  891. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  892. <el-form-item label="价值类型:" prop="assetsValueId" label-width="120px" class="postInfo-container-item">
  893. <el-select v-model="targetForm.assetsValueId">
  894. <el-option v-for="(t, id) in assetsValueType" :label="t.typeName" :value="t.id" :key="t.id"></el-option>
  895. </el-select>
  896. </el-form-item>
  897. </el-col>
  898. </el-row>
  899. <el-row class="row-style">
  900. <el-col :xs="24" :sm="12" :lg="12" :span="6" style="width: 400px;">
  901. <el-form-item label="项目负责人:" label-width="120px" class="postInfo-container-item">
  902. <el-select v-model="targetForm.principalId" placeholder="请选择" readonly disabled>
  903. <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
  904. </el-select>
  905. </el-form-item>
  906. </el-col>
  907. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  908. <el-form-item label="实勘人:" prop="siteIds" label-width="120px" class="postInfo-container-item">
  909. <el-select v-model="targetForm.siteIds" placeholder="请选择" multiple>
  910. <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
  911. </el-select>
  912. </el-form-item>
  913. </el-col>
  914. </el-row>
  915. <el-row class="row-style">
  916. <el-col :xs="24" :sm="12" :lg="7" :span="6">
  917. <el-form-item prop="valuationBasisDate" label-width="120px" label="估价基准日:" class="postInfo-container-item">
  918. <el-date-picker v-model="targetForm.valuationBasisDate" type="date" placeholder="选择日期" style="width:100%">
  919. </el-date-picker>
  920. </el-form-item>
  921. </el-col>
  922. </el-row>
  923. <el-row class="row-style">
  924. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  925. <el-form-item label="评估方法:" prop="evaluationMethodId" label-width="120px" class="postInfo-container-item">
  926. <el-select v-model="targetForm.evaluationMethodId">
  927. <el-option v-for="(m, id) in assetsEvaluationMethod" :label="m.methodName" :value="m.id"
  928. :key="m.id"></el-option>
  929. </el-select>
  930. </el-form-item>
  931. </el-col>
  932. </el-row>
  933. <el-row class="row-style">
  934. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  935. <el-form-item label="最终选择的评估方法:" prop="choiceEvaluationMethodId" label-width="200px"
  936. class="postInfo-container-item">
  937. <el-select v-model="targetForm.choiceEvaluationMethodId">
  938. <el-option v-for="(m, id) in assetsEvaluationMethod" :label="m.methodName" :value="m.id"
  939. :key="m.id"></el-option>
  940. </el-select>
  941. </el-form-item>
  942. </el-col>
  943. </el-row>
  944. <el-row class="row-style">
  945. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  946. <el-form-item label="总资产账面值:" prop="totalAssetCarryingAmount" label-width="140px"
  947. class="postInfo-container-item">
  948. <el-input-number v-model="targetForm.totalAssetCarryingAmount" controls-position="right" :precision="2"
  949. :step="0.1"></el-input-number>
  950. <span>(万)</span>
  951. </el-form-item>
  952. </el-col>
  953. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  954. <el-form-item label="总负债账面值:" prop="totalLiabilitiesCarryingAmount" label-width="140px"
  955. class="postInfo-container-item">
  956. <el-input-number v-model="targetForm.totalLiabilitiesCarryingAmount" controls-position="right"
  957. :precision="2" :step="0.1"></el-input-number>
  958. <span>(万)</span>
  959. </el-form-item>
  960. </el-col>
  961. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  962. <el-form-item label="净资产账面值:" prop="carryingAmountOfNetAssets" label-width="140px"
  963. class="postInfo-container-item">
  964. <el-input-number v-model="targetForm.carryingAmountOfNetAssets" controls-position="right" :precision="2"
  965. :step="0.1"></el-input-number>
  966. <span>(万)</span>
  967. </el-form-item>
  968. </el-col>
  969. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  970. <el-form-item label="评估结论对应的评估值:" prop="estimatedValue" label-width="200px" class="postInfo-container-item">
  971. <el-input-number v-model="targetForm.estimatedValue" controls-position="right" :precision="2"
  972. :step="0.1"></el-input-number>
  973. <span>(万)</span>
  974. </el-form-item>
  975. </el-col>
  976. </el-row>
  977. <el-row class="row-style" v-if="currentNode.nodeCode === 'REVIEW_QUOTATION'">
  978. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  979. <el-form-item label="审核定价:" prop="checkValue" label-width="200px" class="postInfo-container-item">
  980. <el-input-number v-model="targetForm.checkValue" controls-position="right" :precision="2"
  981. :step="0.1"></el-input-number>
  982. <span>(万)</span>
  983. </el-form-item>
  984. </el-col>
  985. </el-row>
  986. <el-row class="row-style">
  987. <el-col :xs="24" :sm="12" :lg="18" :span="6">
  988. <el-form-item prop="filePath" label="资料附件:" label-width="120px" class="postInfo-container-item">
  989. <el-upload action="/api/upload" :limit="3" :on-success="changeresTarget" :on-exceed="handleExceed"
  990. :on-preview="handleAttachmentPreview" :before-remove="beforeRemove" :file-list="fileList">
  991. <el-button plain type="info" round style="width: 100%">上传附件<i
  992. class="el-icon-upload el-icon--right"></i></el-button>
  993. </el-upload>
  994. </el-form-item>
  995. </el-col>
  996. </el-row>
  997. <el-row class="row-style">
  998. <el-col :xs="24" :sm="12" :lg="23" :span="12">
  999. <el-form-item label="备注:" prop="remark" label-width="120px" class="postInfo-container-item">
  1000. <el-input v-model="targetForm.remark" :autosize="{ minRows: 4, maxRows: 4 }" class="filter-item"
  1001. type="textarea" />
  1002. </el-form-item>
  1003. </el-col>
  1004. </el-row>
  1005. <el-row class="row-style">
  1006. <el-button v-if="saveButtonStatus" @click="assetsTargetSave" style="width:100%;">保存</el-button>
  1007. <el-button v-if="updateButtonStatus" @click="assetsTargetUpdate" style="width:100%;">更新</el-button>
  1008. </el-row>
  1009. </el-form>
  1010. </div>
  1011. </el-dialog>
  1012. <el-dialog :visible.sync="productionChoiceDialogVisible">
  1013. <el-form ref="assetsProductionForm" :model="assetsProductionForm" :rules="assetsProductionFormRules">
  1014. <div class="createMajor-main-container">
  1015. <div class="postInfo-container">
  1016. <div>
  1017. <el-divider content-position="left">
  1018. <h3 class="title">
  1019. <div class="avatar-wrapper icon-title">产品</div>
  1020. <div class="icon-info">选择产品</div>
  1021. </h3>
  1022. </el-divider>
  1023. </div>
  1024. <el-row class="row-style">
  1025. <el-col :xs="24" :sm="12" :lg="12" :span="6" style="width: 800px;">
  1026. <el-form-item label="产品类型:" prop="productionType" label-width="120px" class="postInfo-container-item">
  1027. <el-radio v-if="currentNode.nodeCode === 'PRODUCT_CHOICE'" v-model="assetsProductionForm.productionType"
  1028. label="STATEMENT" border size="medium">价值意见书</el-radio>
  1029. <el-radio v-model="assetsProductionForm.productionType" label="CONSULT" border
  1030. size="medium">咨询报告</el-radio>
  1031. <el-radio v-model="assetsProductionForm.productionType" label="REPORT" border
  1032. size="medium">评估报告</el-radio>
  1033. <el-radio v-model="assetsProductionForm.productionType" label="LETTER" border
  1034. size="medium">意见函</el-radio>
  1035. </el-form-item>
  1036. </el-col>
  1037. </el-row>
  1038. <el-row class="row-style">
  1039. <el-col :xs="24" :sm="12" :lg="12" :span="6" style="width: 345px;">
  1040. <el-form-item label="打印份数:" prop="printCount" label-width="120px" class="postInfo-container-item">
  1041. <el-input v-model.number="assetsProductionForm.printCount" class="filter-item" />
  1042. </el-form-item>
  1043. </el-col>
  1044. </el-row>
  1045. <el-row class="row-style">
  1046. <el-button v-if="productionChoiceStatus == 0" @click="assetsProductionSave"
  1047. style="width:100%;">提交</el-button>
  1048. <el-button v-if="productionChoiceStatus == 1" @click="assetsProductionUpdate"
  1049. style="width:100%;">提交</el-button>
  1050. </el-row>
  1051. </div>
  1052. </div>
  1053. </el-form>
  1054. </el-dialog>
  1055. <el-dialog :visible.sync="productionWriteDialogVisible" @close="resetProductionForm">
  1056. <el-form ref="assetsProductionForm" :model="assetsProductionForm" :rules="assetsProductionFormRules"
  1057. :disabled="productionDisabledStatus">
  1058. <div class="createMajor-main-container">
  1059. <div class="postInfo-container">
  1060. <div>
  1061. <el-divider content-position="left">
  1062. <h3 class="title">
  1063. <div class="avatar-wrapper icon-title">产品</div>
  1064. <div class="icon-info">撰写产品信息</div>
  1065. </h3>
  1066. </el-divider>
  1067. </div>
  1068. <el-row class="row-style">
  1069. <el-col v-if="currentNode.nodeCode === 'GENERATE_STATEMENT'">
  1070. <el-form-item label="产品号:" prop="productionNo" label-width="120px" class="postInfo-container-item">
  1071. <el-select v-model="assetsProductionForm.productionNo" @change="getAssetsProductionDetailByNo()"
  1072. placeholder="请选择" style="width: 300px;">
  1073. <el-option v-for="statementNo in writeProductionStatementNos" :label="statementNo"
  1074. :value="statementNo" :key="statementNo"></el-option>
  1075. </el-select>
  1076. </el-form-item>
  1077. </el-col>
  1078. <el-col v-if="currentNode.nodeCode === 'WRITE_REPORT'">
  1079. <el-form-item label="产品号:" prop="productionNo" label-width="120px" class="postInfo-container-item">
  1080. <el-select v-model="assetsProductionForm.productionNo" @change="getAssetsProductionDetailByNo()"
  1081. placeholder="请选择" style="width: 300px;">
  1082. <el-option v-for="reportNo in writeProductionReportNos" :label="reportNo" :value="reportNo"
  1083. :key="reportNo"></el-option>
  1084. </el-select>
  1085. </el-form-item>
  1086. </el-col>
  1087. </el-row>
  1088. <el-row class="row-style">
  1089. <el-col>
  1090. <el-form-item label="项目名称:" prop="assetsName" label-width="120px" class="postInfo-container-item">
  1091. <el-input v-model.number="assetsProductionForm.assetsName" class="filter-item" />
  1092. </el-form-item>
  1093. </el-col>
  1094. </el-row>
  1095. <el-row class="row-style" v-if="currentNode.nodeCode === 'WRITE_REPORT'">
  1096. <el-col>
  1097. <el-form-item label="签字人:" prop="signatory" label-width="120px" class="postInfo-container-item">
  1098. <el-select v-model="assetsProductionForm.signatory" placeholder="请选择" multiple>
  1099. <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
  1100. </el-select>
  1101. </el-form-item>
  1102. </el-col>
  1103. </el-row>
  1104. <el-row class="row-style">
  1105. <el-col>
  1106. <el-form-item label="委托方名称:" prop="clientName" label-width="120px" class="postInfo-container-item">
  1107. <el-input v-model.number="assetsProductionForm.clientName" class="filter-item" />
  1108. </el-form-item>
  1109. </el-col>
  1110. </el-row>
  1111. <el-row class="row-style">
  1112. <el-col>
  1113. <el-form-item label="委托方电话:" prop="clientTel" label-width="120px" class="postInfo-container-item">
  1114. <el-input v-model.number="assetsProductionForm.clientTel" class="filter-item" />
  1115. </el-form-item>
  1116. </el-col>
  1117. </el-row>
  1118. <el-row class="row-style">
  1119. <el-col>
  1120. <el-form-item label="估价基准日:" prop="valuationBasisDate" label-width="120px"
  1121. class="postInfo-container-item">
  1122. <el-date-picker v-model="assetsProductionForm.valuationBasisDate" type="date" placeholder="选择日期"
  1123. style="width:100%">
  1124. </el-date-picker>
  1125. </el-form-item>
  1126. </el-col>
  1127. </el-row>
  1128. <el-row class="row-style">
  1129. <el-col>
  1130. <el-form-item label="评估面积:" prop="evaluateAcreage" label-width="140px" class="postInfo-container-item">
  1131. <el-input-number v-model="assetsProductionForm.evaluateAcreage" @change="computeAmount"
  1132. controls-position="right" :precision="2" :step="0.1"></el-input-number>
  1133. <span>(m²)</span>
  1134. </el-form-item>
  1135. </el-col>
  1136. </el-row>
  1137. <el-row class="row-style">
  1138. <el-col>
  1139. <el-form-item label="评估单价:" prop="evaluatePrice" label-width="140px" class="postInfo-container-item">
  1140. <el-input-number v-model="assetsProductionForm.evaluatePrice" @change="computeAmount"
  1141. controls-position="right" :precision="2" :step="0.1"></el-input-number>
  1142. <span>(元)</span>
  1143. </el-form-item>
  1144. </el-col>
  1145. </el-row>
  1146. <el-row class="row-style">
  1147. <el-col>
  1148. <el-form-item label="评估总价:" prop="evaluateAmount" label-width="140px" class="postInfo-container-item">
  1149. <el-input-number v-model="assetsProductionForm.evaluateAmount" controls-position="right" :precision="2"
  1150. :step="0.1"></el-input-number>
  1151. <span>(万)</span>
  1152. </el-form-item>
  1153. </el-col>
  1154. </el-row>
  1155. <el-row class="row-style">
  1156. <el-col>
  1157. <el-form-item label="资产持有人:" prop="owner" label-width="120px" class="postInfo-container-item">
  1158. <el-input v-model.number="assetsProductionForm.owner" class="filter-item" />
  1159. </el-form-item>
  1160. </el-col>
  1161. </el-row>
  1162. <el-row class="row-style">
  1163. <el-col>
  1164. <el-form-item label="产品打印份数:" prop="printCount" label-width="150px" class="postInfo-container-item">
  1165. <el-input v-model.number="assetsProductionForm.printCount" class="filter-item" />
  1166. </el-form-item>
  1167. </el-col>
  1168. </el-row>
  1169. <el-row class="row-style">
  1170. <el-col>
  1171. <el-form-item label="出具产品日期:" prop="createProductionDate" label-width="150px"
  1172. class="postInfo-container-item">
  1173. <el-date-picker v-model="assetsProductionForm.createProductionDate" type="date" placeholder="选择日期"
  1174. style="width:100%">
  1175. </el-date-picker>
  1176. </el-form-item>
  1177. </el-col>
  1178. </el-row>
  1179. <el-row class="row-style">
  1180. <el-col>
  1181. <el-form-item prop="filePath" label="资料附件:" label-width="120px" class="postInfo-container-item">
  1182. <el-upload action="/api/upload" :limit="3" :on-success="changeresProduction" :on-exceed="handleExceed"
  1183. :on-preview="handleAttachmentPreview" :before-remove="beforeRemovePro" :file-list="fileList">
  1184. <el-button plain type="info" round style="width: 100%">上传附件<i
  1185. class="el-icon-upload el-icon--right"></i></el-button>
  1186. </el-upload>
  1187. </el-form-item>
  1188. </el-col>
  1189. </el-row>
  1190. <el-row class="row-style">
  1191. <el-col>
  1192. <el-form-item label="特殊情况说明:" prop="comment" label-width="150px" class="postInfo-container-item">
  1193. <el-input v-model="assetsProductionForm.comment" :autosize="{ minRows: 4, maxRows: 4 }"
  1194. class="filter-item" type="textarea" />
  1195. </el-form-item>
  1196. </el-col>
  1197. </el-row>
  1198. <el-row class="row-style">
  1199. <el-button v-if="writeType === 'add'" @click="writeAssetsProduction()" style="width:100%;">提交</el-button>
  1200. </el-row>
  1201. <el-row class="row-style">
  1202. <el-button v-if="writeType === 'edit'" @click="productionUpdate()" style="width:100%;">提交</el-button>
  1203. </el-row>
  1204. </div>
  1205. </div>
  1206. </el-form>
  1207. </el-dialog>
  1208. <el-dialog :visible.sync="checkValueDialogVisible">
  1209. <el-divider content-position="left">【资产】审核定价</el-divider>
  1210. <el-form ref="targetForm" :model="targetForm" :rules="targetFormRules">
  1211. <div class="createMajor-main-container">
  1212. <div class="postInfo-container">
  1213. <el-row>
  1214. <el-col>
  1215. <el-form-item label="评估方法:" prop="evaluationMethodId" label-width="120px" class="postInfo-container-item">
  1216. <el-select v-model="targetForm.evaluationMethodId">
  1217. <el-option v-for="(m, id) in assetsEvaluationMethod" :label="m.methodName" :value="m.id"
  1218. :key="m.id"></el-option>
  1219. </el-select>
  1220. </el-form-item>
  1221. </el-col>
  1222. </el-row>
  1223. <el-row>
  1224. <el-col>
  1225. <el-form-item label="最终选择的评估方法:" prop="choiceEvaluationMethodId" label-width="200px"
  1226. class="postInfo-container-item">
  1227. <el-select v-model="targetForm.choiceEvaluationMethodId">
  1228. <el-option v-for="(m, id) in assetsEvaluationMethod" :label="m.methodName" :value="m.id"
  1229. :key="m.id"></el-option>
  1230. </el-select>
  1231. </el-form-item>
  1232. </el-col>
  1233. </el-row>
  1234. <el-row>
  1235. <el-col>
  1236. <el-form-item label="审核价格:" prop="checkValue" label-width="140px" class="postInfo-container-item">
  1237. <el-input-number v-model="targetForm.checkValue" controls-position="right" :precision="2"
  1238. :step="0.1"></el-input-number>
  1239. <span>(万)</span>
  1240. </el-form-item>
  1241. </el-col>
  1242. </el-row>
  1243. <el-row>
  1244. <el-col>
  1245. <el-button @click="checkValue()" style="width:100%;">审核定价</el-button>
  1246. </el-col>
  1247. </el-row>
  1248. </div>
  1249. </div>
  1250. </el-form>
  1251. </el-dialog>
  1252. <el-dialog :visible.sync="productionCheckDialogVisible" @close="resetProductionForm()">
  1253. <el-form ref="productionPerformanceForm" :model="productionPerformanceForm">
  1254. <div class="createMajor-main-container">
  1255. <div class="postInfo-container">
  1256. <div>
  1257. <el-divider content-position="left">
  1258. <h3 class="title">
  1259. <div class="avatar-wrapper icon-title">产品</div>
  1260. <div class="icon-info">产品质检</div>
  1261. </h3>
  1262. </el-divider>
  1263. </div>
  1264. <el-row class="row-style">
  1265. <el-col>
  1266. <el-form-item prop="normalMistake" label-width="120px" class="postInfo-container-item" label="一般错误个数:">
  1267. <el-input-number :min="0" style="width:50%;" type="number"
  1268. v-model="productionPerformanceForm.normalMistake" class="filter-item" />
  1269. </el-form-item>
  1270. </el-col>
  1271. </el-row>
  1272. <el-row class="row-style">
  1273. <el-col>
  1274. <el-form-item prop="normalMistake" label-width="120px" class="postInfo-container-item" label="较大错误个数:">
  1275. <el-input-number :min="0" style="width:50%;" type="number"
  1276. v-model="productionPerformanceForm.hardMistake" class="filter-item" />
  1277. </el-form-item>
  1278. </el-col>
  1279. </el-row>
  1280. <el-row class="row-style">
  1281. <el-col>
  1282. <el-form-item prop="fatalMistake" label-width="120px" class="postInfo-container-item" label="重大错误个数:">
  1283. <el-input-number :min="0" style="width:50%;" type="number"
  1284. v-model="productionPerformanceForm.fatalMistake" class="filter-item" />
  1285. </el-form-item>
  1286. </el-col>
  1287. </el-row>
  1288. <el-row class="row-style">
  1289. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  1290. <el-form-item prop="reason" label-width="120px" class="postInfo-container-item" label="扣分原因:">
  1291. <el-input v-model.trim="productionPerformanceForm.reason" class="filter-item" type="textarea" />
  1292. </el-form-item>
  1293. </el-col>
  1294. </el-row>
  1295. <div v-if="currentNode.nodeCode === 'RECHECK_REPORT' || currentNode.nodeCode === 'FOURTH_CHECK_REPORT'">
  1296. <el-row class="row-style">
  1297. <el-col>
  1298. <el-form-item label="特殊情况说明:" prop="comment" label-width="150px" class="postInfo-container-item">
  1299. <el-input v-model="assetsProductionForm.comment" :autosize="{ minRows: 4, maxRows: 4 }"
  1300. class="filter-item" type="textarea" />
  1301. </el-form-item>
  1302. </el-col>
  1303. </el-row>
  1304. <el-row class="row-style">
  1305. <el-col>
  1306. <el-form-item :rules="{ required: true, message: '请上传附件资料', trigger: 'changes' }" prop="filePath"
  1307. label="资料附件:" label-width="120px" class="postInfo-container-item">
  1308. <el-upload action="/api/upload" :limit="3" :on-success="changeresProduction" :on-exceed="handleExceed"
  1309. :on-preview="handleAttachmentPreview" :before-remove="beforeRemovePro" :file-list="fileList">
  1310. <el-button plain type="info" round style="width: 100%">上传附件<i
  1311. class="el-icon-upload el-icon--right"></i></el-button>
  1312. </el-upload>
  1313. </el-form-item>
  1314. </el-col>
  1315. </el-row>
  1316. </div>
  1317. <el-row>
  1318. <el-col>
  1319. <el-button style="width:100%;" @click="saveQuality()">提交</el-button>
  1320. </el-col>
  1321. </el-row>
  1322. </div>
  1323. </div>
  1324. </el-form>
  1325. </el-dialog>
  1326. <el-dialog :visible.sync="warehouseDialog" width="25%" center top="35vh" custom-class="doWarehouseClass"
  1327. @closed="cleanWareHouseProductionType()">
  1328. <ScanEntry ref="scanEntry" @scanEntryFun="handleScanEntry" label="请扫描二维码或输入报告号" />
  1329. <span slot="footer" class="dialog-footer">
  1330. <el-button @click="warehouseDialog = false">取 消</el-button>
  1331. <el-button type="primary" @click="doWareHouse()">确 定</el-button>
  1332. </span>
  1333. </el-dialog>
  1334. <el-dialog :visible.sync="assetsAchievementRatioDialogVisible" @close="resetProductionForm()"
  1335. @closed="resetBusinessPerformanceDistributionForm()" width="25%">
  1336. <div v-if="businessPerformanceDistributionForm.distributionList !== null" class="createMajor-main-container">
  1337. <div class="postInfo-container">
  1338. <div>
  1339. <el-divider content-position="left">
  1340. <h3 class="title">
  1341. <div class="avatar-wrapper icon-title">归档</div>
  1342. <div class="icon-info">归档审核</div>
  1343. </h3>
  1344. </el-divider>
  1345. </div>
  1346. <!-- <p style="margin-top: 50px; color: red;">绩效比例:</p>
  1347. <el-row style="margin-top: 10px;" v-for="(member, index) in assetsBusinessMembers" :key="index"
  1348. class="row-style">
  1349. <el-col>
  1350. <p style="width: 65px; display: inline-block; text-align: right;">
  1351. {{ member.memberName }}:
  1352. </p>
  1353. <el-input-number
  1354. v-model="businessPerformanceDistributionForm.distributionList[index].performanceDistribution"
  1355. :precision="2" :step="0.1" :max="100">
  1356. </el-input-number>
  1357. <p style="margin-left: 5px; display: inline-block;">
  1358. %
  1359. </p>
  1360. <p style="margin-left: 5px; display: inline-block;">
  1361. <span v-if="member.memberType === '项目负责人'" style="color: blueviolet;">
  1362. * {{ member.memberType }}
  1363. </span>
  1364. <span v-if="member.memberType === '项目参与人'">
  1365. * {{ member.memberType }}
  1366. </span>
  1367. <span v-if="member.memberType === '签字师'" style="color: red;">
  1368. * {{ member.memberType }}
  1369. </span>
  1370. </p>
  1371. </el-col>
  1372. </el-row> -->
  1373. <span v-if="currentNode.nodeCode === 'CHECK_ARCHIVING'">
  1374. <el-row style="margin-top: 10px;" class="row-style">
  1375. <el-col>
  1376. <el-form>
  1377. <el-form-item :rules="{ required: true, message: '请上传附件资料', trigger: 'changes' }" prop="filePath"
  1378. label="资料附件:" label-width="120px" class="postInfo-container-item">
  1379. <el-upload action="/api/upload" :limit="3" :on-success="changeresProduction" :on-exceed="handleExceed"
  1380. :on-preview="handleAttachmentPreview" :before-remove="beforeRemovePro" :file-list="fileList">
  1381. <el-button plain type="info" round style="width: 100%">上传附件<i
  1382. class="el-icon-upload el-icon--right"></i></el-button>
  1383. </el-upload>
  1384. </el-form-item>
  1385. </el-form>
  1386. </el-col>
  1387. </el-row>
  1388. </span>
  1389. </div>
  1390. </div>
  1391. <span v-if="businessPerformanceDistributionForm.distributionList !== null" slot="footer" class="dialog-footer">
  1392. <el-button @click="assetsAchievementRatioDialogVisible = false">取 消</el-button>
  1393. <el-button v-if="showDistributionButton" type="primary" @click="saveBusinessPerformanceDistribution()">新
  1394. 增</el-button>
  1395. <el-button v-if="!showDistributionButton" type="primary" @click="updateAssetsPerformanceDistribution()">修
  1396. 改</el-button>
  1397. </span>
  1398. </el-dialog>
  1399. </div>
  1400. </template>
  1401. <script>
  1402. import YDetailPageLayout from '@/components/YDetailPageLayout/index_detail'
  1403. import WorkflowBoard from '@/components/workflowBoard'
  1404. import ScanEntry from '@/components/ScanEntry'
  1405. export default {
  1406. name: 'assetsDetail',
  1407. components: {
  1408. YDetailPageLayout,
  1409. WorkflowBoard,
  1410. ScanEntry
  1411. },
  1412. data() {
  1413. var checkSignatoryLength = (rule, value, callback) => {
  1414. if (this.assetsProductionForm.signatory !== undefined && this.assetsProductionForm.signatory !== null) {
  1415. if (this.assetsProductionForm.signatory.length < 2) {
  1416. return callback(new Error('需至少选择两个签字人'));
  1417. } else {
  1418. callback();
  1419. }
  1420. }
  1421. };
  1422. return {
  1423. editStatus: false,
  1424. // 资产业务表单禁用状态
  1425. disabledStatus: true,
  1426. // 评估对象表单禁用状态
  1427. targetDisabledStatus: true,
  1428. // 评估对象表单保存按钮显示状态
  1429. saveButtonStatus: true,
  1430. // 评估对象表单更新按钮显示状态
  1431. updateButtonStatus: true,
  1432. couldEdit: null,
  1433. couldBack: null,
  1434. // 表单项目隐藏字段
  1435. itemHideStatus: false,
  1436. createLinkmanVisible: false,
  1437. // 文件上传数组
  1438. fileList: [],
  1439. // 资产业务下单表单校验规则
  1440. assetsFormRules: {
  1441. clientManager: [
  1442. { required: true, message: '客户经理不能为空', trigger: 'blur' }
  1443. ],
  1444. departmentId: [
  1445. { required: true, message: '请选择接单部门', trigger: 'change' }
  1446. ],
  1447. name: [
  1448. { required: true, message: '项目名称不能为空', trigger: 'blur' }
  1449. ],
  1450. assetsBusinessGener: [
  1451. { required: true, message: '请选择业务类型', trigger: 'change' }
  1452. ],
  1453. entrustAgain: [
  1454. { required: true, message: '请选择客户是否再次委托', trigger: 'change' }
  1455. ],
  1456. clienteleType: [
  1457. { required: true, message: '请选择客户类型', trigger: 'change' }
  1458. ],
  1459. clienteleId: [
  1460. { required: true, message: '请选择客户名称', trigger: 'change' }
  1461. ],
  1462. clienteleSubId: [
  1463. { required: true, message: '请选择业务来源', trigger: 'change' }
  1464. ],
  1465. clienteleContactId: [
  1466. { required: true, message: '请选择客户联系人', trigger: 'change' }
  1467. ],
  1468. security: [
  1469. { required: true, message: '请选择是否证券项目', trigger: 'change' }
  1470. ],
  1471. significantAssetsReorganization: [
  1472. { required: true, message: '请选择是否资产重组项目', trigger: 'change' }
  1473. ],
  1474. stateAssets: [
  1475. { required: true, message: '请选择是否是否国资项目', trigger: 'change' }
  1476. ],
  1477. foreignAssetsInvolved: [
  1478. { required: true, message: '请选择是否 是否涉及境外资产', trigger: 'change' }
  1479. ],
  1480. dispenseBenefit: [
  1481. { required: true, message: '请选择是否是否分配产值', trigger: 'change' }
  1482. ],
  1483. terminalClienteleType: [
  1484. { required: true, message: '请选择终端客户类型', trigger: 'change' }
  1485. ],
  1486. terminalClienteleId: [
  1487. { required: true, message: '终端客户名称不能为空', trigger: 'blur' }
  1488. ],
  1489. terminalClienteleContactId: [
  1490. { required: true, message: '终端联系人不能为空', trigger: 'blur' }
  1491. ]
  1492. },
  1493. workflowLogs: [],
  1494. activeName: 'workflowInfo',
  1495. activeTabName: "baseInfo",
  1496. nodeBusinessInfo: {
  1497. currentNodePermission: {
  1498. commit: true,
  1499. reversible: true,
  1500. restartable: true,
  1501. terminable: true,
  1502. skippable: true,
  1503. },
  1504. mainBusiness: "ASSET_BUSINESS",
  1505. doWorkflow: false,
  1506. businessSubId: null,
  1507. businessId: null,
  1508. currentNodeInstanceId: null,
  1509. production: [],
  1510. reportNos: [],
  1511. currentNodeInstanceCode: null,
  1512. ifCheckTask: true,
  1513. ifPay: null,
  1514. doFourthCheck: false,
  1515. ifProductionFund: false
  1516. },
  1517. currentNode: {
  1518. flowId: null,
  1519. pnodeId: null,
  1520. nodeId: null,
  1521. flowCode: null,
  1522. nodeName: "",
  1523. nodeCode: null,
  1524. state: "",
  1525. instanceId: null,
  1526. sequence: null,
  1527. restartable: null,
  1528. reversible: null,
  1529. skippable: null,
  1530. terminable: null,
  1531. tasks: []
  1532. },
  1533. assetsForm: {
  1534. // 项目名
  1535. name: null,
  1536. // 客户经理id
  1537. clientManagerId: this.$store.getters.userInfo.id,
  1538. // 客户经理
  1539. clientManagerName: this.$store.getters.userInfo.name,
  1540. // 接单部门id
  1541. departmentId: null,
  1542. // 资产业务类型
  1543. assetsBusinessGener: null,
  1544. // 客户再次委托
  1545. entrustAgain: null,
  1546. // 客户类型(企业,个人)
  1547. clienteleType: null,
  1548. // 客户id
  1549. clienteleId: null,
  1550. // 业务来源(下级客户id)
  1551. clienteleSubId: null,
  1552. // 客户联系人id
  1553. clienteleContactId: null,
  1554. // 是否证券项目
  1555. security: null,
  1556. // 是否资产重组项目
  1557. significantAssetsReorganization: null,
  1558. // 是否国资项目
  1559. stateAssets: null,
  1560. // 是否涉及境外资产
  1561. foreignAssetsInvolved: null,
  1562. // 是否分配产值
  1563. dispenseBenefit: null,
  1564. // 委托人
  1565. bailor: null,
  1566. // 委托人地址
  1567. bailorAddress: null,
  1568. // 委托联系人姓名
  1569. bailorContactName: null,
  1570. // 委托人联系人电话
  1571. bailorContactTel: null,
  1572. // 终端客户id
  1573. terminalClienteleId: null,
  1574. // 终端客户类型
  1575. terminalClienteleType: null,
  1576. // 终端联系人id
  1577. terminalClienteleContactId: null,
  1578. // 备注
  1579. remark: null,
  1580. // 终端联系电话
  1581. tmobile: null,
  1582. // 分单类型
  1583. allotType: "指派",
  1584. // 项目成员
  1585. members: null,
  1586. },
  1587. // 客户联系人信息
  1588. linkmanInfo: {
  1589. },
  1590. // 终端联系人信息
  1591. tLinkmanInfo: {
  1592. },
  1593. // 终端客户信息
  1594. tCustomerInfo: {
  1595. },
  1596. //
  1597. pageParams: {
  1598. back: null,
  1599. row: null
  1600. },
  1601. // 业务类型下拉列表
  1602. assetsBusinessGeners: [
  1603. {
  1604. value: '单项资产',
  1605. label: '单项资产'
  1606. }, {
  1607. value: '整体资产',
  1608. label: '整体资产'
  1609. }, {
  1610. value: '无形资产',
  1611. label: '无形资产'
  1612. }, {
  1613. value: '债权',
  1614. label: '债权'
  1615. }, {
  1616. value: '其他',
  1617. label: '其他'
  1618. }
  1619. ],
  1620. // 接单部门
  1621. allotDepartment: [],
  1622. // 客户信息
  1623. customerCompany: [],
  1624. // 业务信息(二级客户)
  1625. subCustomerCompany: [],
  1626. // 客户联系人下拉列表
  1627. customerContract: [],
  1628. // 终端客户下拉列表
  1629. tCustomerCompany: [],
  1630. // 终端联系人下拉列表
  1631. tCustomerContract: [],
  1632. // 项目负责人下拉列表
  1633. principals: [],
  1634. // 用户下拉列表
  1635. allUsers: [],
  1636. // 资产评估对象信息
  1637. assetsEvaluationTarget: [],
  1638. writeProductionStatementNos: [],
  1639. writeProductionReportNos: [],
  1640. // 估计对象总价
  1641. totalEvaluateValue: 0.00,
  1642. // 评估对象表单
  1643. targetForm: {
  1644. id: null,
  1645. // 资产评估目的id
  1646. evaluationPurposeId: null,
  1647. // 资产评估对象类型一级id
  1648. evaluationTypeId: null,
  1649. // 资产评估对象类型二级id
  1650. evaluationTypeSecId: null,
  1651. // 产权持有人
  1652. theHolder: null,
  1653. // 资产价值类型id
  1654. assetsValueId: null,
  1655. // 项目负责人id
  1656. principalId: null,
  1657. // 实勘人id (json 可多个)
  1658. siteIds: [],
  1659. // 估价基准日
  1660. valuationBasisDate: null,
  1661. // 评估方法id
  1662. evaluationMethodId: null,
  1663. // 最终选择的评估方法id
  1664. choiceEvaluationMethodId: null,
  1665. // 总资产账面值(万)
  1666. totalAssetCarryingAmount: null,
  1667. // 总负债账面值(万)
  1668. totalLiabilitiesCarryingAmount: null,
  1669. // 净资产账面值(万)
  1670. carryingAmountOfNetAssets: null,
  1671. // 评估结论对应的评估值(万)
  1672. estimatedValue: null,
  1673. // 审核价格
  1674. checkValue: null,
  1675. // 资料路由信息
  1676. filePath: [],
  1677. // 资产业务id
  1678. assetsId: null
  1679. },
  1680. targetFormBack: {
  1681. evaluationPurposeId: null,
  1682. evaluationTypeId: null,
  1683. evaluationTypeSecId: null,
  1684. theHolder: null,
  1685. assetsValueId: null,
  1686. principalId: null,
  1687. siteIds: [],
  1688. valuationBasisDate: null,
  1689. evaluationMethodId: null,
  1690. choiceEvaluationMethodId: null,
  1691. totalAssetCarryingAmount: null,
  1692. totalLiabilitiesCarryingAmount: null,
  1693. carryingAmountOfNetAssets: null,
  1694. estimatedValue: null,
  1695. checkValue: null,
  1696. filePath: [],
  1697. assetsId: null
  1698. },
  1699. // 资产评估对象评估目的
  1700. assetsEvaluationTargetPurpose: [],
  1701. // 资产评估方法
  1702. assetsEvaluationMethod: [],
  1703. // 资产价值类型
  1704. assetsValueType: [],
  1705. // 资产评估对象类型
  1706. assetsEvaluationTargetType: [],
  1707. // 二级资产评估对象类型
  1708. assetsSecEvaluationTargetType: [],
  1709. // 评估对象弹窗可视状态
  1710. targetDialogVisible: false,
  1711. // 添加评估对象表单校验规则
  1712. targetFormRules: {
  1713. evaluationPurposeId: [
  1714. { required: true, message: '请选择评估目的', trigger: 'change' }
  1715. ],
  1716. evaluationTypeId: [
  1717. { required: true, message: '请选择评估对象', trigger: 'change' }
  1718. ],
  1719. evaluationTypeSecId: [
  1720. { required: true, message: '请选择评估对象', trigger: 'change' }
  1721. ],
  1722. theHolder: [
  1723. { required: true, message: '请填写产权持有人', trigger: 'blur' }
  1724. ],
  1725. assetsValueId: [
  1726. { required: true, message: '请选择价值类型', trigger: 'change' }
  1727. ],
  1728. principalId: [
  1729. { required: true, message: '请选择项目负责人', trigger: 'change' }
  1730. ],
  1731. siteIds: [
  1732. { required: true, message: '请选择实勘人', trigger: 'change' }
  1733. ],
  1734. valuationBasisDate: [
  1735. { required: true, message: '请选择价格基准日', trigger: 'change' }
  1736. ],
  1737. evaluationMethodId: [
  1738. { required: true, message: '请选择评估方法', trigger: 'change' }
  1739. ],
  1740. choiceEvaluationMethodId: [
  1741. { required: true, message: '请选择最终选择的评估方法', trigger: 'change' }
  1742. ],
  1743. totalAssetCarryingAmount: [
  1744. { required: true, message: '请填写总资产账面值', trigger: 'blur' }
  1745. ],
  1746. totalLiabilitiesCarryingAmount: [
  1747. { required: true, message: '请填写总负债账面值', trigger: 'blur' }
  1748. ],
  1749. carryingAmountOfNetAssets: [
  1750. { required: true, message: '请填写净资产账面值', trigger: 'blur' }
  1751. ],
  1752. estimatedValue: [
  1753. { required: true, message: '请填写评估结论对应的评估值', trigger: 'blur' }
  1754. ],
  1755. // filePath: [
  1756. // { required: true, message: '请上传附件资料', trigger: 'change' }
  1757. // ],
  1758. checkValue: [
  1759. { required: true, message: '请填写审核价格', trigger: 'blur' }
  1760. ]
  1761. },
  1762. // 款项信息
  1763. invoiceData: {
  1764. businessId: null,
  1765. shouldAmount: null,
  1766. realAmount: null,
  1767. leftAmount: null,
  1768. title: null,
  1769. type: null,
  1770. taxNo: null,
  1771. bankName: null,
  1772. bankAddress: null,
  1773. bankTel: null
  1774. },
  1775. // 节点任务提交dto
  1776. taskRecordDTO: {
  1777. recordId: null,
  1778. taskData: {}
  1779. },
  1780. pNode: null,
  1781. // 产品选择表单可视状态
  1782. productionChoiceDialogVisible: false,
  1783. // 产品信息撰写表单可视状态
  1784. productionWriteDialogVisible: false,
  1785. // 评估对象审核定价表单可视状态
  1786. checkValueDialogVisible: false,
  1787. isCheckValue: false,
  1788. // 0:新增,1:更新
  1789. productionChoiceStatus: 0,
  1790. // 产品表单
  1791. assetsProductionForm: {
  1792. businessId: null,
  1793. productionNo: null,
  1794. productionType: null,
  1795. signatory: [],
  1796. clientName: null,
  1797. clientTel: null,
  1798. valuationBasisDate: null,
  1799. evaluateAcreage: null,
  1800. evaluatePrice: null,
  1801. evaluateAmount: null,
  1802. owner: null,
  1803. printCount: null,
  1804. createProductionDate: null,
  1805. comment: null,
  1806. filePath: [],
  1807. assetsName: null
  1808. },
  1809. // 产品选择表单校验规则
  1810. assetsProductionFormRules: {
  1811. productionType: [
  1812. { required: true, message: '请选择产品类型', trigger: 'change' }
  1813. ],
  1814. printCount: [
  1815. { required: true, message: '请填写打印份数', trigger: 'blur' },
  1816. { type: 'number', message: '请填写数字' }
  1817. ],
  1818. signatory: [
  1819. { required: true, message: '请选择签字人', trigger: 'change' },
  1820. { required: true, validator: checkSignatoryLength, trigger: 'change' }
  1821. ],
  1822. clientName: [
  1823. { required: true, message: '请填写委托方名称', trigger: 'blur' }
  1824. ],
  1825. clientTel: [
  1826. { required: true, message: '请填写委托方电话', trigger: 'blur' }
  1827. ],
  1828. valuationBasisDate: [
  1829. { required: true, message: '请选择估价基准日', trigger: 'change' }
  1830. ],
  1831. // evaluateAcreage: [
  1832. // { required: true, message: '请填写评估面积', trigger: 'blur' }
  1833. // ],
  1834. // evaluatePrice: [
  1835. // { required: true, message: '请填写评估单价', trigger: 'blur' }
  1836. // ],
  1837. evaluateAmount: [
  1838. { required: true, message: '请填写评估总价', trigger: 'blur' }
  1839. ],
  1840. owner: [
  1841. { required: true, message: '请填写持有人', trigger: 'blur' }
  1842. ],
  1843. createProductionDate: [
  1844. { required: true, message: '请选择产品出具日期', trigger: 'change' }
  1845. ],
  1846. filePath: [
  1847. { required: true, message: '请上传附件资料', trigger: 'change' }
  1848. ],
  1849. assetsName: [
  1850. { required: true, message: '请填写项目名称', trigger: 'change' }
  1851. ],
  1852. productionNo: [
  1853. { required: true, message: '请选择评估对象', trigger: 'change' }
  1854. ]
  1855. },
  1856. // 资产业务取号dto
  1857. takeAssetsProductionNoDTO: {
  1858. targetIdList: [],
  1859. businessId: null,
  1860. productionType: null,
  1861. hasNotTakeNumTargetSelect: null,
  1862. selectAll: null,
  1863. printCount: null
  1864. },
  1865. assetsProductionData: null,
  1866. commitProductionNo: null,
  1867. proInatanceCount: null,
  1868. // 产品撰写表单禁用状态
  1869. productionDisabledStatus: false,
  1870. // 产品表单编辑类型
  1871. writeType: null,
  1872. // 产品质检表单可视状态
  1873. productionCheckDialogVisible: false,
  1874. // 产品质检信息
  1875. productionPerformanceForm: {
  1876. id: null,
  1877. businessType: null,
  1878. productionId: null,
  1879. checkLoop: null,
  1880. fatalMistake: 0,
  1881. hardMistake: 0,
  1882. normalMistake: 0,
  1883. reason: null,
  1884. checkId: null
  1885. },
  1886. // 产品入库弹窗
  1887. warehouseDialog: false,
  1888. scanEntryData: null,
  1889. wareHouseProductionType: null,
  1890. wareHouseproductionId: null,
  1891. assetsAchievementRatioDialogVisible: false,
  1892. // 项目所有参与人信息
  1893. assetsBusinessMembers: [],
  1894. // 资产绩效比例表单
  1895. businessPerformanceDistributionForm: {
  1896. businessId: null,
  1897. businessType: null,
  1898. reportNo: null,
  1899. distributionList: [
  1900. // {
  1901. // memberId: null,
  1902. // performanceDistribution: null
  1903. // }
  1904. ]
  1905. },
  1906. showDistributionButton: null
  1907. }
  1908. },
  1909. watch: {
  1910. },
  1911. created() {
  1912. this.disabledStatus = this.$route.query.disabledStatus === 'true';
  1913. this.couldEdit = this.$route.query.couldEdit === 'true';
  1914. this.couldBack = this.$route.query.couldBack === 'true';
  1915. if(this.$route.query.activeTabName !== null && this.$route.query.activeTabName !== undefined){
  1916. this.activeTabName = this.$route.query.activeTabName;
  1917. }
  1918. this.nodeBusinessInfo.doWorkflow = true;
  1919. // 获取页面参数
  1920. this.pageParams.back = this.$route.query.back;
  1921. this.pageParams.row = JSON.parse(this.$route.query.row);
  1922. this.getProductionTypes(this.pageParams.row.assetsId);
  1923. this.nodeBusinessInfo.mainBusiness = 'ASSET_BUSINESS';
  1924. this.nodeBusinessInfo.businessId = this.pageParams.row.assetsId;
  1925. this.nodeBusinessInfo.businessSubId = this.pageParams.row.statementNo;
  1926. this.nodeBusinessInfo.businessMinId = this.pageParams.row.reportNo;
  1927. this.getCurrentNodeInfo();
  1928. this.getAllotDepartment();
  1929. // this.getCustomerCompany(0);
  1930. // this.getCustomerCompany(1);
  1931. // this.getCustomerContract(0);
  1932. // this.getCustomerContract(1);
  1933. this.getAssetsDetailById(this.pageParams.row.assetsId);
  1934. // this.getProductionByBusinessId(this.pageParams.row.assetsId);
  1935. this.getAETargetListByAssetsId();
  1936. this.nodeBusinessInfo.reportNos.push(this.pageParams.row.statementNo);
  1937. },
  1938. methods: {
  1939. // 根据业务id获取资产业务详情
  1940. getAssetsDetailById(id) {
  1941. this.$api.assets.getAssetsDetailById(id).then(res => {
  1942. if (res.code === 200) {
  1943. this.assetsForm = res.data;
  1944. this.$refs.board.getInstanceQueue();
  1945. this.assetsForm.members = JSON.parse(res.data.members);
  1946. this.initCustomerSelect(this.assetsForm.clienteleType);
  1947. this.getPrincipalByAllotDepartment();
  1948. this.getContactInfo();
  1949. this.getAllUser();
  1950. }
  1951. })
  1952. },
  1953. handleChange() {
  1954. },
  1955. workflowCommitVerify(val, callback) {
  1956. let commit = val.commit;
  1957. let verify = new Object();
  1958. verify.state = true;
  1959. verify.cleanReport = false;
  1960. verify.nextHandlerId = this.secondCheckUserId;
  1961. if (commit.state === 'PASS') {
  1962. let nodeCode = this.currentNode.nodeCode;
  1963. switch (nodeCode) {
  1964. case 'GENERATE_STATEMENT':
  1965. let notTakeNumberTargets = this.assetsEvaluationTarget.filter(obj => !obj.productionNo).length;
  1966. if (notTakeNumberTargets.length > 0) {
  1967. this.$notify({
  1968. title: '提示',
  1969. message: '还有意见书号未取的估价对象,请先完成取号操作。',
  1970. type: 'error',
  1971. duration: 3000
  1972. });
  1973. verify.state = false;
  1974. callback(verify);
  1975. return;
  1976. }
  1977. if (typeof (commit.businessSubId) == 'undefined' || commit.businessSubId == null || commit.ifCheckTask == null) {
  1978. this.$notify({
  1979. title: '提示',
  1980. message: '请选择一个产品后,再进行流程提交。',
  1981. type: 'error',
  1982. duration: 3000
  1983. });
  1984. verify.state = false;
  1985. callback(verify);
  1986. return;
  1987. }
  1988. if (this.proInatanceCount > 0) {
  1989. this.$notify({
  1990. title: '提示',
  1991. message: '该产品已提交相应流程,不可重复提交。',
  1992. type: 'error',
  1993. duration: 3000
  1994. });
  1995. verify.state = false;
  1996. callback(verify);
  1997. return;
  1998. }
  1999. break;
  2000. case 'WRITE_REPORT':
  2001. let notTakeReportNoTargets = this.assetsEvaluationTarget.filter(function (e) {
  2002. return e.reportNo == null;
  2003. })
  2004. if (notTakeReportNoTargets.length > 0) {
  2005. this.$notify({
  2006. title: '提示',
  2007. message: '还有报告号未取的估价对象,请先完成取号操作。',
  2008. type: 'error',
  2009. duration: 3000
  2010. });
  2011. verify.state = false;
  2012. callback(verify);
  2013. return;
  2014. }
  2015. if (typeof (commit.businessMinId) == 'undefined' || commit.businessMinId == null || commit.ifCheckTask == null) {
  2016. this.$notify({
  2017. title: '提示',
  2018. message: '请选择一个产品后,再进行流程提交。',
  2019. type: 'error',
  2020. duration: 3000
  2021. });
  2022. verify.state = false;
  2023. callback(verify);
  2024. return;
  2025. }
  2026. if (this.proInatanceCount > 0) {
  2027. this.$notify({
  2028. title: '提示',
  2029. message: '该产品已提交相应流程,不可重复提交。',
  2030. type: 'error',
  2031. duration: 3000
  2032. });
  2033. verify.state = false;
  2034. callback(verify);
  2035. return;
  2036. }
  2037. break;
  2038. }
  2039. callback(verify);
  2040. }
  2041. let specialNodesForReverse = ["GENERATE_STATEMENT", "WRITE_REPORT", "WRITE_LETTER"];
  2042. if (commit.state === 'REVERSE' && specialNodesForReverse.includes(this.currentNode.nodeCode)) {
  2043. this.$refs.board.getPreviousNode();
  2044. let reportNos = this.assetsEvaluationTarget.map(item => item.reportNo);
  2045. //取了子号不能退回节点
  2046. if (this.pNode.nodeCode === "QUOTATION_FEEDBACK" && reportNos[0].includes("-")) {
  2047. this.$notify({
  2048. title: '提示',
  2049. message: '该订单已取了其他子号,不能退回节点。',
  2050. type: 'info',
  2051. duration: 3000
  2052. });
  2053. verify.state = false;
  2054. verify.cleanReport = false;
  2055. callback(verify);
  2056. }
  2057. if (this.pNode.nodeCode === "QUOTATION_FEEDBACK" && !reportNos[0].includes("-")) {
  2058. verify.cleanReport = true;
  2059. callback(verify);
  2060. }
  2061. callback(verify);
  2062. }
  2063. },
  2064. goBack() {
  2065. const back = this.$route.query.back
  2066. if (back) {
  2067. this.$router.push(back)
  2068. }
  2069. },
  2070. handleClick(tab) {
  2071. },
  2072. // 改变客户类型时进行值重置的操作
  2073. changeCustomerType(val) {
  2074. // 清空联系人下拉列表
  2075. this.assetsForm.clienteleContactId = null;
  2076. this.assetsForm.clienteleSubId = null;
  2077. this.customerContract = [];
  2078. if (val === "企业") {
  2079. this.getCustomerCompany(0);
  2080. this.itemHideStatus = true;
  2081. } else {
  2082. this.getCustomerContract(1);
  2083. this.itemHideStatus = false;
  2084. }
  2085. },
  2086. initCustomerSelect(val) {
  2087. if (val === "企业") {
  2088. this.getCustomerCompany(0);
  2089. // this.getCustomerContract();
  2090. this.itemHideStatus = true;
  2091. } else {
  2092. // this.getCustomerContract(1);
  2093. this.itemHideStatus = false;
  2094. }
  2095. },
  2096. // 获取部门下拉列表
  2097. getAllotDepartment() {
  2098. this.$api.department.allot().then(res => {
  2099. if (res.code === 200) {
  2100. this.allotDepartment = res.data;
  2101. }
  2102. })
  2103. },
  2104. // 获取客户信息
  2105. getCustomerCompany(val) {
  2106. if (val === 0) {
  2107. let simpleAll = new Object();
  2108. simpleAll.terminal = val;
  2109. this.$api.customerCompany.simpleAll(simpleAll).then(res => {
  2110. if (res.code === 200) {
  2111. this.customerCompany = res.data;
  2112. this.findSubClientele(0);
  2113. }
  2114. })
  2115. } else {
  2116. let simpleAll = new Object();
  2117. simpleAll.terminal = val;
  2118. this.$api.customerCompany.simpleAll(simpleAll).then(res => {
  2119. if (res.code === 200) {
  2120. this.tCustomerCompany = res.data;
  2121. }
  2122. })
  2123. }
  2124. },
  2125. // 打开新建客户联系人弹窗
  2126. createLinkman(val) {
  2127. // 打开前判断是否已经选择客户信息
  2128. if (this.targetFassetsFormorm.clienteleType === "个人" || this.assetsForm.clienteleType != null && this.assetsForm.clienteleId != null && this.assetsForm.clienteleSubId != null) {
  2129. this.createLinkmanVisible = true;
  2130. this.linkmanForm.terminal = val;
  2131. this.linkmanForm.clienteleType = this.assetsForm.clienteleType;
  2132. this.linkmanForm.clienteleId = this.assetsForm.clienteleId;
  2133. this.linkmanForm.clienteleSubId = this.assetsForm.clienteleSubId;
  2134. if (this.assetsForm.clienteleType === '企业') {
  2135. this.linkmanForm.ccId = this.assetsForm.clienteleSubId
  2136. } else {
  2137. this.assetsForm.clienteleSubId = 1;
  2138. this.linkmanForm.ccId = this.assetsForm.clienteleSubId;
  2139. }
  2140. } else {
  2141. this.$notify({
  2142. title: '警告',
  2143. message: '请先选择客户!',
  2144. type: 'warning',
  2145. duration: 2000
  2146. });
  2147. }
  2148. },
  2149. // 获取客户联系人列表
  2150. getCustomerContract(val) {
  2151. // if (this.assetsForm.clienteleSubId) {
  2152. let simpleAll = new Object();
  2153. simpleAll.terminal = 0;
  2154. if (val === 1) {
  2155. simpleAll.ccId = val;
  2156. } else {
  2157. simpleAll.ccId = this.assetsForm.clienteleSubId;
  2158. }
  2159. this.$api.customerLinkman.simpleAll(simpleAll).then(res => {
  2160. if (res.code === 200) {
  2161. this.customerContract = res.data;
  2162. }
  2163. })
  2164. // }
  2165. },
  2166. // 获取二级客户信息(业务来源)
  2167. findSubClientele(val) {
  2168. if (val === 0) {
  2169. if (this.assetsForm.clienteleId) {
  2170. let simpleAll = new Object();
  2171. simpleAll.terminal = val;
  2172. simpleAll.parentId = this.assetsForm.clienteleId;
  2173. this.$api.customerCompany.simpleAll(simpleAll).then(res => {
  2174. if (res.code === 200) {
  2175. this.subCustomerCompany = res.data;
  2176. }
  2177. })
  2178. }
  2179. } else {
  2180. if (this.assetsForm.terminalClienteleId) {
  2181. let simpleAll = new Object();
  2182. simpleAll.terminal = val;
  2183. simpleAll.ccId = this.assetsForm.terminalClienteleId;
  2184. this.$api.customerCompany.detail(this.assetsForm.terminalClienteleId).then(res => {
  2185. if (res.code === 200) {
  2186. this.assetsForm.tmobile = res.data.phone;
  2187. }
  2188. })
  2189. }
  2190. }
  2191. },
  2192. // 打开新增终端客户弹窗
  2193. createTerminalClient() {
  2194. this.createTerminalClientVisible = true;
  2195. },
  2196. // 根据部门id获取项目负责人列表
  2197. getPrincipalByAllotDepartment() {
  2198. let departmentId = this.assetsForm.departmentId;
  2199. if (departmentId) {
  2200. this.$api.user.usersByDepartmentId(departmentId).then(res => {
  2201. if (res.code === 200) {
  2202. this.principals = res.data;
  2203. }
  2204. })
  2205. }
  2206. },
  2207. // 获取用户下拉列表
  2208. getAllUser() {
  2209. this.$api.user.simpleAll().then(res => {
  2210. if (res.code === 200) {
  2211. this.allUsers = res.data;
  2212. }
  2213. })
  2214. },
  2215. // 获取流程节点信息
  2216. getCurrentNodeInfo() {
  2217. if (this.pageParams.row.assetsId) {
  2218. this.$api.workNodeInstance.currentNode({ "mainBusiness": "ASSET_BUSINESS", "businessId": this.pageParams.row.assetsId, "businessSubId": this.pageParams.row.statementNo, "businessMinId": this.pageParams.row.reportNo }).then(res => {
  2219. if (res.code === 200) {
  2220. if (res.data) {
  2221. this.currentNode = res.data;
  2222. this.nodeBusinessInfo.currentInstanceNodeId = res.data.instanceId;
  2223. this.nodeBusinessInfo.currentNodeInstanceCode = res.data.nodeCode;
  2224. this.nodeBusinessInfo.currentNodePermission.restartable = res.data.restartable;
  2225. this.nodeBusinessInfo.currentNodePermission.reversible = res.data.reversible;
  2226. this.nodeBusinessInfo.currentNodePermission.skippable = res.data.skippable;
  2227. this.nodeBusinessInfo.currentNodePermission.terminable = res.data.terminable;
  2228. // this.nodeBusinessInfo.businessId = this.pageParams.row.assetsId;
  2229. if (this.currentNode.nodeCode === 'REPORT_IN') {
  2230. this.getProductionRealAmount(this.pageParams.row.reportNo);
  2231. }
  2232. }
  2233. }
  2234. })
  2235. }
  2236. },
  2237. // 修改项目负责人与项目成员信息
  2238. updatePrincipalAndMembers() {
  2239. let assetsPrincipalMembers = new Object();
  2240. assetsPrincipalMembers.id = this.assetsForm.id;
  2241. assetsPrincipalMembers.principalId = this.assetsForm.principalId;
  2242. assetsPrincipalMembers.departmentId = this.assetsForm.departmentId;
  2243. assetsPrincipalMembers.members = JSON.stringify(this.assetsForm.members);
  2244. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2245. this.taskRecordDTO.taskData = assetsPrincipalMembers;
  2246. if (assetsPrincipalMembers.id && assetsPrincipalMembers.principalId && assetsPrincipalMembers.departmentId && this.assetsForm.members.length > 0) {
  2247. this.$api.assets.updatePrincipalAndMembers(this.taskRecordDTO).then(res => {
  2248. if (res.code === 200 && res.data) {
  2249. this.$notify({
  2250. title: '成功',
  2251. message: '保存成功,请提交节点继续流程。',
  2252. type: 'success',
  2253. duration: 2000
  2254. });
  2255. }
  2256. })
  2257. } else {
  2258. this.$notify({
  2259. title: '警告',
  2260. message: '请先完善项目负责人与项目成员信息!',
  2261. type: 'error',
  2262. duration: 2000
  2263. });
  2264. }
  2265. },
  2266. // 根据节点返回不同的操作按钮信息
  2267. hanlderType() {
  2268. if (this.currentNode) {
  2269. if (this.currentNode.nodeCode === 'SPOT_RECONNAISSANCE') {
  2270. return "编辑";
  2271. }
  2272. if (this.currentNode.nodeCode === 'INITIAL_PRICE') {
  2273. return "定价";
  2274. }
  2275. if (this.currentNode.nodeCode === 'REVIEW_QUOTATION') {
  2276. return "审核定价";
  2277. }
  2278. return "查看";
  2279. }
  2280. },
  2281. // 根据资产业务id获取资产业务评估对象集合
  2282. getAETargetListByAssetsId(productionNo) {
  2283. let aETargetListSelectDTO = new Object();
  2284. aETargetListSelectDTO.businessId = this.pageParams.row.assetsId;
  2285. // if (productionNo != null || productionNo != undefined || productionNo != '') {
  2286. // aETargetListSelectDTO.statementNo = productionNo;
  2287. // aETargetListSelectDTO.reportNo = productionNo;
  2288. // } else {
  2289. aETargetListSelectDTO.statementNo = this.pageParams.row.statementNo;
  2290. aETargetListSelectDTO.reportNo = this.pageParams.row.reportNo;
  2291. // }
  2292. this.$api.assets.getAETargetListByAssetsId(aETargetListSelectDTO).then(res => {
  2293. if (res.code === 200 && res.data !== null) {
  2294. this.assetsEvaluationTarget = res.data;
  2295. this.writeProductionStatementNos = this.assetsEvaluationTarget
  2296. // 过滤
  2297. .filter(obj => obj.statementCreateProductionDate == null || obj.statementCreateProductionDate == '')
  2298. // 获取
  2299. .map(obj => obj.statementNo)
  2300. // 去重
  2301. .filter((value, index, self) => self.indexOf(value) === index);
  2302. this.writeProductionReportNos = this.assetsEvaluationTarget
  2303. // 过滤
  2304. .filter(obj => obj.reportCreateProductionDate == null || obj.reportCreateProductionDate == '')
  2305. // 获取
  2306. .map(obj => obj.reportNo)
  2307. // 去重
  2308. .filter((value, index, self) => self.indexOf(value) === index);
  2309. this.flowDoFourthCheck();
  2310. // 获取资产产品列表
  2311. this.getProductionList();
  2312. }
  2313. })
  2314. },
  2315. // 获取所有资产评估目的集合
  2316. getPurpose() {
  2317. this.$api.assets.getPurpose().then(res => {
  2318. if (res.code === 200) {
  2319. this.assetsEvaluationTargetPurpose = res.data;
  2320. }
  2321. })
  2322. },
  2323. // 获取所有评估方法集合
  2324. getAssetsEvaluationMethod() {
  2325. this.$api.assets.getAssetsEvaluationMethod().then(res => {
  2326. if (res.code === 200) {
  2327. this.assetsEvaluationMethod = res.data;
  2328. }
  2329. })
  2330. },
  2331. // 获取所有资产价值类型
  2332. getAssetsValueType() {
  2333. this.$api.assets.getAssetsValueType().then(res => {
  2334. if (res.code === 200) {
  2335. this.assetsValueType = res.data;
  2336. }
  2337. })
  2338. },
  2339. // 根据父级id获取资产评估对象类型(id可为空)
  2340. getTypeList(val, level) {
  2341. let parentId = val;
  2342. // 每次进入方法清空二级下拉选择
  2343. // this.targetForm.evaluationTypeSecId = null;
  2344. this.assetsSecEvaluationTargetType = [];
  2345. this.$api.assets.getTypeList(parentId).then(res => {
  2346. if (res.code === 200) {
  2347. if (level == 1) {
  2348. // 等级为1赋值给assetsEvaluationTargetType
  2349. this.assetsEvaluationTargetType = res.data;
  2350. } else {
  2351. // 其他赋值给assetsEvaluationTargetType
  2352. this.assetsSecEvaluationTargetType = res.data;
  2353. }
  2354. }
  2355. })
  2356. },
  2357. // 打开新增评估对象弹窗表单
  2358. openTargetDialog() {
  2359. // 可视状态为true
  2360. this.targetDialogVisible = true;
  2361. // 初始表单所需信息
  2362. this.targetForm.principalId = this.assetsForm.principalId;
  2363. this.targetForm.siteIds = this.assetsForm.members;
  2364. if (this.assetsEvaluationTargetPurpose.length == 0 || this.assetsEvaluationMethod.length == 0 || this.assetsValueType.length == 0 || this.assetsEvaluationTargetType.length == 0) {
  2365. this.getPurpose();
  2366. this.getAssetsEvaluationMethod();
  2367. this.getAssetsValueType();
  2368. this.getTypeList(0, 1);
  2369. }
  2370. },
  2371. // 文件选择改变触发事件
  2372. changeresTarget(res, file, fileList) {
  2373. // 上传成功向表单附件信息数组添加信息
  2374. if (res.code === 200) {
  2375. this.targetForm.filePath.push({ name: file.name, url: res.data.url });
  2376. } else {
  2377. this.$notify({
  2378. title: '错误',
  2379. message: '电子文档上传失败',
  2380. type: 'error',
  2381. duration: 2000
  2382. });
  2383. }
  2384. },
  2385. changeresProduction(res, file, fileList) {
  2386. // 上传成功向表单附件信息数组添加信息
  2387. if (res.code === 200) {
  2388. this.assetsProductionForm.filePath.push({ name: file.name, url: res.data.url });
  2389. } else {
  2390. this.$notify({
  2391. title: '错误',
  2392. message: '电子文档上传失败',
  2393. type: 'error',
  2394. duration: 2000
  2395. });
  2396. }
  2397. },
  2398. // 文件上传数量限制
  2399. handleExceed() {
  2400. this.$message.warning(`当前限制选择 3个文件!`);
  2401. },
  2402. // 打开Windows文件选择器
  2403. handleAttachmentPreview(file) {
  2404. window.open(file.url)
  2405. },
  2406. // 移除文件
  2407. beforeRemove(file, fileList) {
  2408. fileList = fileList.filter((o) => {
  2409. return o.name !== file.name
  2410. });
  2411. this.targetForm.filePath = this.targetForm.filePath.filter((o) => {
  2412. return o.name !== file.name
  2413. });
  2414. },
  2415. // 移除文件
  2416. beforeRemovePro(file, fileList) {
  2417. fileList = fileList.filter((o) => {
  2418. return o.name !== file.name
  2419. });
  2420. this.assetsProductionForm.filePath = this.assetsProductionForm.filePath.filter((o) => {
  2421. return o.name !== file.name
  2422. });
  2423. },
  2424. resettargetForm() {
  2425. this.targetForm = this.targetFormBack;
  2426. this.fileList = [];
  2427. },
  2428. clear() {
  2429. if (this.$refs.targetForm !== undefined) {
  2430. this.$refs.targetForm.clearValidate();
  2431. }
  2432. },
  2433. // 保存新增资产业务评估对象
  2434. assetsTargetSave() {
  2435. this.$refs.targetForm.validate(valid => {
  2436. if (valid) {
  2437. this.targetForm.assetsId = this.assetsForm.id;
  2438. this.targetForm.siteIds = JSON.stringify(this.targetForm.siteIds);
  2439. this.targetForm.filePath = JSON.stringify(this.targetForm.filePath);
  2440. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2441. this.taskRecordDTO.taskData = this.targetForm;
  2442. this.$api.assets.assetsTargetSave(this.taskRecordDTO).then(res => {
  2443. if (res.code === 200) {
  2444. this.$notify({
  2445. title: '成功',
  2446. message: '添加资产业务评估对象成功,可继续添加或提交节点',
  2447. type: 'success',
  2448. duration: 2000
  2449. });
  2450. setTimeout(() => {
  2451. this.targetDialogVisible = false;
  2452. //获取评估对象列表
  2453. this.getAETargetListByAssetsId();
  2454. }, 1000);
  2455. }
  2456. })
  2457. }
  2458. })
  2459. },
  2460. // 根据id获取资产评估对象详情
  2461. getAssetsTargetDetail(id) {
  2462. this.$api.assets.getAssetsTargetDetail(id).then(res => {
  2463. if (res.code === 200) {
  2464. this.targetForm = res.data;
  2465. this.targetForm.siteIds = JSON.parse(res.data.siteIds);
  2466. this.targetForm.filePath = JSON.parse(res.data.filePath);
  2467. this.fileList = this.targetForm.filePath
  2468. this.getTypeList(this.targetForm.evaluationTypeId, 2);
  2469. this.openTargetDialog();
  2470. }
  2471. })
  2472. },
  2473. // 更新资产评估对象
  2474. assetsTargetUpdate() {
  2475. this.$refs.targetForm.validate(valid => {
  2476. if (valid) {
  2477. this.targetForm.assetsId = this.targetForm.id;
  2478. this.targetForm.siteIds = JSON.stringify(this.targetForm.siteIds);
  2479. this.targetForm.filePath = JSON.stringify(this.targetForm.filePath);
  2480. this.$api.assets.assetsTargetUpdate(this.targetForm).then(res => {
  2481. if (res.code === 200) {
  2482. this.$notify({
  2483. title: '成功',
  2484. message: '更新资产业务评估对象成功!',
  2485. type: 'success',
  2486. duration: 2000
  2487. });
  2488. setTimeout(() => {
  2489. this.targetDialogVisible = false;
  2490. //获取评估对象列表
  2491. this.getAETargetListByAssetsId();
  2492. }, 1000);
  2493. }
  2494. })
  2495. }
  2496. })
  2497. },
  2498. // 删除资产评估对象
  2499. assetsTargetDelete(id) {
  2500. this.$api.assets.assetsTargetDelete(id).then(res => {
  2501. if (res.code === 200) {
  2502. this.$notify({
  2503. title: '成功',
  2504. message: '删除资产业务评估对象成功!',
  2505. type: 'success',
  2506. duration: 2000
  2507. });
  2508. this.getAETargetListByAssetsId();
  2509. }
  2510. })
  2511. },
  2512. // 根据不同情况打开的评估对象表单可编辑状态不同
  2513. changeStatus(val) {
  2514. if (val == "edit") {
  2515. this.targetDisabledStatus = false;
  2516. this.updateButtonStatus = true;
  2517. this.saveButtonStatus = false;
  2518. } else if (val == "add") {
  2519. this.targetDisabledStatus = false;
  2520. this.saveButtonStatus = true;
  2521. this.updateButtonStatus = false;
  2522. } else if (val == "detail") {
  2523. this.targetDisabledStatus = true;
  2524. this.saveButtonStatus = false;
  2525. this.updateButtonStatus = false;
  2526. }
  2527. },
  2528. // 根据业务id获取资产业务款项信息
  2529. getOrderFundInvoiceById() {
  2530. this.$api.assets.getOrderFundInvoiceById(this.assetsForm.id).then(res => {
  2531. if (res.code === 200) {
  2532. if (res.data != null) {
  2533. this.invoiceData = res.data;
  2534. this.invoiceData.leftAmount = this.invoiceData.shouldAmount - this.invoiceData.realAmount;
  2535. }
  2536. }
  2537. })
  2538. },
  2539. // 获取产品信息类型
  2540. getProductionTypes(id) {
  2541. this.$api.assets.getProductionTypes(id).then(res => {
  2542. if (res.code === 200) {
  2543. this.nodeBusinessInfo.production = res.data;
  2544. }
  2545. })
  2546. },
  2547. // 提交节点
  2548. commit(state) {
  2549. this.$refs.board.commit(state);
  2550. },
  2551. getPreviousNode(pNode) {
  2552. this.pNode = pNode;
  2553. },
  2554. // 打开产品选择表单弹窗
  2555. openProductionDialog() {
  2556. this.productionChoiceDialogVisible = true;
  2557. // this.getProductionByBusinessId(this.pageParams.row.assetsId);
  2558. this.getChoiceLog();
  2559. },
  2560. // 获取产品选择记录
  2561. getChoiceLog() {
  2562. let selectDTO = {};
  2563. selectDTO.businessType = 'ASSET_BUSINESS';
  2564. selectDTO.businessId = this.pageParams.row.assetsId;
  2565. selectDTO.targetId = this.assetsEvaluationTarget[0].id;
  2566. this.$api.businessProductionChoiceLog.getChoiceLog(selectDTO).then(res => {
  2567. if (res.code == 200 && res.data !== null) {
  2568. this.productionChoiceStatus = 1;
  2569. this.assetsProductionForm.id = res.data.productionId;
  2570. this.assetsProductionForm.productionType = res.data.productionType;
  2571. this.assetsProductionForm.printCount = res.data.printCount;
  2572. }
  2573. })
  2574. },
  2575. // 根据业务id获取是否已选择产品
  2576. // getProductionByBusinessId(id) {
  2577. // this.$api.assets.getProductionByBusinessId(id).then(res => {
  2578. // if (res.code === 200) {
  2579. // // 产品信息不为null,则证明已经选择过产品,将按钮改为修改
  2580. // if (res.data !== null) {
  2581. // if (res.data.productionType == 'STATEMENT' && (this.currentNode.nodeCode === 'PRODUCT_CHOICE' || this.currentNode.nodeCode === 'GENERATE_STATEMENT')) {
  2582. // this.assetsProductionForm = res.data;
  2583. // this.productionChoiceStatus = 1;
  2584. // }
  2585. // if (res.data.productionType !== 'STATEMENT' && (this.currentNode.nodeCode === 'REPORT_CHOICE' || this.currentNode.nodeCode === 'ASSET_REPORT_TAKE_NO')) {
  2586. // this.assetsProductionForm = res.data;
  2587. // this.productionChoiceStatus = 1;
  2588. // }
  2589. // }
  2590. // }
  2591. // })
  2592. // },
  2593. // 选择产品,新增产品信息
  2594. assetsProductionSave() {
  2595. this.$refs.assetsProductionForm.validate(valid => {
  2596. if (valid) {
  2597. this.assetsProductionForm.businessId = this.assetsForm.id;
  2598. // if (this.assetsProductionForm.productionType == 1) {
  2599. // // 价值意见书
  2600. // this.assetsProductionForm.productionType = 'STATEMENT';
  2601. // } else if (this.assetsProductionForm.productionType == 4) {
  2602. // // 意见函
  2603. // this.assetsProductionForm.productionType = 'LETTER';
  2604. // } else if (this.assetsProductionForm.productionType == 2) {
  2605. // // 咨询报告
  2606. // this.assetsProductionForm.productionType = 'CONSULT';
  2607. // } else {
  2608. // // 评估报告
  2609. // this.assetsProductionForm.productionType = 'REPORT';
  2610. // }
  2611. this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
  2612. this.assetsProductionForm.signatory = JSON.stringify(this.assetsProductionForm.signatory);
  2613. this.assetsProductionForm.targetIdList = this.assetsEvaluationTarget.map(item => item.id);
  2614. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2615. this.taskRecordDTO.taskData = this.assetsProductionForm;
  2616. this.$api.assets.assetsProductionSave(this.taskRecordDTO).then(res => {
  2617. if (res.code === 200) {
  2618. this.$notify({
  2619. title: '成功',
  2620. message: '选择产品成功!请继续提交流程节点!',
  2621. type: 'success',
  2622. duration: 2000
  2623. });
  2624. this.getProductionTypes(this.assetsForm.id);
  2625. this.productionChoiceDialogVisible = false;
  2626. this.$refs.assetsProductionForm.resetFields();
  2627. }
  2628. })
  2629. }
  2630. })
  2631. },
  2632. // 选择产品,更新已选择产品信息
  2633. assetsProductionUpdate() {
  2634. this.$refs.assetsProductionForm.validate(valid => {
  2635. if (valid) {
  2636. this.assetsProductionForm.businessId = this.assetsForm.id;
  2637. // if (this.assetsProductionForm.productionType == 1) {
  2638. // // 价值意见书
  2639. // this.assetsProductionForm.productionType = 'STATEMENT';
  2640. // } else if (this.assetsProductionForm.productionType == 4) {
  2641. // // 意见函
  2642. // this.assetsProductionForm.productionType = 'LETTER';
  2643. // } else {
  2644. // // 报告
  2645. // this.assetsProductionForm.productionType = 'REPORT';
  2646. // }
  2647. this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
  2648. this.assetsProductionForm.signatory = JSON.stringify(this.assetsProductionForm.signatory);
  2649. this.assetsProductionForm.targetIdList = this.assetsEvaluationTarget.map(item => item.id);
  2650. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2651. this.taskRecordDTO.taskData = this.assetsProductionForm;
  2652. this.$api.assets.assetsProductionUpdate(this.taskRecordDTO).then(res => {
  2653. if (res.code === 200) {
  2654. this.$notify({
  2655. title: '成功',
  2656. message: '选择产品成功!请继续提交流程节点!',
  2657. type: 'success',
  2658. duration: 2000
  2659. });
  2660. this.getProductionTypes(this.assetsForm.id);
  2661. this.productionChoiceDialogVisible = false;
  2662. this.$refs.assetsProductionForm.resetFields();
  2663. }
  2664. })
  2665. }
  2666. })
  2667. },
  2668. // 资产产品意见书取号
  2669. takeAssetsStatementProductionNo() {
  2670. this.takeAssetsProductionNoDTO.allTargetIdList = this.assetsEvaluationTarget.map(item => item.id);
  2671. // 提交的要取号数组长度与table长度一致则是全部取号
  2672. if (this.takeAssetsProductionNoDTO.targetIdList.length === this.assetsEvaluationTarget.length) {
  2673. this.takeAssetsProductionNoDTO.selectAll = true;
  2674. } else {
  2675. this.takeAssetsProductionNoDTO.selectAll = false;
  2676. }
  2677. // 判断表格中是否还有未选择且未取号的评估对象,返回布尔
  2678. let notTakeNumTargetSelect = this.assetsEvaluationTarget.filter(item => !this.takeAssetsProductionNoDTO.targetIdList.includes(item.id));
  2679. this.takeAssetsProductionNoDTO.hasNotTakeNumTargetSelect = notTakeNumTargetSelect.some(target => target.statementNo === null || target.statementNo === '');
  2680. this.takeAssetsProductionNoDTO.businessId = this.assetsForm.id;
  2681. // this.getProductionByBusinessId(this.assetsForm.id);
  2682. // this.takeAssetsProductionNoDTO.productionType = this.assetsProductionForm.productionType;
  2683. // this.takeAssetsProductionNoDTO.productionType = this.nodeBusinessInfo.production[this.nodeBusinessInfo.production.length - 1];
  2684. // this.takeAssetsProductionNoDTO.printCount = this.assetsProductionForm.printCount;
  2685. if (!this.takeAssetsProductionNoDTO.targetIdList.length == 0) {
  2686. this.$api.assets.takeAssetsStatementProductionNo(this.takeAssetsProductionNoDTO).then(res => {
  2687. if (res.code === 200 && res.data) {
  2688. this.$notify({
  2689. title: '成功',
  2690. message: '产品取号成功!',
  2691. type: 'success',
  2692. duration: 2000
  2693. });
  2694. // this.pageParams.row.productionNo = res.data;
  2695. this.getAETargetListByAssetsId();
  2696. }
  2697. })
  2698. } else {
  2699. this.$notify({
  2700. title: '警告',
  2701. message: '您必须选择至少一个评估对象!',
  2702. type: 'warning',
  2703. duration: 2000
  2704. });
  2705. }
  2706. },
  2707. // 资产产品报告取号
  2708. takeAssetsReportProductionNo() {
  2709. this.takeAssetsProductionNoDTO.allTargetIdList = this.assetsEvaluationTarget.map(item => item.id);
  2710. // 提交的要取号数组长度与table长度一致则是全部取号
  2711. if (this.takeAssetsProductionNoDTO.targetIdList.length === this.assetsEvaluationTarget.length) {
  2712. this.takeAssetsProductionNoDTO.selectAll = true;
  2713. } else {
  2714. this.takeAssetsProductionNoDTO.selectAll = false;
  2715. }
  2716. // 判断表格中是否还有未选择且未取号的评估对象,返回布尔
  2717. let notTakeNumTargetSelect = this.assetsEvaluationTarget.filter(item => !this.takeAssetsProductionNoDTO.targetIdList.includes(item.id));
  2718. this.takeAssetsProductionNoDTO.hasNotTakeNumTargetSelect = notTakeNumTargetSelect.some(target => target.reportNo === null || target.reportNo === '');
  2719. this.takeAssetsProductionNoDTO.businessId = this.assetsForm.id;
  2720. // this.getProductionByBusinessId(this.assetsForm.id);
  2721. // this.takeAssetsProductionNoDTO.productionType = this.assetsProductionForm.productionType;
  2722. // this.takeAssetsProductionNoDTO.productionType = this.nodeBusinessInfo.production[this.nodeBusinessInfo.production.length - 1];
  2723. // this.takeAssetsProductionNoDTO.printCount = this.assetsProductionForm.printCount;
  2724. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2725. this.taskRecordDTO.taskData = this.takeAssetsProductionNoDTO;
  2726. if (!this.takeAssetsProductionNoDTO.targetIdList.length == 0) {
  2727. this.$api.assets.takeAssetsReportProductionNo(this.taskRecordDTO).then(res => {
  2728. if (res.code === 200 && res.data) {
  2729. this.$notify({
  2730. title: '成功',
  2731. message: '产品取号成功!',
  2732. type: 'success',
  2733. duration: 2000
  2734. });
  2735. // this.pageParams.row.productionNo = res.data;
  2736. this.getAETargetListByAssetsId();
  2737. }
  2738. })
  2739. } else {
  2740. this.$notify({
  2741. title: '警告',
  2742. message: '您必须选择至少一个评估对象!',
  2743. type: 'warning',
  2744. duration: 2000
  2745. });
  2746. }
  2747. },
  2748. // 资产评估对象选取数据处理
  2749. targetSelectionChange(val) {
  2750. this.takeAssetsProductionNoDTO.targetIdList = val;
  2751. this.takeAssetsProductionNoDTO.targetIdList = this.takeAssetsProductionNoDTO.targetIdList.map(selection => selection.id);
  2752. },
  2753. // 判断行数据是否可选
  2754. selectable(row) {
  2755. if (row.statementNo != null && row.statementNo != '' && this.currentNode.nodeCode !== 'ASSET_REPORT_TAKE_NO') {
  2756. return false;
  2757. } else if (row.reportNo != null && row.reportNo != '' && this.currentNode.nodeCode !== 'GENERATE_STATEMENT') {
  2758. return false;
  2759. } else {
  2760. return true;
  2761. }
  2762. },
  2763. openWriteProductionDialog(status, type) {
  2764. this.productionWriteDialogVisible = true;
  2765. this.productionDisabledStatus = status;
  2766. this.writeType = type;
  2767. },
  2768. // 根据业务id与产品号获取资产产品信息并初始化表单
  2769. getAssetsProductionDetailByNo() {
  2770. let assetsProductionDetailDTO = new Object();
  2771. assetsProductionDetailDTO.businessId = this.assetsForm.id;
  2772. assetsProductionDetailDTO.productionNo = this.assetsProductionForm.productionNo;
  2773. this.$api.assets.getAssetsProductionDetailByNo(assetsProductionDetailDTO).then(res => {
  2774. if (res.code == 200 && res.data !== null) {
  2775. this.assetsProductionForm.productionType = res.data.productionType
  2776. this.assetsProductionForm.printCount = res.data.printCount;
  2777. this.assetsProductionForm.clientName = this.assetsForm.bailorContactName;
  2778. this.assetsProductionForm.clientTel = this.assetsForm.bailorContactTel;
  2779. this.assetsProductionForm.assetsName = this.assetsForm.name;
  2780. this.assetsProductionForm.owner = this.assetsEvaluationTarget.find(obj => obj.productionNo === assetsProductionDetailDTO.productionNo)?.theHolder;
  2781. this.assetsProductionForm.valuationBasisDate = this.assetsEvaluationTarget[0].valuationBasisDate;
  2782. this.assetsProductionForm.filePath = [];
  2783. this.assetsProductionForm.signatory = [];
  2784. }
  2785. })
  2786. },
  2787. // 当产品单价或面积改变时触发
  2788. computeAmount() {
  2789. this.assetsProductionForm.evaluateAmount = (this.assetsProductionForm.evaluatePrice * this.assetsProductionForm.evaluateAcreage) / 10000;
  2790. },
  2791. // 资产撰写产品(意见书和报告都是这个接口)
  2792. writeAssetsProduction() {
  2793. this.$refs.assetsProductionForm.validate(valid => {
  2794. if (valid) {
  2795. this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
  2796. if (this.assetsProductionForm.signatory !== null) {
  2797. this.assetsProductionForm.signatory = JSON.stringify(this.assetsProductionForm.signatory);
  2798. } else {
  2799. this.assetsProductionForm.signatory = null;
  2800. }
  2801. this.assetsProductionForm.businessId = this.assetsForm.id;
  2802. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2803. this.taskRecordDTO.taskData = this.assetsProductionForm;
  2804. this.$api.assets.writeAssetsProduction(this.taskRecordDTO).then(res => {
  2805. if (res.code == 200) {
  2806. this.$notify({
  2807. title: '成功',
  2808. message: '产品撰写成功!请继续提交流程节点!',
  2809. type: 'success',
  2810. duration: 2000
  2811. });
  2812. }
  2813. this.getAETargetListByAssetsId(this.assetsProductionForm.productionNo);
  2814. this.productionWriteDialogVisible = false;
  2815. this.getProductionList();
  2816. this.writeProductionReportNos = [];
  2817. this.writeProductionStatementNos = [];
  2818. })
  2819. }
  2820. })
  2821. },
  2822. resetProductionForm() {
  2823. this.fileList = [];
  2824. },
  2825. // 根据业务id与产品号查询产品信息
  2826. getProductionList() {
  2827. let aProListSelectDTO = new Object();
  2828. aProListSelectDTO.businessId = this.pageParams.row.assetsId;
  2829. aProListSelectDTO.statementNo = this.pageParams.row.statementNo;
  2830. // aProListSelectDTO.reportNo = this.pageParams.row.reportNo;
  2831. // if (this.currentNode.nodeCode == 'WRITE_REPORT' && this.assetsEvaluationTarget[0].statementNo !== null) {
  2832. // aProListSelectDTO.reportNo = this.assetsEvaluationTarget[0].reportNo;
  2833. aProListSelectDTO.reportNos = this.assetsEvaluationTarget.filter(obj => obj.reportNo !== null && obj.reportNo !== '').map(obj => obj.reportNo);
  2834. // }
  2835. this.$api.assets.getProductionList(aProListSelectDTO).then(res => {
  2836. if (res.code == 200) {
  2837. this.assetsProductionData = res.data;
  2838. this.assetsProductionData = this.assetsProductionData.map(item => {
  2839. // 检查 filePath 是否为字符串且不为空
  2840. if (typeof item.filePath === 'string' && item.filePath.trim() !== '') {
  2841. try {
  2842. // 使用 JSON.parse 解析 filePath 字符串
  2843. item.filePath = JSON.parse(item.filePath);
  2844. } catch (error) {
  2845. console.error('解析 filePath 时发生错误:', error);
  2846. }
  2847. }
  2848. // 返回更新后的对象
  2849. return item;
  2850. });
  2851. }
  2852. })
  2853. },
  2854. //选择要提交节点的产品号
  2855. pushProductionNo() {
  2856. // 查询该产品是否已有提交的流程
  2857. let aProListSelectDTO = { businessId: null, productionNo: null, productionNos: [] };
  2858. this.nodeBusinessInfo.reportNos = [];
  2859. this.nodeBusinessInfo.reportNos.push(this.commitProductionNo);
  2860. if (this.currentNode.nodeCode == 'GENERATE_STATEMENT') {
  2861. this.nodeBusinessInfo.businessSubId = this.commitProductionNo;
  2862. aProListSelectDTO.productionNos = this.assetsProductionData.filter(obj => obj.productionType == 'STATEMENT').map(obj => obj.productionNo);
  2863. }
  2864. if (this.currentNode.nodeCode == 'WRITE_REPORT') {
  2865. this.nodeBusinessInfo.businessMinId = this.commitProductionNo;
  2866. aProListSelectDTO.productionNos = this.assetsProductionData.filter(obj => obj.productionType !== 'STATEMENT').map(obj => obj.productionNo);
  2867. }
  2868. aProListSelectDTO.businessId = this.assetsForm.id;
  2869. aProListSelectDTO.productionNo = this.commitProductionNo;
  2870. this.$api.assets.getInatanceCount(aProListSelectDTO).then(res => {
  2871. if (res.code == 200) {
  2872. this.proInatanceCount = res.data;
  2873. }
  2874. })
  2875. //判断是否还有未撰写或未提交的产品(false:无,提交时完成节点 true:有,提交时不完成节点)
  2876. let isNotWriteAllPro = true;
  2877. if (this.currentNode.nodeCode === 'GENERATE_STATEMENT') {
  2878. isNotWriteAllPro = this.assetsEvaluationTarget.some(obj =>
  2879. (obj.statementCreateProductionDate === null || obj.statementCreateProductionDate === '')
  2880. );
  2881. }
  2882. if (this.currentNode.nodeCode === 'WRITE_REPORT') {
  2883. isNotWriteAllPro = this.assetsEvaluationTarget.some(obj =>
  2884. (obj.reportCreateProductionDate === null || obj.reportCreateProductionDate === '')
  2885. );
  2886. }
  2887. // 判断是否完成节点
  2888. if (isNotWriteAllPro) { // 还有未撰写或未提交产品不完成节点
  2889. this.nodeBusinessInfo.ifCheckTask = false;
  2890. } else {
  2891. this.$api.assets.getInatanceCountList(aProListSelectDTO).then(res => {
  2892. if (res.code == 200) {
  2893. // 未提交的同类型产品大于1时,不完成节点
  2894. if (res.data.filter(count => count === 0).length > 1) {
  2895. this.nodeBusinessInfo.ifCheckTask = false;
  2896. } else {
  2897. this.nodeBusinessInfo.ifCheckTask = true;
  2898. }
  2899. } else {
  2900. this.nodeBusinessInfo.ifCheckTask = true;
  2901. }
  2902. })
  2903. }
  2904. },
  2905. // 打开审核定价弹窗表单
  2906. openCheckValueDialog(id) {
  2907. this.checkValueDialogVisible = true;
  2908. this.$api.assets.getAssetsTargetDetail(id).then(res => {
  2909. if (res.code === 200) {
  2910. this.targetForm = res.data;
  2911. }
  2912. })
  2913. this.getAssetsEvaluationMethod()
  2914. },
  2915. // 评估对象审核定价
  2916. checkValue() {
  2917. this.$refs.targetForm.validate(valid => {
  2918. if (valid) {
  2919. this.$api.assets.checkValue(this.targetForm).then(res => {
  2920. if (res.code == 200) {
  2921. this.$notify({
  2922. title: '成功',
  2923. message: '审核定价已完成!',
  2924. type: 'success',
  2925. duration: 2000
  2926. });
  2927. this.checkValueDialogVisible = false;
  2928. this.getAETargetListByAssetsId();
  2929. this.isCheckValue = true;
  2930. }
  2931. })
  2932. }
  2933. })
  2934. },
  2935. // 根据产品id获取产品详情
  2936. getAssetsProductionDetail(id) {
  2937. this.$api.assets.getAssetsProductionDetail(id).then(res => {
  2938. if (res.code == 200) {
  2939. this.assetsProductionForm = res.data;
  2940. this.assetsProductionForm.filePath = JSON.parse(res.data.filePath);
  2941. this.fileList = this.assetsProductionForm.filePath;
  2942. this.productionWriteDialogVisible = true;
  2943. }
  2944. })
  2945. },
  2946. // 更新产品信息
  2947. productionUpdate() {
  2948. this.$refs.assetsProductionForm.validate(valid => {
  2949. if (valid) {
  2950. this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
  2951. if (this.assetsProductionForm.signatory !== null) {
  2952. this.assetsProductionForm.signatory = JSON.stringify(this.assetsProductionForm.signatory);
  2953. } else {
  2954. this.assetsProductionForm.signatory = null;
  2955. }
  2956. this.$api.assets.productionUpdate(this.assetsProductionForm).then(res => {
  2957. if (res.code == 200) {
  2958. this.$notify({
  2959. title: '成功',
  2960. message: '产品修改成功!',
  2961. type: 'success',
  2962. duration: 2000
  2963. });
  2964. }
  2965. this.getAETargetListByAssetsId();
  2966. this.productionWriteDialogVisible = false;
  2967. this.getProductionList();
  2968. })
  2969. }
  2970. })
  2971. },
  2972. // 根据业务类型,产品id及checkLoop获取质检信息
  2973. openProductionCheckDialog() {
  2974. this.$api.assets.getAssetsProductionDetail(this.productionPerformanceForm.productionId).then(res => {
  2975. if (res.code == 200) {
  2976. this.assetsProductionForm = res.data;
  2977. this.assetsProductionForm.filePath = JSON.parse(res.data.filePath);
  2978. this.fileList = this.assetsProductionForm.filePath;
  2979. }
  2980. })
  2981. const curNode = this.currentNode.nodeCode;
  2982. if (curNode === 'REVIEW_STATEMENT' || curNode === 'CHECK_REPORT') {
  2983. if (this.isCheckValue) {
  2984. this.initProQuality(curNode);
  2985. } else {
  2986. this.$notify({
  2987. title: '警告',
  2988. message: '评估对象需要进行审核定价',
  2989. type: 'error',
  2990. duration: 3000
  2991. });
  2992. }
  2993. } else {
  2994. this.initProQuality(curNode);
  2995. }
  2996. },
  2997. // 质检信息基础信息赋值
  2998. initProQuality(curNode) {
  2999. this.productionCheckDialogVisible = true;
  3000. this.productionPerformanceForm.businessType = 'ASSET_BUSINESS';
  3001. if (curNode === 'REVIEW_STATEMENT' || curNode === 'CHECK_REPORT') {
  3002. this.productionPerformanceForm.checkLoop = "初审";
  3003. }
  3004. if (curNode === 'REEXAMINE_STATEMENT' || curNode === 'RECHECK_REPORT') {
  3005. this.productionPerformanceForm.checkLoop = "复审";
  3006. }
  3007. if (curNode === 'FOURTH_CHECK_REPORT') {
  3008. this.productionPerformanceForm.checkLoop = "四审";
  3009. }
  3010. this.$api.businessProductionPerformance.getProductionPerformance(this.productionPerformanceForm).then(res => {
  3011. if (res.code === 200 && res.data !== null) {
  3012. this.productionPerformanceForm.id = res.data.id;
  3013. this.productionPerformanceForm.fatalMistake = res.data.fatalMistake;
  3014. this.productionPerformanceForm.hardMistake = res.data.hardMistake;
  3015. this.productionPerformanceForm.normalMistake = res.data.normalMistake;
  3016. this.productionPerformanceForm.reason = res.data.reason;
  3017. }
  3018. })
  3019. },
  3020. // 保存产品质检信息(新增与保存都是这个方法)
  3021. saveQuality() {
  3022. if ((this.productionPerformanceForm.hardMistake + this.productionPerformanceForm.fatalMistake + this.productionPerformanceForm.normalMistake) > 0) {
  3023. if (this.productionPerformanceForm.reason !== null && this.productionPerformanceForm.reason !== '') {
  3024. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3025. this.taskRecordDTO.taskData = this.productionPerformanceForm;
  3026. // id不为空更新
  3027. if (this.productionPerformanceForm.id) {
  3028. this.$api.businessProductionPerformance.edit(this.taskRecordDTO).then(res => {
  3029. if (res.code === 200 && res.data) {
  3030. this.$notify({
  3031. title: '成功',
  3032. message: '质检信息更新成功,请继续提交流程节点!',
  3033. type: 'success',
  3034. duration: 3000
  3035. });
  3036. if (this.currentNode.nodeCode === 'RECHECK_REPORT' || this.currentNode.nodeCode === 'FOURTH_CHECK_REPORT') {
  3037. this.updateProductionFileInfo();
  3038. }
  3039. this.productionCheckDialogVisible = false;
  3040. }
  3041. })
  3042. } else { // id为空新增
  3043. this.$api.businessProductionPerformance.add(this.taskRecordDTO).then(res => {
  3044. if (res.code === 200 && res.data) {
  3045. this.$notify({
  3046. title: '成功',
  3047. message: '质检信息保存成功,请继续提交流程节点!',
  3048. type: 'success',
  3049. duration: 3000
  3050. });
  3051. if (this.currentNode.nodeCode === 'RECHECK_REPORT' || this.currentNode.nodeCode === 'FOURTH_CHECK_REPORT') {
  3052. this.updateProductionFileInfo();
  3053. }
  3054. this.productionCheckDialogVisible = false;
  3055. }
  3056. })
  3057. }
  3058. } else {
  3059. this.$notify({
  3060. title: '错误',
  3061. message: '错误个数大于0时必须填写扣分原因',
  3062. type: 'error',
  3063. duration: 3000
  3064. });
  3065. }
  3066. } else {
  3067. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3068. this.taskRecordDTO.taskData = this.productionPerformanceForm;
  3069. // id不为空更新
  3070. if (this.productionPerformanceForm.id) {
  3071. this.$api.businessProductionPerformance.edit(this.taskRecordDTO).then(res => {
  3072. if (res.code === 200 && res.data) {
  3073. this.$notify({
  3074. title: '成功',
  3075. message: '质检信息更新成功,请继续提交流程节点!',
  3076. type: 'success',
  3077. duration: 3000
  3078. });
  3079. if (this.currentNode.nodeCode === 'RECHECK_REPORT' || this.currentNode.nodeCode === 'FOURTH_CHECK_REPORT') {
  3080. this.updateProductionFileInfo();
  3081. }
  3082. this.productionCheckDialogVisible = false;
  3083. }
  3084. })
  3085. } else { // id为空新增
  3086. this.$api.businessProductionPerformance.add(this.taskRecordDTO).then(res => {
  3087. if (res.code === 200 && res.data) {
  3088. this.$notify({
  3089. title: '成功',
  3090. message: '质检信息保存成功,请继续提交流程节点!',
  3091. type: 'success',
  3092. duration: 3000
  3093. });
  3094. if (this.currentNode.nodeCode === 'RECHECK_REPORT' || this.currentNode.nodeCode === 'FOURTH_CHECK_REPORT') {
  3095. this.updateProductionFileInfo();
  3096. }
  3097. this.productionCheckDialogVisible = false;
  3098. }
  3099. })
  3100. }
  3101. }
  3102. },
  3103. // 根据资产产品id更新文件路由信息
  3104. updateProductionFileInfo() {
  3105. this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
  3106. this.$api.assets.updateProductionFileInfo(this.assetsProductionForm).then(res => {
  3107. if (res.code === 200 && res.data) {
  3108. this.$notify({
  3109. title: '成功',
  3110. message: '产品附件保存成功',
  3111. type: 'success',
  3112. duration: 3000
  3113. });
  3114. }
  3115. })
  3116. },
  3117. // 打开产品出入库弹窗
  3118. openWareHouseDialog(row) {
  3119. this.warehouseDialog = true;
  3120. this.wareHouseProductionType = row.productionType;
  3121. this.wareHouseproductionId = row.id
  3122. },
  3123. handleScanEntry(scanData) {
  3124. this.scanEntryData = scanData;
  3125. },
  3126. cleanWareHouseProductionType() {
  3127. this.wareHouseProductionType = null;
  3128. this.wareHouseproductionId = null;
  3129. },
  3130. // 产品出入库
  3131. doWareHouse() {
  3132. let productionNo = this.scanEntryData
  3133. let wareHoaseDto = new Object();
  3134. if (productionNo) {
  3135. wareHoaseDto.productionNo = reportNo;
  3136. } else {
  3137. wareHoaseDto.productionNo = this.$refs.scanEntry.scanEntryData;
  3138. }
  3139. if (this.currentNode.nodeName.includes("入库")) {
  3140. wareHoaseDto.repertoryState = 0;
  3141. } else {
  3142. wareHoaseDto.repertoryState = 1;
  3143. }
  3144. wareHoaseDto.productionType = this.wareHouseProductionType;
  3145. wareHoaseDto.productionId = this.wareHouseproductionId;
  3146. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3147. this.taskRecordDTO.taskData = wareHoaseDto;
  3148. this.$api.assets.assetsProRepertory(this.taskRecordDTO).then(res => {
  3149. if (res.code === 200 && res.data) {
  3150. this.$notify({
  3151. title: '成功',
  3152. message: '库存操作成功,请继续提交流程节点!',
  3153. type: 'success',
  3154. duration: 2000
  3155. });
  3156. this.warehouseDialog = false;
  3157. this.getProductionList();
  3158. }
  3159. else {
  3160. this.$message({
  3161. type: 'info',
  3162. message: '取消操作'
  3163. });
  3164. }
  3165. })
  3166. },
  3167. // 判断流程是否进行四审
  3168. flowDoFourthCheck() {
  3169. if (this.currentNode.nodeCode == 'RECHECK_REPORT') {
  3170. // 判断评估值是否超过8000万
  3171. let isSubstantialAssets = this.assetsEvaluationTarget.reduce((sum, obj) => { return sum + obj.estimatedValue; }, 0) > 8000;
  3172. // 获取是否有评估目的为搬迁、司法涉讼的评估对象
  3173. let isLawsuit = this.assetsEvaluationTarget.some(obj => obj.purposeName === '搬迁' || obj.purposeName === '资产涉讼');
  3174. // 获取是否证券项目
  3175. let isSecurity = this.assetsForm.security;
  3176. // 是否证券项目,或是否评估目的搬迁、诉讼,或是否价值大于8000万
  3177. if (isSecurity || isLawsuit || isSubstantialAssets) {
  3178. this.nodeBusinessInfo.doFourthCheck = true;
  3179. }
  3180. }
  3181. },
  3182. // 根据产品号获取产品实收款
  3183. getProductionRealAmount(productionNo) {
  3184. this.$api.assets.getProductionRealAmount(productionNo).then(res => {
  3185. if (res.code === 200 && res.data !== null) {
  3186. this.nodeBusinessInfo.ifProductionFund = true;
  3187. } else {
  3188. this.nodeBusinessInfo.ifProductionFund = false;
  3189. }
  3190. })
  3191. },
  3192. // 打开绩效比例分配弹窗
  3193. openAssetsAchievementRatioDialog() {
  3194. this.businessPerformanceDistributionForm.distributionList = [];
  3195. //获取报告附件信息
  3196. let assetsProductionDetailDTO = new Object();
  3197. assetsProductionDetailDTO.businessId = this.pageParams.row.assetsId;
  3198. assetsProductionDetailDTO.productionNo = this.pageParams.row.reportNo;
  3199. this.$api.assets.getAssetsProductionDetailByNo(assetsProductionDetailDTO).then(res => {
  3200. if (res.code == 200 && res.data !== null) {
  3201. this.assetsProductionForm = res.data;
  3202. this.assetsProductionForm.filePath = JSON.parse(res.data.filePath);
  3203. this.fileList = this.assetsProductionForm.filePath;
  3204. }
  3205. })
  3206. this.assetsAchievementRatioDialogVisible = true;
  3207. // this.getPerformanceDistributionList();
  3208. // if (this.businessPerformanceDistributionForm.distributionList !== null && this.businessPerformanceDistributionForm.distributionList[0].id !== null) {
  3209. // this.showDistributionButton = false;
  3210. // } else {
  3211. // this.showDistributionButton = true;
  3212. // }
  3213. },
  3214. // 新增资产绩效分配信息
  3215. saveBusinessPerformanceDistribution() {
  3216. const sum = this.businessPerformanceDistributionForm.distributionList.reduce((accumulator, obj) => {
  3217. return accumulator + obj.performanceDistribution;
  3218. }, 0);
  3219. if (sum === 100) {
  3220. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3221. this.taskRecordDTO.taskData = this.businessPerformanceDistributionForm;
  3222. this.$api.businessPerformanceDistribution.addAssetsPerformanceDistribution(this.taskRecordDTO).then(res => {
  3223. if (res.code === 200) {
  3224. this.$notify({
  3225. title: '成功',
  3226. message: '绩效分配新增完成,请继续提交流程节点!',
  3227. type: 'success',
  3228. duration: 3000
  3229. });
  3230. if (this.currentNode.nodeCode === 'CHECK_ARCHIVING') {
  3231. this.updateProductionFileInfo();
  3232. }
  3233. this.resetBusinessPerformanceDistributionForm();
  3234. }
  3235. })
  3236. } else {
  3237. this.$notify({
  3238. title: '警告',
  3239. message: '所有人员分配的绩效之和必须等于100%!',
  3240. type: 'error',
  3241. duration: 3000
  3242. });
  3243. }
  3244. },
  3245. // 重置绩效分配表单
  3246. resetBusinessPerformanceDistributionForm() {
  3247. this.assetsAchievementRatioDialogVisible = false;
  3248. this.businessPerformanceDistributionForm.businessId = null;
  3249. this.businessPerformanceDistributionForm.businessType = null;
  3250. this.businessPerformanceDistributionForm.reportNo = null;
  3251. },
  3252. // 获取资产绩效分配信息list
  3253. getPerformanceDistributionList() {
  3254. this.businessPerformanceDistributionForm.businessId = this.pageParams.row.assetsId;
  3255. this.businessPerformanceDistributionForm.businessType = 'ASSET_BUSINESS';
  3256. this.businessPerformanceDistributionForm.reportNo = this.pageParams.row.reportNo;
  3257. let selectDTO = this.businessPerformanceDistributionForm;
  3258. selectDTO.distributionList = null;
  3259. this.$api.businessPerformanceDistribution.getPerformanceDistributionList(this.businessPerformanceDistributionForm).then(res => {
  3260. if (res.code === 200 && res.data !== null && res.data.length > 0) {
  3261. this.businessPerformanceDistributionForm.distributionList = res.data;
  3262. this.getAssetsBusinessMembers();
  3263. this.showDistributionButton = false;
  3264. } else {
  3265. this.showDistributionButton = true;
  3266. this.getAssetsBusinessMembers(true);
  3267. }
  3268. })
  3269. },
  3270. // 获取项目参与人信息
  3271. getAssetsBusinessMembers(state) {
  3272. let assetsBusinessMembersDTO = { businessId: null, reportNo: null };
  3273. assetsBusinessMembersDTO.businessId = this.pageParams.row.assetsId;
  3274. assetsBusinessMembersDTO.reportNo = this.pageParams.row.reportNo;
  3275. this.$api.assets.getAssetsBusinessMembers(assetsBusinessMembersDTO).then(res => {
  3276. // 返回不为空,且没有绩效分配信息
  3277. if (res.code === 200 && res.data !== null) {
  3278. this.assetsBusinessMembers = res.data;
  3279. if (state) {
  3280. this.businessPerformanceDistributionForm.distributionList = [];
  3281. for (let i = 0; i < this.assetsBusinessMembers.length; i++) {
  3282. let memberInfo = { memberId: this.assetsBusinessMembers[i].memberId, performanceDistribution: 0, memberType: this.assetsBusinessMembers[i].memberType }
  3283. this.businessPerformanceDistributionForm.distributionList.push(memberInfo)
  3284. }
  3285. }
  3286. }
  3287. })
  3288. },
  3289. // 修改资产绩效分配信息
  3290. updateAssetsPerformanceDistribution() {
  3291. const sum = this.businessPerformanceDistributionForm.distributionList.reduce((accumulator, obj) => {
  3292. return accumulator + obj.performanceDistribution;
  3293. }, 0);
  3294. if (sum === 100) {
  3295. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3296. this.taskRecordDTO.taskData = this.businessPerformanceDistributionForm;
  3297. this.$api.businessPerformanceDistribution.updateAssetsPerformanceDistribution(this.taskRecordDTO).then(res => {
  3298. if (res.code === 200) {
  3299. this.$notify({
  3300. title: '成功',
  3301. message: '绩效分配修改完成,请继续提交流程节点!',
  3302. type: 'success',
  3303. duration: 3000
  3304. });
  3305. if (this.currentNode.nodeCode === 'CHECK_ARCHIVING') {
  3306. this.updateProductionFileInfo();
  3307. }
  3308. this.resetBusinessPerformanceDistributionForm();
  3309. }
  3310. })
  3311. } else {
  3312. this.$notify({
  3313. title: '警告',
  3314. message: '所有人员分配的绩效之和必须等于100%!',
  3315. type: 'error',
  3316. duration: 3000
  3317. });
  3318. }
  3319. },
  3320. // 获取联系信息
  3321. getContactInfo() {
  3322. if (this.assetsForm.clienteleContactId) {
  3323. this.$api.customerLinkman.detail(this.assetsForm.clienteleContactId).then(res => {
  3324. if (res.code === 200) {
  3325. this.linkmanInfo = res.data;
  3326. }
  3327. })
  3328. }
  3329. if (this.assetsForm.terminalClienteleContactId) {
  3330. this.$api.customerLinkman.detail(this.assetsForm.terminalClienteleContactId).then(res => {
  3331. if (res.code === 200) {
  3332. this.tLinkmanInfo = res.data; mobile
  3333. this.assetsForm.tmobile = this.tLinkmanInfo.mobile;
  3334. }
  3335. })
  3336. }
  3337. if (this.assetsForm.terminalClienteleId) {
  3338. this.$api.customerCompany.detail(this.assetsForm.terminalClienteleId).then(res => {
  3339. if (res.code === 200) {
  3340. this.tCustomerInfo = res.data;
  3341. this.assetsForm.tmobile = this.tCustomerInfo.phone;
  3342. }
  3343. })
  3344. }
  3345. },
  3346. // 更新资产订单基本信息
  3347. updateOrderBaseInfo() {
  3348. this.$confirm('是否确定要修改订单基本信息?', '提示', {
  3349. confirmButtonText: '确定',
  3350. cancelButtonText: '取消',
  3351. type: 'warning'
  3352. }).then(() => {
  3353. if (this.assetsForm.members) {
  3354. this.assetsForm.members = JSON.stringify(this.assetsForm.members);
  3355. }
  3356. this.$api.assets.updateOrderBaseInfo(this.assetsForm).then(res => {
  3357. if (res.code === 200 && res.data) {
  3358. this.$notify({
  3359. title: '成功',
  3360. message: '订单基本信息更新成功!',
  3361. type: 'success',
  3362. duration: 3000
  3363. });
  3364. this.getAssetsDetailById(this.pageParams.row.assetsId);
  3365. } else {
  3366. this.$notify({
  3367. title: '失败',
  3368. message: '订单基本信息更新失败!请稍后重试!',
  3369. type: 'warning',
  3370. duration: 3000
  3371. });
  3372. }
  3373. })
  3374. }).catch(() => {
  3375. this.$message({
  3376. type: 'info',
  3377. message: '已取消更新'
  3378. });
  3379. });
  3380. }
  3381. }
  3382. }
  3383. </script>
  3384. <style lang="scss" scoped>
  3385. .row-style {
  3386. margin-left: 40px;
  3387. margin-right: 1%;
  3388. }
  3389. .major-radio {
  3390. width: 92px
  3391. }
  3392. .task-class {
  3393. /deep/ .el-form-item__label {
  3394. color: red;
  3395. }
  3396. }
  3397. .evaluate-table {
  3398. margin-left: 40px;
  3399. margin-top: 35px;
  3400. }
  3401. .pane-class {
  3402. height: 800px;
  3403. width: 100%;
  3404. overflow-y: scroll;
  3405. }
  3406. /deep/ .cell-class {
  3407. font-size: 13px;
  3408. color: black;
  3409. }
  3410. .table {
  3411. /deep/ thead {
  3412. .el-table-column--selection {
  3413. .cell {
  3414. display: none;
  3415. }
  3416. }
  3417. }
  3418. }
  3419. /deep/.doWarehouseClass {
  3420. border-radius: 10px;
  3421. }
  3422. .button-area {
  3423. position: absolute;
  3424. top: 20px;
  3425. right: 50px;
  3426. }
  3427. .error-type {
  3428. margin-right: 5px;
  3429. }
  3430. .error-type:hover {
  3431. cursor: pointer;
  3432. }
  3433. .box-card {
  3434. margin-top: 40px
  3435. }
  3436. .time {
  3437. font-size: 13px;
  3438. color: #999;
  3439. float: right;
  3440. margin-top: 5px;
  3441. }
  3442. .bottom {
  3443. margin-top: 13px;
  3444. line-height: 12px;
  3445. }
  3446. .button {
  3447. float: left;
  3448. }
  3449. .image {
  3450. width: 100%;
  3451. padding: 0%;
  3452. display: block;
  3453. }
  3454. .control {
  3455. z-index: 999;
  3456. position: relative;
  3457. top: 10px;
  3458. }
  3459. </style>