todoDetail.vue 188 KB

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