todoDetail.vue 195 KB

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