todoDetail.vue 191 KB

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