todoDetail.vue 212 KB

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