orderDetail.vue 169 KB

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