todoDetail.vue 189 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084
  1. <template>
  2. <div class="app-container">
  3. <!-- <div class="title-container">
  4. <breadcrumb id="breadcrumb-container" class="breadcrumb-container"/>
  5. </div> -->
  6. <el-collapse v-model="activeName" @change="handleChange">
  7. <el-collapse-item>
  8. <template slot="title">
  9. <span style="font-size:20px; color:RGB(42,143,277)">
  10. <i class="el-icon-star-on"></i>
  11. <span> {{ currentNode == null ? '???' : currentNode.nodeName ? currentNode.nodeName : '结束' }}</span>
  12. <span style="margin-left:30px" v-if="reportNo || statementNo">已取号:<span style="font-style:italic;"
  13. v-if="statementNo">{{ statementNo }}</span>
  14. <span style="font-style:italic;margin-left:30px" v-if="reportNo">{{ reportNo }}</span></span>
  15. </span>
  16. <span style="font-size:15px; margin-left:15px;letter-spacing:2px; color:RGB(42,143,277)">
  17. 点击展开查看实时流程图
  18. </span>
  19. </template>
  20. <WorkflowBoard ref='board' @workflowCommitVerify="workflowCommitVerify" :nodeBusinessInfo="nodeBusinessInfo"
  21. @getPreviousNode="getPreviousNode" />
  22. </el-collapse-item>
  23. </el-collapse>
  24. <div class="button-area">
  25. <el-button v-if="nodeBusinessInfo.currentNodePermission.commit" class="y-save" type="success" round
  26. @click="commit('PASS')" :disabled="!nodeBusinessInfo.doWorkflow">提交</el-button>
  27. <el-button v-if="nodeBusinessInfo.currentNodePermission.reversible" class="y-save" type="warning" round
  28. @click="commit('REVERSE')" :disabled="!nodeBusinessInfo.doWorkflow">退回</el-button>
  29. <el-button v-if="nodeBusinessInfo.currentNodePermission.skippable" class="y-save" type="warning" round
  30. @click="commit('SKIP')" :disabled="!nodeBusinessInfo.doWorkflow">跳过</el-button>
  31. <el-button v-if="nodeBusinessInfo.currentNodePermission.terminable" class="y-save" type="danger" round
  32. @click="commit('TERMINATE')" :disabled="!nodeBusinessInfo.doWorkflow">终止</el-button>
  33. <el-button v-if="nodeBusinessInfo.currentNodePermission.restartable" class="y-save" type="danger" round
  34. @click="commit('RESTART')" :disabled="!nodeBusinessInfo.doWorkflow">重置</el-button>
  35. <el-button class="y-save" round type="info" @click="goBack">返回</el-button>
  36. </div>
  37. <el-tabs v-model="activeTagName" @tab-click="handleClick" type="border-card">
  38. <el-tab-pane name="order" class="pane-class" :lazy=true>
  39. <span slot="label"><i class="el-icon-document"></i> 市场订单</span>
  40. <y-detail-page-layout @save="handleCreate" :edit-status="couldEdit">
  41. <div>
  42. <el-form ref="majorForm" :model="major" class="form-container">
  43. <div class="createMajor-main-container">
  44. <div class="postInfo-container">
  45. <div>
  46. <el-divider content-position="left">
  47. <h3 class="title">
  48. <div class="avatar-wrapper icon-title">订单</div>
  49. <div class="icon-info">大中型订单</div>
  50. </h3>
  51. </el-divider>
  52. </div>
  53. <el-row class="row-style">
  54. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  55. <el-form-item label="客户经理:" prop="clientManager"
  56. :rules="{ required: true, message: '客户经理不能为空', trigger: 'blur' }" label-width="120px"
  57. class="postInfo-container-item">
  58. <el-input :value="major.clientManager" class="filter-item" readonly disabled />
  59. </el-form-item>
  60. </el-col>
  61. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  62. <el-form-item label="订单属性:" prop="financial"
  63. :rules="{ required: true, message: '订单属性不能为空', trigger: 'blur' }" label-width="120px"
  64. class="postInfo-container-item">
  65. <el-select v-model="major.financial" placeholder="请选择" readonly disabled style=" width: 100%">
  66. <el-option label="金融" :value="true">金融</el-option>
  67. <el-option label="非金融" :value="false">非金融</el-option>
  68. </el-select>
  69. </el-form-item>
  70. </el-col>
  71. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  72. <el-form-item label="派单方式:" prop="allotType"
  73. :rules="{ required: true, message: '派单方式不能为空', trigger: 'blur' }" label-width="120px"
  74. class="postInfo-container-item">
  75. <el-select v-model="major.allotType" placeholder="请选择" readonly disabled style=" width: 100%">
  76. <el-option label="部门轮单" value="轮单"></el-option>
  77. <el-option label="部门指派" value="指派"></el-option>
  78. </el-select>
  79. </el-form-item>
  80. </el-col>
  81. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  82. <el-form-item label="接单部门:" prop="departmentId" label-width="120px" class="postInfo-container-item">
  83. <el-select v-model="major.departmentId" placeholder="请选择" readonly disabled style=" width: 100%">
  84. <el-option v-for="(d, id) in allotDepartment" :label="d.name" :value="d.id"></el-option>
  85. </el-select>
  86. </el-form-item>
  87. </el-col>
  88. </el-row>
  89. <el-row class="row-style">
  90. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  91. <el-form-item label="项目负责人:" prop="principalId" label-width="140px"
  92. :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']"
  93. :rules="{ required: true, message: '项目负责人不能为空', trigger: 'blur' }">
  94. <el-select v-model="major.principalId" placeholder="请选择" style=" width: 100%"
  95. :filterable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  96. :clearable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  97. :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'"
  98. :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'">
  99. <el-option v-for="(p, id) in principals" :label="p.name" :value="p.id"></el-option>
  100. </el-select>
  101. </el-form-item>
  102. </el-col>
  103. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  104. <el-form-item label="项目成员:" prop="membersId" label-width="120px"
  105. :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']"
  106. :rules="{ required: true, message: '项目成员不能为空', trigger: 'blur' }">
  107. <el-select v-model="major.membersId" placeholder="请选择" multiple
  108. :filterable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  109. :clearable="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'"
  110. :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'"
  111. :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'" style=" width: 100%">
  112. <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id"></el-option>
  113. </el-select>
  114. </el-form-item>
  115. </el-col>
  116. </el-row>
  117. <el-row class="row-style">
  118. <el-col :xs="12" :sm="12" :lg="18" :span="6">
  119. <el-form-item label="订单名称:" prop="name"
  120. :rules="{ required: true, message: '订单名称不能为空', trigger: 'blur' }" label-width="120px"
  121. class="postInfo-container-item">
  122. <el-input v-model="major.name" class="filter-item" readonly disabled />
  123. </el-form-item>
  124. </el-col>
  125. </el-row>
  126. <el-row class="row-style">
  127. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  128. <el-form-item label="对象类型:" prop="businessObjectType"
  129. :rules="{ required: true, message: '评估对象类型不能为空', trigger: 'blur' }" label-width="120px"
  130. class="postInfo-container-item">
  131. <el-select v-model="major.businessObjectType" placeholder="请选择" readonly disabled
  132. style=" width: 100%">
  133. <el-option label="土地" value="土地"></el-option>
  134. <el-option label="房地产" value="房地产"></el-option>
  135. </el-select>
  136. </el-form-item>
  137. </el-col>
  138. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="major.businessObjectType === '房地产'">
  139. <el-form-item label="特殊类型:" prop="specialType" label-width="120px" class="postInfo-container-item">
  140. <el-select v-model="major.specialType" placeholder="请选择" readonly disabled style=" width: 100%">
  141. <el-option label="在建工程" value="在建工程"></el-option>
  142. <el-option label="加油加气站" value="加油加气站"></el-option>
  143. <el-option label="电站" value="电站"></el-option>
  144. <el-option label="客运站" value="客运站"></el-option>
  145. </el-select>
  146. </el-form-item>
  147. </el-col>
  148. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  149. <el-form-item label="业务类型:" prop="businessGener" label-width="120px"
  150. class="postInfo-container-item">
  151. <el-select v-model="major.businessGener" placeholder="请选择" readonly disabled style=" width: 100%">
  152. <el-option label="部门轮单" value="轮单"></el-option>
  153. <el-option label="部门指派" value="指派"></el-option>
  154. </el-select>
  155. </el-form-item>
  156. </el-col>
  157. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  158. <el-form-item label="评估目的:" prop="evaluateAim"
  159. :rules="{ required: true, message: '评估目的不能为空', trigger: 'blur' }" label-width="120px"
  160. class="postInfo-container-item">
  161. <el-select v-model="major.evaluateAim" placeholder="请选择" readonly disabled style=" width: 100%">
  162. <el-option label="抵押" value="抵押"></el-option>
  163. <el-option label="咨询" value="咨询"></el-option>
  164. <el-option label="融资" value="融资"></el-option>
  165. <el-option label="司法" value="司法"></el-option>
  166. <el-option label="可行性研究" value="可行性研究"></el-option>
  167. <el-option label="不良资产价值评估" value="不良资产价值评估"></el-option>
  168. <el-option label="其他" value="其他"></el-option>
  169. </el-select>
  170. </el-form-item>
  171. </el-col>
  172. </el-row>
  173. <el-row class="row-style">
  174. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  175. <el-form-item label="再次委托:" prop="entrustAgain"
  176. :rules="{ required: true, message: '再次委托不能为空', trigger: 'blur' }" label-width="120px"
  177. class="postInfo-container-item">
  178. <el-radio v-model="major.entrustAgain" :label="false" size="medium" readonly disabled>否</el-radio>
  179. <el-radio v-model="major.entrustAgain" :label="true" size="medium" readonly disabled>是</el-radio>
  180. </el-form-item>
  181. </el-col>
  182. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  183. <el-form-item label="分户搬迁:" prop="multipleRemoval"
  184. :rules="{ required: true, message: '分户搬迁不能为空', trigger: 'blur' }" label-width="120px"
  185. class="postInfo-container-item">
  186. <el-radio v-model="major.multipleRemoval" :label="false" size="medium" readonly
  187. disabled>否</el-radio>
  188. <el-radio v-model="major.multipleRemoval" :label="true" size="medium" readonly
  189. disabled>是</el-radio>
  190. </el-form-item>
  191. </el-col>
  192. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  193. <el-form-item label="是否口估:" prop="informalEvaluate"
  194. :rules="{ required: true, message: '是否口估不能为空', trigger: 'blur' }" label-width="120px"
  195. class="postInfo-container-item">
  196. <el-radio v-model="major.informalEvaluate" :label="false" size="medium" readonly
  197. disabled>否</el-radio>
  198. <el-radio v-model="major.informalEvaluate" :label="true" size="medium" readonly
  199. disabled>是</el-radio>
  200. </el-form-item>
  201. </el-col>
  202. </el-row>
  203. <el-row class="row-style">
  204. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  205. <el-form-item label="客户类型:" prop="clienteleType"
  206. :rules="{ required: true, message: '客户类型不能为空', trigger: 'blur' }" label-width="120px"
  207. class="postInfo-container-item">
  208. <el-select v-model="major.clienteleType" placeholder="请选择" readonly disabled style=" width: 100%">
  209. <el-option label="企业" value="企业"></el-option>
  210. <el-option label="个人" value="个人"></el-option>
  211. </el-select>
  212. </el-form-item>
  213. </el-col>
  214. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  215. <el-form-item label="客户名称:" prop="clienteleId" label-width="120px" class="postInfo-container-item">
  216. <el-input :value="major.cclienteleName" class="filter-item" readonly disabled />
  217. </el-form-item>
  218. </el-col>
  219. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  220. <el-form-item label="业务来源:" prop="clienteleId" label-width="120px" class="postInfo-container-item">
  221. <el-input :value="major.cclienteleSubName" class="filter-item" readonly disabled />
  222. </el-form-item>
  223. </el-col>
  224. </el-row>
  225. <el-row class="row-style">
  226. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  227. <el-form-item label="客户联系人:" prop="clienteleContactId"
  228. :rules="{ required: true, message: '客户联系人不能为空', trigger: 'blur' }" label-width="120px"
  229. class="postInfo-container-item">
  230. <el-input :value="major.cclienteleContactName" class="filter-item" readonly disabled />
  231. </el-form-item>
  232. </el-col>
  233. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  234. <el-form-item label="联系人电话:" prop="clienteleContactId" label-width="120px"
  235. class="postInfo-container-item">
  236. <el-input :value="major.cmobile" class="filter-item" readonly disabled />
  237. </el-form-item>
  238. </el-col>
  239. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  240. <el-form-item label="联系人部门:" prop="clienteleContactId" label-width="120px"
  241. class="postInfo-container-item">
  242. <el-input :value="major.cdepartment" class="filter-item" readonly disabled />
  243. </el-form-item>
  244. </el-col>
  245. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  246. <el-form-item label="联系人职务:" prop="clienteleContactId" label-width="120px"
  247. class="postInfo-container-item">
  248. <el-input :value="major.cduty" class="filter-item" readonly disabled />
  249. </el-form-item>
  250. </el-col>
  251. </el-row>
  252. <el-row class="row-style">
  253. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  254. <el-form-item label="分配产值:" prop="dispenseBenefit"
  255. :rules="{ required: true, message: '分配产值不能为空', trigger: 'blur' }" label-width="120px"
  256. class="postInfo-container-item">
  257. <el-radio v-model="major.dispenseBenefit" :label="false" size="medium" readonly
  258. disabled>否</el-radio>
  259. <el-radio v-model="major.dispenseBenefit" :label="true" size="medium" readonly
  260. disabled>是</el-radio>
  261. </el-form-item>
  262. </el-col>
  263. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  264. <el-form-item label="是否异地:" prop="nonnative"
  265. :rules="{ required: true, message: '是否异地不能为空', trigger: 'blur' }" label-width="120px"
  266. class="postInfo-container-item">
  267. <el-radio v-model="major.nonnative" :label="false" size="medium" readonly disabled>否</el-radio>
  268. <el-radio v-model="major.nonnative" :label="true" size="medium" readonly disabled>是</el-radio>
  269. </el-form-item>
  270. </el-col>
  271. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  272. <el-form-item label="是否续贷:" prop="refinance"
  273. :rules="{ required: true, message: '是否续贷不能为空', trigger: 'blur' }" label-width="120px"
  274. class="postInfo-container-item">
  275. <el-radio v-model="major.refinance" :label="false" size="medium" readonly disabled>否</el-radio>
  276. <el-radio v-model="major.refinance" :label="true" size="medium" readonly disabled>是</el-radio>
  277. </el-form-item>
  278. </el-col>
  279. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  280. <el-form-item label="贷款到期:" prop="loanExpire" label-width="120px" class="postInfo-container-item">
  281. <el-radio v-model="major.loanExpire" :label="false" size="medium" readonly disabled>否</el-radio>
  282. <el-radio v-model="major.loanExpire" :label="true" size="medium" readonly disabled>是</el-radio>
  283. </el-form-item>
  284. </el-col>
  285. </el-row>
  286. <el-row class="row-style">
  287. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  288. <el-form-item label="贷款额度:" prop="loanLimit" label-width="120px" class="postInfo-container-item">
  289. <el-input v-model="major.loanLimit" class="filter-item" readonly disabled>
  290. <template slot="append">万元</template>
  291. </el-input>
  292. </el-form-item>
  293. </el-col>
  294. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  295. <el-form-item label="贷款期限:" prop="loanPeriod" label-width="120px" class="postInfo-container-item">
  296. <el-input v-model="major.loanPeriod" class="filter-item" readonly disabled>
  297. <template slot="append">年</template>
  298. </el-input>
  299. </el-form-item>
  300. </el-col>
  301. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  302. <el-form-item label="贷款性质:" prop="loanNature" label-width="120px" class="postInfo-container-item">
  303. <el-input v-model="major.loanNature" class="filter-item" readonly disabled />
  304. </el-form-item>
  305. </el-col>
  306. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  307. <el-form-item label="贷款用途:" prop="loanAim" label-width="120px" class="postInfo-container-item">
  308. <el-input v-model="major.loanAim" class="filter-item" readonly disabled />
  309. </el-form-item>
  310. </el-col>
  311. </el-row>
  312. <el-row class="row-style">
  313. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  314. <el-form-item label="委托人:" prop="bailor"
  315. :rules="{ required: true, message: '委托人不能为空', trigger: 'blur' }" label-width="120px"
  316. class="postInfo-container-item">
  317. <el-input v-model="major.bailor" class="filter-item" readonly disabled />
  318. </el-form-item>
  319. </el-col>
  320. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  321. <el-form-item label="委托人地址:" prop="bailorAddress" label-width="120px"
  322. class="postInfo-container-item">
  323. <el-input v-model="major.bailorAddress" class="filter-item" readonly disabled />
  324. </el-form-item>
  325. </el-col>
  326. </el-row>
  327. <el-row class="row-style">
  328. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  329. <el-form-item label="委托联系人:" prop="bailorContactName"
  330. :rules="{ required: true, message: '委托联系人不能为空', trigger: 'blur' }" label-width="140px"
  331. class="postInfo-container-item">
  332. <el-input v-model="major.bailorContactName" class="filter-item" readonly disabled />
  333. </el-form-item>
  334. </el-col>
  335. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  336. <el-form-item label="委托电话:" prop="bailorContactTel"
  337. :rules="{ required: true, message: '委托联系人电话不能为空', trigger: 'blur' }" label-width="120px"
  338. class="postInfo-container-item">
  339. <el-input v-model="major.bailorContactTel" class="filter-item" readonly disabled />
  340. </el-form-item>
  341. </el-col>
  342. </el-row>
  343. <el-row class="row-style">
  344. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  345. <el-form-item label="产权人:" prop="owner" label-width="120px" class="postInfo-container-item">
  346. <el-input v-model="major.owner" class="filter-item" readonly disabled />
  347. </el-form-item>
  348. </el-col>
  349. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  350. <el-form-item label="产权人电话:" prop="ownerTel" label-width="120px" class="postInfo-container-item">
  351. <el-input v-model="major.ownerTel" class="filter-item" readonly disabled />
  352. </el-form-item>
  353. </el-col>
  354. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  355. <el-form-item label="是否加急:" prop="urgent"
  356. :rules="{ required: true, message: '是否加急不能为空', trigger: 'blur' }" label-width="120px"
  357. class="postInfo-container-item">
  358. <el-radio v-model="major.urgent" :label="false" size="medium" readonly disabled>否</el-radio>
  359. <el-radio v-model="major.urgent" :label="true" size="medium" readonly disabled>是</el-radio>
  360. </el-form-item>
  361. </el-col>
  362. </el-row>
  363. <el-row class="row-style">
  364. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  365. <el-form-item label="终端客户类型:" prop="terminalClienteleType" label-width="140px"
  366. class="postInfo-container-item">
  367. <el-select v-model="major.terminalClienteleType" placeholder="请选择" readonly disabled
  368. style=" width: 100%">
  369. <el-option label="企业" value="企业"></el-option>
  370. <el-option label="个人" value="个人"></el-option>
  371. </el-select>
  372. </el-form-item>
  373. </el-col>
  374. <el-col :xs="24" :sm="12" :lg="12" :span="6" v-if="major.terminalClienteleType != ''">
  375. <el-form-item label="终端客户名称:" prop="terminalClienteleId" label-width="140px"
  376. :rules="{ required: true, message: '终端客户名称不能为空', trigger: 'blur' }"
  377. class="postInfo-container-item">
  378. <el-input :value="major.tterminalClienteleName" class="filter-item" readonly disabled />
  379. </el-form-item>
  380. </el-col>
  381. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="major.terminalClienteleType == '企业'">
  382. <el-form-item label="终端联系人:" prop="terminalClienteleContactId" label-width="120px"
  383. :rules="{ required: true, message: '终端联系人不能为空', trigger: 'blur' }"
  384. class="postInfo-container-item">
  385. <el-input :value="major.tterminalClienteleContactName" class="filter-item" readonly disabled />
  386. </el-form-item>
  387. </el-col>
  388. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  389. <el-form-item label="终端联系电话:" prop="clienteleType" label-width="130px"
  390. class="postInfo-container-item">
  391. <el-input :value="major.tmobile" class="filter-item" readonly disabled />
  392. </el-form-item>
  393. </el-col>
  394. </el-row>
  395. <el-row class="row-style">
  396. <el-col :xs="24" :sm="12" :lg="18" :span="12">
  397. <el-form-item label="订单备注:" prop="remark" label-width="120px" class="postInfo-container-item">
  398. <el-input v-model="major.remark" :autosize="{ minRows: 1, maxRows: 1 }" class="filter-item"
  399. type="textarea" readonly disabled />
  400. </el-form-item>
  401. </el-col>
  402. </el-row>
  403. </div>
  404. </div>
  405. </el-form>
  406. </div>
  407. </y-detail-page-layout>
  408. </el-tab-pane>
  409. <el-tab-pane name="evaluate" class="pane-class" :lazy=true>
  410. <span slot="label"><i class="el-icon-office-building"></i> 估价对象</span>
  411. <div class="createMajor-main-container">
  412. <div class="postInfo-container">
  413. <div>
  414. <el-divider content-position="left">
  415. <h3 class="title">
  416. <div class="avatar-wrapper icon-title">对象</div>
  417. <div class="icon-info">{{ major.businessObjectType }}</div>
  418. </h3>
  419. </el-divider>
  420. </div>
  421. </div>
  422. </div>
  423. <div class="evaluate-table" v-if="major.businessObjectType === '土地'">
  424. <div>
  425. <el-row>
  426. <el-col :span="2">
  427. <div>
  428. <el-statistic group-separator="," :precision="4" :value="totalEvaluateValue" title="总价(万)">
  429. <template slot="prefix">
  430. <i class="el-icon-coin"></i>
  431. </template>
  432. </el-statistic>
  433. </div>
  434. </el-col>
  435. <el-col :span="2">
  436. <div>
  437. <el-statistic group-separator="," :precision="2" :value="totalAcreage" title="总面积(平)">
  438. <template slot="prefix">
  439. <i class="el-icon-house"></i>
  440. </template>
  441. </el-statistic>
  442. </div>
  443. </el-col>
  444. <el-col :span="2">
  445. <el-button v-if="couldAddTarget" type="danger" round
  446. @click="openLandDialog(major.businessObjectType)">添加估价对象</el-button>
  447. </el-col>
  448. <el-col :span="2">
  449. <el-button v-if="couldAddTarget" type="warning" :disabled="!takeNumberItems.length > 0" round
  450. @click="openMergeNumberDialog()">合并到已有号</el-button>
  451. </el-col>
  452. <el-col :span="2" v-if="currentNode.nodeCode === 'WRITE_STATEMENT'">
  453. <el-tooltip v-if="ifTakeNumber" class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
  454. <el-button type="success" :disabled="!takeNumberItems.length > 0" round
  455. @click="takeStatementNoOrLettertNo('STATEMENT')">取价值意见书号</el-button>
  456. </el-tooltip>
  457. <!-- <el-button v-if="ifCreatePorduction" type="danger" round @click="createProduction(reportNo)">创建产品</el-button> -->
  458. </el-col>
  459. <el-col :span="2" v-if="currentNode.nodeCode === 'WRITE_REPORT'">
  460. <el-tooltip v-if="ifTakeNumber" class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
  461. <el-button type="danger" :disabled="!takeNumberItems.length > 0" round
  462. @click="takeNumberDialog = true">取报告号</el-button>
  463. </el-tooltip>
  464. <!-- <el-button v-if="ifCreatePorduction" type="danger" round @click="createProduction(reportNo)">创建产品</el-button> -->
  465. </el-col>
  466. <el-col :span="2" v-if="currentNode.nodeCode === 'WRITE_LETTER'">
  467. <el-tooltip v-if="ifTakeNumber" class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
  468. <el-button :disabled="!takeNumberItems.length > 0" round
  469. @click="takeStatementNoOrLettertNo('LETTER')">取复评函号</el-button>
  470. </el-tooltip>
  471. <!-- <el-button v-if="ifCreatePorduction" type="danger" round @click="createProduction(reportNo)">创建产品</el-button> -->
  472. </el-col>
  473. </el-row>
  474. </div>
  475. <el-table ref="multipleTable" :data="evaluateLandData" stripe
  476. :header-row-style="{ color: '#333333', 'font-size': '14px' }" border takeNumberItems
  477. style="width: 100%; margin-top:20px;font-size: 14px;" @selection-change="handleSelectionChange">
  478. <el-table-column v-if="ifTakeNumber" type="selection" width="100" :selectable="selectable" align="center">
  479. </el-table-column>
  480. <el-table-column type="index" label="序号" width="50" align="center">
  481. </el-table-column>
  482. <el-table-column prop="located" label="坐落" align="center" show-overflow-tooltip>
  483. </el-table-column>
  484. <el-table-column prop="landType" label="土地类型" width="80" align="center">
  485. </el-table-column>
  486. <el-table-column prop="landUse" label="用途" width="80" align="center">
  487. </el-table-column>
  488. <el-table-column prop="rightToUser" label="所有权人" align="center" show-overflow-tooltip>
  489. </el-table-column>
  490. <el-table-column prop="landCertificateNo" label="国土证号" align="center" show-overflow-tooltip>
  491. </el-table-column>
  492. <el-table-column prop="plotRatio" label="容积率" width="80" align="center">
  493. </el-table-column>
  494. <el-table-column prop="useAcreage" label="使用权面积(㎡)" width="80" align="center">
  495. </el-table-column>
  496. <el-table-column prop="evaluateValue" label="初步定价(万)" width="80" align="center">
  497. </el-table-column>
  498. <el-table-column prop="checked" label="审核定价(万)" width="80" align="center">
  499. <template slot-scope="scope">
  500. {{ scope.row.checkValue == null ? '待审核' : scope.row.checkValue }}
  501. </template>
  502. </el-table-column>
  503. <el-table-column prop="statementNo" label="价值意见书号" align="center" width="250">
  504. <template slot-scope="scope">
  505. <el-tag :type='scope.row.statementNo == null ? "danger" : "success"'>
  506. {{ scope.row.statementNo == null ? '未取号' : scope.row.statementNo }}</el-tag>
  507. </template>``
  508. </el-table-column>
  509. <el-table-column prop="reportNo" label="报告号" align="center" width="250">
  510. <template slot-scope="scope">
  511. <el-tag :type='scope.row.reportNo == null ? "danger" : "success"'>
  512. {{ scope.row.reportNo == null ? '未取号' : scope.row.reportNo }}</el-tag>
  513. </template>
  514. </el-table-column>
  515. <el-table-column prop="letterNo" label="复评函号" align="center" width=250>
  516. <template slot-scope="scope">
  517. <el-tag :type='scope.row.letterNo == null ? "danger" : "success"'>
  518. {{ scope.row.letterNo == null ? '未取号' : scope.row.letterNo }}</el-tag>
  519. </template>
  520. </el-table-column>
  521. <el-table-column label="操作" align="center" width="100" fixed="right">
  522. <template slot-scope="scope">
  523. <el-button @click="landTargetEdit(scope.row)" type="text" size="small">
  524. {{ hanlderType()==='新增'?'查看':hanlderType()}}
  525. </el-button>
  526. <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE'" @click="landTargetRemove(scope.row.id)"
  527. type="text" size="small">删除</el-button>
  528. </template>
  529. </el-table-column>
  530. </el-table>
  531. </div>
  532. <div class="evaluate-table" v-if="major.businessObjectType === '房地产'">
  533. <div>
  534. <el-row>
  535. <el-col :span="2">
  536. <div>
  537. <el-statistic group-separator="," :precision="4" :value="totalEvaluateValue" title="估价对象总价(万)">
  538. <template slot="prefix">
  539. <i class="el-icon-coin"></i>
  540. </template>
  541. </el-statistic>
  542. </div>
  543. </el-col>
  544. <el-col :span="2" style="margin-left:20px">
  545. <div>
  546. <el-statistic group-separator="," :precision="2" :value="totalAcreage" title="估价对象总面积(㎡)">
  547. <template slot="prefix">
  548. <i class="el-icon-house"></i>
  549. </template>
  550. </el-statistic>
  551. </div>
  552. </el-col>
  553. <el-col :span="2">
  554. <el-button v-if="couldAddTarget" type="danger" round
  555. @click="openLandDialog(major.businessObjectType)">添加估价对象</el-button>
  556. </el-col>
  557. <el-col :span="2">
  558. <el-button v-if="couldAddTarget" type="warning" :disabled="!takeNumberItems.length > 0" round
  559. @click="openMergeNumberDialog()">合并到已有号</el-button>
  560. </el-col>
  561. <el-col :span="2" v-if="currentNode.nodeCode === 'WRITE_STATEMENT'">
  562. <el-tooltip v-if="ifTakeNumber" class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
  563. <el-button type="success" :disabled="!takeNumberItems.length > 0" round
  564. @click="takeStatementNoOrLettertNo('STATEMENT')">取价值意见书号</el-button>
  565. </el-tooltip>
  566. <!-- <el-button v-if="ifCreatePorduction" type="danger" round @click="createProduction(reportNo)">创建产品</el-button> -->
  567. </el-col>
  568. <el-col :span="2" v-if="currentNode.nodeCode === 'WRITE_REPORT'">
  569. <el-tooltip v-if="ifTakeNumber" class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
  570. <el-button type="danger" :disabled="!takeNumberItems.length > 0" round
  571. @click="takeNumberDialog = true">取报告号</el-button>
  572. </el-tooltip>
  573. <!-- <el-button v-if="ifCreatePorduction" type="danger" round @click="createProduction(reportNo)">创建产品</el-button> -->
  574. </el-col>
  575. <el-col :span="2" v-if="currentNode.nodeCode === 'WRITE_LETTER'">
  576. <el-tooltip v-if="ifTakeNumber" class="item" effect="dark" content="全选取主号,多次取号(主号-子号)" placement="right">
  577. <el-button :disabled="!takeNumberItems.length > 0" round
  578. @click="takeStatementNoOrLettertNo('LETTER')">取复评函号</el-button>
  579. </el-tooltip>
  580. <!-- <el-button v-if="ifCreatePorduction" type="danger" round @click="createProduction(reportNo)">创建产品</el-button> -->
  581. </el-col>
  582. </el-row>
  583. </div>
  584. <el-table ref="multipleTable" :data="evaluateLandData" stripe
  585. :header-row-style="{ color: '#333333', 'font-size': '14px' }" border takeNumberItems
  586. style="width: 100%; margin-top:20px;font-size: 14px;" @selection-change="handleSelectionChange">
  587. <el-table-column v-if="ifTakeNumber" type="selection" width="100" :selectable="selectable" align="center">
  588. </el-table-column>
  589. <el-table-column type="index" label="序号" width="50" align="center">
  590. </el-table-column>
  591. <el-table-column prop="housePurpose" label="用途" width="80" align="center" show-overflow-tooltip>
  592. <template slot-scope="scope">
  593. <span v-for="(u, index) in JSON.parse(scope.row.housePurpose)">
  594. {{ u }} {{ index == ((JSON.parse(scope.row.housePurpose)).length - 1) ? '' : ',' }}
  595. </span>
  596. </template>
  597. </el-table-column>
  598. <el-table-column prop="owner" label="权利人" width="120" show-overflow-tooltip align="center">
  599. </el-table-column>
  600. <el-table-column prop="located" label="坐落" align="center" show-overflow-tooltip>
  601. </el-table-column>
  602. <el-table-column prop="buildAcreage" label="建筑面积(㎡)" width="80" align="center" show-overflow-tooltip>
  603. </el-table-column>
  604. <el-table-column prop="landAcreage" label="土地面积(㎡)" width="80" align="center">
  605. </el-table-column>
  606. <el-table-column prop="evaluateValue" label="初步定价(万)" width="80" align="center">
  607. </el-table-column>
  608. <el-table-column prop="checked" label="审核定价(万)" width="80" align="center">
  609. <template slot-scope="scope">
  610. {{ scope.row.checkValue == null ? '待审核' : scope.row.checkValue }}
  611. </template>
  612. </el-table-column>
  613. <el-table-column prop="statementNo" label="价值意见书号" align="center" width="250">
  614. <template slot-scope="scope">
  615. <el-tag :type='scope.row.statementNo == null ? "danger" : "success"'>
  616. {{ scope.row.statementNo == null ? '未取号' : scope.row.statementNo }}</el-tag>
  617. </template>
  618. </el-table-column>
  619. <el-table-column prop="reportNo" label="报告号" align="center" width="250">
  620. <template slot-scope="scope">
  621. <el-tag :type='scope.row.reportNo == null ? "danger" : "success"'>
  622. {{ scope.row.reportNo == null ? '未取号' : scope.row.reportNo }}</el-tag>
  623. </template>
  624. </el-table-column>
  625. <el-table-column prop="letterNo" label="复评函号" align="center" width=250>
  626. <template slot-scope="scope">
  627. <el-tag :type='scope.row.letterNo == null ? "danger" : "success"'>
  628. {{ scope.row.letterNo == null ? '未取号' : scope.row.letterNo }}</el-tag>
  629. </template>
  630. </el-table-column>
  631. <el-table-column label="操作" width="100" align="center">
  632. <template slot-scope="scope">
  633. <el-button @click="landTargetEdit(scope.row)" type="text" size="small">
  634. {{ hanlderType()==='新增'?'查看':hanlderType() }}
  635. </el-button>
  636. <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE'" @click="landTargetRemove(scope.row.id)"
  637. type="text" size="small">删除</el-button>
  638. </template>
  639. </el-table-column>
  640. </el-table>
  641. </div>
  642. <div class="createMajor-main-container" style="margin-top:50px"
  643. v-if="currentNode.nodeCode === 'STATEMENT_FEEDBACK' || currentNode.nodeCode === 'QUOTATION_FEEDBACK'">
  644. <div class="postInfo-container">
  645. <div>
  646. <el-divider content-position="left">
  647. <h3 class="title">
  648. <div class="avatar-wrapper icon-title">反馈</div>
  649. <div class="icon-info">客户反馈</div>
  650. </h3>
  651. </el-divider>
  652. </div>
  653. </div>
  654. <el-form ref="feedbackFrom" :model="feedback" class="form-container" style="margin-top:50px" :rules="rules">
  655. <el-row>
  656. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  657. <el-form-item label="出具产品类型:" prop="production" label-width="160px" class="postInfo-container-item">
  658. <el-checkbox-group v-model="feedback.production" style="width:300px">
  659. <el-tooltip :disabled="!feedback.production.includes('STATEMENT')" class="item" effect="dark"
  660. content="若意见书已送达,无法取消此类型产品!" placement="top-start">
  661. <el-checkbox-button label="STATEMENT" name="production">价值意见书</el-checkbox-button>
  662. </el-tooltip>
  663. <el-checkbox-button label="REPORT" name="production">报告</el-checkbox-button>
  664. <el-checkbox-button label="LETTER" name="production">复评函</el-checkbox-button>
  665. <el-tooltip class="item" effect="dark" content="只出具价值意见书,不再出具其他产品。" placement="top-start">
  666. <el-checkbox-button v-if="currentNode.nodeCode === 'STATEMENT_FEEDBACK'" label="NONE"
  667. name="production">不再出具</el-checkbox-button>
  668. </el-tooltip>
  669. </el-checkbox-group>
  670. </el-form-item>
  671. </el-col>
  672. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  673. <el-form-item label="打印份数:" prop="printing" label-width="120px" class="postInfo-container-item"
  674. style="margin-left:100px">
  675. <el-input-number :precision="0" :min="1" :value-on-clear="1" v-model.number="feedback.printing"
  676. type="number" class="filter-item" />
  677. </el-form-item>
  678. </el-col>
  679. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  680. <el-form-item label="打印备注:" label-width="120px" class="postInfo-container-item">
  681. <el-select v-model="feedback.printingRemark">
  682. <el-option label="一本不装订" value="一本不装订"></el-option>
  683. <el-option label="一本带技术" value="一本带技术"></el-option>
  684. <el-option label="一本带技术不装订" value="一本带技术不装订"></el-option>
  685. </el-select>
  686. </el-form-item>
  687. </el-col>
  688. <el-col :xs="24" :sm="12" :lg="6" :span="6"
  689. v-if="currentNode.nodeCode === 'QUOTATION_FEEDBACK' || currentNode.nodeCode === 'STATEMENT_FEEDBACK'">
  690. <div style="text-align:left;margin-right:30px">
  691. <el-button type="success" round @click="saveFeedback()" :disabled="validFeed">保存并提交</el-button>
  692. </div>
  693. </el-col>
  694. </el-row>
  695. </el-form>
  696. </div>
  697. </el-tab-pane>
  698. <el-tab-pane name="producution" class="pane-class" :lazy=true>
  699. <span slot="label"><i class="el-icon-document-checked"></i> 产品信息</span>
  700. <el-table :data="productions" stripe ref="pTable" :header-row-style="{ color: '#333333', 'font-size': '16px' }"
  701. @selection-change="selectioProductionChange" @row-dblclick="expandRow" border
  702. style="width: 99%; margin-top:20px; font-size: 16px;">
  703. <el-table-column type="expand" style="background-color: red">
  704. <template slot-scope="props">
  705. <el-form label-position="left" :model="props.row" class="form-container"
  706. :ref="'productionFrom' + props.row.id" :rules="rules">
  707. <div class="createMajor-main-container" style="margin-top:40px">
  708. <div class="postInfo-container">
  709. <div>
  710. <el-divider content-position="left">
  711. <h3 class="title">
  712. <div class="avatar-wrapper icon-title">产品</div>
  713. <div class="icon-info">产品信息</div>
  714. </h3>
  715. </el-divider>
  716. </div>
  717. </div>
  718. </div>
  719. <div>
  720. <el-row class="row-style">
  721. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  722. <el-form-item prop="name" :rules="{ required: true, message: '项目不能为空', trigger: 'blur' }"
  723. label-width="120px" class="postInfo-container-item" label="项目名称:">
  724. <el-input v-model="props.row.name" class="filter-item" />
  725. </el-form-item>
  726. </el-col>
  727. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  728. <el-form-item prop="clientName" :rules="{ required: true, message: '委托方不能为空', trigger: 'blur' }"
  729. label-width="120px" class="postInfo-container-item" label="委托方:">
  730. <el-input v-model="props.row.clientName" class="filter-item" />
  731. </el-form-item>
  732. </el-col>
  733. </el-row>
  734. <el-row class="row-style">
  735. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  736. <el-form-item prop="clientAddress"
  737. :rules="{ required: true, message: '委托方地址不能为空', trigger: 'blur' }" label-width="140px"
  738. class="postInfo-container-item" label="委托方地址:">
  739. <el-input v-model="props.row.clientAddress" class="filter-item" />
  740. </el-form-item>
  741. </el-col>
  742. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  743. <el-form-item prop="clientTel" label-width="140px" class="postInfo-container-item" label="委托方电话:">
  744. <el-input v-model="props.row.clientTel" class="filter-item" />
  745. </el-form-item>
  746. </el-col>
  747. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  748. <el-form-item prop="validateCode" label-width="140px" class="postInfo-container-item"
  749. label="打印二维码:">
  750. <a @mouseenter="showQR=true">出入库二维码</a> <a @mouseenter="showQR=false" style="margin-left: 5px">验证二维码</a>
  751. <div class="qr-code-div">
  752. <img v-show="showQR" class="qr-code" :src="props.row.qrCode" alt="出入库二维码" @click="printQR(props.row.qrCode)"/>
  753. <img v-show="!showQR" class="qr-code" :src="props.row.validateCode" alt="验证二维码" @click="printQR(props.row.validateCode)"/>
  754. </div>
  755. </el-form-item>
  756. </el-col>
  757. </el-row>
  758. <el-row class="row-style">
  759. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  760. <el-form-item prop="evaluateAmount" label-width="120px" class="postInfo-container-item"
  761. label="评估总价:">
  762. <el-input v-model="props.row.evaluateAmount" style="width:100%" class="filter-item">
  763. <template slot="append">
  764. <span>万元</span>
  765. </template>
  766. </el-input>
  767. </el-form-item>
  768. </el-col>
  769. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  770. <el-form-item prop="evaluateAcreage" label-width="120px" class="postInfo-container-item"
  771. label="评估面积:">
  772. <el-input v-model="props.row.evaluateAcreage" style="width:100%" class="filter-item">
  773. <template slot="append">
  774. <span>平方</span>
  775. </template>
  776. </el-input>
  777. </el-form-item>
  778. </el-col>
  779. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  780. <el-form-item prop="evaluatePrice" label-width="120px" class="postInfo-container-item"
  781. label="评估单价:">
  782. <el-input v-model="props.row.evaluatePrice" style="width:100%" readonly disabled
  783. class="filter-item">
  784. <template slot="append">
  785. <span>万元</span>
  786. </template>
  787. </el-input>
  788. </el-form-item>
  789. </el-col>
  790. </el-row>
  791. <el-row class="row-style">
  792. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  793. <el-form-item prop="owner" :rules="{ required: true, message: '产权人不能为空', trigger: 'blur' }"
  794. label-width="120px" class="postInfo-container-item" label="产权人:">
  795. <el-input v-model="props.row.owner" class="filter-item" />
  796. </el-form-item>
  797. </el-col>
  798. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  799. <el-form-item prop="valueTiming" :rules="{ required: true, message: '价值时点不能为空', trigger: 'blur' }"
  800. label-width="120px" class="postInfo-container-item" label="价值时点:">
  801. <el-date-picker v-model="props.row.valueTiming" type="date" value-format="yyyy-MM-dd" placeholder="选择日期" style="width:100%">
  802. </el-date-picker>
  803. </el-form-item>
  804. </el-col>
  805. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="props.row.production != 'REPORT'">
  806. <el-form-item label="评估目的:" prop="workPurpose"
  807. :rules="{ required: true, message: '估价目的不能为空', trigger: 'blur' }" label-width="120px"
  808. class="postInfo-container-item">
  809. <el-select v-model="props.row.workPurpose" placeholder="请选择" style=" width: 100%" filterable default-first-option allow-create >
  810. <el-option label="抵押" value="抵押"></el-option>
  811. <el-option label="咨询" value="咨询"></el-option>
  812. <el-option label="融资" value="融资"></el-option>
  813. <el-option label="司法" value="司法"></el-option>
  814. <el-option label="可行性研究" value="可行性研究"></el-option>
  815. <el-option label="不良资产价值评估" value="不良资产价值评估"></el-option>
  816. <el-option label="租金" value="租金"></el-option>
  817. <el-option label="其他" value="其他"></el-option>
  818. </el-select>
  819. </el-form-item>
  820. </el-col>
  821. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="props.row.production != 'STATEMENT'">
  822. <el-form-item prop="signatoryId"
  823. :rules="{ required: (props.row.production === 'REPORT'), message: '签字人不能为空', trigger: 'blur' }"
  824. label-width="120px" class="postInfo-container-item" label="签字人:">
  825. <el-select v-model="props.row.signatoryId" placeholder="产品类型为报告,签字人必填" filterable multiple
  826. clearable style=" width: 100%" @change="findWorker(props.row)">
  827. <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id"></el-option>
  828. </el-select>
  829. </el-form-item>
  830. </el-col>
  831. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-else>
  832. <el-form-item prop="signatoryId" label-width="120px" class="postInfo-container-item">
  833. </el-form-item>
  834. </el-col>
  835. </el-row>
  836. <el-row class="row-style">
  837. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  838. <el-form-item prop="mainWorker" label-width="120px" class="postInfo-container-item"
  839. label="第一报告人:">
  840. <el-input :value="props.row.mainWorker" style="width:100%" class="filter-item" readonly disabled>
  841. <template slot="append">
  842. <span>注册号:{{ props.row.mainWorkerNo }}</span>
  843. </template>
  844. </el-input>
  845. </el-form-item>
  846. </el-col>
  847. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  848. <el-form-item prop="minorWorker" label-width="120px" class="postInfo-container-item"
  849. label="第二报告人:">
  850. <el-input :value="props.row.minorWorker" style="width:100%" class="filter-item" readonly disabled>
  851. <template slot="append">
  852. <span>注册号:{{ props.row.minorWorkerNo }}</span>
  853. </template>
  854. </el-input>
  855. </el-form-item>
  856. </el-col>
  857. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  858. <el-form-item prop="smallWorker" label-width="120px" class="postInfo-container-item"
  859. label="第三报告人:">
  860. <el-input :value="props.row.smallWorker" style="width:100%" class="filter-item" readonly disabled>
  861. <template slot="append">
  862. <span>注册号:{{ props.row.smallWorkerNo }}</span>
  863. </template>
  864. </el-input>
  865. </el-form-item>
  866. </el-col>
  867. </el-row>
  868. <el-row class="row-style" v-if="props.row.production==='REPORT'">
  869. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  870. <el-form-item prop="workStartDate" :rules="{ required: true, message: '估价作业开始日期不能为空', trigger: 'blur' }"
  871. label-width="180px" class="postInfo-container-item" label="估价作业开始日期:">
  872. <el-date-picker v-model="props.row.workStartDate" type="date" value-format="yyyy-MM-dd" placeholder="选择日期" style="width:100%">
  873. </el-date-picker>
  874. </el-form-item>
  875. </el-col>
  876. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  877. <el-form-item prop="workEndDate" :rules="{ required: true, message: '估价作业结束日期不能为空', trigger: 'blur' }"
  878. label-width="180px" class="postInfo-container-item" label="估价作业结束日期:">
  879. <el-date-picker v-model="props.row.workEndDate" type="date" value-format="yyyy-MM-dd" placeholder="选择日期" style="width:100%">
  880. </el-date-picker>
  881. </el-form-item>
  882. </el-col>
  883. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  884. <el-form-item label="评估目的:" prop="workPurpose"
  885. :rules="{ required: true, message: '估价目的不能为空', trigger: 'blur' }" label-width="120px"
  886. class="postInfo-container-item">
  887. <el-select v-model="props.row.workPurpose" placeholder="请选择" style=" width: 100%" filterable default-first-option allow-create >
  888. <el-option label="抵押" value="抵押"></el-option>
  889. <el-option label="咨询" value="咨询"></el-option>
  890. <el-option label="融资" value="融资"></el-option>
  891. <el-option label="司法" value="司法"></el-option>
  892. <el-option label="可行性研究" value="可行性研究"></el-option>
  893. <el-option label="不良资产价值评估" value="不良资产价值评估"></el-option>
  894. <el-option label="租金" value="租金"></el-option>
  895. <el-option label="其他" value="其他"></el-option>
  896. </el-select>
  897. </el-form-item>
  898. </el-col>
  899. </el-row>
  900. <el-row class="row-style" v-if="props.row.production==='REPORT'">
  901. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="major.businessObjectType === '房地产'">
  902. <el-form-item label="是否上报协会:" prop="isSubmit"
  903. :rules="{ required: true, message: '是否上报协会不能为空', trigger: 'blur' }" label-width="140px"
  904. :class="['postInfo-container-item','reason']">
  905. <el-radio v-model="props.row.isSubmit" :label="true" size="medium" @change="saveProduction(props.row)">是</el-radio>
  906. <el-radio v-model="props.row.isSubmit" :label="false" size="medium" @change="saveProduction(props.row)">否</el-radio>
  907. </el-form-item>
  908. </el-col>
  909. <el-col :xs="24" :sm="12" :lg="18" :span="6" v-if="major.businessObjectType === '房地产' && !props.row.isSubmit">
  910. <el-form-item prop="notSubmitReason" label-width="120px" :class="['postInfo-container-item','reason']"
  911. :rules="{ required: !props.row.isSubmit, message: '不上报协会原因不能为空', trigger: 'blur' }" label="不上报原因:">
  912. <el-input v-model.trim="props.row.notSubmitReason" class="filter-item" :readonly="props.row.isSubmit" :disabled="props.row.isSubmit"/>
  913. </el-form-item>
  914. </el-col>
  915. <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="major.businessObjectType === '土地'">
  916. <el-form-item label="是否备案:" prop="isRecord"
  917. :rules="{ required: true, message: '是否备案不能为空', trigger: 'blur' }" label-width="120px"
  918. :class="['postInfo-container-item','reason']">
  919. <el-radio v-model="props.row.isRecord" :label="true" size="medium" @change="saveProduction(props.row)">是</el-radio>
  920. <el-radio v-model="props.row.isRecord" :label="false" size="medium" @change="saveProduction(props.row)">否</el-radio>
  921. </el-form-item>
  922. </el-col>
  923. <el-col :xs="24" :sm="12" :lg="18" :span="6" v-if="major.businessObjectType === '土地' && !props.row.isRecord">
  924. <el-form-item prop="notRecordReason" label-width="120px" :class="['postInfo-container-item','reason']"
  925. :rules="{ required: !props.row.isRecord, message: '不备案原因不能为空', trigger: 'blur' }" label="不备案原因:">
  926. <el-input v-model.trim="props.row.notRecordReason" class="filter-item" :readonly="props.row.isRecord" :disabled="props.row.isRecord"/>
  927. </el-form-item>
  928. </el-col>
  929. </el-row>
  930. <el-row class="row-style">
  931. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  932. <el-form-item prop="comment" label-width="120px" class="postInfo-container-item" label="特殊情况说明:">
  933. <el-input v-model.trim="props.row.comment" class="filter-item" />
  934. </el-form-item>
  935. </el-col>
  936. </el-row>
  937. <el-row class="row-style" v-if="doUpload">
  938. <el-col :xs="24" :sm="12" :lg="8" :span="6">
  939. <el-form-item label="产品初稿:" label-width="120px" class="postInfo-container-item">
  940. <el-upload action="/api/upload" :limit="3" :on-success="changeres" :on-exceed="handleExceed"
  941. :on-preview="handleAttachmentPreview" :file-list="props.row.filePathList"
  942. :before-remove="beforeRemove">
  943. <el-button plain type="info" round style="width: 100%">上传<i
  944. class="el-icon-upload el-icon--right"></i></el-button>
  945. </el-upload>
  946. </el-form-item>
  947. </el-col>
  948. <el-col :xs="24" :sm="12" :lg="8" :span="6">
  949. <el-form-item label="产品审核稿:" label-width="140px" class="postInfo-container-item">
  950. <el-upload action="/api/upload" :limit="3" :on-success="changeres1" :on-exceed="handleExceed"
  951. :on-preview="handleAttachmentPreview" :file-list="props.row.filePathList1"
  952. :before-remove="beforeRemove1">
  953. <el-button plain type="info" round style="width: 100%">上传<i
  954. class="el-icon-upload el-icon--right"></i></el-button>
  955. </el-upload>
  956. </el-form-item>
  957. </el-col>
  958. </el-row>
  959. </div>
  960. <div>
  961. </div>
  962. </el-form>
  963. <el-form ref="performanceForm" :model="performance" class="form-container"
  964. v-if="currentNode.nodeCode ==='CHECK_STATEMENT'
  965. ||currentNode.nodeCode ==='CHECK_REPORT'
  966. ||currentNode.nodeCode ==='CHECK_LETTER'
  967. ||(currentNode.nodeCode ==='RECHECK_STATEMENT' && props.row.workPurpose!='抵押')
  968. ||(currentNode.nodeCode ==='RECHECK_REPORT' && props.row.workPurpose!='抵押')
  969. ||(currentNode.nodeCode ==='RECHECK_LETTER' && props.row.workPurpose!='抵押')
  970. ||(currentNode.nodeCode ==='THIRD_CHECK_STATEMENT' && props.row.workPurpose!='抵押')
  971. ||(currentNode.nodeCode ==='THIRD_CHECK_REPORT' && props.row.workPurpose!='抵押')
  972. ||(currentNode.nodeCode ==='THIRD_CHECK_LETTER' && props.row.workPurpose!='抵押')
  973. ||(currentNode.nodeCode ==='RECHECK_STATEMENT' && props.row.evaluateAmount>5000 && props.row.workPurpose==='抵押')
  974. ||(currentNode.nodeCode ==='RECHECK_REPORT' && props.row.evaluateAmount>5000 && props.row.workPurpose==='抵押')
  975. ||(currentNode.nodeCode ==='RECHECK_LETTER' && props.row.evaluateAmount>5000 && props.row.workPurpose==='抵押')
  976. ||(currentNode.nodeCode ==='THIRD_CHECK_STATEMENT' && props.row.evaluateAmount>15000 && props.row.workPurpose==='抵押')
  977. ||(currentNode.nodeCode ==='THIRD_CHECK_REPORT' && props.row.evaluateAmount>15000 && props.row.workPurpose==='抵押')
  978. ||(currentNode.nodeCode ==='THIRD_CHECK_LETTER' && props.row.evaluateAmount>15000 && props.row.workPurpose==='抵押')"
  979. >
  980. <el-card shadow="never" v-for="(p, id) in performance.info" :index="id">
  981. <el-button type="primary" style="float: right; margin-right: 140px;" round @click="saveQuality(p)">保存审核</el-button>
  982. <div class="createMajor-main-container" style="margin-top:40px">
  983. <div class="postInfo-container">
  984. <div>
  985. <el-divider content-position="left">
  986. <h3 class="title">
  987. <div class="avatar-wrapper icon-title">审核</div>
  988. <div class="icon-info">{{p.checkLoop}}</div>
  989. </h3>
  990. </el-divider>
  991. </div>
  992. </div>
  993. </div>
  994. <el-row class="row-style">
  995. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  996. <el-form-item label-width="120px" class="postInfo-container-item" label="一般错误类型:">
  997. <el-checkbox-group v-model="p.normalMistakes">
  998. <el-checkbox label="委托书界定事项和报告描述不符" class="mistake-option"></el-checkbox>
  999. <el-checkbox label="方位图有误" class="mistake-option"></el-checkbox>
  1000. <el-checkbox label="实景图有误" class="mistake-option"></el-checkbox>
  1001. <el-checkbox label="测算参数取值不充分" class="mistake-option"></el-checkbox>
  1002. <el-checkbox label="估价结果确定方式不恰当" class="mistake-option"></el-checkbox>
  1003. <el-checkbox label="估价方法表述不完整" class="mistake-option"></el-checkbox>
  1004. <el-checkbox label="实物、权益、区位描述缺项" class="mistake-option"></el-checkbox>
  1005. <el-checkbox label="价值定义表述不完整" class="mistake-option"></el-checkbox>
  1006. <el-checkbox label="非重要文字和数据录入错误" class="mistake-option"></el-checkbox>
  1007. <span style="margin-left: 30px;" v-for="(name,index) in p.xnormalMistakes">
  1008. <el-checkbox :label="name" class="mistake-option"></el-checkbox>
  1009. </span>
  1010. <el-button type="text" style="margin-left: 50px" @click="addMistake(p,'normalMistakes')">手动添加</el-button>
  1011. </el-checkbox-group>
  1012. <el-form-item prop="normalMistake" label-width="120px"
  1013. label="一般错误个数:">
  1014. <el-input-number v-model="p.normalMistake" class="filter-item" :default="0" :precision="0" :min="0" :value-on-clear="0" />
  1015. </el-form-item>
  1016. </el-form-item>
  1017. </el-col>
  1018. </el-row>
  1019. <el-row class="row-style">
  1020. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  1021. <el-form-item label-width="120px" class="postInfo-container-item" label="较大错误类型:">
  1022. <el-checkbox-group v-model="p.hardMistakes">
  1023. <el-checkbox label="估价结果价格有误" class="mistake-option"></el-checkbox>
  1024. <el-checkbox label="大小写不一致" class="mistake-option"></el-checkbox>
  1025. <el-checkbox label="面积错误" class="mistake-option"></el-checkbox>
  1026. <el-checkbox label="委托方函重要数据出错" class="mistake-option"></el-checkbox>
  1027. <el-checkbox label="委托人名称出错" class="mistake-option"></el-checkbox>
  1028. <el-checkbox label="假设限制条件错漏" class="mistake-option"></el-checkbox>
  1029. <el-checkbox label="价值定义表述错误" class="mistake-option"></el-checkbox>
  1030. <el-checkbox label="报告章节缺漏" class="mistake-option"></el-checkbox>
  1031. <el-checkbox label="报告出具日期错误" class="mistake-option"></el-checkbox>
  1032. <el-checkbox label="报告有效期错误" class="mistake-option"></el-checkbox>
  1033. <el-checkbox label="重要文字和数据录入错误" class="mistake-option"></el-checkbox>
  1034. <span style="margin-left: 30px;" v-for="(name,index) in p.xhardMistakes">
  1035. <el-checkbox :label="name" class="mistake-option"></el-checkbox>
  1036. </span>
  1037. <el-button type="text" style="margin-left: 50px" @click="addMistake(p,'hardMistakes')">手动添加</el-button>
  1038. </el-checkbox-group>
  1039. <el-form-item prop="hardMistake" label-width="120px"
  1040. label="较大错误个数:">
  1041. <el-input-number v-model="p.hardMistake" class="filter-item" :default="0" :precision="0" :min="0" :value-on-clear="0" />
  1042. </el-form-item>
  1043. </el-form-item>
  1044. </el-col>
  1045. </el-row>
  1046. <el-row class="row-style">
  1047. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  1048. <el-form-item label-width="120px" class="postInfo-container-item" label="重大错误类型:">
  1049. <el-checkbox-group v-model="p.fatalMistakes">
  1050. <el-checkbox label="估价对象错误" class="mistake-option"></el-checkbox>
  1051. <el-checkbox label="估价目的错误" class="mistake-option"></el-checkbox>
  1052. <el-checkbox label="价值时点设定出错" class="mistake-option"></el-checkbox>
  1053. <el-checkbox label="登记状况错误" class="mistake-option"></el-checkbox>
  1054. <el-checkbox label="权利状况错误" class="mistake-option"></el-checkbox>
  1055. <el-checkbox label="利用状况错误" class="mistake-option"></el-checkbox>
  1056. <el-checkbox label="技术路线错误" class="mistake-option"></el-checkbox>
  1057. <el-checkbox label="关键参数取值错误" class="mistake-option"></el-checkbox>
  1058. <el-checkbox label="编造虚假案例" class="mistake-option"></el-checkbox>
  1059. <el-checkbox label="编造虚假照片" class="mistake-option"></el-checkbox>
  1060. <el-checkbox label="估价依据资料严重不全" class="mistake-option"></el-checkbox>
  1061. <el-checkbox label="评估结果严重失真超30%以上" class="mistake-option"></el-checkbox>
  1062. <el-checkbox label="关键文字和数据错误" class="mistake-option"></el-checkbox>
  1063. <span style="margin-left: 30px;" v-for="(name,index) in p.xfatalMistakes">
  1064. <el-checkbox :label="name" class="mistake-option"></el-checkbox>
  1065. </span>
  1066. <el-button type="text" style="margin-left: 50px" @click="addMistake(p,'fatalMistakes')">手动添加</el-button>
  1067. </el-checkbox-group>
  1068. <el-form-item prop="fatalMistake" label-width="120px"
  1069. label="重大错误个数:">
  1070. <el-input-number v-model="p.fatalMistake" class="filter-item" :default="0" :precision="0" :min="0" :value-on-clear="0" />
  1071. </el-form-item>
  1072. </el-form-item>
  1073. </el-col>
  1074. </el-row>
  1075. </el-card>
  1076. </el-form>
  1077. </template>
  1078. </el-table-column>
  1079. <el-table-column
  1080. v-if="(this.currentNode.nodeCode === 'WRITE_STATEMENT' || this.currentNode.nodeCode === 'WRITE_REPORT' || this.currentNode.nodeCode === 'WRITE_LETTER')"
  1081. type="selection" width="100" align="center">
  1082. </el-table-column>
  1083. <el-table-column label="产品号" prop="reportNo" align="center">
  1084. <template slot-scope="props">
  1085. <span style="color:rgb(131,201,94); font-weight:bold">{{ props.row.reportNo }}</span>
  1086. </template>
  1087. </el-table-column>
  1088. <el-table-column label="项目名称" prop="name" align="center" show-overflow-tooltip>
  1089. <template slot-scope="props">
  1090. {{ props.row.name }}
  1091. </template>
  1092. </el-table-column>
  1093. <el-table-column label="产品类型" prop="production" align="center">
  1094. <template slot-scope="props">
  1095. {{ aliasProductionType(props.row.production) }}
  1096. </template>
  1097. </el-table-column>
  1098. <el-table-column label="操作" align="center">
  1099. <template slot-scope="props">
  1100. <el-button round type="danger" @click="saveProduction(props.row)"
  1101. :disabled="!updateProductionNode.includes(currentNode.nodeCode)">更新产品信息</el-button>
  1102. <el-button type="success" round v-if="doWare" @click="openWareHouseDialog(props.row)">{{
  1103. currentNode.nodeName }}</el-button>
  1104. </template>
  1105. </el-table-column>
  1106. </el-table>
  1107. </el-tab-pane>
  1108. <el-tab-pane name="finance" class="pane-class" :lazy=true>
  1109. <span slot="label"><i class="el-icon-coin"></i> 收款开票</span>
  1110. <div class="createMajor-main-container">
  1111. <div class="postInfo-container">
  1112. <div>
  1113. <el-divider content-position="left">
  1114. <h3 class="title">
  1115. <div class="avatar-wrapper icon-title">收开</div>
  1116. <div class="icon-info">收款开票</div>
  1117. </h3>
  1118. </el-divider>
  1119. </div>
  1120. </div>
  1121. </div>
  1122. <div style="margin-top: 40px;" v-if="productionFinance.length > 0">
  1123. <el-card v-for="(item, index) in productionFinance" shadow="hover">
  1124. <el-form ref="financeForm" :model="item" class="form-container">
  1125. <el-divider content-position="left">
  1126. <span style="font-size:16px;font-weight:bold;">{{ item.productionNo }} {{ item.productionType }}</span>
  1127. </el-divider>
  1128. <el-row class="row-style">
  1129. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  1130. <el-form-item label-width="120px" class="postInfo-container-item" prop="prodRealAmount" label="产品实收金额:">
  1131. <el-input :value="item.prodRealAmount" class="filter-item" type="type" readonly disabled>
  1132. <template slot="append">元</template>
  1133. </el-input>
  1134. </el-form-item>
  1135. </el-col>
  1136. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  1137. <el-form-item label-width="120px" class="postInfo-container-item" prop="orderRealAmount"
  1138. label="订单实收金额:">
  1139. <el-input :value="item.orderRealAmount" class="filter-item" type="type" readonly disabled>
  1140. <template slot="append">元</template>
  1141. </el-input>
  1142. </el-form-item>
  1143. </el-col>
  1144. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  1145. <el-form-item label-width="120px" class="postInfo-container-item" prop="shouldAmount" label="订单应收金额:">
  1146. <el-input :value="item.shouldAmount" class="filter-item" type="type" readonly disabled>
  1147. <template slot="append">元</template>
  1148. </el-input>
  1149. </el-form-item>
  1150. </el-col>
  1151. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  1152. <el-form-item label-width="120px" class="postInfo-container-item" prop="standardAmount" label="产品标准收费:">
  1153. <el-input :value="item.standardAmount" class="filter-item" type="type" readonly disabled>
  1154. <template slot="append">元</template>
  1155. </el-input>
  1156. </el-form-item>
  1157. </el-col>
  1158. </el-row>
  1159. <el-row class="row-style">
  1160. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1161. <el-form-item label-width="120px" class="postInfo-container-item" prop="invoiceTitle" label="发票抬头:">
  1162. <el-input :value="item.invoiceTitle" class="filter-item" type="type" readonly disabled />
  1163. </el-form-item>
  1164. </el-col>
  1165. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  1166. <el-form-item label-width="120px" class="postInfo-container-item" prop="invoiceType" label="发票类型:">
  1167. <el-input :value="item.invoiceType" class="filter-item" type="type" readonly disabled />
  1168. </el-form-item>
  1169. </el-col>
  1170. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  1171. <el-form-item label-width="120px" class="postInfo-container-item" prop="taxNo" label="税号:">
  1172. <el-input :value="item.taxNo" class="filter-item" type="type" readonly disabled />
  1173. </el-form-item>
  1174. </el-col>
  1175. </el-row>
  1176. <el-row class="row-style">
  1177. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  1178. <el-form-item label-width="120px" class="postInfo-container-item" prop="invoiceAmount" label="开票金额:">
  1179. <el-input :value="item.invoiceAmount" class="filter-item" type="type" readonly disabled>
  1180. <template slot="append">元</template>
  1181. </el-input>
  1182. </el-form-item>
  1183. </el-col>
  1184. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  1185. <el-form-item label-width="120px" class="postInfo-container-item" prop="invoiceDate" label="开票日期:">
  1186. <el-input :value="item.invoiceDate" class="filter-item" type="type" readonly disabled />
  1187. </el-form-item>
  1188. </el-col>
  1189. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  1190. <el-form-item label-width="120px" class="postInfo-container-item" prop="invoiceTaxRate" label="税点:">
  1191. <el-input :value="item.invoiceTaxRate" class="filter-item" type="type" readonly disabled>
  1192. <template slot="append">%</template>
  1193. </el-input>
  1194. </el-form-item>
  1195. </el-col>
  1196. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  1197. <el-form-item label-width="120px" class="postInfo-container-item" prop="invoiceAmount" label="税额:">
  1198. <el-input :value="item.invoiceAmount" class="filter-item" type="type" readonly disabled>
  1199. <template slot="append">元</template>
  1200. </el-input>
  1201. </el-form-item>
  1202. </el-col>
  1203. </el-row>
  1204. <el-row class="row-style">
  1205. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  1206. <el-form-item label-width="120px" class="postInfo-container-item" prop="bankName" label="开户银行:">
  1207. <el-input :value="item.bankName" class="filter-item" type="type" readonly disabled />
  1208. </el-form-item>
  1209. </el-col>
  1210. <el-col :xs="24" :sm="12" :lg="6" :span="6">
  1211. <el-form-item label-width="120px" class="postInfo-container-item" prop="invoiceState" label="开票状态:">
  1212. <el-input :value="item.invoiceState" class="filter-item" type="type" readonly disabled />
  1213. </el-form-item>
  1214. </el-col>
  1215. </el-row>
  1216. </el-form>
  1217. </el-card>
  1218. </div>
  1219. <div style="margin-top: 40px;height: 30%;text-align: center" v-else>
  1220. <span style="color: darkgrey;">还未设置订单应收款</span>
  1221. </div>
  1222. </el-tab-pane>
  1223. <el-tab-pane name="workflowLog" class="pane-class" :lazy=true>
  1224. <span slot="label"><i class="el-icon-date"></i> 流程日志</span>
  1225. <div class="createMajor-main-container">
  1226. <div class="postInfo-container">
  1227. <div>
  1228. <el-divider content-position="left">
  1229. <h3 class="title">
  1230. <div class="avatar-wrapper icon-title">日志</div>
  1231. <div class="icon-info">流程审批日志</div>
  1232. </h3>
  1233. </el-divider>
  1234. </div>
  1235. </div>
  1236. </div>
  1237. <el-table :data="workflowLogs" stripe :header-row-style="{ color: '#333333' }" border
  1238. style="width: 100%; margin-top:20px">
  1239. <el-table-column prop="nodeName" label="节点名称" align="center">
  1240. </el-table-column>
  1241. <el-table-column prop="state" label="处理结果" align="center">
  1242. </el-table-column>
  1243. <el-table-column prop="handlerName" label="处理人" align="center">
  1244. </el-table-column>
  1245. <el-table-column prop="longTime" label="处理时长" align="center">
  1246. </el-table-column>
  1247. <el-table-column prop="created" label="处理时间" align="center">
  1248. </el-table-column>
  1249. <el-table-column prop="comments" label="处理意见" align="center" show-overflow-tooltip>
  1250. </el-table-column>
  1251. </el-table>
  1252. </el-tab-pane>
  1253. </el-tabs>
  1254. <el-dialog :visible.sync="landDialogVisible" custom-class="doWarehouseClass" @closed="closeLandTarget">
  1255. <div>
  1256. <el-form ref="landFrom" :model="landTarget" style="margin-top:20px" :rules="rules">
  1257. <el-divider content-position="left">【土地】基本信息</el-divider>
  1258. <el-row>
  1259. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1260. <el-form-item label="土地类型:" prop="landType"
  1261. :rules="{ required: true, message: '土地类型不能为空', trigger: 'blur' }" label-width="140px"
  1262. class="postInfo-container-item">
  1263. <el-radio v-model="landTarget.landType" label="国有" size="mini"
  1264. :readonly="!couldAddTarget"
  1265. :disabled="!couldAddTarget">国有</el-radio>
  1266. <el-radio v-model="landTarget.landType" label="集体" size="mini"
  1267. :readonly="!couldAddTarget"
  1268. :disabled="!couldAddTarget">集体</el-radio>
  1269. </el-form-item>
  1270. </el-col>
  1271. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1272. <el-form-item label="使用权面积:" prop="useAcreage" label-width="140px" class="postInfo-container-item">
  1273. <el-input v-model="landTarget.useAcreage" class="filter-item"
  1274. :readonly="!couldAddTarget"
  1275. :disabled="!couldAddTarget">
  1276. <template slot="append">平方</template>
  1277. </el-input>
  1278. </el-form-item>
  1279. </el-col>
  1280. </el-row>
  1281. <el-row>
  1282. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1283. <el-form-item label="使用权类型:" prop="rightType"
  1284. :rules="{ required: true, message: '使用权类型不能为空', trigger: 'blur' }" label-width="140px"
  1285. class="postInfo-container-item">
  1286. <el-radio v-model="landTarget.rightType" label="出让" size="mini"
  1287. :readonly="!couldAddTarget"
  1288. :disabled="!couldAddTarget">出让</el-radio>
  1289. <el-radio v-model="landTarget.rightType" label="划拨" size="mini"
  1290. @click.native="cleanResidueYears(landTarget)" :readonly="!couldAddTarget"
  1291. :disabled="!couldAddTarget">划拨</el-radio>
  1292. </el-form-item>
  1293. </el-col>
  1294. <el-col :xs="24" :sm="12" :lg="12" :span="8">
  1295. <el-form-item label="使用权人:" prop="rightToUser"
  1296. :rules="{ required: true, message: '土地使用权人不能为空', trigger: 'blur' }" label-width="120px"
  1297. class="postInfo-container-item">
  1298. <el-input v-model.trim="landTarget.rightToUser" class="filter-item"
  1299. :readonly="!couldAddTarget"
  1300. :disabled="!couldAddTarget" />
  1301. </el-form-item>
  1302. </el-col>
  1303. </el-row>
  1304. <el-row>
  1305. <el-col :xs="24" :sm="12" :lg="12" :span="8">
  1306. <el-form-item label="国土证号:" prop="landCertificateNo" label-width="120px" class="postInfo-container-item">
  1307. <el-input v-model.trim="landTarget.landCertificateNo" class="filter-item"
  1308. :readonly="!couldAddTarget"
  1309. :disabled="!couldAddTarget" />
  1310. </el-form-item>
  1311. </el-col>
  1312. <el-col :xs="24" :sm="12" :lg="12" :span="8">
  1313. <el-form-item label="坐落:" prop="located" :rules="{ required: true, message: '坐落不能为空', trigger: 'blur' }"
  1314. label-width="120px" class="postInfo-container-item">
  1315. <el-input v-model.trim="landTarget.located" class="filter-item"
  1316. :readonly="!couldAddTarget"
  1317. :disabled="!couldAddTarget" />
  1318. </el-form-item>
  1319. </el-col>
  1320. </el-row>
  1321. <el-row>
  1322. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1323. <el-form-item label="剩余年限:" prop="residueYears" label-width="120px" class="postInfo-container-item">
  1324. <el-input v-model="landTarget.residueYears" class="filter-item"
  1325. :readonly="!couldAddTarget || landTarget.rightType === '划拨'"
  1326. :disabled="!couldAddTarget || landTarget.rightType === '划拨'">
  1327. <template slot="append">年</template>
  1328. </el-input>
  1329. </el-form-item>
  1330. </el-col>
  1331. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1332. <el-form-item label="容积率:" prop="plotRatio" label-width="120px" class="postInfo-container-item">
  1333. <el-input v-model="landTarget.plotRatio" class="filter-item"
  1334. :readonly="!couldAddTarget"
  1335. :disabled="!couldAddTarget">
  1336. </el-input>
  1337. </el-form-item>
  1338. </el-col>
  1339. </el-row>
  1340. <el-row>
  1341. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1342. <el-form-item label="用途(地类):" prop="landUse" label-width="120px"
  1343. :rules="{ required: true, message: '用途(地类)不能为空', trigger: 'blur' }" class="postInfo-container-item">
  1344. <el-input v-model.trim="landTarget.landUse" class="filter-item"
  1345. :readonly="!couldAddTarget"
  1346. :disabled="!couldAddTarget" />
  1347. </el-form-item>
  1348. </el-col>
  1349. <el-col :xs="24" :sm="12" :lg="12" :span="8">
  1350. <el-form-item label="估价期日:" prop="evaluateDate"
  1351. :rules="{ required: true, message: '估价期日不能为空', trigger: 'blur' }" label-width="120px"
  1352. class="postInfo-container-item">
  1353. <el-date-picker v-model="landTarget.evaluateDate" type="date" placeholder="选择日期" style="width:100%"
  1354. :readonly="!couldAddTarget"
  1355. :disabled="!couldAddTarget">
  1356. </el-date-picker>
  1357. </el-form-item>
  1358. </el-col>
  1359. </el-row>
  1360. <el-row>
  1361. <el-col :xs="24" :sm="12" :lg="12" :span="8">
  1362. <el-form-item label="负责人:" prop="principalId"
  1363. :rules="{ required: true, message: '项目负责人不能为空', trigger: 'blur' }" label-width="120px"
  1364. class="postInfo-container-item">
  1365. <el-select :value="landTarget.principalId" readonly disabled style="width:100%">
  1366. <el-option v-for="(p, id) in principals" :label="p.name" :value="p.id"></el-option>
  1367. </el-select>
  1368. </el-form-item>
  1369. </el-col>
  1370. <el-col :xs="24" :sm="12" :lg="12" :span="8">
  1371. <el-form-item label="实勘人:" prop="sites" :rules="{ required: true, message: '实勘人不能为空', trigger: 'blur' }"
  1372. label-width="120px" class="postInfo-container-item">
  1373. <el-select v-model="landTarget.sites" placeholder="请选择" multiple filterable clearable style="width:100%"
  1374. @change="sitesChange()" :readonly="!couldAddTarget"
  1375. :disabled="!couldAddTarget">
  1376. <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
  1377. </el-select>
  1378. </el-form-item>
  1379. </el-col>
  1380. </el-row>
  1381. <el-row>
  1382. <el-col :xs="24" :sm="12" :lg="24" :span="12">
  1383. <el-form-item label="备注:" prop="remark" label-width="120px" class="postInfo-container-item">
  1384. <el-input v-model.trim="landTarget.remark" class="filter-item" type="textarea" style="width:100%;"
  1385. :readonly="!couldAddTarget"
  1386. :disabled="!couldAddTarget" />
  1387. </el-form-item>
  1388. </el-col>
  1389. </el-row>
  1390. <div
  1391. v-if="currentNode.nodeCode === 'INITIAL_PRICE' || currentNode.nodeCode === 'REVIEW_QUOTATION'">
  1392. <el-divider content-position="left">【土地】定价信息</el-divider>
  1393. <el-row>
  1394. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  1395. <el-form-item label="评估方法:" prop="eMethods"
  1396. label-width="160px"
  1397. :class="['postInfo-container-item', 'task-class']">
  1398. <el-checkbox-group v-model="eMethods">
  1399. <el-checkbox-button label="市场比较法" key="市场比较法">市场比较法</el-checkbox-button>
  1400. <el-checkbox-button label="收益还原法" key="收益还原法">收益还原法</el-checkbox-button>
  1401. <el-checkbox-button label="成本逼近法" key="成本逼近法">成本逼近法</el-checkbox-button>
  1402. <el-checkbox-button label="剩余法" key="剩余法">剩余法</el-checkbox-button>
  1403. <el-checkbox-button label="基准地价系数修正法" key="基准地价系数修正法">基准地价系数修正法</el-checkbox-button>
  1404. <el-checkbox-button label="其他" key="其他">其他</el-checkbox-button>
  1405. </el-checkbox-group>
  1406. </el-form-item>
  1407. </el-col>
  1408. </el-row>
  1409. <el-row>
  1410. <el-col :xs="24" :sm="12" :lg="12" :span="6" v-if="eMethods.includes('其他')">
  1411. <el-form-item label="其他评估方法:" label-width="160px" prop="definedEvaluationMethod"
  1412. :class="['postInfo-container-item', 'task-class']"
  1413. :rules="{ required: true, message: '其他评估方法不能为空', trigger: 'blur' }">
  1414. <el-input v-model="landTarget.definedEvaluationMethod">
  1415. </el-input>
  1416. </el-form-item>
  1417. </el-col>
  1418. </el-row>
  1419. <el-row>
  1420. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1421. <el-form-item label="初步定价:" prop="evaluateValue" label-width="160px"
  1422. :class="['postInfo-container-item', 'task-class']">
  1423. <el-input v-model="landTarget.evaluateValue"
  1424. class="filter-item">
  1425. <template slot="append">万</template>
  1426. </el-input>
  1427. </el-form-item>
  1428. </el-col>
  1429. <el-col :xs="24" :sm="12" :lg="12" :span="6" v-if="currentNode.nodeCode === 'REVIEW_QUOTATION'">
  1430. <el-form-item label="审核定价:" prop="checkValue" label-width="160px"
  1431. :class="['postInfo-container-item', 'task-class']">
  1432. <span slot="label">审核定价
  1433. <el-tooltip class="item" effect="dark" content="默认为‘初步定价’可修改。" placement="top-start">
  1434. <i class="el-icon-question" /></el-tooltip>
  1435. </span>
  1436. <el-input v-model="landTarget.checkValue" :placeholder="landTarget.evaluateValue" class="filter-item">
  1437. <template slot="append">万</template>
  1438. </el-input>
  1439. </el-form-item>
  1440. </el-col>
  1441. </el-row>
  1442. </div>
  1443. <el-row>
  1444. <el-button v-if="couldAddTarget" type="success"
  1445. @click="saveLandTarget(major.businessObjectType)" style="width:100%;">保存</el-button>
  1446. <el-button v-else type="success" @click="doTask(currentNode.nodeCode)" style="width:100%;">保存</el-button>
  1447. </el-row>
  1448. </el-form>
  1449. </div>
  1450. </el-dialog>
  1451. <el-dialog :visible.sync="houseDialogVisible" custom-class="doWarehouseClass" @closed="closeLandTarget">
  1452. <div>
  1453. <el-form ref="houseFrom" :model="landTarget" style="margin-top:20px" :rules="rules">
  1454. <el-divider content-position="left">【房地产】基本信息</el-divider>
  1455. <el-row>
  1456. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1457. <el-form-item label="房屋用途:" prop="houseToUse" label-width="120px" :class="['postInfo-container-item']">
  1458. <el-checkbox-group v-model="houseToUse">
  1459. <el-checkbox-button label="住宅" key="住宅">住宅</el-checkbox-button>
  1460. <el-checkbox-button label="商业" key="商业">商业</el-checkbox-button>
  1461. <el-checkbox-button label="办公" key="办公">办公</el-checkbox-button>
  1462. <el-checkbox-button label="工业" key="工业">工业</el-checkbox-button>
  1463. <el-checkbox-button label="其他" key="其他">其他</el-checkbox-button>
  1464. </el-checkbox-group>
  1465. </el-form-item>
  1466. </el-col>
  1467. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1468. <el-form-item label="土地使用权人:" prop="rightToUser" label-width="140px" class="postInfo-container-item">
  1469. <el-input v-model.trim="landTarget.rightToUser" :readonly="!couldAddTarget"
  1470. :disabled="!couldAddTarget" class="filter-item" />
  1471. </el-form-item>
  1472. </el-col>
  1473. </el-row>
  1474. <el-row>
  1475. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1476. <el-form-item label="权利人:" prop="owner" :rules="{ required: true, message: '权利人不能为空', trigger: 'blur' }"
  1477. label-width="120px" class="postInfo-container-item">
  1478. <el-input v-model.trim="landTarget.owner" class="filter-item" :readonly="!couldAddTarget"
  1479. :disabled="!couldAddTarget"/>
  1480. </el-form-item>
  1481. </el-col>
  1482. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1483. <el-form-item label="权证号:" prop="ownerNo" label-width="120px" class="postInfo-container-item">
  1484. <el-input v-model.trim="landTarget.ownerNo" class="filter-item" :readonly="!couldAddTarget"
  1485. :disabled="!couldAddTarget"/>
  1486. </el-form-item>
  1487. </el-col>
  1488. </el-row>
  1489. <el-row>
  1490. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1491. <el-form-item label="土地证号:" prop="landCertificateNo" label-width="120px" class="postInfo-container-item">
  1492. <el-input v-model.trim="landTarget.landCertificateNo" class="filter-item" :readonly="!couldAddTarget"
  1493. :disabled="!couldAddTarget"/>
  1494. </el-form-item>
  1495. </el-col>
  1496. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1497. <el-form-item label="坐落:" prop="located" label-width="120px"
  1498. :rules="{ required: true, message: '坐落不能为空', trigger: 'blur' }" class="postInfo-container-item">
  1499. <el-input v-model.trim="landTarget.located" class="filter-item" :readonly="!couldAddTarget"
  1500. :disabled="!couldAddTarget"/>
  1501. </el-form-item>
  1502. </el-col>
  1503. </el-row>
  1504. <el-row>
  1505. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1506. <el-form-item label="使用权类型:" :rules="{ required: true, message: '使用权类型不能为空', trigger: 'blur' }"
  1507. prop="useRightType" label-width="140px" class="postInfo-container-item">
  1508. <el-input v-model.trim="landTarget.useRightType" class="filter-item" :readonly="!couldAddTarget"
  1509. :disabled="!couldAddTarget"/>
  1510. </el-form-item>
  1511. </el-col>
  1512. <el-col :xs="24" :sm="12" :lg="12" :span="8">
  1513. <el-form-item label="项目名称:" prop="targetName" label-width="120px" class="postInfo-container-item">
  1514. <el-input v-model.trim="landTarget.targetName" :readonly="!couldAddTarget"
  1515. :disabled="!couldAddTarget"/>
  1516. </el-form-item>
  1517. </el-col>
  1518. </el-row>
  1519. <el-row>
  1520. <el-col :xs="24" :sm="12" :lg="12" :span="8">
  1521. <el-form-item label="竣工年代:" prop="buildDoneYear" label-width="120px" class="postInfo-container-item">
  1522. <el-input v-model.trim="landTarget.buildDoneYear" class="filter-item" :readonly="!couldAddTarget"
  1523. :disabled="!couldAddTarget"/>
  1524. </el-form-item>
  1525. </el-col>
  1526. <el-col :xs="24" :sm="12" :lg="12" :span="8">
  1527. <el-form-item label="建筑面积:" prop="buildAcreage" label-width="120px" class="postInfo-container-item">
  1528. <el-input v-model="landTarget.buildAcreage" style="width:100%" class="filter-item" :readonly="!couldAddTarget"
  1529. :disabled="!couldAddTarget">
  1530. <template slot="append">平方</template>
  1531. </el-input>
  1532. </el-form-item>
  1533. </el-col>
  1534. </el-row>
  1535. <el-row>
  1536. <el-col :xs="24" :sm="12" :lg="12" :span="8">
  1537. <el-form-item label="土地面积:" prop="landAcreage" label-width="120px" class="postInfo-container-item">
  1538. <el-input v-model="landTarget.landAcreage" style="width:100%" class="filter-item" :readonly="!couldAddTarget"
  1539. :disabled="!couldAddTarget">
  1540. <template slot="append">平方</template>
  1541. </el-input>
  1542. </el-form-item>
  1543. </el-col>
  1544. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1545. <el-form-item label="规划用途:" :rules="{ required: true, message: '规划用途不能为空', trigger: 'blur' }"
  1546. prop="planPurpose" label-width="120px" class="postInfo-container-item">
  1547. <el-input v-model.trim="landTarget.planPurpose" class="filter-item" :readonly="!couldAddTarget"
  1548. :disabled="!couldAddTarget"/>
  1549. </el-form-item>
  1550. </el-col>
  1551. </el-row>
  1552. <el-row>
  1553. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1554. <el-form-item label="实勘地址:" :rules="{ required: true, message: '实勘地址不能为空', trigger: 'blur' }"
  1555. prop="siteLocated" label-width="120px" class="postInfo-container-item">
  1556. <el-input v-model.trim="landTarget.siteLocated" class="filter-item" :readonly="!couldAddTarget"
  1557. :disabled="!couldAddTarget"/>
  1558. </el-form-item>
  1559. </el-col>
  1560. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1561. <el-form-item label="实际用途:" :rules="{ required: true, message: '实际用途不能为空', trigger: 'blur' }"
  1562. prop="realPurpose" label-width="120px" class="postInfo-container-item">
  1563. <el-input v-model.trim="landTarget.realPurpose" class="filter-item" :readonly="!couldAddTarget"
  1564. :disabled="!couldAddTarget"/>
  1565. </el-form-item>
  1566. </el-col>
  1567. </el-row>
  1568. <el-row>
  1569. <el-col :xs="24" :sm="12" :lg="8" :span="8">
  1570. <el-form-item label="负责人:" prop="principalId"
  1571. :rules="{ required: true, message: '项目负责人不能为空', trigger: 'blur' }" label-width="120px"
  1572. class="postInfo-container-item">
  1573. <el-select :value="landTarget.principalId" readonly disabled>
  1574. <el-option v-for="(p, id) in principals" :label="p.name" :value="p.id"></el-option>
  1575. </el-select>
  1576. </el-form-item>
  1577. </el-col>
  1578. <el-col :xs="24" :sm="12" :lg="16" :span="8">
  1579. <el-form-item label="实勘人:" prop="sites" :rules="{ required: true, message: '实勘人不能为空', trigger: 'blur' }"
  1580. label-width="120px" class="postInfo-container-item">
  1581. <el-select v-model="landTarget.sites" placeholder="请选择" multiple filterable clearable style="width:100%"
  1582. @change="sitesChange()" :readonly="!couldAddTarget"
  1583. :disabled="!couldAddTarget">
  1584. <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
  1585. </el-select>
  1586. </el-form-item>
  1587. </el-col>
  1588. </el-row>
  1589. <el-row>
  1590. <el-col :xs="24" :sm="12" :lg="24" :span="12">
  1591. <el-form-item label="备注:" prop="remark" label-width="120px" class="postInfo-container-item">
  1592. <el-input v-model.trim="landTarget.remark" class="filter-item" type="textarea" :readonly="!couldAddTarget"
  1593. :disabled="!couldAddTarget"/>
  1594. </el-form-item>
  1595. </el-col>
  1596. </el-row>
  1597. <div
  1598. v-if="currentNode.nodeCode === 'INITIAL_PRICE' || currentNode.nodeCode === 'REVIEW_QUOTATION'">
  1599. <el-divider content-position="left">【房地产】定价信息</el-divider>
  1600. <el-row>
  1601. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  1602. <el-form-item label="评估方法:" prop="eMethods"
  1603. label-width="160px"
  1604. :class="['postInfo-container-item', 'task-class']">
  1605. <el-checkbox-group v-model="eMethods">
  1606. <el-checkbox-button label="比较法" key="比较法">比较法</el-checkbox-button>
  1607. <el-checkbox-button label="收益法" key="收益法">收益法</el-checkbox-button>
  1608. <el-checkbox-button label="成本法" key="成本法">成本法</el-checkbox-button>
  1609. <el-checkbox-button label="假设开发法" key="假设开发法">假设开发法</el-checkbox-button>
  1610. <el-checkbox-button label="基准地价修正法" key="基准地价修正法">基准地价修正法</el-checkbox-button>
  1611. </el-checkbox-group>
  1612. </el-form-item>
  1613. </el-col>
  1614. </el-row>
  1615. <el-row>
  1616. <el-col :xs="24" :sm="12" :lg="12" :span="6">
  1617. <el-form-item label="初步定价:" prop="evaluateValue" label-width="160px"
  1618. :class="['postInfo-container-item', 'task-class']">
  1619. <el-input v-model="landTarget.evaluateValue" style="width:100%"
  1620. class="filter-item">
  1621. <template slot="append">万</template>
  1622. </el-input>
  1623. </el-form-item>
  1624. </el-col>
  1625. <el-col :xs="24" :sm="12" :lg="12" :span="6" v-if="currentNode.nodeCode === 'REVIEW_QUOTATION'">
  1626. <el-form-item label="审核定价:" prop="checkValue" label-width="180px"
  1627. :class="['postInfo-container-item', 'task-class']">
  1628. <span slot="label">审核定价
  1629. <el-tooltip class="item" effect="dark" content="默认为‘初步定价’若价格无误,可直接点击保存按钮,否则可修改。"
  1630. placement="top-start">
  1631. <i class="el-icon-question" /></el-tooltip>
  1632. </span>
  1633. <el-input v-model="landTarget.checkValue" :placeholder="landTarget.evaluateValue" style="width:100%"
  1634. class="filter-item">
  1635. <template slot="append">万</template>
  1636. </el-input>
  1637. </el-form-item>
  1638. </el-col>
  1639. </el-row>
  1640. </div>
  1641. <el-row>
  1642. <el-button v-if="couldAddTarget" type="success"
  1643. @click="saveLandTarget(major.businessObjectType)" style="width:100%;">保存</el-button>
  1644. <el-button v-else type="success" @click="doTask(currentNode.nodeCode)" style="width:100%;">保存</el-button>
  1645. </el-row>
  1646. </el-form>
  1647. </div>
  1648. </el-dialog>
  1649. <el-dialog :visible.sync="takeNumberDialog" width="20%" title="请选择取号年份">
  1650. <el-card shadow="always">
  1651. <div>
  1652. <el-date-picker v-model="year" type="year" placeholder="请选择取号年份" :picker-options="pickerOptions" format="yyyy年"
  1653. value-format="yyyy">
  1654. </el-date-picker>
  1655. <el-button slot="append" @click="takeNumber">确认取号</el-button>
  1656. </div>
  1657. </el-card>
  1658. </el-dialog>
  1659. <el-dialog :visible.sync="warehouseDialog" width="25%" center top="35vh" custom-class="doWarehouseClass"
  1660. @closed="cleanWareHouseProductionType()">
  1661. <ScanEntry ref="scanEntry" @scanEntryFun="handleScanEntry" label="请扫描二维码或输入产品号" />
  1662. <span slot="footer" class="dialog-footer">
  1663. <el-button @click="warehouseDialog = false">取 消</el-button>
  1664. <el-button type="primary" @click="doWareHouse()">确 定</el-button>
  1665. </span>
  1666. </el-dialog>
  1667. <el-dialog :visible.sync="checkFundDialog" width="25%" center top="35vh" custom-class="doWarehouseClass">
  1668. <el-row>
  1669. <el-col :xs="24" :sm="12" :lg="3" :span="6">
  1670. <i style="font-size:30px;" class="el-icon-warning-outline"></i>
  1671. </el-col>
  1672. <el-col :xs="24" :sm="12" :lg="21" :span="6">
  1673. <span>系统检测到意见书</span><span style="color:rgb(131,201,94);font-style: italic;">【{{ statementNo
  1674. }}】</span><span>当前没有对应的实收款记录,</span>
  1675. <span>后期是否需要收款?
  1676. <el-tooltip class="item" effect="dark" content="收款:继续流程需归档;不收款:终止流程无需归档;" placement="bottom-start">
  1677. <span><i style="font-size:15px" class="el-icon-question"></i></span>
  1678. </el-tooltip>
  1679. </span>
  1680. </el-col>
  1681. </el-row>
  1682. <span slot="footer" class="dialog-footer">
  1683. <el-button @click="doSaveFeedBack(false)">不收款</el-button>
  1684. <el-button type="primary" @click="doSaveFeedBack(true)">收款</el-button>
  1685. </span>
  1686. </el-dialog>
  1687. <el-dialog :visible.sync="chooseSecondCheckerDialog" width="25%" center top="35vh" custom-class="doWarehouseClass"
  1688. @closed="cleanSecondCheck()">
  1689. <div>
  1690. <i class="el-icon-warning" style="color:RGB(230,162,60);font-size:22px;margin-right:10px;"></i>
  1691. <span style="position:absolute;top:58px">请确定复审人:</span>
  1692. </div>
  1693. <div style="margin-top:30px;margin-left:20px">
  1694. <el-radio-group v-model="secondCheckUserId">
  1695. <el-radio v-for="(checker, index) in secondCheckUsers" :label="checker.remark">{{ checker.name }}</el-radio>
  1696. </el-radio-group>
  1697. </div>
  1698. <div style="margin-top: 30px;color: red;font-weight: bold">
  1699. <span v-if="this.productions.length>0 && this.productions[0].production==='REPORT' && !this.productions[0].isRecord && this.major.businessObjectType==='土地'">此报告为土地不备案报告,请知晓!</span>
  1700. </div>
  1701. <span slot="footer" class="dialog-footer">
  1702. <el-button @click="chooseSecondCheckerDialog = false">取消</el-button>
  1703. <el-button type="primary" @click="commit('PASS')" :disabled="!secondCheckUserId">确定</el-button>
  1704. </span>
  1705. </el-dialog>
  1706. <el-dialog :visible.sync="mergeNoDialog" width="25%" center top="35vh" custom-class="doWarehouseClass">
  1707. <div>
  1708. <i class="el-icon-warning" style="color:RGB(230,162,60);font-size:22px;margin-right:10px;"></i>
  1709. <span style="position:absolute;top:58px">请选择已取的号码:</span>
  1710. </div>
  1711. <el-radio-group v-model="toMergeNo" size="medium" style="margin-top: 10px;margin-left: 90px" >
  1712. <el-radio border v-for="(no, index) in mergeNos" :label="no" style="margin-bottom: 5px">{{ no }}</el-radio>
  1713. </el-radio-group>
  1714. <span slot="footer" class="dialog-footer">
  1715. <el-button @click="mergeNoDialog = false">取消</el-button>
  1716. <el-button type="primary" @click="doMergeNo()" :disabled="!toMergeNo">确定</el-button>
  1717. </span>
  1718. </el-dialog>
  1719. <el-dialog :visible.sync="notRecordDialog" width="45%" center top="35vh" custom-class="doWarehouseClass" @closed="remindClean()">
  1720. <el-divider content-position="left">
  1721. <h3 >
  1722. <div style="color: red;"><i class="el-icon-warning"></i> 不备案提醒</div>
  1723. </h3>
  1724. </el-divider>
  1725. <el-form ref="notRecordFrom" v-model="notRecordRemind">
  1726. <el-row>
  1727. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  1728. <el-form-item label="报告号:" prop="reportNo" label-width="140px" :class="['postInfo-container-item','reason']">
  1729. <el-input :value="notRecordRemind.reportNo" :class="['filter-item','resaon_input']" disabled readonly style=" width: 100%" />
  1730. </el-form-item>
  1731. </el-col>
  1732. </el-row>
  1733. <el-row>
  1734. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  1735. <el-form-item label="是否备案:" prop="isRecord" label-width="140px" :class="['postInfo-container-item','reason']">
  1736. <el-input :value="notRecordRemind.isRecord?'备案':'不备案'" :class="['filter-item','resaon_input']" readonly style=" width: 100%" />
  1737. </el-form-item>
  1738. </el-col>
  1739. </el-row>
  1740. <el-row>
  1741. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  1742. <el-form-item label="不备案原因:" prop="notRecordReason" label-width="140px" :class="['postInfo-container-item']">
  1743. <el-input type="textarea" :value="notRecordRemind.notRecordReason" :class="['filter-item']" readonly style=" width: 100%" />
  1744. </el-form-item>
  1745. </el-col>
  1746. </el-row>
  1747. </el-form>
  1748. <span slot="footer" class="dialog-footer">
  1749. <el-button @click="notRecordDialog=false">暂不处理</el-button>
  1750. <el-button type="primary" @click="doPassNotRecord()">已知晓</el-button>
  1751. </span>
  1752. </el-dialog>
  1753. <!-- <el-dialog :visible.sync="notSubmitDialog" width="45%" center top="35vh" custom-class="doWarehouseClass" @closed="remindClean()">
  1754. <el-divider content-position="left">
  1755. <h3 >
  1756. <div style="color: red;"><i class="el-icon-warning"></i> 上报协会提醒</div>
  1757. </h3>
  1758. </el-divider>
  1759. <el-form ref="notRecordFrom" v-model="notSubmitRemind">
  1760. <el-row>
  1761. <el-col :xs="24" :sm="12" :lg="24" :span="6">
  1762. <el-form-item label-width="45px" :class="['postInfo-container-item','reason']">
  1763. <el-input :value="notSubmitRemind.reportNo +' 报告需要上报协会!'" :class="['filter-item','resaon_input']" disabled readonly style=" width: 100%" />
  1764. </el-form-item>
  1765. </el-col>
  1766. </el-row>
  1767. </el-form>
  1768. <span slot="footer" class="dialog-footer">
  1769. <el-button @click="notSubmitDialog=false">暂不处理</el-button>
  1770. <el-button type="primary" @click="doPassNotSubmit()">已知晓</el-button>
  1771. </span>
  1772. </el-dialog> -->
  1773. </div>
  1774. </template>
  1775. <script>
  1776. import Breadcrumb from '@/components/Breadcrumb'
  1777. import YDetailPageLayout from '@/components/YDetailPageLayout/index_detail'
  1778. import WorkflowBoard from '@/components/workflowBoard'
  1779. import ScanEntry from '@/components/ScanEntry'
  1780. import { isNumber, phoneNumber, postiveInteger, isIdNumber } from '@/utils/validate'
  1781. export default {
  1782. name: 'majorTodoDetail',
  1783. components: {
  1784. Breadcrumb,
  1785. YDetailPageLayout,
  1786. WorkflowBoard,
  1787. ScanEntry
  1788. },
  1789. watch: {
  1790. $route(to, from) {
  1791. if (to.path === from.path){
  1792. this.nodeBusinessInfo.doWorkflow = this.$route.query.doWorkflow === 'true';
  1793. this.businessMinId = this.$route.query.reportNo;
  1794. this.businessSubId = this.$route.query.statementNo;
  1795. this.majorId = this.$route.query.id;
  1796. this.reportNo = this.$route.query.reportNo;
  1797. this.statementNo = this.$route.query.statementNo;
  1798. this.currentNode.nodeCode = this.$route.query.currentNodeCode;
  1799. this.nodeBusinessInfo.businessId = this.$route.query.id;
  1800. this.nodeBusinessInfo.currentNodeInstanceId = this.$route.query.currentNodeId;
  1801. this.nodeBusinessInfo.businessMinId = this.$route.query.reportNo;
  1802. this.nodeBusinessInfo.businessSubId = this.$route.query.statementNo;
  1803. this.getCurrentNodeInfo();
  1804. this.getMajorDetail();
  1805. this.getAllotDepartment();
  1806. this.getLandTargetList();
  1807. setTimeout(() => {
  1808. this.getProductions(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  1809. }, 1000)
  1810. this.getWorkflowLogs();
  1811. this.getPerformance(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  1812. this.getFinanceInvoiceAmountInfo();
  1813. }
  1814. },
  1815. evaluateLandData(newValue, oldValue) {
  1816. this.totalEvaluateValue = 0;
  1817. this.totalAcreage = 0;
  1818. let totalValues = newValue.map(item => item.evaluateValue);
  1819. let totalAcreages = [];
  1820. if (this.major.businessObjectType === '土地') {
  1821. totalAcreages = this.evaluateLandData.map(item => item.useAcreage);
  1822. } else {
  1823. totalAcreages = this.evaluateLandData.map(item => item.buildAcreage);
  1824. }
  1825. for (let i in totalValues) {
  1826. if (totalValues[i] != null && typeof (totalValues[i]) != 'undefined') {
  1827. this.totalEvaluateValue += totalValues[i];
  1828. }
  1829. }
  1830. for (let j in totalAcreages) {
  1831. if (totalAcreages[j] != null && typeof (totalAcreages[j]) != 'undefined') {
  1832. this.totalAcreage += totalAcreages[j];
  1833. }
  1834. }
  1835. },
  1836. feedback: {
  1837. handler(newValue, oldVal) {
  1838. let ps = newValue.production;
  1839. if (this.currentNode.nodeCode === 'QUOTATION_FEEDBACK' || this.currentNode.nodeCode === 'STATEMENT_FEEDBACK') {
  1840. if (ps.length > 1 && this.currentNode.nodeCode != 'STATEMENT_FEEDBACK' && ps.includes("STATEMENT")) {
  1841. this.$message({
  1842. message: '一次只能选择一种产品类型',
  1843. type: 'error'
  1844. });
  1845. this.validFeed = true;
  1846. }
  1847. else if (this.currentNode.nodeCode === 'STATEMENT_FEEDBACK' && !ps.includes("STATEMENT")) {
  1848. this.feedback.production.push("STATEMENT");
  1849. this.validFeed = true;
  1850. }
  1851. else if (ps.includes("REPORT") && ps.includes("LETTER")) {
  1852. this.validFeed = true;
  1853. } else if ((ps.includes("REPORT") && ps.includes("NONE")) || (ps.includes("LETTER") && ps.includes("NONE"))) {
  1854. this.$message({
  1855. message: '产品类型选择有误',
  1856. type: 'error'
  1857. });
  1858. this.validFeed = true;
  1859. }
  1860. else {
  1861. this.validFeed = false;
  1862. }
  1863. }
  1864. },
  1865. deep: true
  1866. },
  1867. productions: {
  1868. handler(newValue, oldVal) {
  1869. for (let d in newValue) {
  1870. newValue[d].evaluatePrice = ((newValue[d].evaluateAmount) / (newValue[d].evaluateAcreage)).toFixed(4);
  1871. }
  1872. },
  1873. deep: true
  1874. }
  1875. },
  1876. computed: {
  1877. couldEdit() {
  1878. let currentNodeCode = this.$route.query.currentNodeCode;
  1879. if (currentNodeCode === 'DEPARTMENT_ALLOCATION') {
  1880. return true;
  1881. }
  1882. return false;
  1883. },
  1884. ifTakeNumber: function () {
  1885. let tk = this.currentNode.tasks.map(item => item.taskType).includes("WRITE");
  1886. let tn = this.evaluateLandData.map(item => item.reportNo).includes(null)
  1887. return (tk && tn)
  1888. },
  1889. checkLoop: function () {
  1890. const curNode = this.currentNode.nodeCode;
  1891. if (curNode === 'CHECK_STATEMENT' || curNode === 'CHECK_REPORT' || curNode === 'CHECK_LETTER' || curNode === 'LAND_REPORT_NOT_RECORD_CHECK') {
  1892. return "初审";
  1893. }
  1894. if (curNode === 'RECHECK_STATEMENT' || curNode === 'RECHECK_REPORT' || curNode === 'RECHECK_LETTER') {
  1895. return "复审";
  1896. }
  1897. if (curNode === 'THIRD_CHECK_STATEMENT' || curNode === 'THIRD_CHECK_REPORT' || curNode === 'THIRD_CHECK_LETTER') {
  1898. return "三审";
  1899. }
  1900. return null;
  1901. },
  1902. activeTagName: {
  1903. get() {
  1904. const orderTag = ['DEPARTMENT_ALLOCATION', 'CONTACT_DEVELOP_PLAN', 'OPENING_ORDER'];
  1905. const evaluate = ['SPOT_RECONNAISSANCE', 'INITIAL_PRICE', 'REVIEW_QUOTATION', 'FORMAL_QUOTATION', 'QUOTATION_FEEDBACK', 'STATEMENT_FEEDBACK', 'WRITE_STATEMENT', 'WRITE_REPORT', 'WRITE_LETTER'];
  1906. const check = ['CHECK_STATEMENT', 'RECHECK_STATEMENT', 'THIRD_CHECK_STATEMENT', 'CHECK_REPORT', 'RECHECK_REPORT', 'THIRD_CHECK_REPORT', 'CHECK_LETTER', 'RECHECK_LETTER', 'THIRD_CHECK_LETTER'];
  1907. const saveCheck = ['CHECK_ARCHIVING', 'RECHECK_ARCHIVING']
  1908. const nodeCode = this.$route.query.currentNodeCode;
  1909. if (orderTag.includes(nodeCode)) {
  1910. return 'order';
  1911. }
  1912. if (evaluate.includes(nodeCode)) {
  1913. return 'evaluate'
  1914. }
  1915. if (check.includes(nodeCode)) {
  1916. return 'producution'
  1917. }
  1918. if (saveCheck.includes(nodeCode)) {
  1919. return 'finance'
  1920. }
  1921. return 'producution'
  1922. },
  1923. set() { }
  1924. },
  1925. couldAddTarget(){
  1926. const curNode = this.currentNode.nodeCode;
  1927. let couldNodes = ['SPOT_RECONNAISSANCE','WRITE_STATEMENT','WRITE_REPORT','WRITE_LETTER']
  1928. return couldNodes.includes(curNode);
  1929. }
  1930. },
  1931. data() {
  1932. return {
  1933. updateProductionNode: ['WRITE_STATEMENT', 'CHECK_STATEMENT', 'RECHECK_STATEMENT', 'THIRD_CHECK_STATEMENT'
  1934. , 'WRITE_REPORT', 'CHECK_REPORT', 'RECHECK_REPORT', 'THIRD_CHECK_REPORT',
  1935. 'WRITE_LETTER', 'CHECK_LETTER', 'RECHECK_LETTER', 'THIRD_CHECK_LETTER'],
  1936. rules: {
  1937. buildAcreage: [{ required: true, message: "建筑面积不能为空", trigger: 'blur' }, { validator: isNumber, trigger: 'blur' }],
  1938. landAcreage: [{ required: false, validator: isNumber, trigger: 'blur' }],
  1939. evaluateValue: [{ required: true, message: "评估价格不能为空", trigger: 'blur' }, { validator: isNumber, trigger: 'blur' }],
  1940. checkValue: [{ required: true, message: "审核价格不能为空", trigger: 'blur' }, { validator: isNumber, trigger: 'blur' }],
  1941. production: [{ required: true, message: "产品类型不能为空", trigger: 'blur' }],
  1942. printing: [{ required: true, message: "打印份数不能为空", trigger: 'blur' }],
  1943. useAcreage: [{ required: true, message: "使用权面积不能为空", trigger: 'blur' }, { validator: isNumber, trigger: 'blur' }],
  1944. residueYears: [{ required: false, validator: isNumber, trigger: 'blur' }],
  1945. plotRatio: [{ required: false, validator: isNumber, trigger: 'blur' }],
  1946. clientTel: [{ required: true, message: "委托方电话不能为空", trigger: 'blur' }, { validator: phoneNumber, trigger: 'blur' }],
  1947. evaluateAmount: [{ required: true, message: "评估总价不能为空", trigger: 'blur' }, { validator: isNumber, trigger: 'blur' }],
  1948. evaluateAcreage: [{ required: true, message: "评估面积不能为空", trigger: 'blur' }, { validator: isNumber, trigger: 'blur' }],
  1949. },
  1950. activeName: 'workflowInfo',
  1951. nodeBusinessInfo: {
  1952. currentNodePermission: {
  1953. commit: true,
  1954. reversible: true,
  1955. restartable: true,
  1956. terminable: true,
  1957. skippable: true,
  1958. },
  1959. mainBusiness: "MAJOR_BUSINESS",
  1960. doWorkflow: false,
  1961. businessSubId: null,
  1962. businessMinId: null,
  1963. businessId: null,
  1964. currentNodeInstanceId: null,
  1965. production: [],
  1966. reportNos: [],
  1967. currentNodeInstanceCode: null,
  1968. ifCheckTask: true,
  1969. ifPay: null
  1970. },
  1971. major: {
  1972. id: null,
  1973. name: null,
  1974. financial: false,
  1975. allotType: "轮单",
  1976. clientManagerId: null,
  1977. principalId: null,
  1978. departmentId: null,
  1979. businessObjectType: "土地",
  1980. specialType: null,
  1981. businessGener: null,
  1982. evaluateAim: "抵押",
  1983. entrustAgain: false,
  1984. multipleRemoval: false,
  1985. informalEvaluate: false,
  1986. clienteleType: "企业",
  1987. clienteleId: null,
  1988. clienteleContactId: null,
  1989. dispenseBenefit: false,
  1990. nonnative: false,
  1991. refinance: false,
  1992. loanLimit: null,
  1993. loanPeriod: null,
  1994. loanNature: null,
  1995. loanAim: null,
  1996. loanExpire: false,
  1997. bailor: null,
  1998. bailorAddress: null,
  1999. bailorContactName: null,
  2000. bailorContactTel: null,
  2001. owner: null,
  2002. ownerTel: null,
  2003. urgent: false,
  2004. terminalClienteleId: null,
  2005. terminalClienteleType: "个人",
  2006. terminalClienteleContactId: null,
  2007. remark: null,
  2008. membersName: null,
  2009. clientManager: null,
  2010. members: [],
  2011. printing: null,
  2012. printingRemark: null,
  2013. cmobile: null,
  2014. cdepartment: null,
  2015. cduty: null,
  2016. cclienteleName: null,
  2017. cclienteleSubName: null,
  2018. cclienteleContactName: null,
  2019. tmobile: null,
  2020. tterminalClienteleContactName: null,
  2021. tterminalClienteleName: null
  2022. },
  2023. currentNode: {
  2024. flowId: null,
  2025. pnodeId: null,
  2026. nodeId: null,
  2027. flowCode: null,
  2028. nodeName: "",
  2029. nodeCode: null,
  2030. state: "",
  2031. instanceId: null,
  2032. sequence: null,
  2033. restartable: null,
  2034. reversible: null,
  2035. skippable: null,
  2036. terminable: null,
  2037. tasks: []
  2038. },
  2039. majorId: null,
  2040. allotDepartment: [],
  2041. principals: [],
  2042. allUsers: [],
  2043. taskRecordDTO: {
  2044. recordId: null,
  2045. taskData: {}
  2046. },
  2047. evaluateLandData: [],
  2048. takeNumberItems: [],
  2049. landDialogVisible: false,
  2050. houseDialogVisible: false,
  2051. landTarget: {
  2052. id: null,
  2053. majorId: null,
  2054. targetType: null,
  2055. landType: null,
  2056. useAcreage: null,
  2057. rightToUser: null,
  2058. landCertificateNo: null,
  2059. located: null,
  2060. residueYears: null,
  2061. plotRatio: null,
  2062. landUse: null,
  2063. principalId: null,
  2064. sites: [],
  2065. evaluateDate: null,
  2066. remark: null,
  2067. evaluateValue: null,
  2068. checkValue: null,
  2069. evaluateMethods: [],
  2070. housePurpose: [],
  2071. owner: null,
  2072. ownerNo: null,
  2073. targetName: null,
  2074. buildDoneYear: null,
  2075. buildAcreage: null,
  2076. landAcreage: null,
  2077. planPurpose: null,
  2078. realPurpose: null,
  2079. siteLocated: null,
  2080. useRightType: null,
  2081. definedEvaluationMethod: null
  2082. },
  2083. houseToUse: [],
  2084. eMethods: [],
  2085. totalEvaluateValue: 0,
  2086. totalAcreage: 0,
  2087. feedback: {
  2088. majorId: null,
  2089. production: [],
  2090. printing: null,
  2091. printingRemark: null
  2092. },
  2093. workflowLogs: [],
  2094. takeNumberDialog: false,
  2095. year: '2024',
  2096. productions: [],
  2097. waitingUpload: [],
  2098. performance: {
  2099. productionNo: null,
  2100. productionType: null,
  2101. principal: null,
  2102. productionName: null,
  2103. info: [],
  2104. isRecord:null
  2105. },
  2106. savePerformanceBtn: null,
  2107. saveOrderBtn: null,
  2108. customerCompany: [],
  2109. subCustomerCompany: [],
  2110. customerContract: [],
  2111. tCustomerCompany: [],
  2112. tSubCustomerCompany: [],
  2113. tCustomerContract: [],
  2114. warehouseDialog: false,
  2115. scanEntryData: null,
  2116. wareHouseProductionType: null,
  2117. doWare: false,
  2118. doUpload: false,
  2119. wareHouseproductionId: null,
  2120. validFeed: false,
  2121. pickerOptions: {
  2122. disabledDate: (time) => {
  2123. var currentDate = new Date();
  2124. return time.getTime() > currentDate || time.getTime() < currentDate.setFullYear(currentDate.getFullYear() - 3)
  2125. },
  2126. },
  2127. checkFundDialog: false,
  2128. pNode: null,
  2129. chooseSecondCheckerDialog: false,
  2130. secondCheckUserId: null,
  2131. secondCheckUsers: [],
  2132. productionFinance: [],
  2133. showQR:true,
  2134. toMergeNo:null,
  2135. mergeNos:[],
  2136. mergeNoDialog:false,
  2137. normalMistakes:[],
  2138. xNormalMistakes:[],
  2139. fatalMistakes:[],
  2140. xFatalMistakes:[],
  2141. xHardMistakes:[],
  2142. hardMistakes:[],
  2143. notRecordDialog:false,
  2144. passNotRecord:false,
  2145. notRecordRemind:{
  2146. reportNo:null,
  2147. isRecord:null,
  2148. notRecordReason:null
  2149. },
  2150. notSubmitDialog:false,
  2151. notSubmitRemind:{
  2152. reportNo:null,
  2153. isSubmit:null,
  2154. notSubmitReason:null
  2155. },
  2156. passNotSubmit:false
  2157. }
  2158. },
  2159. created() {
  2160. this.nodeBusinessInfo.doWorkflow = this.$route.query.doWorkflow === 'true';
  2161. this.businessMinId = this.$route.query.reportNo;
  2162. this.businessSubId = this.$route.query.statementNo;
  2163. this.majorId = this.$route.query.id;
  2164. this.reportNo = this.$route.query.reportNo;
  2165. this.statementNo = this.$route.query.statementNo;
  2166. this.currentNode.nodeCode = this.$route.query.currentNodeCode;
  2167. this.nodeBusinessInfo.businessId = this.$route.query.id;
  2168. this.nodeBusinessInfo.currentNodeInstanceId = this.$route.query.currentNodeId;
  2169. this.nodeBusinessInfo.businessMinId = this.$route.query.reportNo;
  2170. this.nodeBusinessInfo.businessSubId = this.$route.query.statementNo;
  2171. this.getCurrentNodeInfo();
  2172. this.getMajorDetail();
  2173. if (this.activeTagName === 'order') {
  2174. this.getAllotDepartment();
  2175. }
  2176. if (this.activeTagName === 'evaluate') {
  2177. if (this.major.businessObjectType === '土地') {
  2178. this.getLandTargetList();
  2179. }
  2180. setTimeout(() => {
  2181. this.getProductions(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  2182. }, 1000)
  2183. }
  2184. if (this.activeTagName === 'workflowLog') {
  2185. this.getWorkflowLogs();
  2186. }
  2187. if (this.activeTagName === 'producution') {
  2188. this.getProductions(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  2189. }
  2190. if (this.activeTagName === 'quality') {
  2191. if (this.productions.length == 0) {
  2192. this.getProductions(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  2193. }
  2194. }
  2195. if (this.activeTagName === 'finance' && this.productionFinance.length == 0) {
  2196. this.getFinanceInvoiceAmountInfo();
  2197. }
  2198. this.getPerformance(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  2199. },
  2200. methods: {
  2201. handleClick(tab) {
  2202. if (tab.name === 'order' && this.allotDepartment.length == 0) {
  2203. this.getAllotDepartment();
  2204. }
  2205. if (tab.name === 'evaluate') {
  2206. if (this.evaluateLandData.length == 0) {
  2207. this.getLandTargetList();
  2208. }
  2209. }
  2210. if (tab.name === 'workflowLog') {
  2211. if (this.workflowLogs.length == 0) {
  2212. this.getWorkflowLogs();
  2213. }
  2214. }
  2215. if (tab.name === 'producution') {
  2216. if (this.productions.length == 0) {
  2217. this.getProductions(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  2218. }
  2219. }
  2220. if (tab.name === 'quality') {
  2221. if (this.productions.length == 0) {
  2222. this.getProductions(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  2223. }
  2224. this.getPerformance(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  2225. }
  2226. if (tab.name === 'finance' && this.productionFinance.length == 0) {
  2227. this.getFinanceInvoiceAmountInfo();
  2228. }
  2229. },
  2230. getMajorDetail() {
  2231. if (this.majorId) {
  2232. let majorId = this.majorId;
  2233. let reportNo = this.statementNo;
  2234. this.$api.major.detail(this.majorId).then(res => {
  2235. if (res.code === 200) {
  2236. this.major = res.data;
  2237. this.major.membersId = JSON.parse(this.major.members);
  2238. if (this.major.feedbackInfo) {
  2239. let feedbacks = JSON.parse(this.major.feedbackInfo);
  2240. if (reportNo) {
  2241. this.feedback = feedbacks.filter(function (e, index, array) {
  2242. return e.reportNo === reportNo;
  2243. })[0]
  2244. if (!this.feedback) {
  2245. this.feedback = feedbacks.filter(function (e, index, array) {
  2246. return e.majorId == majorId;
  2247. })[0];
  2248. }
  2249. } else {
  2250. this.feedback = feedbacks.filter(function (e, index, array) {
  2251. return e.majorId == majorId;
  2252. })[0];
  2253. }
  2254. this.nodeBusinessInfo.production = this.feedback.production;
  2255. this.nodeBusinessInfo.ifPay = this.feedback.isPay;
  2256. }
  2257. this.getPrincipalByAllotDepartment();
  2258. this.getAllUser();
  2259. this.$refs.board.getInstanceQueue();
  2260. }
  2261. })
  2262. }
  2263. },
  2264. handleChange() {
  2265. let isPay = this.feedback.isPay;
  2266. if (this.currentNode.nodeCode === 'STATEMENT_FEEDBACK' && isPay != undefined && !isPay) {
  2267. this.nodeBusinessInfo.currentNodePermission.terminable = true;
  2268. this.nodeBusinessInfo.currentNodePermission.commit = false;
  2269. this.$forceUpdate();
  2270. }
  2271. },
  2272. getCurrentNodeInfo() {
  2273. if (this.majorId) {
  2274. this.$api.workNodeInstance.currentNode({ "mainBusiness": "MAJOR_BUSINESS", "businessId": this.majorId, "businessSubId": this.businessSubId, "businessMinId": this.businessMinId }).then(res => {
  2275. if (res.code === 200) {
  2276. if (res.data) {
  2277. this.currentNode = res.data;
  2278. this.nodeBusinessInfo.currentInstanceNodeId = res.data.instanceId;
  2279. this.nodeBusinessInfo.currentNodeInstanceCode = res.data.nodeCode;
  2280. this.nodeBusinessInfo.currentNodePermission.restartable = res.data.restartable;
  2281. this.nodeBusinessInfo.currentNodePermission.reversible = res.data.reversible;
  2282. this.nodeBusinessInfo.currentNodePermission.skippable = res.data.skippable;
  2283. this.nodeBusinessInfo.currentNodePermission.terminable = res.data.terminable;
  2284. }
  2285. }
  2286. })
  2287. }
  2288. },
  2289. getAllotDepartment() {
  2290. this.$api.department.allot('MAJOR_BUSINESS').then(res => {
  2291. if (res.code === 200) {
  2292. this.allotDepartment = res.data;
  2293. }
  2294. })
  2295. },
  2296. getPrincipalByAllotDepartment() {
  2297. let departmentId = this.major.departmentId;
  2298. if (departmentId) {
  2299. this.$api.user.usersByDepartmentId(departmentId).then(res => {
  2300. if (res.code === 200) {
  2301. this.principals = res.data;
  2302. }
  2303. })
  2304. }
  2305. },
  2306. getAllUser() {
  2307. this.$api.user.simpleAll().then(res => {
  2308. if (res.code === 200) {
  2309. let principals = this.principals;
  2310. let all = res.data;
  2311. let arr = principals.concat(all);
  2312. let obj = {}
  2313. arr = arr.reduce((pre, next) => {
  2314. obj[next.id] ? null : (obj[next.id] = true && pre.push(next))
  2315. return pre;
  2316. }, [])
  2317. this.allUsers = arr;
  2318. }
  2319. })
  2320. },
  2321. handleCreate() {
  2322. this.$refs.majorForm.validate(valid => {
  2323. if (valid) {
  2324. if (this.major.id) {
  2325. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2326. this.taskRecordDTO.taskData = this.major;
  2327. this.$api.major.allocation(this.taskRecordDTO).then(res => {
  2328. if (res.code === 200 && res.data) {
  2329. this.$notify({
  2330. title: '成功',
  2331. message: '保存成功,请提交节点继续流程。',
  2332. type: 'success',
  2333. duration: 1000,
  2334. offset: 100
  2335. });
  2336. }
  2337. })
  2338. }
  2339. }
  2340. })
  2341. },
  2342. handleSelectionChange(val) {
  2343. let pickeds = [];
  2344. for (let i in val) {
  2345. let picked = new Object();
  2346. picked.id = val[i].id;
  2347. picked.amount = val[i].checkValue;
  2348. picked.name = val[i].statementNo;
  2349. if (this.major.businessObjectType === '土地') {
  2350. picked.acreage = val[i].useAcreage;
  2351. } else {
  2352. picked.acreage = val[i].buildAcreage;
  2353. }
  2354. pickeds.push(picked);
  2355. }
  2356. this.takeNumberItems = pickeds;
  2357. },
  2358. getLandTargetList() {
  2359. if (this.majorId) {
  2360. const obj = new Object();
  2361. obj.majorId = this.majorId;
  2362. obj.statementNo = this.statementNo;
  2363. if (this.feedback.production.includes("REPORT")) {
  2364. obj.reportNo = this.reportNo;
  2365. } else {
  2366. obj.letterNo = this.reportNo;
  2367. }
  2368. this.$api.majorTarget.list(obj).then(res => {
  2369. if (res.code === 200) {
  2370. this.evaluateLandData = res.data;
  2371. let totalAcreages = [];
  2372. let totalValues = this.evaluateLandData.map(item => item.evaluateValue);
  2373. if (this.major.businessObjectType === '土地') {
  2374. totalAcreages = this.evaluateLandData.map(item => item.useAcreage);
  2375. } else {
  2376. totalAcreages = this.evaluateLandData.map(item => item.buildAcreage);
  2377. }
  2378. for (let i in totalValues) {
  2379. if (totalValues[i] != null && typeof (totalValues[i]) != 'undefined') {
  2380. this.totalEvaluateValue += totalValues[i];
  2381. }
  2382. }
  2383. for (let j in totalAcreages) {
  2384. if (totalAcreages[j] != null && typeof (totalAcreages[j]) != 'undefined') {
  2385. this.totalAcreage += totalAcreages[j];
  2386. }
  2387. }
  2388. }
  2389. })
  2390. }
  2391. },
  2392. openLandDialog(targetType) {
  2393. if (targetType === '土地') {
  2394. this.landDialogVisible = true;
  2395. } else {
  2396. this.houseDialogVisible = true;
  2397. }
  2398. this.landTarget.majorId = this.major.id;
  2399. this.landTarget.principalId = this.major.principalId;
  2400. this.landTarget.sites = this.major.membersId;
  2401. this.landTarget.owner = this.major.owner;
  2402. this.eMethods = [];
  2403. },
  2404. saveLandTarget(targetType) {
  2405. let isOk = true;
  2406. this.landTarget.eMethods = this.eMethods;
  2407. if (targetType === '土地') {
  2408. this.$refs.landFrom.validate(valid => {
  2409. if (!valid) {
  2410. isOk = false;
  2411. }
  2412. this.landTarget.targetType = '土地';
  2413. })
  2414. }
  2415. if (targetType === '房地产') {
  2416. this.$refs.houseFrom.validate(valid => {
  2417. if (!valid) {
  2418. isOk = false;
  2419. }
  2420. this.landTarget.targetType = '房地产';
  2421. })
  2422. }
  2423. if (isOk) {
  2424. if (this.landTarget.majorId) {
  2425. if (!this.landTarget.id) {
  2426. this.landTarget.housePurpose = JSON.stringify(this.houseToUse);
  2427. this.landTarget.evaluateMethods = JSON.stringify(this.eMethods);
  2428. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2429. this.taskRecordDTO.taskData = this.landTarget;
  2430. this.$api.majorTarget.add(this.taskRecordDTO).then(res => {
  2431. if (res.code === 200 && res.data) {
  2432. this.$notify({
  2433. title: '成功',
  2434. message: '若还有估价对象请继续添加,没有则请提交节点继续流程。',
  2435. type: 'success',
  2436. duration: 2000,
  2437. offset: 100
  2438. });
  2439. this.getLandTargetList();
  2440. this.landDialogVisible = false;
  2441. this.houseDialogVisible = false;
  2442. this.taskRecordDTO = {};
  2443. }
  2444. else {
  2445. this.$notify({
  2446. title: '失败',
  2447. message: '估价对象添加失败。',
  2448. type: 'error',
  2449. duration: 1000,
  2450. offset: 100
  2451. });
  2452. }
  2453. })
  2454. }
  2455. else {
  2456. this.editLandTarget();
  2457. }
  2458. } else {
  2459. this.$notify({
  2460. title: '提示',
  2461. message: '项目id不存在,请联系技术管理员。',
  2462. type: 'info',
  2463. duration: 1000,
  2464. offset: 100
  2465. });
  2466. }
  2467. }
  2468. },
  2469. landTargetEdit(row) {
  2470. if (row.targetType === '土地') {
  2471. this.landDialogVisible = true;
  2472. } else {
  2473. this.houseDialogVisible = true;
  2474. }
  2475. this.landTarget = Object.assign({}, row);
  2476. this.landTarget.sites = JSON.parse(this.landTarget.siteIds);
  2477. this.eMethods = [];
  2478. if (JSON.parse(this.landTarget.evaluateMethods)) {
  2479. this.eMethods = JSON.parse(this.landTarget.evaluateMethods);
  2480. }
  2481. if (this.landTarget.housePurpose) {
  2482. this.houseToUse = JSON.parse(this.landTarget.housePurpose);
  2483. }
  2484. },
  2485. landTargetRemove(id) {
  2486. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2487. this.taskRecordDTO.taskData = id;
  2488. if (id) {
  2489. this.$confirm('确认删除当前估价对象吗', '警告', {
  2490. confirmButtonText: '确认',
  2491. cancelButtonText: '取消',
  2492. type: 'warning',
  2493. }).then(async () =>
  2494. this.$api.majorTarget.delete(this.taskRecordDTO)
  2495. .then(res => {
  2496. if (res.code === 200 && res.data) {
  2497. this.$notify({
  2498. title: '提示',
  2499. message: '估价对象删除成功',
  2500. type: 'success',
  2501. duration: 1000,
  2502. offset: 100
  2503. });
  2504. this.getLandTargetList();
  2505. } else {
  2506. this.$notify({
  2507. title: '失败',
  2508. message: '估价对象删除失败。',
  2509. type: 'error',
  2510. duration: 1000,
  2511. offset: 100
  2512. });
  2513. }
  2514. })
  2515. )
  2516. }
  2517. },
  2518. doTask(currentNodeCode) {
  2519. if (currentNodeCode === 'INITIAL_PRICE') {
  2520. let values = this.evaluateLandData.map(item => item.evaluateValue)
  2521. if (this.eMethods.length == 0) {
  2522. this.$notify({
  2523. title: '失败',
  2524. message: '评估方法不能为空',
  2525. type: 'info',
  2526. duration: 1000,
  2527. offset: 100
  2528. });
  2529. return;
  2530. }
  2531. if (!this.landTarget.definedEvaluationMethod && this.eMethods.includes('其他')) {
  2532. console.log(this.landTarget.definedEvaluationMethod);
  2533. this.$notify({
  2534. title: '失败',
  2535. message: '请填写其他评估方法',
  2536. type: 'info',
  2537. duration: 1000,
  2538. offset: 100
  2539. });
  2540. return;
  2541. }
  2542. if (this.major.businessObjectType === '房地产' && this.houseToUse.length == 0) {
  2543. this.$notify({
  2544. title: '失败',
  2545. message: '房屋用途不能为空',
  2546. type: 'info',
  2547. duration: 1000,
  2548. offset: 100
  2549. });
  2550. return;
  2551. }
  2552. this.landTarget.evaluateMethods = JSON.stringify(this.eMethods);
  2553. this.landTarget.housePurpose = JSON.stringify(this.houseToUse);
  2554. if (values.includes(null)) {
  2555. this.editLandTarget();
  2556. return;
  2557. } else {
  2558. this.doTaskLandCommon();
  2559. return;
  2560. }
  2561. }
  2562. if (currentNodeCode === 'REVIEW_QUOTATION') {
  2563. let checkeds = this.evaluateLandData.map(item => item.checked);
  2564. if (this.eMethods.length == 0) {
  2565. this.$notify({
  2566. title: '失败',
  2567. message: '评估方法不能为空',
  2568. type: 'info',
  2569. duration: 1000,
  2570. offset: 100
  2571. });
  2572. return;
  2573. }
  2574. if (!this.landTarget.definedEvaluationMethod && this.eMethods.includes('其他')) {
  2575. this.$notify({
  2576. title: '失败',
  2577. message: '请填写其他评估方法',
  2578. type: 'info',
  2579. duration: 1000,
  2580. offset: 100
  2581. });
  2582. return;
  2583. }
  2584. this.landTarget.evaluateMethods = JSON.stringify(this.eMethods);
  2585. if (checkeds.includes(null)) {
  2586. this.editLandTarget();
  2587. return;
  2588. } else {
  2589. this.doTaskLandCommon();
  2590. return;
  2591. }
  2592. }
  2593. },
  2594. editLandTarget() {
  2595. if (this.currentNode.nodeCode === 'REVIEW_QUOTATION' && !this.landTarget.checkValue) {
  2596. this.landTarget.checkValue = this.landTarget.evaluateValue;
  2597. }
  2598. this.landTarget.housePurpose = JSON.stringify(this.houseToUse);
  2599. this.landTarget.evaluateMethods = JSON.stringify(this.eMethods);
  2600. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2601. this.taskRecordDTO.taskData = this.landTarget;
  2602. this.$api.majorTarget.edit(this.taskRecordDTO).then(res => {
  2603. if (res.code === 200 && res.data) {
  2604. this.$notify({
  2605. title: '成功',
  2606. message: '估价对象修改编辑成功。',
  2607. type: 'success',
  2608. duration: 1000,
  2609. offset: 100
  2610. });
  2611. this.getLandTargetList();
  2612. this.landDialogVisible = false;
  2613. this.houseDialogVisible = false;
  2614. this.taskRecordDTO = {};
  2615. }
  2616. else {
  2617. this.$notify({
  2618. title: '失败',
  2619. message: '估价对象编辑失败。',
  2620. type: 'error',
  2621. duration: 1000,
  2622. offset: 100
  2623. });
  2624. }
  2625. })
  2626. },
  2627. hanlderType() {
  2628. if (this.currentNode) {
  2629. if (this.currentNode.nodeCode === 'SPOT_RECONNAISSANCE') {
  2630. return "编辑";
  2631. }
  2632. if (this.currentNode.nodeCode === 'INITIAL_PRICE') {
  2633. return "定价";
  2634. }
  2635. if (this.currentNode.nodeCode === 'REVIEW_QUOTATION') {
  2636. return "审核定价";
  2637. }
  2638. if (this.couldAddTarget){
  2639. return "新增";
  2640. }
  2641. return "查看";
  2642. }
  2643. },
  2644. doTaskLandCommon() {
  2645. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2646. this.taskRecordDTO.taskData = this.landTarget;
  2647. this.$api.majorTarget.doTask(this.taskRecordDTO).then(res => {
  2648. if (res.code === 200 && res.data) {
  2649. this.$notify({
  2650. title: '成功',
  2651. message: '估价对象操作成功,请提交节点继续流程。',
  2652. type: 'success',
  2653. duration: 2000,
  2654. offset: 100
  2655. });
  2656. this.getLandTargetList();
  2657. this.landDialogVisible = false;
  2658. this.houseDialogVisible = false;
  2659. this.taskRecordDTO = {};
  2660. }
  2661. else {
  2662. this.$notify({
  2663. title: '失败',
  2664. message: '估价对象操作失败。',
  2665. type: 'error',
  2666. duration: 1000,
  2667. offset: 100
  2668. });
  2669. }
  2670. })
  2671. },
  2672. saveFeedback() {
  2673. let majorId = this.major.id;
  2674. if (majorId) {
  2675. this.feedback.majorId = majorId;
  2676. this.$refs.feedbackFrom.validate(valid => {
  2677. if (valid) {
  2678. //如果已取号,并且在价值意见书送达反馈节点。 保存 的意见反馈产品信息,需另存
  2679. if (this.currentNode.nodeCode === 'STATEMENT_FEEDBACK') {
  2680. this.feedback.reportNo = this.statementNo;
  2681. if (this.feedback.production.length === 1) {
  2682. this.$message({
  2683. message: '警告,请更新客户反馈信息(后续需出具的产品类型。若不出具,请选择“不再出具”)',
  2684. type: 'error'
  2685. });
  2686. return;
  2687. }
  2688. //如果选择不再出具,则检查该产品是否认领实收款
  2689. if (this.feedback.production.includes("NONE")) {
  2690. const pro = new Object();
  2691. pro.businessId = majorId;
  2692. pro.productionNo = this.feedback.reportNo;
  2693. pro.businessType = "MAJOR_BUSINESS";
  2694. pro.productionType = "STATEMENT"
  2695. this.$api.productionFund.checkFund(pro).then(res => {
  2696. if (res.code === 200 && res.data.realAmount === 0) {
  2697. this.checkFundDialog = true;
  2698. } else {
  2699. this.doSaveFeedBack(true);
  2700. }
  2701. })
  2702. } else {
  2703. this.doSaveFeedBack();
  2704. }
  2705. } else {
  2706. this.doSaveFeedBack();
  2707. }
  2708. }
  2709. })
  2710. }
  2711. },
  2712. doSaveFeedBack(isPay) {
  2713. this.feedback.isPay = isPay;
  2714. if (isPay === undefined) {
  2715. this.nodeBusinessInfo.currentNodePermission.terminable = false;
  2716. this.nodeBusinessInfo.currentNodePermission.commit = true;
  2717. }
  2718. if (isPay != undefined && !isPay) {
  2719. this.nodeBusinessInfo.currentNodePermission.terminable = true;
  2720. this.nodeBusinessInfo.currentNodePermission.commit = false;
  2721. }
  2722. if (isPay != undefined && isPay) {
  2723. this.nodeBusinessInfo.currentNodePermission.terminable = false;
  2724. this.nodeBusinessInfo.currentNodePermission.commit = true;
  2725. }
  2726. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  2727. this.taskRecordDTO.taskData = this.feedback;
  2728. this.$api.major.feedback(this.taskRecordDTO).then(res => {
  2729. if (res.code === 200 && res.data) {
  2730. this.$notify({
  2731. title: '成功',
  2732. message: '保存客户反馈信息成功,请提交节点继续流程',
  2733. type: 'success',
  2734. duration: 1000,
  2735. offset: 100
  2736. });
  2737. this.checkFundDialog = false;
  2738. this.nodeBusinessInfo.production = this.feedback.production;
  2739. this.nodeBusinessInfo.ifPay = this.feedback.isPay;
  2740. this.$refs.board.getInstanceQueue();
  2741. this.taskRecordDTO = {};
  2742. this.$refs.board.commit('PASS');
  2743. } else {
  2744. this.$notify({
  2745. title: '失败',
  2746. message: '保存客户反馈信息失败,请联系系统管理员',
  2747. type: 'error',
  2748. duration: 1000,
  2749. offset: 100
  2750. });
  2751. }
  2752. })
  2753. },
  2754. getWorkflowLogs() {
  2755. let param = {
  2756. businessId: this.majorId,
  2757. businessSubId: this.statementNo,
  2758. businessMinId: this.reportNo,
  2759. businessType: 'MAJOR_BUSINESS'
  2760. }
  2761. this.$api.workflowLog.list(param).then(res => {
  2762. if (res.code === 200) {
  2763. this.workflowLogs = res.data;
  2764. }
  2765. })
  2766. },
  2767. takeNumber() {
  2768. if (!this.year) {
  2769. this.$notify({
  2770. title: '警告',
  2771. message: '取号年份未选择,请选择再取号。',
  2772. type: 'warning',
  2773. duration: 1000,
  2774. offset: 100
  2775. });
  2776. return;
  2777. }
  2778. let takeNumberDTO = {
  2779. businessId: this.majorId,
  2780. businessType: "MAJOR_BUSINESS",
  2781. takeType: this.major.businessObjectType === '土地' ? 'LAND_NUMBER' : 'REALTY_NUMBER',
  2782. targets: this.takeNumberItems,
  2783. year: this.year,
  2784. productionType: "REPORT",
  2785. statementNo:this.statementNo
  2786. }
  2787. this.$api.majorTarget.takeNumber(takeNumberDTO).then(res => {
  2788. if (res.code === 200 && res.data != null) {
  2789. this.$notify({
  2790. title: '成功',
  2791. message: '取号成功。',
  2792. type: 'success',
  2793. duration: 1000,
  2794. offset: 100
  2795. });
  2796. this.getLandTargetList();
  2797. this.createProduction(res.data);
  2798. this.taskRecordDTO = {};
  2799. this.takeNumberDialog = false;
  2800. } else {
  2801. this.$notify({
  2802. title: '失败',
  2803. message: '取号失败。',
  2804. type: 'error',
  2805. duration: 1000,
  2806. offset: 100
  2807. });
  2808. }
  2809. })
  2810. },
  2811. createProduction(productionNo) {
  2812. let productionType = 'STATEMENT';
  2813. if (this.currentNode.nodeCode === 'WRITE_REPORT') {
  2814. productionType = 'REPORT';
  2815. }
  2816. if (this.currentNode.nodeCode === 'WRITE_LETTER') {
  2817. productionType = 'LETTER';
  2818. }
  2819. if (productionNo) {
  2820. let totalAcreage = 0;
  2821. let totalAmount = 0;
  2822. this.takeNumberItems.map(item => item.acreage).map(function (e) {
  2823. totalAcreage += e;
  2824. });
  2825. this.takeNumberItems.map(item => item.amount).map(function (e) {
  2826. totalAmount += e;
  2827. })
  2828. let production = new Object();
  2829. production.majorId = this.majorId;
  2830. production.reportNo = productionNo;
  2831. production.production = productionType;
  2832. production.evaluateAcreage = totalAcreage;
  2833. production.evaluateAmount = totalAmount * 10000;
  2834. production.clientName = this.major.bailor;
  2835. production.clientTel = this.major.bailorContactTel;
  2836. production.clientAddress = this.major.bailorAddress;
  2837. production.owner = this.major.owner;
  2838. production.name = this.major.name;
  2839. production.statementNo = this.takeNumberItems[0].name;
  2840. if (totalAcreage != 0) {
  2841. production.evaluatePrice = (totalAmount * 10000 / totalAcreage).toFixed(4);
  2842. } else {
  2843. production.evaluatePrice = 0;
  2844. }
  2845. this.$api.majorProduction.add(production).then(res => {
  2846. if (res.code === 200 && res.data) {
  2847. this.$notify({
  2848. title: '成功',
  2849. message: '产品创建成功,请完善产品信息。',
  2850. type: 'success',
  2851. duration: 2000,
  2852. offset: 100
  2853. });
  2854. this.takeNumberItems = []
  2855. this.getProductions(this.majorId, null);
  2856. this.nodeBusinessInfo.reportNos.push(productionNo);
  2857. } else {
  2858. this.$notify({
  2859. title: '失败',
  2860. message: '产品创建失败,请联系系统管理员。',
  2861. type: 'error',
  2862. duration: 2000,
  2863. offset: 100
  2864. });
  2865. }
  2866. })
  2867. } else {
  2868. console.log("reportNo is null")
  2869. }
  2870. },
  2871. getProductions(majorId, reportNo) {
  2872. let productionType = 'STATEMENT';
  2873. let currentNodeCode = this.currentNode.nodeCode;
  2874. if (currentNodeCode.includes("REPORT")) {
  2875. productionType = 'REPORT';
  2876. }
  2877. if (currentNodeCode.includes("LETTER")) {
  2878. productionType = 'LETTER';
  2879. }
  2880. if (currentNodeCode === 'CHECK_ARCHIVING' || currentNodeCode === 'RECHECK_ARCHIVING') {
  2881. let productionTypes = this.feedback.production.filter(function (e) {
  2882. return e != 'STATEMENT';
  2883. })
  2884. productionType = productionTypes[0];
  2885. }
  2886. let afterProduction = null;
  2887. if (this.feedback.production.length > 1 && (currentNodeCode === 'WRITE_REPORT' || currentNodeCode === 'WRITE_LETTER')) {
  2888. afterProduction = this.feedback.production[(this.feedback.production.length) - 1]
  2889. }
  2890. if (majorId) {
  2891. let pro = {
  2892. majorId: majorId,
  2893. reportNo: reportNo,
  2894. sequence: this.currentNode.sequence,
  2895. production: productionType,
  2896. afterProduction: afterProduction
  2897. }
  2898. this.$api.majorProduction.list(pro).then(res => {
  2899. if (res.code === 200) {
  2900. this.productions = res.data;
  2901. if (this.productions.length > 0) {
  2902. this.nodeBusinessInfo.doSecondCheck = this.productions[0].secondCheck;
  2903. this.nodeBusinessInfo.doThirdCheck = this.productions[0].thirdCheck;
  2904. }
  2905. //回显上传的文档
  2906. for (let p in this.productions) {
  2907. let d = JSON.parse(this.productions[p].filePath);
  2908. let c = JSON.parse(this.productions[p].checkedFilePath);
  2909. for (let q in d) {
  2910. this.productions[p].filePathList.push({ name: d[q].name, url: d[q].url, index: p });
  2911. }
  2912. for (let cc in c) {
  2913. this.productions[p].filePathList1.push({ name: c[cc].name, url: c[cc].url, index: p });
  2914. }
  2915. }
  2916. //显示出入库操作按钮
  2917. let wareHoseNodes = ['STATEMENT_IN', 'STATEMENT_OUT', 'REPORT_IN', 'REPORT_OUT', 'LETTER_IN', 'LETTER_OUT']
  2918. if (wareHoseNodes.includes(currentNodeCode)) {
  2919. this.doWare = true;
  2920. }
  2921. //显示上传附件按钮
  2922. let writeNodes = ['WRITE_STATEMENT', 'WRITE_REPORT', 'WRITE_LETTER', 'CHECK_STATEMENT', 'CHECK_REPORT', 'CHECK_LETTER'
  2923. , 'RECHECK_STATEMENT', 'THIRD_CHECK_STATEMENT', 'RECHECK_REPORT', 'THIRD_CHECK_REPORT', 'RECHECK_LETTER', 'THIRD_CHECK_LETTER']
  2924. if (writeNodes.includes(currentNodeCode)) {
  2925. this.doUpload = true;
  2926. }
  2927. //默认展开第一行
  2928. setTimeout(() => {
  2929. this.defaultExpandOpen();
  2930. }, 500);
  2931. }
  2932. })
  2933. }
  2934. },
  2935. saveProduction(production) {
  2936. //判断当前节点,确定调用后端接口
  2937. let nodeCode = this.currentNode.nodeCode;
  2938. switch (nodeCode) {
  2939. case 'WRITE_STATEMENT':
  2940. case 'WRITE_REPORT':
  2941. case 'WRITE_LETTER':
  2942. case 'CHECK_STATEMENT':
  2943. case 'CHECK_REPORT':
  2944. case 'CHECK_LETTER':
  2945. case 'RECHECK_STATEMENT':
  2946. case 'RECHECK_REPORT':
  2947. case 'RECHECK_LETTER':
  2948. case 'THIRD_CHECK_STATEMENT':
  2949. case 'THIRD_CHECK_REPORT':
  2950. case 'THIRD_CHECK_LETTER':
  2951. this.caseEditProduction(production);
  2952. break;
  2953. case 'CHECK_ARCHIVING':
  2954. this.caseCheckArchiving(production);
  2955. break;
  2956. case 'RECHECK_ARCHIVING':
  2957. this.caseRecheckArchiving(production);
  2958. break;
  2959. }
  2960. },
  2961. aliasProductionType(code) {
  2962. let name = '价值意见书';
  2963. if (code === 'REPORT') {
  2964. name = '报告';
  2965. }
  2966. if (code === 'LETTER') {
  2967. name = '复评函';
  2968. }
  2969. return name;
  2970. },
  2971. changeres(res, file, fileList) {
  2972. let index = fileList[0].index;
  2973. if (typeof (index) === 'undefined') {
  2974. index = (this.productions.length) - 1;
  2975. }
  2976. if (res.code === 200) {
  2977. this.productions[index].filePathList = [];
  2978. for (let i in fileList) {
  2979. if (fileList[i].response) {
  2980. this.productions[index].filePathList.push({ name: fileList[i].name, url: fileList[i].response.data.url });
  2981. } else {
  2982. this.productions[index].filePathList.push({ name: fileList[i].name, url: fileList[i].url });
  2983. }
  2984. }
  2985. this.productions[index].filePath = JSON.stringify(this.productions[index].filePathList);
  2986. } else {
  2987. this.$notify({
  2988. title: '错误',
  2989. message: '产品上传失败',
  2990. type: 'error',
  2991. duration: 2000,
  2992. offset: 100
  2993. });
  2994. fileList.pop();
  2995. }
  2996. },
  2997. changeres1(res, file, fileList) {
  2998. let index = fileList[0].index;
  2999. if (typeof (index) === 'undefined') {
  3000. index = (this.productions.length) - 1;
  3001. }
  3002. if (res.code === 200) {
  3003. this.productions[index].filePathList1 = [];
  3004. for (let i in fileList) {
  3005. if (fileList[i].response) {
  3006. this.productions[index].filePathList1.push({ name: fileList[i].name, url: fileList[i].response.data.url });
  3007. } else {
  3008. this.productions[index].filePathList1.push({ name: fileList[i].name, url: fileList[i].url });
  3009. }
  3010. }
  3011. this.productions[index].checkedFilePath = JSON.stringify(this.productions[index].filePathList1);
  3012. } else {
  3013. this.$notify({
  3014. title: '错误',
  3015. message: '产品上传失败',
  3016. type: 'error',
  3017. duration: 2000,
  3018. offset: 100
  3019. });
  3020. fileList.pop();
  3021. }
  3022. },
  3023. handleExceed(files, fileList) {
  3024. this.$message.warning(`当前限制选择 3个文件,本次选择了 ${files.length} 个文件`);
  3025. },
  3026. handleAttachmentPreview(file) {
  3027. // window.open(file.url)
  3028. this.officeFileView(file.name, file.url);
  3029. },
  3030. beforeRemove(file, fileList) {
  3031. let index = fileList[0].index;
  3032. if (typeof (index) === 'undefined') {
  3033. index = (this.productions.length) - 1;
  3034. }
  3035. let paths = JSON.parse(this.productions[index].filePath);
  3036. let xPaths = paths.filter(item => item.url !== file.url);
  3037. this.productions[index].filePath = JSON.stringify(xPaths);
  3038. },
  3039. beforeRemove1(file, fileList) {
  3040. let index = fileList[0].index;
  3041. if (typeof (index) === 'undefined') {
  3042. index = (this.productions.length) - 1;
  3043. }
  3044. let paths = JSON.parse(this.productions[index].checkedFilePath);
  3045. let xPaths = paths.filter(item => item.url !== file.url);
  3046. this.productions[index].checkedFilePath = JSON.stringify(xPaths);
  3047. },
  3048. caseEditProduction(production) {
  3049. const prodFrom = eval('this.$refs.productionFrom' + production.id);
  3050. if (prodFrom) {
  3051. prodFrom.validate(valid => {
  3052. if (valid) {
  3053. production.evaluateAmount = production.evaluateAmount*10000;
  3054. if (production.id) {
  3055. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3056. this.taskRecordDTO.taskData = production;
  3057. this.$api.majorProduction.edit(this.taskRecordDTO).then(res => {
  3058. if (res.code === 200 && res.data) {
  3059. this.$notify({
  3060. title: '成功',
  3061. message: '产品信息更新成功',
  3062. type: 'success',
  3063. duration: 1000,
  3064. offset: 100
  3065. });
  3066. this.taskRecordDTO = {};
  3067. this.getProductions(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  3068. this.getPerformance(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  3069. } else {
  3070. this.$notify({
  3071. title: '失败',
  3072. message: '产品信息完善失败',
  3073. type: 'error',
  3074. duration: 1000,
  3075. offset: 100
  3076. });
  3077. }
  3078. })
  3079. }
  3080. }
  3081. })
  3082. }
  3083. },
  3084. caseFirstCheck(production) {
  3085. if (production.id) {
  3086. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3087. let checker = new Object();
  3088. checker.id = production.id;
  3089. checker.result = production.firstCheck;
  3090. this.taskRecordDTO.taskData = checker;
  3091. this.$api.majorProduction.firstCheck(this.taskRecordDTO).then(res => {
  3092. if (res.code === 200 && res.data) {
  3093. this.$notify({
  3094. title: '成功',
  3095. message: '初审状态已更新,请点击提交按钮继续流程。',
  3096. type: 'success',
  3097. duration: 2000,
  3098. offset: 100
  3099. });
  3100. }
  3101. })
  3102. }
  3103. },
  3104. caseSecondCheck(production) {
  3105. if (production.id) {
  3106. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3107. let checker = new Object();
  3108. checker.id = production.id;
  3109. checker.result = production.secondCheck;
  3110. this.taskRecordDTO.taskData = checker;
  3111. this.$api.majorProduction.secondCheck(this.taskRecordDTO).then(res => {
  3112. if (res.code === 200 && res.data) {
  3113. this.$notify({
  3114. title: '成功',
  3115. message: '复审状态已更新,请点击提交按钮继续流程。',
  3116. type: 'success',
  3117. duration: 2000,
  3118. offset: 100
  3119. });
  3120. }
  3121. })
  3122. }
  3123. },
  3124. caseThirdCheck(production) {
  3125. if (production.id) {
  3126. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3127. let checker = new Object();
  3128. checker.id = production.id;
  3129. checker.result = production.thirdCheck;
  3130. this.taskRecordDTO.taskData = checker;
  3131. this.$api.majorProduction.thirdCheck(this.taskRecordDTO).then(res => {
  3132. if (res.code === 200 && res.data) {
  3133. this.$notify({
  3134. title: '成功',
  3135. message: '三审状态已更新,请点击提交按钮继续流程。',
  3136. type: 'success',
  3137. duration: 2000,
  3138. offset: 100
  3139. });
  3140. }
  3141. })
  3142. }
  3143. },
  3144. caseCheckArchiving(production) {
  3145. if (production.id) {
  3146. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3147. let checker = new Object();
  3148. checker.id = production.id;
  3149. checker.check = production.saveFileCheck;
  3150. this.taskRecordDTO.taskData = checker;
  3151. this.$api.majorProduction.saveFileCheck(this.taskRecordDTO).then(res => {
  3152. if (res.code === 200 && res.data) {
  3153. this.$notify({
  3154. title: '成功',
  3155. message: '归档状态已更新,请点击提交按钮继续流程。',
  3156. type: 'success',
  3157. duration: 2000,
  3158. offset: 100
  3159. });
  3160. }
  3161. })
  3162. }
  3163. },
  3164. caseRecheckArchiving(production) {
  3165. if (production.id) {
  3166. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3167. let checker = new Object();
  3168. checker.id = production.id;
  3169. checker.check = production.saveFileSecondCheck;
  3170. this.taskRecordDTO.taskData = checker;
  3171. this.$api.majorProduction.saveFileSecondCheck(this.taskRecordDTO).then(res => {
  3172. if (res.code === 200 && res.data) {
  3173. this.$notify({
  3174. title: '成功',
  3175. message: '复审部归档状态已更新,请点击提交按钮继续流程。',
  3176. type: 'success',
  3177. duration: 2000,
  3178. offset: 100
  3179. });
  3180. }
  3181. })
  3182. }
  3183. },
  3184. selectioProductionChange(val) {
  3185. let selected = null;
  3186. if (val.length > 1) {
  3187. this.$refs.pTable.clearSelection();
  3188. this.$refs.pTable.toggleRowSelection(val[val.length - 1])
  3189. selected = val[val.length - 1];
  3190. } else {
  3191. if (typeof val[0] != 'undefined') {
  3192. selected = val[0];
  3193. }
  3194. }
  3195. if (selected) {
  3196. let po = this.productions.filter(function (i) {
  3197. return i.id != selected.id;
  3198. }).filter(function (e) {
  3199. return e.nextInstanceNodeId == null
  3200. })
  3201. if (po.length != 0) {
  3202. this.nodeBusinessInfo.ifCheckTask = false;
  3203. } else {
  3204. this.nodeBusinessInfo.ifCheckTask = true;
  3205. }
  3206. if (this.currentNode.nodeCode === 'WRITE_STATEMENT') {
  3207. this.nodeBusinessInfo.businessSubId = selected.reportNo;
  3208. }
  3209. if (this.currentNode.nodeCode === 'WRITE_REPORT' || this.currentNode.nodeCode === 'WRITE_LETTER') {
  3210. this.nodeBusinessInfo.businessSubId = this.businessSubId;
  3211. this.nodeBusinessInfo.businessMinId = selected.reportNo;
  3212. }
  3213. this.nodeBusinessInfo.reportNos = [selected.reportNo]
  3214. } else {
  3215. this.nodeBusinessInfo.ifCheckTask = true;
  3216. this.nodeBusinessInfo.businessSubId = null;
  3217. this.nodeBusinessInfo.businessMinId = null;
  3218. this.nodeBusinessInfo.reportNos = [];
  3219. }
  3220. },
  3221. workflowCommitVerify(val, callback) {
  3222. let commit = val.commit;
  3223. let verify = new Object();
  3224. verify.state = true;
  3225. verify.nextHandlerId = this.secondCheckUserId;
  3226. verify.passNotRecord = this.passNotRecord;
  3227. verify.passNotSubmit = this.passNotSubmit;
  3228. let nodeCode = this.currentNode.nodeCode;
  3229. if (commit.state === 'PASS') {
  3230. this.getProductions(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  3231. switch (nodeCode) {
  3232. case 'WRITE_STATEMENT':
  3233. let notTakeNumberTargets = this.evaluateLandData.filter(function (e) {
  3234. return e.statementNo == null;
  3235. })
  3236. if (notTakeNumberTargets.length > 0) {
  3237. this.$notify({
  3238. title: '提示',
  3239. message: '还有价值意见书号未取的估价对象,请先完成取号操作。',
  3240. type: 'error',
  3241. duration: 3000,
  3242. offset: 100
  3243. });
  3244. verify.state = false;
  3245. callback(verify);
  3246. return;
  3247. }
  3248. if (typeof (commit.businessSubId) == 'undefined' || commit.businessSubId == null || commit.ifCheckTask == null) {
  3249. this.$notify({
  3250. title: '提示',
  3251. message: '请选择一个产品后,再进行流程提交。',
  3252. type: 'error',
  3253. duration: 3000,
  3254. offset: 100
  3255. });
  3256. verify.state = false;
  3257. callback(verify);
  3258. return;
  3259. }
  3260. let selected = this.productions.filter(function (e) {
  3261. return e.reportNo === commit.businessSubId
  3262. })
  3263. if (!selected[0].name || !selected[0].clientName || !selected[0].clientTel || !selected[0].clientAddress || !selected[0].evaluateAmount || !selected[0].evaluateAcreage
  3264. || !selected[0].owner || !selected[0].valueTiming) {
  3265. this.$notify({
  3266. title: '提示',
  3267. message: '请完成所选产品的基本信息后,再进行流程提交。',
  3268. type: 'error',
  3269. duration: 3000,
  3270. offset: 100
  3271. });
  3272. verify.state = false;
  3273. callback(verify);
  3274. return;
  3275. }
  3276. break;
  3277. case 'WRITE_REPORT':
  3278. let notTakeReportNoTargets = this.evaluateLandData.filter(function (e) {
  3279. return e.reportNo == null;
  3280. })
  3281. if (notTakeReportNoTargets.length > 0) {
  3282. this.$notify({
  3283. title: '提示',
  3284. message: '还有报告号未取的估价对象,请先完成取号操作。',
  3285. type: 'error',
  3286. duration: 3000
  3287. });
  3288. verify.state = false;
  3289. callback(verify);
  3290. return;
  3291. }
  3292. if (typeof (commit.businessMinId) == 'undefined' || commit.businessMinId == null || commit.ifCheckTask == null) {
  3293. this.$notify({
  3294. title: '提示',
  3295. message: '请选择一个产品后,再进行流程提交。',
  3296. type: 'error',
  3297. duration: 3000,
  3298. offset: 100
  3299. });
  3300. verify.state = false;
  3301. callback(verify);
  3302. return;
  3303. }
  3304. let selected1 = this.productions.filter(function (e) {
  3305. return e.reportNo === commit.businessMinId
  3306. })
  3307. if (!selected1[0].name || !selected1[0].clientName || !selected1[0].clientTel || !selected1[0].clientAddress || !selected1[0].evaluateAmount || !selected1[0].evaluateAcreage
  3308. || !selected1[0].owner || !selected1[0].valueTiming || !selected1[0].signatory) {
  3309. this.$notify({
  3310. title: '提示',
  3311. message: '请完成所选产品的基本信息后,再进行流程提交。',
  3312. type: 'error',
  3313. duration: 3000,
  3314. offset: 100
  3315. });
  3316. verify.state = false;
  3317. callback(verify);
  3318. return;
  3319. }
  3320. break;
  3321. case 'WRITE_LETTER':
  3322. let notTakeLetterNumberTargets = this.evaluateLandData.filter(function (e) {
  3323. return e.letterNo == null;
  3324. })
  3325. if (notTakeLetterNumberTargets.length > 0) {
  3326. this.$notify({
  3327. title: '提示',
  3328. message: '还有复评函号未取的估价对象,请先完成取号操作。',
  3329. type: 'error',
  3330. duration: 3000,
  3331. offset: 100
  3332. });
  3333. verify.state = false;
  3334. callback(verify);
  3335. return;
  3336. }
  3337. if (typeof (commit.businessMinId) == 'undefined' || commit.businessMinId == null || commit.ifCheckTask == null) {
  3338. this.$notify({
  3339. title: '提示',
  3340. message: '请选择一个产品后,再进行流程提交。',
  3341. type: 'error',
  3342. duration: 3000,
  3343. offset: 100
  3344. });
  3345. verify.state = false;
  3346. callback(verify);
  3347. return;
  3348. }
  3349. let selected2 = this.productions.filter(function (e) {
  3350. return e.reportNo === commit.businessMinId
  3351. })
  3352. if (!selected2[0].name || !selected2[0].clientName || !selected2[0].clientTel || !selected2[0].clientAddress || !selected2[0].evaluateAmount || !selected2[0].evaluateAcreage
  3353. || !selected2[0].owner || !selected2[0].valueTiming) {
  3354. this.$notify({
  3355. title: '提示',
  3356. message: '请完成所选产品的基本信息后,再进行流程提交。',
  3357. type: 'error',
  3358. duration: 3000,
  3359. offset: 100
  3360. });
  3361. verify.state = false;
  3362. callback(verify);
  3363. return;
  3364. }
  3365. break;
  3366. case "CHECK_STATEMENT":
  3367. case "CHECK_REPORT":
  3368. case "CHECK_LETTER":
  3369. if (commit.doSecondCheck != '不审' && !verify.nextHandlerId ) {
  3370. verify.state = false;
  3371. callback(verify);
  3372. this.chooseSecondCheckerDialog = true
  3373. this.$api.dictData.remark("MAJOR_SECOND_CHECK_USERS").then(res => {
  3374. if (res.code === 200) {
  3375. this.secondCheckUsers = res.data;
  3376. //默认复审人
  3377. this.secondCheckUserId = res.data[0].remark;
  3378. }
  3379. })
  3380. return;
  3381. }
  3382. break;
  3383. case "RECHECK_REPORT":
  3384. case "THIRD_CHECK_REPORT":
  3385. if (!this.productions[0].isRecord && !verify.passNotRecord && this.major.businessObjectType==='土地'){
  3386. verify.state = false;
  3387. callback(verify);
  3388. this.notRecordRemind = this.productions[0];
  3389. this.notRecordDialog = true;
  3390. return;
  3391. }
  3392. // if (this.productions[0].isSubmit && !verify.passNotSubmit && this.major.businessObjectType==='房地产'){
  3393. // verify.state = false;
  3394. // callback(verify);
  3395. // this.notSubmitRemind = this.productions[0];
  3396. // this.notSubmitDialog = true;
  3397. // return;
  3398. // }
  3399. break;
  3400. case "INITIAL_PRICE":
  3401. let notEvaluateValueTargets = this.evaluateLandData.filter(function (e) {
  3402. return e.evaluateValue == null;
  3403. })
  3404. if (notEvaluateValueTargets.length > 0) {
  3405. this.$notify({
  3406. title: '提示',
  3407. message: '还有有估价对象价格未确定。',
  3408. type: 'error',
  3409. duration: 2000,
  3410. offset: 100
  3411. });
  3412. verify.state = false;
  3413. callback(verify);
  3414. return;
  3415. }
  3416. break;
  3417. case "REVIEW_QUOTATION":
  3418. let notCheckValueTargets = this.evaluateLandData.filter(function (e) {
  3419. return e.checkValue == null;
  3420. })
  3421. if (notCheckValueTargets.length > 0) {
  3422. this.$notify({
  3423. title: '提示',
  3424. message: '还有有估价对象价格未审核。',
  3425. type: 'error',
  3426. duration: 2000,
  3427. offset: 100
  3428. });
  3429. verify.state = false;
  3430. callback(verify);
  3431. return;
  3432. }
  3433. break;
  3434. }
  3435. callback(verify);
  3436. }
  3437. if (commit.state === 'REVERSE') {
  3438. this.$refs.board.getPreviousNode();
  3439. switch (nodeCode) {
  3440. case "WRITE_STATEMENT":
  3441. case "WRITE_REPORT":
  3442. case "WRITE_LETTER":
  3443. if (this.productions.length > 0) {
  3444. if (!this.productions[0].ifReverse && this.pNode.nodeCode === "QUOTATION_FEEDBACK") {
  3445. // 需要验证兄弟流程节点信息
  3446. this.$notify({
  3447. title: '提示',
  3448. message: '已有其他子号流程正在进行中,不能退回到上一节点。',
  3449. type: 'info',
  3450. duration: 2000,
  3451. offset: 100
  3452. });
  3453. verify.state = false;
  3454. callback(verify);
  3455. return
  3456. } else {
  3457. verify.state = true;
  3458. verify.cleanReport = true;
  3459. callback(verify);
  3460. return;
  3461. }
  3462. }
  3463. }
  3464. callback(verify);
  3465. }
  3466. },
  3467. createPerformance(info) {
  3468. let allots = this.performance.allots;
  3469. let total = 0;
  3470. for (let i in allots) {
  3471. total += allots[i].ratio;
  3472. }
  3473. if (total != 100) {
  3474. this.$notify({
  3475. title: '提示',
  3476. message: '人员绩效比例之和需等于100%',
  3477. type: 'info',
  3478. duration: 1000,
  3479. offset: 100
  3480. });
  3481. return;
  3482. }
  3483. info = JSON.stringify(allots);
  3484. if (info.id) {
  3485. this.$api.businessProductionPerformance.edit(info).then(res => {
  3486. if (res.code === 200 && res.data) {
  3487. this.$notify({
  3488. title: '成功',
  3489. message: '人员绩效比信息更新成功',
  3490. type: 'success',
  3491. duration: 1000,
  3492. offset: 100
  3493. });
  3494. this.getPerformance(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  3495. }
  3496. })
  3497. } else {
  3498. info.operation = true;
  3499. info.businessType = 'MAJOR_BUSINESS';
  3500. this.$api.businessProductionPerformance.add(info).then(res => {
  3501. if (res.code === 200 && res.data) {
  3502. this.$notify({
  3503. title: '成功',
  3504. message: '人员绩效比信息保存成功',
  3505. type: 'success',
  3506. duration: 3000,
  3507. offset: 100
  3508. });
  3509. this.getPerformance(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  3510. }
  3511. })
  3512. }
  3513. },
  3514. getPerformance(majorId, productionNo) {
  3515. if (majorId && productionNo) {
  3516. const obj = new Object();
  3517. obj.businessType = 'MAJOR_BUSINESS';
  3518. obj.majorId = majorId;
  3519. obj.productionNo = productionNo;
  3520. obj.checkLoop = this.checkLoop;
  3521. this.$api.businessProductionPerformance.detail(obj).then(res => {
  3522. if (res.code === 200) {
  3523. this.performance = res.data;
  3524. let prods = res.data.info;
  3525. for(let i in prods){
  3526. if (prods[i].productionType === '报告'){
  3527. this.nodeBusinessInfo.landIsRecord = prods[i].isRecord;
  3528. break;
  3529. }
  3530. }
  3531. }
  3532. })
  3533. }
  3534. },
  3535. doWareHouse() {
  3536. let reportNo = this.scanEntryData
  3537. let wareHoaseDto = new Object();
  3538. if (reportNo) {
  3539. wareHoaseDto.reportNo = reportNo;
  3540. } else {
  3541. wareHoaseDto.reportNo = this.$refs.scanEntry.scanEntryData;
  3542. }
  3543. if (this.currentNode.nodeName.includes("入库")) {
  3544. wareHoaseDto.repertoryState = 0;
  3545. } else {
  3546. wareHoaseDto.repertoryState = 1;
  3547. }
  3548. wareHoaseDto.productionType = this.wareHouseProductionType;
  3549. wareHoaseDto.productionId = this.wareHouseproductionId;
  3550. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3551. this.taskRecordDTO.taskData = wareHoaseDto;
  3552. this.$api.majorProduction.warehouse(this.taskRecordDTO).then(res => {
  3553. if (res.code === 200 && res.data) {
  3554. this.$notify({
  3555. title: '成功',
  3556. message: '库存操作成功',
  3557. type: 'success',
  3558. duration: 1000,
  3559. offset: 100
  3560. });
  3561. this.warehouseDialog = false;
  3562. this.getProductions(this.majorId, wareHoaseDto.reportNo);
  3563. }
  3564. else {
  3565. this.$message({
  3566. type: 'info',
  3567. message: '取消操作'
  3568. });
  3569. }
  3570. })
  3571. },
  3572. handleScanEntry(scanData) {
  3573. this.scanEntryData = scanData;
  3574. },
  3575. openWareHouseDialog(row) {
  3576. this.warehouseDialog = true;
  3577. this.wareHouseProductionType = row.production;
  3578. this.wareHouseproductionId = row.id
  3579. },
  3580. cleanWareHouseProductionType() {
  3581. this.wareHouseProductionType = null;
  3582. this.wareHouseproductionId = null;
  3583. },
  3584. sitesChange() {
  3585. this.$forceUpdate()
  3586. },
  3587. expandRow(row) {
  3588. row.expand = !row.expand
  3589. this.$refs.pTable.toggleRowExpansion(row, row.expend);
  3590. },
  3591. getPreviousNode(pNode) {
  3592. this.pNode = pNode;
  3593. },
  3594. //默认展开第一行
  3595. defaultExpandOpen() {
  3596. var els = document.getElementsByClassName('el-table__expand-icon')
  3597. if (els[0]) {
  3598. els[0].click();
  3599. }
  3600. },
  3601. takeStatementNoOrLettertNo(productionType) {
  3602. this.$confirm('请确认所选估价对象是否正确?', '提示', {
  3603. confirmButtonText: '确认',
  3604. cancelButtonText: '取消',
  3605. type: 'info',
  3606. }).then(() => {
  3607. let takeNumberDTO = {
  3608. businessId: this.majorId,
  3609. businessType: "MAJOR_BUSINESS",
  3610. takeType: this.major.businessObjectType === '土地' ? 'LAND_NUMBER' : 'REALTY_NUMBER',
  3611. targets: this.takeNumberItems,
  3612. orderId: this.major.orderId,
  3613. productionType: productionType,
  3614. statementNo:this.statementNo
  3615. }
  3616. this.$api.majorTarget.takeNumber(takeNumberDTO).then(res => {
  3617. if (res.code === 200 && res.data != null) {
  3618. this.$notify({
  3619. title: '成功',
  3620. message: '取号成功。',
  3621. type: 'success',
  3622. duration: 1000,
  3623. offset: 100
  3624. });
  3625. this.getLandTargetList();
  3626. this.createProduction(res.data);
  3627. this.taskRecordDTO = {};
  3628. } else {
  3629. this.$notify({
  3630. title: '失败',
  3631. message: '取号失败。',
  3632. type: 'error',
  3633. duration: 1000
  3634. });
  3635. }
  3636. })
  3637. }
  3638. )
  3639. },
  3640. saveQuality(p) {
  3641. this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
  3642. this.taskRecordDTO.taskData = p;
  3643. let mistakes = new Object();
  3644. mistakes.normalMistakes = p.normalMistakes;
  3645. mistakes.hardMistakes = p.hardMistakes;
  3646. mistakes.fatalMistakes = p.fatalMistakes;
  3647. mistakes.xnormalMistakes = p.xnormalMistakes;
  3648. mistakes.xhardMistakes = p.xhardMistakes;
  3649. mistakes.xfatalMistakes = p.xfatalMistakes;
  3650. p.reason = JSON.stringify(mistakes);
  3651. p.businessType = 'MAJOR_BUSINESS';
  3652. if (p.id) {
  3653. this.$api.businessProductionPerformance.edit(this.taskRecordDTO).then(res => {
  3654. if (res.code === 200 && res.data) {
  3655. this.$notify({
  3656. title: '成功',
  3657. message: '质检信息更新成功',
  3658. type: 'success',
  3659. duration: 1000,
  3660. offset: 100
  3661. });
  3662. this.getPerformance(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  3663. }
  3664. })
  3665. } else {
  3666. this.$api.businessProductionPerformance.add(this.taskRecordDTO).then(res => {
  3667. if (res.code === 200 && res.data) {
  3668. this.$notify({
  3669. title: '成功',
  3670. message: '质检信息保存成功',
  3671. type: 'success',
  3672. duration: 1000,
  3673. offset: 100
  3674. });
  3675. this.getPerformance(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  3676. }
  3677. })
  3678. }
  3679. },
  3680. commit(state) {
  3681. this.$refs.board.commit(state);
  3682. },
  3683. goBack() {
  3684. const back = this.$route.query.back
  3685. if (back) {
  3686. this.$router.push(back)
  3687. }
  3688. },
  3689. cleanResidueYears(target) {
  3690. target.residueYears = null;
  3691. },
  3692. selectable(row, index) {
  3693. let nodeCode = this.currentNode.nodeCode;
  3694. if (nodeCode === 'WRITE_STATEMENT' && row.statementNo != null) {
  3695. return false;
  3696. } else if (nodeCode === 'WRITE_REPORT' && row.reportNo != null) {
  3697. return false;
  3698. } else if (nodeCode === 'WRITE_LETTER' && row.letterNo != null) {
  3699. return false;
  3700. } else {
  3701. return true;
  3702. }
  3703. },
  3704. addErrorType(p, errorType) {
  3705. if (p.reason) {
  3706. p.reason = p.reason + errorType + "; ";
  3707. } else {
  3708. p.reason = errorType + "; ";
  3709. }
  3710. },
  3711. cleanSecondCheck() {
  3712. this.secondCheckUserId = null;
  3713. },
  3714. closeLandTarget() {
  3715. this.houseToUse = [];
  3716. for (let k in this.landTarget) {
  3717. this.landTarget[k] = null;
  3718. }
  3719. },
  3720. getFinanceInvoiceAmountInfo() {
  3721. const obj = new Object();
  3722. obj.majorId = this.majorId;
  3723. obj.productionNos = [];
  3724. if (this.businessSubId) {
  3725. obj.productionNos.push(this.businessSubId);
  3726. }
  3727. if (this.businessMinId) {
  3728. obj.productionNos.push(this.businessMinId);
  3729. }
  3730. this.$api.financeInvoice.getInvoiceAmountInfo(obj).then(res => {
  3731. if (res.code === 200) {
  3732. this.productionFinance = res.data;
  3733. }
  3734. })
  3735. },
  3736. printQR(path) {
  3737. if (path){
  3738. let routeUrl = this.$router.resolve({
  3739. path: `/print/code?path=${path}`
  3740. });
  3741. window.open(routeUrl.href, '_blank');
  3742. }
  3743. },
  3744. // 文档预览
  3745. officeFileView(name, url) {
  3746. if (name || url) {
  3747. const route = this.$router.resolve({
  3748. path: "/office/view/window",
  3749. query: {
  3750. // 文档标题
  3751. title: name,
  3752. // 文档url地址
  3753. url: url,
  3754. mode: 'edit'
  3755. }
  3756. });
  3757. // 在新窗口打开页面
  3758. window.open(route.href, "_blank");
  3759. } else {
  3760. this.$notify({
  3761. title: '失败',
  3762. message: 'url为空,无法打开,如未保存请保存后再试!',
  3763. type: 'error',
  3764. duration: 2000
  3765. });
  3766. }
  3767. },
  3768. showQrCode(url){
  3769. this.qrCodeUrl = url;
  3770. },
  3771. findWorker(row){
  3772. console.log(row.signatoryId);
  3773. if (row.signatoryId.length===0){
  3774. row.mainWorker = null;
  3775. row.mainWorkerNo = null;
  3776. row.minorWorker = null;
  3777. row.minorWorkerNo = null;
  3778. row.smallWorker = null;
  3779. row.smallWorkerNo = null;
  3780. }
  3781. if (row.signatoryId.length === 1){
  3782. let mainWorkerId = row.signatoryId[0];
  3783. this.$api.userArchive.getRegistrationNoByUserId(mainWorkerId).then(res=>{
  3784. if (res.code===200){
  3785. row.mainWorker = res.data.evaluatorName;
  3786. row.mainWorkerNo = res.data.majorEvaluatorRegistrationNo;
  3787. }
  3788. })
  3789. row.minorWorker = null;
  3790. row.minorWorkerNo = null;
  3791. row.smallWorker = null;
  3792. row.smallWorkerNo = null;
  3793. }
  3794. if (row.signatoryId.length === 2){
  3795. let mainWorkerId = row.signatoryId[0];
  3796. this.$api.userArchive.getRegistrationNoByUserId(mainWorkerId).then(res=>{
  3797. if (res.code===200){
  3798. row.mainWorker = res.data.evaluatorName;
  3799. row.mainWorkerNo = res.data.majorEvaluatorRegistrationNo;
  3800. }
  3801. })
  3802. let minorWorkerId = row.signatoryId[1];
  3803. this.$api.userArchive.getRegistrationNoByUserId(minorWorkerId).then(res=>{
  3804. if (res.code===200){
  3805. row.minorWorker = res.data.evaluatorName;
  3806. row.minorWorkerNo = res.data.majorEvaluatorRegistrationNo;
  3807. }
  3808. })
  3809. row.smallWorker = null;
  3810. row.smallWorkerNo = null;
  3811. }
  3812. if (row.signatoryId.length ===3){
  3813. let mainWorkerId = row.signatoryId[0];
  3814. this.$api.userArchive.getRegistrationNoByUserId(mainWorkerId).then(res=>{
  3815. if (res.code===200){
  3816. row.mainWorker = res.data.evaluatorName;
  3817. row.mainWorkerNo = res.data.majorEvaluatorRegistrationNo;
  3818. }
  3819. })
  3820. let minorWorkerId = row.signatoryId[1];
  3821. this.$api.userArchive.getRegistrationNoByUserId(minorWorkerId).then(res=>{
  3822. if (res.code===200){
  3823. row.minorWorker = res.data.evaluatorName;
  3824. row.minorWorkerNo = res.data.majorEvaluatorRegistrationNo;
  3825. }
  3826. })
  3827. let smallWorkerId = row.signatoryId[2];
  3828. this.$api.userArchive.getRegistrationNoByUserId(smallWorkerId).then(res=>{
  3829. if (res.code===200){
  3830. row.smallWorker = res.data.evaluatorName;
  3831. row.smallWorkerNo = res.data.majorEvaluatorRegistrationNo;
  3832. }
  3833. })
  3834. }
  3835. if (row.signatoryId.length > 3){
  3836. this.$message.error("签字人个数建议为2人。")
  3837. }
  3838. },
  3839. openMergeNumberDialog(){
  3840. let numbers = [];
  3841. if (this.currentNode.nodeCode === 'WRITE_STATEMENT'){
  3842. numbers = this.evaluateLandData.reduce((setArray,item)=>{
  3843. if (item.statementNo && !setArray.includes(item.statementNo)){
  3844. setArray.push(item.statementNo)
  3845. }
  3846. return setArray;
  3847. },[]);
  3848. }
  3849. if (this.currentNode.nodeCode === 'WRITE_REPORT'){
  3850. numbers = this.evaluateLandData.reduce((setArray,item)=>{
  3851. if (item.reportNo && !setArray.includes(item.reportNo)){
  3852. setArray.push(item.reportNo)
  3853. }
  3854. return setArray;
  3855. },[]);
  3856. }
  3857. if (this.currentNode.nodeCode === 'WRITE_LETTER'){
  3858. numbers = this.evaluateLandData.reduce((setArray,item)=>{
  3859. if (item.letterNo && !setArray.includes(item.letterNo)){
  3860. setArray.push(item.letterNo)
  3861. }
  3862. return setArray;
  3863. },[]);
  3864. }
  3865. if (numbers.length>0){
  3866. this.mergeNoDialog = true;
  3867. this.mergeNos = numbers;
  3868. }
  3869. else{
  3870. this.$message("还未取任何产品号码。")
  3871. }
  3872. },
  3873. doMergeNo(){
  3874. let param = new Object();
  3875. param.mergeType = this.currentNode.nodeCode === 'WRITE_STATEMENT'?'STATEMENT':
  3876. (this.currentNode.nodeCode === 'WRITE_REPORT'?'REPORT':'LETTER');
  3877. param.toMergeNumber = this.toMergeNo;
  3878. param.targetIds = this.takeNumberItems.map(i=>i.id);
  3879. this.$api.majorTarget.mergeNumber(param).then(res=>{
  3880. if (res.code === 200 && res.data){
  3881. this.$notify({
  3882. title: '成功',
  3883. message: '合并号码成功',
  3884. type: 'success',
  3885. duration: 1000,
  3886. offset: 100
  3887. });
  3888. this.mergeNoDialog = false;
  3889. this.getLandTargetList();
  3890. this.getProductions(this.majorId, (this.reportNo == null ? this.statementNo : this.reportNo));
  3891. }
  3892. })
  3893. },
  3894. addMistake(p,mistakeType){
  3895. let type ;
  3896. if (mistakeType ==='normalMistakes'){
  3897. type = '添加一般错误';
  3898. }
  3899. if (mistakeType ==='hardMistakes'){
  3900. type = '添加较大错误';
  3901. }
  3902. if (mistakeType ==='fatalMistakes'){
  3903. type = '添加重大错误';
  3904. }
  3905. this.$prompt(null, type, {
  3906. confirmButtonText: '确定',
  3907. cancelButtonText: '取消',
  3908. }).then(({ value }) => {
  3909. if (mistakeType ==='normalMistakes'){
  3910. p.xnormalMistakes.push(value)
  3911. p.normalMistakes.push(value);
  3912. }
  3913. if (mistakeType ==='hardMistakes'){
  3914. p.xhardMistakes.push(value);
  3915. p.hardMistakes.push(value);
  3916. }
  3917. if (mistakeType ==='fatalMistakes'){
  3918. p.xfatalMistakes.push(value);
  3919. p.fatalMistakes.push(value);
  3920. }
  3921. })
  3922. },
  3923. doPassNotRecord(){
  3924. this.passNotRecord = true;
  3925. this.commit('PASS');
  3926. },
  3927. doPassNotSubmit(){
  3928. this.passNotSubmit = true;
  3929. this.commit('PASS');
  3930. },
  3931. remindClean(){
  3932. this.passNotRecord = false;
  3933. this.passNotSubmit = false;
  3934. }
  3935. },
  3936. }
  3937. </script>
  3938. <style lang="scss" scoped>
  3939. .row-style {
  3940. margin-left: 40px;
  3941. margin-right: 1%;
  3942. }
  3943. .task-class {
  3944. /deep/ .el-form-item__label {
  3945. color: red;
  3946. }
  3947. }
  3948. .evaluate-table {
  3949. margin-left: 40px;
  3950. margin-top: 35px;
  3951. }
  3952. .pane-class {
  3953. width: 100%;
  3954. overflow-y: scroll;
  3955. }
  3956. /deep/ .cell-class {
  3957. font-size: 13px;
  3958. color: black;
  3959. }
  3960. .table {
  3961. /deep/ thead {
  3962. .el-table-column--selection {
  3963. .cell {
  3964. display: none;
  3965. }
  3966. }
  3967. }
  3968. }
  3969. /deep/.doWarehouseClass {
  3970. border-radius: 10px;
  3971. }
  3972. .button-area {
  3973. position: absolute;
  3974. top: 20px;
  3975. right: 50px;
  3976. }
  3977. .error-type {
  3978. margin-right: 5px;
  3979. }
  3980. .error-type:hover {
  3981. cursor: pointer;
  3982. }
  3983. .qr-code-div {
  3984. background-color: RGB(245, 245, 245);
  3985. width: 150px;
  3986. height: 150px;
  3987. position: absolute;
  3988. display: flex;
  3989. justify-content: center;
  3990. align-items: center;
  3991. }
  3992. .qr-code {
  3993. width: 150px;
  3994. height: 150px;
  3995. z-index: 999;
  3996. border: 1px #919398 solid;
  3997. border-radius: 5px;
  3998. }
  3999. .qr-code-div:hover {
  4000. cursor: pointer;
  4001. // background-color:RGB(220,220,220);
  4002. // width: 180px;
  4003. // height: 180px;
  4004. }
  4005. a:hover{
  4006. cursor: pointer;
  4007. color: #5a9cf8
  4008. }
  4009. .reason{
  4010. /deep/ .el-form-item__label {
  4011. color: red;
  4012. font-weight: bold;
  4013. }
  4014. }
  4015. .resaon_input{
  4016. /deep/ .el-input__inner{
  4017. color: red !important;
  4018. font-weight: bold;
  4019. }
  4020. }
  4021. .mistake-option{
  4022. transition: transform 0.5s ease;
  4023. color: #acacae;
  4024. }
  4025. .mistake-option:hover{
  4026. // transform: scale(1.3);
  4027. color: black;
  4028. z-index: 999;
  4029. }
  4030. </style>