orderDetail.vue 161 KB

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