123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726 |
- <template>
- <div class="app-container">
- <el-collapse v-model="activeName" @change="handleChange">
- <el-collapse-item>
- <template slot="title">
- <span style="font-size:20px; margin-left:20px;letter-spacing:2px;color:red">
- <i class="el-icon-warning"></i>
- <span> 当前节点:{{ currentNode == null ? '???' : currentNode.nodeName ? currentNode.nodeName : '结束' }}</span>
- <!-- <span v-if = "currentNode.tasks.length>0" style="margin-left:30px">任务:</span> -->
- <!-- <span v-for="( t,index) in currentNode.tasks" :key=index >{{t.info}}</span> -->
- <!-- <span style="margin-left:30px" v-if="statementNo || reportNo">该流程已取:<el-tag type="success" v-if="statementNo">{{statementNo}}</el-tag> <el-tag type="danger" v-if="reportNo">{{reportNo}}</el-tag></span> -->
- </span>
- <span style="font-size:15px; margin-left:15px;letter-spacing:2px; color:RGB(168,168,168)">
- 点击展开查看实时流程图
- </span>
- </template>
- <WorkflowBoard ref='board' @workflowCommitVerify="workflowCommitVerify" :nodeBusinessInfo="nodeBusinessInfo"
- @getPreviousNode="getPreviousNode" />
- </el-collapse-item>
- </el-collapse>
- <div class="button-area" v-if="couldEdit">
- <el-button @click="openProductionDialog"
- v-if="currentNode.nodeCode === 'PRODUCT_CHOICE' || currentNode.nodeCode === 'REPORT_CHOICE'" type="danger" round>
- 选择产品
- </el-button>
- <el-button @click="openAssetsAchievementRatioDialog()" v-if="currentNode.nodeCode === 'CHECK_ARCHIVING'"
- type="danger" round>
- <!-- <span v-if="currentNode.nodeCode === 'RECHECK_ARCHIVING'">复审部</span> -->
- 归档审核
- </el-button>
- <el-button v-if="nodeBusinessInfo.currentNodePermission.commit" class="y-save" type="success" round
- @click="commit('PASS')" :disabled="!nodeBusinessInfo.doWorkflow">提交</el-button>
- <el-button v-if="nodeBusinessInfo.currentNodePermission.reversible" class="y-save" type="warning" round
- @click="commit('REVERSE')" :disabled="!nodeBusinessInfo.doWorkflow">退回</el-button>
- <el-button v-if="nodeBusinessInfo.currentNodePermission.skippable" class="y-save" type="warning" round
- @click="commit('SKIP')" :disabled="!nodeBusinessInfo.doWorkflow">跳过</el-button>
- <el-button v-if="nodeBusinessInfo.currentNodePermission.terminable" class="y-save" type="danger" round
- @click="commit('TERMINATE')" :disabled="!nodeBusinessInfo.doWorkflow">终止</el-button>
- <el-button v-if="nodeBusinessInfo.currentNodePermission.restartable" class="y-save" type="danger" round
- @click="commit('RESTART')" :disabled="!nodeBusinessInfo.doWorkflow">重置</el-button>
- <el-button class="y-save" round type="info" @click="goBack">返回</el-button>
- </div>
- <el-tabs v-model="activeTabName" @tab-click="handleClick" type="border-card">
- <el-tab-pane name="baseInfo" class="pane-class" :lazy=true>
- <span slot="label"><i class="el-icon-document"></i>基本信息</span>
- <y-detail-page-layout ref="addAssetsOrder" name="assets">
- <el-form ref="assetsForm" :model="assetsForm" :rules="assetsFormRules" :disabled="disabledStatus">
- <div class="createMajor-main-container">
- <div class="postInfo-container">
- <el-row v-if="canUpdateOrderBaseInfoNode.includes(currentNode.nodeCode)" class="row-style"
- style="margin-top: 20px; float: right; position: relative; z-index: 2;">
- <el-col :xs="24" :sm="12" :lg="23" :span="12">
- <el-button type="danger" @click="updateOrderBaseInfo()" round>更新基本信息</el-button>
- </el-col>
- </el-row>
- <div>
- <el-divider content-position="left">
- <h3 class="title">
- <div class="avatar-wrapper icon-title">订单</div>
- <div class="icon-info">资产订单</div>
- </h3>
- </el-divider>
- </div>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="项目编号:" prop="orderId" label-width="170px" class="postInfo-container-item">
- <el-input :value="assetsForm.orderId" class="filter-item" readonly disabled
- style=" width: 100%" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="客户经理:" prop="clientManager" label-width="170px" class="postInfo-container-item">
- <el-input :value="assetsForm.clientManagerName" class="filter-item" readonly disabled
- style=" width: 100%" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="接单部门:" prop="departmentId" label-width="170px" class="postInfo-container-item">
- <el-select v-model="assetsForm.departmentId" readonly disabled style=" width: 100%">
- <el-option v-for="(d, id) in allotDepartment" :label="d.name" :value="d.id"
- :key="d.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="24" :lg="24" :span="24">
- <el-form-item prop="name" label-width="170px" class="postInfo-container-item" label="项目名称:">
- <el-input v-model="assetsForm.name" class="filter-item" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="业务类型:" prop="assetsBusinessGener" label-width="170px"
- class="postInfo-container-item">
- <el-select v-model="assetsForm.assetsBusinessGener" filterable placeholder="业务类型"
- style=" width: 100%">
- <el-option v-for="(s, index) in assetsBusinessGeners" :label="s.label" :value="s.value"
- :key="s.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="客户再次委托:" prop="entrustAgain" label-width="170px" class="postInfo-container-item">
- <el-radio v-model="assetsForm.entrustAgain" :label="false" border size="medium">否</el-radio>
- <el-radio v-model="assetsForm.entrustAgain" :label="true" border size="medium">是</el-radio>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="客户类型:" prop="clienteleType" label-width="170px" class="postInfo-container-item">
- <el-select v-model="assetsForm.clienteleType" placeholder="请选择"
- @change="changeCustomerType(assetsForm.clienteleType)" readonly disabled style=" width: 100%">
- <el-option label="企业" value="企业"></el-option>
- <el-option label="个人" value="个人"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="客户名称:" prop="clienteleId" label-width="170px" class="postInfo-container-item"
- v-if="itemHideStatus">
- <el-select v-model="assetsForm.clienteleId" placeholder="请选择(可搜索)" @change="findSubClientele(0)"
- clearable filterable readonly disabled style=" width: 100%">
- <el-option v-for="(c, id) in customerCompany" :label="c.name" :value="c.id"
- :key="c.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="业务来源:" prop="clienteleSubId" label-width="170px" class="postInfo-container-item"
- v-if="itemHideStatus">
- <el-select v-model="assetsForm.clienteleSubId" placeholder="请选择(可搜索)" @change="getCustomerContract"
- clearable filterable readonly disabled style=" width: 100%">
- <el-option v-for="(s, id) in subCustomerCompany" :label="s.name" :value="s.id"
- :key="s.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="客户联系人:" prop="clienteleContactId" label-width="170px"
- class="postInfo-container-item">
- <div>
- <el-select v-model="assetsForm.clienteleContactId" placeholder="请选择(可搜索)" clearable filterable
- @change="getContactInfo();" readonly disabled style=" width: 100%">
- <!-- <el-option v-for="(c, id) in customerContract" :label="c.name" :value="c.id"
- :key="c.id"></el-option> -->
- <el-option :label="linkmanInfo.name" :value="linkmanInfo.id" :key="linkmanInfo.id"></el-option>
- </el-select>
- <!-- <el-tooltip class="item" effect="dark" content="没有联系人?点击新增" placement="top-end">
- <span style="margin-left:5%;color:RGB(64,158,255);cursor:pointer"
- @click="createLinkman(false)">新增</span>
- </el-tooltip> -->
- </div>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="联系人电话:" prop="mobile" label-width="170px" class="postInfo-container-item">
- <el-input :value="assetsForm.linkmanMobile" class="filter-item" readonly disabled
- style=" width: 100%" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="联系人部门:" prop="department" label-width="170px" class="postInfo-container-item">
- <el-input :value="assetsForm.linkmanDepartment" class="filter-item" readonly disabled
- style=" width: 100%" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="联系人职务:" prop="duty" label-width="170px" class="postInfo-container-item">
- <el-input :value="assetsForm.linkmanDuty" class="filter-item" readonly disabled
- style=" width: 100%" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="是否证券项目:" prop="security" label-width="170px" class="postInfo-container-item">
- <el-radio v-model="assetsForm.security" :label="false" border size="medium">否</el-radio>
- <el-radio v-model="assetsForm.security" :label="true" border size="medium">是</el-radio>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="是否资产重组项目:" prop="significantAssetsReorganization" label-width="170px"
- class="postInfo-container-item">
- <el-radio v-model="assetsForm.significantAssetsReorganization" :label="false" border
- size="medium">否</el-radio>
- <el-radio v-model="assetsForm.significantAssetsReorganization" :label="true" border
- size="medium">是</el-radio>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label=" 是否国资项目:" prop="stateAssets" label-width="170px" class="postInfo-container-item">
- <el-radio v-model="assetsForm.stateAssets" :label="false" border size="medium">否</el-radio>
- <el-radio v-model="assetsForm.stateAssets" :label="true" border size="medium">是</el-radio>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="是否涉及境外资产:" prop="foreignAssetsInvolved" label-width="170px"
- class="postInfo-container-item">
- <el-radio v-model="assetsForm.foreignAssetsInvolved" :label="false" border
- size="medium">否</el-radio>
- <el-radio v-model="assetsForm.foreignAssetsInvolved" :label="true" border size="medium">是</el-radio>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="是否分配产值:" prop="dispenseBenefit" label-width="170px"
- class="postInfo-container-item">
- <el-radio v-model="assetsForm.dispenseBenefit" :label="false" border size="medium">否</el-radio>
- <el-radio v-model="assetsForm.dispenseBenefit" :label="true" border size="medium">是</el-radio>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item label="委托人:" prop="bailor" label-width="170px" class="postInfo-container-item">
- <el-input v-model="assetsForm.bailor" class="filter-item" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item label="委托联系人:" prop="bailorContactName" label-width="170px"
- class="postInfo-container-item">
- <el-input v-model="assetsForm.bailorContactName" class="filter-item" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="委托人联系人电话:" prop="bailorContactTel" label-width="170px"
- class="postInfo-container-item">
- <el-input v-model="assetsForm.bailorContactTel" class="filter-item" style=" width: 100%" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="委托人地址:" prop="bailorAddress" label-width="170px" class="postInfo-container-item">
- <el-input v-model="assetsForm.bailorAddress" class="filter-item" style=" width: 100%" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="终端客户类型:" prop="terminalClienteleType" label-width="170px"
- class="postInfo-container-item">
- <el-select v-model="assetsForm.terminalClienteleType" placeholder="请选择" readonly disabled
- style=" width: 100%">
- <el-option label="企业" value="企业"></el-option>
- <el-option label="个人" value="个人"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="12" :span="6" v-if="assetsForm.terminalClienteleType === '企业'">
- <el-form-item label="终端客户名称:" prop="terminalClienteleId" label-width="170px"
- class="postInfo-container-item">
- <!-- <div v-if="couldEdit"> -->
- <el-select v-model="assetsForm.terminalClienteleId" placeholder="请选择(可搜索)"
- @change="findSubClientele(1)" clearable filterable readonly disabled style="width:100%">
- <!-- <el-option v-for="(c, id) in tCustomerCompany" :label="c.name" :value="c.id"
- :key="c.id"></el-option> -->
- <el-option :label="tCustomerInfo.name" :value="tCustomerInfo.id"
- :key="tCustomerInfo.id"></el-option>
- </el-select>
- <!-- <el-tooltip class="item" effect="dark" content="没有终端客户?点击新增" placement="top-end">
- <span style="margin-left:5%;color:RGB(64,158,255);cursor:pointer"
- @click="createTerminalClient()">新增</span>
- </el-tooltip> -->
- <!-- </div> -->
- <!-- <el-input :value="assetsForm.tterminalClienteleName" class="filter-item" style=" width: 225px"
- v-else /> -->
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="assetsForm.terminalClienteleType">
- <el-form-item label="终端联系人:" prop="terminalClienteleContactId" label-width="170px"
- class="postInfo-container-item">
- <el-select v-model="assetsForm.terminalClienteleContactId" placeholder="请选择(可搜索)" clearable
- filterable readonly disabled style=" width: 100%">
- <!-- <el-option v-for="(c, id) in tCustomerContract" :label="c.name" :value="c.id"
- :key="c.id"></el-option> -->
- <el-option :label="tLinkmanInfo.name" :value="tLinkmanInfo.id" :key="tLinkmanInfo.id"></el-option>
- </el-select>
- <!-- <el-tooltip class="item" effect="dark" content="没有联系人?点击新增" placement="top-end">
- <span style="margin-left:5%;color:RGB(64,158,255);cursor:pointer"
- @click="createTlinkman()">新增</span>
- </el-tooltip> -->
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6" v-if="assetsForm.terminalClienteleType">
- <el-form-item label="终端联系电话:" prop="clienteleType" label-width="170px"
- class="postInfo-container-item">
- <el-input :value="assetsForm.tmobile" class="filter-item" readonly disabled style=" width: 100%" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="23" :span="12">
- <el-form-item label="备注:" prop="remark" label-width="170px" class="postInfo-container-item">
- <el-input v-model="assetsForm.remark" :autosize="{ minRows: 4, maxRows: 4 }" class="filter-item"
- type="textarea" />
- </el-form-item>
- </el-col>
- </el-row>
- </div>
- </div>
- </el-form>
- </y-detail-page-layout>
- </el-tab-pane>
- <el-tab-pane name="members" class="pane-class" :lazy=true>
- <span slot="label"><i class="el-icon-document"></i>项目人员</span>
- <!-- <y-detail-page-layout @save="updatePrincipalAndMembers" ref="addAssetsOrder" name="assets"
- :editStatus="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' || !disabledStatus"> -->
- <el-form ref="assetsForm" :model="assetsForm" :rules="assetsFormRules"
- :disabled="currentNode.nodeCode !== 'DEPARTMENT_ALLOCATION' && currentNode.nodeCode !== 'SPOT_RECONNAISSANCE_DETERMINE_PRICE' || disabledStatus">
- <div class="createMajor-main-container">
- <div class="postInfo-container">
- <div style="margin-top: 35px;">
- <el-divider content-position="left">
- <h3 class="title">
- <div class="avatar-wrapper icon-title">成员</div>
- <div class="icon-info">项目成员</div>
- </h3>
- </el-divider>
- </div>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="4" :span="6">
- <el-form-item label="接单部门:" prop="departmentId" label-width="120px"
- :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']">
- <el-select @change="getPrincipalByAllotDepartment()" v-model="assetsForm.departmentId"
- :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'"
- :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'">
- <el-option v-for="(d, id) in allotDepartment" :label="d.name" :value="d.id" :key="d.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="项目负责人:" prop="principalId" label-width="120px"
- :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']"
- :rules="{ required: true, message: '项目负责人不能为空', trigger: 'blur' }">
- <el-select v-model="assetsForm.principalId" placeholder="请选择(可搜索)"
- filterable clearable
- :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'"
- :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION'">
- <el-option v-for="(p, id) in principals" :label="p.name" :value="p.id" :key="p.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="3" :span="6">
- <el-form-item label="项目成员:" prop="members" label-width="120px"
- :class="['postInfo-container-item', currentNode.nodeCode === 'DEPARTMENT_ALLOCATION' ? 'task-class' : '']"
- :rules="{ required: true, message: '项目成员不能为空', trigger: 'blur' }">
- <el-select v-model="assetsForm.members" placeholder="请选择(可搜索)" multiple style=" width: 686px"
- filterable clearable
- :readonly="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION' && currentNode.nodeCode != 'SPOT_RECONNAISSANCE_DETERMINE_PRICE'"
- :disabled="currentNode.nodeCode != 'DEPARTMENT_ALLOCATION' && currentNode.nodeCode != 'SPOT_RECONNAISSANCE_DETERMINE_PRICE'">
- <el-option v-for="(u, id) in depUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="3" :span="6">
- <el-button v-if="currentNode.nodeCode === 'DEPARTMENT_ALLOCATION'" type="danger" @click="updatePrincipalAndMembers()" round>保存项目人员信息</el-button>
- <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE'" type="danger" @click="updateMembers()" round>修改成员</el-button>
- </el-col>
- </el-row>
- </div>
- </div>
- </el-form>
- <!-- </y-detail-page-layout> -->
- </el-tab-pane>
- <el-tab-pane name="target" class="pane-class" :lazy=true>
- <span @click="getAETargetListByAssetsId()" slot="label"><i class="el-icon-document"></i>资产评估对象</span>
- <div class="createMajor-main-container">
- <div class="postInfo-container">
- <div style="margin-top: 35px;">
- <el-divider content-position="left">
- <h3 class="title">
- <div class="avatar-wrapper icon-title">评估</div>
- <div class="icon-info">资产评估对象</div>
- </h3>
- </el-divider>
- </div>
- <el-row>
- <el-col :span="2">
- <div>
- <el-statistic group-separator="," :precision="4" :value="totalEvaluateValue" title="估价对象总价(万)">
- <template slot="prefix">
- <i class="el-icon-coin"></i>
- </template>
- </el-statistic>
- </div>
- </el-col>
- <el-col :span="2">
- <el-button v-if="currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE' && couldEdit"
- type="danger" @click="openTargetDialog(), changeStatus('add')" round>添加评估对象</el-button>
- </el-col>
- <el-col :span="2" v-if="currentNode.nodeCode === 'GENERATE_STATEMENT' && couldEdit">
- <el-tooltip class="item" effect="dark" content="有疑问请询问!全选评估对象时取号将只存在主号(所有评估对象使用一个主号),非全选取子号(仅已选择评估对象取号并取子号)!" placement="right">
- <el-button type="success" @click="takeAssetsStatementProductionNo('STATEMENT')" round>意见书取号</el-button>
- </el-tooltip>
- </el-col>
- <el-col :span="2" v-if="currentNode.nodeCode === 'ASSET_REPORT_TAKE_NO' && couldEdit">
- <el-tooltip class="item" effect="dark" content="有疑问请询问!全选评估对象时取号将只存在主号(所有评估对象使用一个主号),非全选取子号(仅已选择评估对象取号并取子号)!" placement="right">
- <el-button type="success" @click="takeAssetsReportProductionNo('REPORT')" round>报告取号</el-button>
- </el-tooltip>
- </el-col>
- <el-col :span="8" v-if="currentNode.nodeCode === 'ASSET_REPORT_TAKE_NO' && couldEdit">
- <div style="color: red;">
- 选择要提交的报告号:
- <el-select v-model="commitProductionNo" @change="pushProductionNo()" placeholder="请选择要提交的报告号"
- style="width: 300px;">
- <el-option v-for="(target, reportNo) in filteredTargetData" v-if="target.reportNo"
- :label="target.reportNo" :value="target.reportNo" :key="target.id"></el-option>
- </el-select>
- </div>
- </el-col>
- <el-col :span="2" v-if="(currentNode.nodeCode === 'GENERATE_STATEMENT' && writeProductionStatementNos.length > 0)
- || (currentNode.nodeCode === 'WRITE_REPORT' && writeProductionReportNos.length > 0)
- && couldEdit">
- <el-tooltip class="item" effect="dark" content="请仔细确认产品内容" placement="right">
- <el-button type="success" @click="openWriteProductionDialog(false, 'add')" round>撰写产品信息</el-button>
- </el-tooltip>
- </el-col>
- </el-row>
- <el-table ref="multipleTable" :data="assetsEvaluationTarget" stripe @selection-change="targetSelectionChange"
- :header-row-style="{ color: '#333333' }" border takeNumberItems style="width: 100%; margin-top:20px">
- <el-table-column type="selection" width="55" :selectable="selectable">
- </el-table-column>
- <el-table-column width="220" prop="statementNo" label="意见书号" align="center" show-overflow-tooltip>
- <template slot-scope="scope">
- <el-tag type='success' v-if="scope.row.statementNo">
- {{ scope.row.statementNo }}
- </el-tag>
- <el-tag type='danger' v-else>
- 未取号
- </el-tag>
- </template>
- </el-table-column>
- <el-table-column width="220" prop="reportNo" label="报告号" align="center" show-overflow-tooltip>
- <template slot-scope="scope">
- <el-tag type='success' v-if="scope.row.reportNo">
- {{ scope.row.reportNo }}
- </el-tag>
- <el-tag type='danger' v-else>
- 未取号
- </el-tag>
- </template>
- </el-table-column>
- <el-table-column prop="statementCreateProductionDate" label="意见书出具状态" align="center" show-overflow-tooltip>
- <template slot-scope="{row}">
- <el-tag v-if="row.statementCreateProductionDate !== null" type='success'> 已出具</el-tag>
- <el-tag v-if="row.statementCreateProductionDate == null" type='danger'> 未出具</el-tag>
- </template>
- </el-table-column>
- <el-table-column prop="reportCreateProductionDate" label="报告出具状态" align="center" show-overflow-tooltip>
- <template slot-scope="{row}">
- <el-tag v-if="row.reportCreateProductionDate !== null" type='success'> 已出具</el-tag>
- <el-tag v-if="row.reportCreateProductionDate == null" type='danger'> 未出具</el-tag>
- </template>
- </el-table-column>
- <el-table-column prop="purposeName" label="评估目的" align="center" show-overflow-tooltip>
- </el-table-column>
- <el-table-column label="评估对象" align="center" show-overflow-tooltip>
- <template slot-scope="{row}">
- <span>{{ row.targetTypename }}</span>
- <span>--</span>
- <span>{{ row.secTargetTypaName }}</span>
- </template>
- </el-table-column>
- <el-table-column prop="theHolder" label="产权持有人" align="center" show-overflow-tooltip>
- </el-table-column>
- <el-table-column prop="valueTypeName" label="价值类型" align="center" show-overflow-tooltip>
- </el-table-column>
- <el-table-column prop="totalAssetCarryingAmount" label="总资产账面值(万)" align="center" show-overflow-tooltip>
- </el-table-column>
- <el-table-column prop="totalLiabilitiesCarryingAmount" label="总负债账面值(万)" align="center"
- show-overflow-tooltip>
- </el-table-column>
- <el-table-column prop="carryingAmountOfNetAssets" label="净资产账面值(万)" align="center" show-overflow-tooltip>
- </el-table-column>
- <el-table-column prop="estimatedValue" label="评估价格(万)" align="center" show-overflow-tooltip>
- </el-table-column>
- <el-table-column prop="checkValue" label="审核价格(万)" align="center" show-overflow-tooltip>
- </el-table-column>
- <el-table-column label="操作" align="center" width="130" fixed="right">
- <template slot-scope="scope">
- <el-button type="text" size="small"
- @click="getAssetsTargetDetail(scope.row.id), changeStatus('detail')">
- 查看
- </el-button>
- <el-button
- v-if="(currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE' || (currentNode.nodeCode !== 'QUOTATION_FEEDBACK')) && !disabledStatus && assetsForm.principalId === $store.getters.userInfo.id"
- type="text" size="small" @click="getAssetsTargetDetail(scope.row.id), changeStatus('edit')">
- 编辑
- </el-button>
- <el-button
- v-if="(currentNode.nodeCode === 'SPOT_RECONNAISSANCE_DETERMINE_PRICE' || (currentNode.nodeCode !== 'QUOTATION_FEEDBACK' && !scope.row.statementNo && !scope.row.reportNo)) && !disabledStatus"
- type="text" size="small" @click="assetsTargetDelete(scope.row.id)">删除</el-button>
- <el-button
- v-if="(currentNode.nodeCode === 'REVIEW_STATEMENT' || currentNode.nodeCode === 'CHECK_REPORT') && !disabledStatus"
- type="text" size="small" @click="openCheckValueDialog(scope.row.id);">审核定价</el-button>
- </template>
- </el-table-column>
- </el-table>
- <el-row>
- <el-col :span="2">
- <p v-if="assetsProductionForm.productionType">产品类型:
- <span style="color: red" v-if="assetsProductionForm.productionType == 'CONSULT'">
- 咨询报告
- </span>
- <span style="color: red" v-if="assetsProductionForm.productionType == 'REPORT'">
- 评估报告
- </span>
- <span style="color: red" v-if="assetsProductionForm.productionType == 'LETTER'">
- 意见函
- </span>
- <span style="color: red" v-if="assetsProductionForm.productionType == 'STATEMENT'">
- 价值意见书
- </span>
- </p>
- </el-col>
- </el-row>
- </div>
- </div>
- </el-tab-pane>
- <el-tab-pane name="production" class="pane-class" :lazy=true>
- <span slot="label" @click="getAETargetListByAssetsId()"><i class="el-icon-document"></i>产品信息</span>
- <div class="createMajor-main-container">
- <div class="postInfo-container">
- <div style="margin-top: 35px;">
- <el-divider content-position="left">
- <h3 class="title">
- <div class="avatar-wrapper icon-title">产品</div>
- <div class="icon-info">资产产品信息</div>
- </h3>
- </el-divider>
- </div>
- <div style="margin-top: 30px; color: red;" v-if="currentNode.nodeCode === 'GENERATE_STATEMENT' && couldEdit">
- 选择要提交的意见书:
- <el-select v-model="commitProductionNo" @change="pushProductionNo()" placeholder="请选择要提交的产品"
- style="width: 300px;">
- <el-option v-for="(pro, productionNo) in assetsProductionData" v-if="pro.productionType == 'STATEMENT'"
- :label="pro.productionNo" :value="pro.productionNo" :key="pro.id"></el-option>
- </el-select>
- </div>
- <div style="margin-top: 30px;">
- <span v-if="currentNode.nodeCode === 'STATEMENT_BOOKBINDING_STAMP'">
- <span v-for="pro in assetsProductionData" :key="pro.id" style="color: red;">
- 打印份数:{{ pro.printCount }}
- </span>
- </span>
- </div>
- <el-table :data="assetsProductionData" stripe :header-row-style="{ color: '#333333' }" border takeNumberItems
- style="width: 100%; margin-top:20px">
- <el-table-column type="expand">
- <template slot-scope="props">
- <el-form label-position="left">
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
- <el-form-item label-width="150px" label="委托方名称:">
- <span>{{ props.row.clientName }}</span>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
- <el-form-item label-width="150px" label="委托方电话:">
- <span>{{ props.row.clientTel }}</span>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
- <el-form-item label-width="150px" label="评估基准日:">
- <span>{{ props.row.valuationBasisDate }}</span>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
- <el-form-item label-width="150px" label="评估面积:">
- <span>{{ props.row.evaluateAcreage }} m²</span>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
- <el-form-item label-width="150px" label="评估单价:">
- <span>{{ props.row.evaluatePrice }}(元)</span>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
- <el-form-item label-width="150px" label="评估总价:">
- <span>{{ props.row.evaluateAmount }}(万)</span>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
- <el-form-item label-width="150px" label="产权人:">
- <span>{{ props.row.owner }}</span>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
- <el-form-item label-width="150px" label="产品打印数量:">
- <span>{{ props.row.printCount }}(份)</span>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
- <el-form-item label-width="150px" label="产品出具日期:">
- <span>{{ props.row.createProductionDate }}</span>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
- <el-form-item label-width="150px" label="资料附件:">
- <span type="primary" v-for="file in props.row.filePath" :key="file.name">
- <el-link @click="officeFileView(file.name, file.url)">{{ file.name }}</el-link>
- </span>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
- <el-form-item prop="qrCode" label-width="150px" label="产品二维码:">
- <img style="width:130px;height:120px; display:inline-block ;" :src="props.row.qrCode"
- alt="NULL" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
- <el-form-item prop="qrCode" label-width="150px" label="验证二维码:">
- <img style="width:130px;height:120px; display:inline-block ;" :src="props.row.validateCode"
- alt="NULL" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="6" :span="6" class="postInfo-container-item">
- <el-form-item label-width="150px" label="特殊情况说明:">
- <span>{{ props.row.comment }}</span>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- </template>
- </el-table-column>
- <el-table-column prop="productionNo" label="产品号" align="center" show-overflow-tooltip>
- <template slot-scope="{row}">
- <el-tag type="success"><span>{{ row.productionNo }}</span></el-tag>
- </template>
- </el-table-column>
- <el-table-column prop="productionType" label="产品类型" align="center" show-overflow-tooltip>
- <template slot-scope="{row}">
- <el-tag v-if="row.productionType === 'STATEMENT'">价值意见书</el-tag>
- <el-tag v-if="row.productionType == 'LETTER'">意见函</el-tag>
- <el-tag v-if="row.productionType == 'CONSULT'">咨询报告</el-tag>
- <el-tag v-if="row.productionType == 'REPORT'">评估报告</el-tag>
- </template>
- </el-table-column>
- <el-table-column prop="repertoryState" label="库存状态" align="center" show-overflow-tooltip>
- <template slot-scope="{row}">
- <el-tag type="danger" v-if="row.repertoryState === null">未入库</el-tag>
- <el-tag type="success" v-if="row.repertoryState === true">已出库</el-tag>
- <el-tag type="warning" v-if="row.repertoryState === false">已入库</el-tag>
- </template>
- </el-table-column>
- <el-table-column prop="comment" label="特殊情况说明" align="center" show-overflow-tooltip>
- </el-table-column>
- <el-table-column label="操作" align="center" width="180" fixed="right">
- <template slot-scope="scope">
- <el-button type="text" size="small"
- @click="openWriteProductionDialog(true, 'detail'), getAssetsProductionDetail(scope.row.id)">
- 查看
- </el-button>
- <el-button
- v-if="(currentNode.nodeCode === 'REVIEW_STATEMENT' || (currentNode.nodeCode === 'GENERATE_STATEMENT' && scope.row.productionType === 'STATEMENT') || (currentNode.nodeCode === 'WRITE_REPORT' && scope.row.productionType !== 'STATEMENT')) && !disabledStatus"
- type="text" size="small"
- @click="openWriteProductionDialog(false, 'edit'), getAssetsProductionDetail(scope.row.id)">
- 编辑
- </el-button>
- <el-button
- v-if="currentNode.nodeCode === 'REVIEW_STATEMENT' && scope.row.productionType === 'STATEMENT' && !disabledStatus"
- type="text" size="small"
- @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
- 审核意见书
- </el-button>
- <el-button
- v-if="currentNode.nodeCode === 'REEXAMINE_STATEMENT' && scope.row.productionType === 'STATEMENT' && !disabledStatus"
- type="text" size="small"
- @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
- 复审意见书
- </el-button>
- <el-button
- v-if="currentNode.nodeCode === 'CHECK_REPORT' && scope.row.productionType !== 'STATEMENT' && !disabledStatus"
- type="text" size="small"
- @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
- 审核报告
- </el-button>
- <el-button
- v-if="currentNode.nodeCode === 'RECHECK_REPORT' && scope.row.productionType !== 'STATEMENT' && !disabledStatus"
- type="text" size="small"
- @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
- 复审报告
- </el-button>
- <el-button
- v-if="currentNode.nodeCode === 'FOURTH_CHECK_REPORT' && scope.row.productionType !== 'STATEMENT' && !disabledStatus"
- type="text" size="small"
- @click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
- 四审报告
- </el-button>
- <el-button
- v-if="(currentNode.nodeCode === 'STATEMENT_IN' || currentNode.nodeCode === 'REPORT_IN') && scope.row.repertoryState === null && !disabledStatus"
- type="text" size="small" @click="openWareHouseDialog(scope.row);">产品入库</el-button>
- <el-button
- v-if="(currentNode.nodeCode === 'STATEMENT_OUT' || currentNode.nodeCode === 'REPORT_OUT') && scope.row.repertoryState === false && !disabledStatus"
- type="text" size="small" @click="openWareHouseDialog(scope.row);">产品出库</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- </el-tab-pane>
- <el-tab-pane name="finance" class="pane-class" :lazy=true>
- <span slot="label" @click="getOrderFundInvoiceById()"><i class="el-icon-document"></i>款项信息</span>
- <div class="createMajor-main-container">
- <div class="postInfo-container">
- <div style="margin-top: 35px;">
- <el-divider content-position="left">
- <h3 class="title">
- <div class="avatar-wrapper icon-title">款项</div>
- <div class="icon-info">资产款项信息</div>
- </h3>
- </el-divider>
- </div>
- </div>
- <el-form ref="invoiceData" :model="invoiceData" :disabled="true">
- <el-row>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="产品应收款(元):" prop="productionShouldAmount" label-width="140px" class="postInfo-container-item">
- <el-input v-model="invoiceData.productionShouldAmount" class="filter-item" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="产品实收款(元):" prop="productionRealAmount" label-width="140px" class="postInfo-container-item">
- <el-input v-model="invoiceData.productionRealAmount" class="filter-item" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="产品标准收费(元):" prop="standardAmount" label-width="140px" class="postInfo-container-item">
- <el-input v-model="invoiceData.standardAmount" class="filter-item" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row v-for="(invoice, id) in invoiceData.financeInvoiceVoList" :key="id">
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="开票类型:" prop="type" label-width="140px" class="postInfo-container-item">
- <el-input v-model="invoice.type" class="filter-item" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="发票抬头:" prop="title" label-width="140px" class="postInfo-container-item">
- <el-input v-model="invoice.title" class="filter-item" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="税号:" prop="taxNo" label-width="140px" class="postInfo-container-item">
- <el-input v-model="invoice.taxNo" class="filter-item" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="开户银行:" prop="bankName" label-width="140px" class="postInfo-container-item">
- <el-input v-model="invoice.bankName" class="filter-item" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="银行地址:" prop="bankAddress" label-width="140px" class="postInfo-container-item">
- <el-input v-model="invoice.bankAddress" class="filter-item" />
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6" :span="6">
- <el-form-item label="联系电话:" prop="bankTel" label-width="140px" class="postInfo-container-item">
- <el-input v-model="invoice.bankTel" class="filter-item" />
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- </div>
- </el-tab-pane>
- </el-tabs>
- <el-dialog :visible.sync="targetDialogVisible" @open="clear()" @close="resettargetForm"
- custom-class="doWarehouseClass">
- <div>
- <el-form ref="targetForm" :model="targetForm" style="margin-top:20px" :rules="targetFormRules"
- :disabled="targetDisabledStatus">
- <el-divider content-position="left">【资产】评估对象</el-divider>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item label="评估目的:" prop="evaluationPurposeId" label-width="200px" class="postInfo-container-item">
- <el-select v-model="targetForm.evaluationPurposeId" style="width: 100%">
- <el-option v-for="(p, id) in assetsEvaluationTargetPurpose" :label="p.purposeName"
- :value="p.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="12" :span="3">
- <el-form-item label="评估对象:" prop="evaluationTypeId" label-width="200px" class="postInfo-container-item">
- <el-select v-model="targetForm.evaluationTypeId"
- @change="getTypeList(targetForm.evaluationTypeId, 2), targetForm.evaluationTypeSecId = null"
- style="width: 100%">
- <el-option v-for="(t, id) in assetsEvaluationTargetType" :label="t.typeName" :value="t.id"
- :key="t.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="12" :span="3">
- <el-form-item prop="evaluationTypeSecId" label-width="10px" class="postInfo-container-item">
- <el-select v-model="targetForm.evaluationTypeSecId" style="width: 70%">
- <el-option v-for="(t, id) in assetsSecEvaluationTargetType" :label="t.typeName" :value="t.id"
- :key="t.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="12" :span="3"
- v-if="targetForm.evaluationTypeSecId && [15, 20, 34, 47].includes(targetForm.evaluationTypeSecId)">
- <el-form-item prop="evaluationTypeDefinedSec" label-width="200px" class="postInfo-container-item">
- <el-input v-model="targetForm.evaluationTypeDefinedSec" multiple style="width: 100%;">
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item label=" 产权持有人:" prop="theHolder" label-width="200px" class="postInfo-container-item">
- <el-input v-model="targetForm.theHolder" class="filter-item" style="width: 100%" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item label="价值类型:" prop="assetsValueId" label-width="200px" class="postInfo-container-item">
- <el-select v-model="targetForm.assetsValueId" style="width: 100%">
- <el-option v-for="(t, id) in assetsValueType" :label="t.typeName" :value="t.id" :key="t.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item label="项目负责人:" label-width="200px" class="postInfo-container-item">
- <el-select v-model="targetForm.principalId" placeholder="请选择" readonly disabled style="width: 100%">
- <el-option v-for="(u, id) in principals" :label="u.name" :value="u.id" :key="u.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item label="实勘人:" prop="siteIds" label-width="200px" class="postInfo-container-item">
- <el-select v-model="targetForm.siteIds" placeholder="请选择" multiple style="width: 100%">
- <el-option v-for="(u, id) in depUsers" :label="u.name" :value="u.id" :key="u.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item prop="valuationBasisDate" label-width="200px" label="估价基准日:" class="postInfo-container-item">
- <el-date-picker v-model="targetForm.valuationBasisDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" style="width:100%">
- </el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="12" :sm="12" :lg="12" :span="12">
- <el-form-item label="评估方法:" prop="evaluationMethodId" label-width="200px" class="postInfo-container-item">
- <el-select v-model="targetForm.evaluationMethodId" multiple style="width: 100%;">
- <el-option v-for="(m, id) in assetsEvaluationMethod" :label="m.methodName" :value="m.id"
- :key="m.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :xs="12" :sm="12" :lg="12" :span="12" v-if="targetForm.evaluationMethodId.includes(7)">
- <el-form-item prop="definedEvaluationMethod" label-width="20px" class="postInfo-container-item">
- <el-input v-model="targetForm.definedEvaluationMethod" multiple style="width: 50%;">
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="12" :sm="12" :lg="12" :span="12">
- <el-form-item label="最终选择的评估方法:" prop="choiceEvaluationMethodId" label-width="200px"
- class="postInfo-container-item">
- <el-select v-model="targetForm.choiceEvaluationMethodId" multiple style="width: 100%;">
- <el-option v-for="(m, id) in assetsEvaluationMethod" :label="m.methodName" :value="m.id"
- :key="m.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :xs="12" :sm="12" :lg="12" :span="12" v-if="targetForm.choiceEvaluationMethodId.includes(7)">
- <el-form-item prop="choiceDefinedEvaluationMethod" label-width="20px" class="postInfo-container-item">
- <el-input v-model="targetForm.choiceDefinedEvaluationMethod" multiple style="width: 50%;">
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item label="总资产账面值:" prop="totalAssetCarryingAmount" label-width="200px"
- class="postInfo-container-item">
- <el-input-number v-model="targetForm.totalAssetCarryingAmount" controls-position="right" :precision="2"
- :step="0.1"></el-input-number>
- <span>(万)</span>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item label="总负债账面值:" prop="totalLiabilitiesCarryingAmount" label-width="200px"
- class="postInfo-container-item">
- <el-input-number v-model="targetForm.totalLiabilitiesCarryingAmount" controls-position="right"
- :precision="2" :step="0.1"></el-input-number>
- <span>(万)</span>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item label="净资产账面值:" prop="carryingAmountOfNetAssets" label-width="200px"
- class="postInfo-container-item">
- <el-input-number v-model="targetForm.carryingAmountOfNetAssets" controls-position="right" :precision="2"
- :step="0.1"></el-input-number>
- <span>(万)</span>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item label="评估结论对应的评估值:" prop="estimatedValue" label-width="200px" class="postInfo-container-item">
- <el-input-number v-model="targetForm.estimatedValue" controls-position="right" :precision="2"
- :step="0.1"></el-input-number>
- <span>(万)</span>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style" v-if="currentNode.nodeCode === 'REVIEW_QUOTATION'">
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item label="审核定价:" prop="checkValue" label-width="200px" class="postInfo-container-item">
- <el-input-number v-model="targetForm.checkValue" controls-position="right" :precision="2"
- :step="0.1"></el-input-number>
- <span>(万)</span>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="18" :span="6">
- <el-form-item prop="filePath" label="资料附件:" label-width="200px" class="postInfo-container-item">
- <el-upload action="/api/upload" :limit="10" :on-success="changeresTarget" :on-exceed="handleExceed"
- :on-preview="handleAttachmentPreview" :before-remove="beforeRemove" :file-list="fileList" multiple>
- <el-button plain type="info" round style="width: 100%">上传附件<i
- class="el-icon-upload el-icon--right"></i></el-button>
- </el-upload>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="24" :span="12">
- <el-form-item label="备注:" prop="remark" label-width="200px" class="postInfo-container-item">
- <el-input v-model="targetForm.remark" :autosize="{ minRows: 4, maxRows: 4 }" class="filter-item"
- type="textarea" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style" style="text-align:center">
- <el-button type="success" v-if="saveButtonStatus" @click="assetsTargetSave">保存</el-button>
- <el-button type="success" v-if="updateButtonStatus" @click="assetsTargetUpdate">更新</el-button>
- </el-row>
- </el-form>
- </div>
- </el-dialog>
- <el-dialog :visible.sync="productionChoiceDialogVisible">
- <el-form ref="assetsProductionForm" :model="assetsProductionForm" :rules="assetsProductionFormRules">
- <div class="createMajor-main-container">
- <div class="postInfo-container">
- <div>
- <el-divider content-position="left">
- <h3 class="title">
- <div class="avatar-wrapper icon-title">产品</div>
- <div class="icon-info">选择产品</div>
- </h3>
- </el-divider>
- </div>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="12" :span="6" style="width: 800px;">
- <el-form-item label="产品类型:" prop="productionType" label-width="120px" class="postInfo-container-item">
- <el-radio v-if="currentNode.nodeCode === 'PRODUCT_CHOICE'" v-model="assetsProductionForm.productionType"
- label="STATEMENT" border size="medium">价值意见书</el-radio>
- <el-radio v-model="assetsProductionForm.productionType" label="CONSULT" border
- size="medium">咨询报告</el-radio>
- <el-radio v-model="assetsProductionForm.productionType" label="REPORT" border
- size="medium">评估报告</el-radio>
- <el-radio v-model="assetsProductionForm.productionType" label="LETTER" border
- size="medium">意见函</el-radio>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="12" :span="6" style="width: 345px;">
- <el-form-item label="打印份数:" prop="printCount" label-width="120px" class="postInfo-container-item">
- <el-input v-model.number="assetsProductionForm.printCount" class="filter-item" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style" style="text-align:center">
- <el-button type="primary" v-if="productionChoiceStatus == 0" @click="assetsProductionSave">提交</el-button>
- <el-button type="primary" v-if="productionChoiceStatus == 1"
- @click="assetsProductionUpdateChoice">提交</el-button>
- </el-row>
- </div>
- </div>
- </el-form>
- </el-dialog>
- <el-dialog :visible.sync="productionWriteDialogVisible" @open="clearassetsProductionFormValidate(), byAssetEvaluator()"
- @close="resetProductionForm()">
- <el-form ref="assetsProductionForm" :model="assetsProductionForm" :rules="assetsProductionFormRules"
- :disabled="productionDisabledStatus">
- <div class="createMajor-main-container">
- <div class="postInfo-container">
- <div>
- <el-divider content-position="left">
- <h3 class="title">
- <div class="avatar-wrapper icon-title">产品</div>
- <div class="icon-info">撰写产品信息</div>
- </h3>
- </el-divider>
- </div>
- <el-row class="row-style">
- <el-col v-if="currentNode.nodeCode === 'GENERATE_STATEMENT'">
- <el-form-item label="产品号:" prop="productionNo" label-width="140px" class="postInfo-container-item">
- <el-select v-model="assetsProductionForm.productionNo" @change="getAssetsProductionDetailByNo()"
- placeholder="请选择" style="width: 300px;">
- <el-option v-for="statementNo in writeProductionStatementNos" :label="statementNo"
- :value="statementNo" :key="statementNo"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col v-if="currentNode.nodeCode === 'WRITE_REPORT'">
- <el-form-item label="产品号:" prop="productionNo" label-width="140px" class="postInfo-container-item">
- <el-select v-model="assetsProductionForm.productionNo" @change="getAssetsProductionDetailByNo()"
- placeholder="请选择" style="width: 300px;">
- <el-option v-for="reportNo in writeProductionReportNos" :label="reportNo" :value="reportNo"
- :key="reportNo"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item label="项目名称:" prop="assetsName" label-width="140px" class="postInfo-container-item">
- <el-input v-model.number="assetsProductionForm.assetsName" class="filter-item" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style"
- v-if="(assetsProductionForm.productionType && assetsProductionForm.productionType === 'REPORT')">
- <el-col>
- <el-form-item label="签字人:" prop="signatory" label-width="140px" class="postInfo-container-item">
- <el-select v-model="assetsProductionForm.signatory" placeholder="请选择" multiple>
- <el-option v-for="(u, id) in assetEvaluator" :label="u.name" :value="u.id" :key="u.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item label="委托方名称:" prop="clientName" label-width="140px" class="postInfo-container-item">
- <el-input v-model.number="assetsProductionForm.clientName" class="filter-item" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item label="委托方电话:" prop="clientTel" label-width="140px" class="postInfo-container-item">
- <el-input v-model.number="assetsProductionForm.clientTel" class="filter-item" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item label="估价基准日:" prop="valuationBasisDate" label-width="140px"
- class="postInfo-container-item">
- <el-date-picker v-model="assetsProductionForm.valuationBasisDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd"
- style="width:100%">
- </el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item label="评估面积:" prop="evaluateAcreage" label-width="140px" class="postInfo-container-item">
- <el-input-number v-model="assetsProductionForm.evaluateAcreage" @change="computeAmount"
- controls-position="right" :precision="2" :step="0.1"></el-input-number>
- <span>(m²)</span>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item label="评估单价:" prop="evaluatePrice" label-width="140px" class="postInfo-container-item">
- <el-input-number v-model="assetsProductionForm.evaluatePrice" @change="computeAmount"
- controls-position="right" :precision="2" :step="0.1"></el-input-number>
- <span>(元)</span>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item label="评估总价:" prop="evaluateAmount" label-width="140px" class="postInfo-container-item">
- <el-input-number v-model="assetsProductionForm.evaluateAmount" controls-position="right" :precision="2"
- :step="0.1"></el-input-number>
- <span>(万)</span>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item label="资产持有人:" prop="owner" label-width="140px" class="postInfo-container-item">
- <el-input v-model.number="assetsProductionForm.owner" class="filter-item" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item label="产品打印份数:" prop="printCount" label-width="140px" class="postInfo-container-item">
- <el-input v-model.number="assetsProductionForm.printCount" class="filter-item" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item label="出具产品日期:" prop="createProductionDate" label-width="140px"
- class="postInfo-container-item">
- <el-date-picker v-model="assetsProductionForm.createProductionDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd"
- style="width:100%">
- </el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item prop="filePath" label="资料附件:" label-width="140px" class="postInfo-container-item">
- <el-upload action="/api/upload" :limit="10" :on-success="changeresProduction" :on-exceed="handleExceed"
- :on-preview="handleAttachmentPreview" :before-remove="beforeRemovePro" :file-list="fileList" multiple>
- <el-button plain type="info" round style="width: 100%">上传附件<i
- class="el-icon-upload el-icon--right"></i></el-button>
- </el-upload>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item label="特殊情况说明:" prop="comment" label-width="140px" class="postInfo-container-item">
- <el-input v-model="assetsProductionForm.comment" :autosize="{ minRows: 4, maxRows: 4 }"
- class="filter-item" type="textarea" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style" style="text-align:center">
- <el-button type="primary" v-if="writeType === 'add'" @click="writeAssetsProduction()">提交</el-button>
- </el-row>
- <el-row class="row-style" style="text-align:center">
- <el-button type="primary" v-if="writeType === 'edit'" @click="productionUpdate()">提交</el-button>
- </el-row>
- </div>
- </div>
- </el-form>
- </el-dialog>
- <el-dialog :visible.sync="checkValueDialogVisible">
- <el-divider content-position="left">【资产】审核定价</el-divider>
- <el-form ref="targetForm" :model="targetForm" :rules="targetFormRules">
- <div class="createMajor-main-container">
- <div class="postInfo-container">
- <el-row>
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item label="评估方法:" prop="evaluationMethodId" label-width="190px" class="postInfo-container-item">
- <el-select v-model="targetForm.evaluationMethodId" multiple style="width: 100%;">
- <el-option v-for="(m, id) in assetsEvaluationMethod" :label="m.methodName" :value="m.id"
- :key="m.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="12" :span="6" v-if="targetForm.evaluationMethodId.includes(7)">
- <el-form-item prop="definedEvaluationMethod" label-width="20px" class="postInfo-container-item">
- <el-input v-model="targetForm.definedEvaluationMethod" multiple style="width: 50%;">
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
- <el-form-item label="最终选择的评估方法:" prop="choiceEvaluationMethodId" label-width="190px"
- class="postInfo-container-item">
- <el-select v-model="targetForm.choiceEvaluationMethodId" multiple style="width: 100%;">
- <el-option v-for="(m, id) in assetsEvaluationMethod" :label="m.methodName" :value="m.id"
- :key="m.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="12" :span="6" v-if="targetForm.choiceEvaluationMethodId.includes(7)">
- <el-form-item prop="choiceDefinedEvaluationMethod" label-width="20px" class="postInfo-container-item">
- <el-input v-model="targetForm.choiceDefinedEvaluationMethod" multiple style="width: 50%;">
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col>
- <el-form-item label="审核价格:" prop="checkValue" label-width="190px" class="postInfo-container-item">
- <el-input-number v-model="targetForm.checkValue" controls-position="right" :precision="2" :step="0.1"></el-input-number>
- <span>(万)</span>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row style="text-align:center">
- <el-col>
- <el-button type="primary" @click="checkValue()">审核定价</el-button>
- </el-col>
- </el-row>
- </div>
- </div>
- </el-form>
- </el-dialog>
- <el-dialog :visible.sync="productionCheckDialogVisible" @close="resetProductionForm()">
- <el-form ref="productionPerformanceForm" :model="productionPerformanceForm">
- <div class="createMajor-main-container">
- <div class="postInfo-container">
- <div>
- <el-divider content-position="left">
- <h3 class="title">
- <div class="avatar-wrapper icon-title">产品</div>
- <div class="icon-info">产品质检</div>
- </h3>
- </el-divider>
- </div>
- <el-row class="row-style">
- <el-col>
- <el-form-item prop="normalMistake" label-width="120px" class="postInfo-container-item" label="一般错误个数:">
- <el-input-number :min="0" style="width:50%;" type="number"
- v-model="productionPerformanceForm.normalMistake" class="filter-item" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item prop="normalMistake" label-width="120px" class="postInfo-container-item" label="较大错误个数:">
- <el-input-number :min="0" style="width:50%;" type="number"
- v-model="productionPerformanceForm.hardMistake" class="filter-item" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item prop="fatalMistake" label-width="120px" class="postInfo-container-item" label="重大错误个数:">
- <el-input-number :min="0" style="width:50%;" type="number"
- v-model="productionPerformanceForm.fatalMistake" class="filter-item" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col :xs="24" :sm="12" :lg="24" :span="6">
- <el-form-item prop="reason" label-width="120px" class="postInfo-container-item" label="扣分原因:">
- <el-input v-model.trim="productionPerformanceForm.reason" class="filter-item" type="textarea" />
- </el-form-item>
- </el-col>
- </el-row>
- <div v-if="currentNode.nodeCode === 'RECHECK_REPORT' || currentNode.nodeCode === 'FOURTH_CHECK_REPORT'">
- <el-row class="row-style">
- <el-col>
- <el-form-item label="特殊情况说明:" prop="comment" label-width="150px" class="postInfo-container-item">
- <el-input v-model="assetsProductionForm.comment" :autosize="{ minRows: 4, maxRows: 4 }"
- class="filter-item" type="textarea" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row class="row-style">
- <el-col>
- <el-form-item :rules="{ required: true, message: '请上传附件资料', trigger: 'changes' }" prop="filePath"
- label="资料附件:" label-width="120px" class="postInfo-container-item">
- <el-upload action="/api/upload" :limit="10" :on-success="changeresProduction" :on-exceed="handleExceed"
- :on-preview="handleAttachmentPreview" :before-remove="beforeRemovePro" :file-list="fileList" multiple>
- <el-button plain type="info" round style="width: 100%">上传附件<i
- class="el-icon-upload el-icon--right"></i></el-button>
- </el-upload>
- </el-form-item>
- </el-col>
- </el-row>
- </div>
- <el-row style="text-align:center">
- <el-col>
- <el-button type="primary" @click="saveQuality()">提交</el-button>
- </el-col>
- </el-row>
- </div>
- </div>
- </el-form>
- </el-dialog>
- <el-dialog :visible.sync="warehouseDialog" width="25%" center top="35vh" custom-class="doWarehouseClass"
- @closed="cleanWareHouseProductionType()">
- <ScanEntry ref="scanEntry" @scanEntryFun="handleScanEntry" label="请扫描二维码或输入报告号" />
- <span slot="footer" class="dialog-footer">
- <el-button @click="warehouseDialog = false">取 消</el-button>
- <el-button type="primary" @click="doWareHouse()">确 定</el-button>
- </span>
- </el-dialog>
- <el-dialog :visible.sync="assetsAchievementRatioDialogVisible" @close="resetProductionForm()"
- @closed="resetBusinessPerformanceDistributionForm()" width="25%">
- <div v-if="businessPerformanceDistributionForm.distributionList !== null" class="createMajor-main-container">
- <div class="postInfo-container">
- <div>
- <el-divider content-position="left">
- <h3 class="title">
- <div class="avatar-wrapper icon-title">归档</div>
- <div class="icon-info">归档审核</div>
- </h3>
- </el-divider>
- </div>
- <!-- <p style="margin-top: 50px; color: red;">绩效比例:</p>
- <el-row style="margin-top: 10px;" v-for="(member, index) in assetsBusinessMembers" :key="index"
- class="row-style">
- <el-col>
- <p style="width: 65px; display: inline-block; text-align: right;">
- {{ member.memberName }}:
- </p>
- <el-input-number
- v-model="businessPerformanceDistributionForm.distributionList[index].performanceDistribution"
- :precision="2" :step="0.1" :max="100">
- </el-input-number>
- <p style="margin-left: 5px; display: inline-block;">
- %
- </p>
- <p style="margin-left: 5px; display: inline-block;">
- <span v-if="member.memberType === '项目负责人'" style="color: blueviolet;">
- * {{ member.memberType }}
- </span>
- <span v-if="member.memberType === '项目参与人'">
- * {{ member.memberType }}
- </span>
- <span v-if="member.memberType === '签字师'" style="color: red;">
- * {{ member.memberType }}
- </span>
- </p>
- </el-col>
- </el-row> -->
- <span v-if="currentNode.nodeCode === 'CHECK_ARCHIVING'">
- <el-row style="margin-top: 10px;" class="row-style">
- <el-col>
- <el-form>
- <el-form-item :rules="{ required: true, message: '请上传附件资料', trigger: 'changes' }" prop="filePath"
- label="资料附件:" label-width="120px" class="postInfo-container-item">
- <el-upload action="/api/upload" :limit="10" :on-success="changeresProduction" :on-exceed="handleExceed"
- :on-preview="handleAttachmentPreview" :before-remove="beforeRemovePro" :file-list="fileList" multiple>
- <el-button plain type="info" round style="width: 100%">上传附件<i
- class="el-icon-upload el-icon--right"></i></el-button>
- </el-upload>
- </el-form-item>
- </el-form>
- </el-col>
- </el-row>
- </span>
- </div>
- </div>
- <span v-if="businessPerformanceDistributionForm.distributionList !== null" slot="footer" class="dialog-footer">
- <el-button @click="assetsAchievementRatioDialogVisible = false">取 消</el-button>
- <!-- <el-button v-if="showDistributionButton" type="primary" @click="saveBusinessPerformanceDistribution()">新
- 增</el-button>
- <el-button v-if="!showDistributionButton" type="primary" @click="updateAssetsPerformanceDistribution()">修
- 改</el-button> -->
- <el-button @click="updateProductionFileInfo(), assetsAchievementRatioDialogVisible = false">确 认</el-button>
- </span>
- </el-dialog>
- </div>
- </template>
- <script>
- import YDetailPageLayout from '@/components/YDetailPageLayout/index_detail'
- import WorkflowBoard from '@/components/workflowBoard'
- import ScanEntry from '@/components/ScanEntry'
- import { isNumber, phoneNumber, postiveInteger, isIdNumber } from '@/utils/validate'
- export default {
- name: 'AssetsOrderDetail',
- components: {
- YDetailPageLayout,
- WorkflowBoard,
- ScanEntry
- },
- watch: {
- $route(to, from) {
- // 获取页面参数
- this.pageParams.back = this.$route.query.back;
- this.pageParams.row = JSON.parse(this.$route.query.row);
- this.getProductionTypes(this.pageParams.row.assetsId);
- this.nodeBusinessInfo.doWorkflow = true;
- this.nodeBusinessInfo.mainBusiness = 'ASSET_BUSINESS';
- this.nodeBusinessInfo.businessId = this.pageParams.row.assetsId;
- this.nodeBusinessInfo.businessSubId = this.pageParams.row.statementNo;
- this.nodeBusinessInfo.businessMinId = this.pageParams.row.reportNo;
- this.nodeBusinessInfo.reportNos.push(this.pageParams.row.statementNo);
- this.disabledStatus = this.$route.query.disabledStatus === 'true';
- this.couldEdit = this.$route.query.couldEdit === 'true';
- this.couldBack = this.$route.query.couldBack === 'true';
- if (this.$route.query.activeTabName !== null && this.$route.query.activeTabName !== undefined) {
- this.activeTabName = this.$route.query.activeTabName;
- }
- this.byDepartmentName();
- this.getCurrentNodeInfo();
- this.getAllotDepartment();
- this.getAssetsDetailById(this.pageParams.row.assetsId);
- this.getAETargetListByAssetsId();
- this.getOrderFundInvoiceById();
- }
- },
- data() {
- var checkSignatoryLength = (rule, value, callback) => {
- if (this.assetsProductionForm.signatory !== undefined && this.assetsProductionForm.signatory !== null) {
- if (this.assetsProductionForm.signatory.length < 2) {
- return callback(new Error('需至少选择两个签字人'));
- } else {
- callback();
- }
- }
- };
- return {
- editStatus: false,
- // 资产业务表单禁用状态
- disabledStatus: true,
- // 评估对象表单禁用状态
- targetDisabledStatus: true,
- // 评估对象表单保存按钮显示状态
- saveButtonStatus: true,
- // 评估对象表单更新按钮显示状态
- updateButtonStatus: true,
- couldEdit: null,
- couldBack: null,
- // 表单项目隐藏字段
- itemHideStatus: false,
- createLinkmanVisible: false,
- // 文件上传数组
- fileList: [],
- // 资产业务下单表单校验规则
- assetsFormRules: {
- departmentId: [
- { required: true, message: '请选择接单部门', trigger: 'change' }
- ],
- name: [
- { required: true, message: '项目名称不能为空', trigger: 'blur' }
- ],
- assetsBusinessGener: [
- { required: true, message: '请选择业务类型', trigger: 'change' }
- ],
- entrustAgain: [
- { required: true, message: '请选择客户是否再次委托', trigger: 'change' }
- ],
- clienteleType: [
- { required: true, message: '请选择客户类型', trigger: 'change' }
- ],
- clienteleId: [
- { required: true, message: '请选择客户名称', trigger: 'change' }
- ],
- clienteleSubId: [
- { required: true, message: '请选择业务来源', trigger: 'change' }
- ],
- clienteleContactId: [
- { required: true, message: '请选择客户联系人', trigger: 'change' }
- ],
- security: [
- { required: true, message: '请选择是否证券项目', trigger: 'change' }
- ],
- significantAssetsReorganization: [
- { required: true, message: '请选择是否资产重组项目', trigger: 'change' }
- ],
- stateAssets: [
- { required: true, message: '请选择是否是否国资项目', trigger: 'change' }
- ],
- foreignAssetsInvolved: [
- { required: true, message: '请选择是否 是否涉及境外资产', trigger: 'change' }
- ],
- dispenseBenefit: [
- { required: true, message: '请选择是否是否分配产值', trigger: 'change' }
- ],
- // terminalClienteleType: [
- // { required: true, message: '请选择终端客户类型', trigger: 'change' }
- // ],
- terminalClienteleId: [
- { required: true, message: '终端客户名称不能为空', trigger: 'blur' }
- ],
- terminalClienteleContactId: [
- { required: true, message: '终端联系人不能为空', trigger: 'blur' }
- ],
- bailorContactTel: [
- { required: false, validator: phoneNumber, trigger: 'blur' }
- ]
- },
- workflowLogs: [],
- activeName: 'workflowInfo',
- activeTabName: "baseInfo",
- nodeBusinessInfo: {
- currentNodePermission: {
- commit: true,
- reversible: true,
- restartable: true,
- terminable: true,
- skippable: true,
- },
- mainBusiness: "ASSET_BUSINESS",
- doWorkflow: false,
- businessSubId: null,
- businessId: null,
- currentNodeInstanceId: null,
- production: [],
- reportNos: [],
- currentNodeInstanceCode: null,
- ifCheckTask: true,
- ifPay: null,
- doFourthCheck: false,
- ifProductionFund: false
- },
- currentNode: {
- flowId: null,
- pnodeId: null,
- nodeId: null,
- flowCode: null,
- nodeName: "",
- nodeCode: null,
- state: "",
- instanceId: null,
- sequence: null,
- restartable: null,
- reversible: null,
- skippable: null,
- terminable: null,
- tasks: []
- },
- assetsForm: {
- // 项目名
- name: null,
- // 客户经理id
- clientManagerId: this.$store.getters.userInfo.id,
- // 客户经理
- clientManagerName: this.$store.getters.userInfo.name,
- // 接单部门id
- departmentId: null,
- // 资产业务类型
- assetsBusinessGener: null,
- // 客户再次委托
- entrustAgain: null,
- // 客户类型(企业,个人)
- clienteleType: null,
- // 客户id
- clienteleId: null,
- // 业务来源(下级客户id)
- clienteleSubId: null,
- // 客户联系人id
- clienteleContactId: null,
- // 是否证券项目
- security: null,
- // 是否资产重组项目
- significantAssetsReorganization: null,
- // 是否国资项目
- stateAssets: null,
- // 是否涉及境外资产
- foreignAssetsInvolved: null,
- // 是否分配产值
- dispenseBenefit: null,
- // 委托人
- bailor: null,
- // 委托人地址
- bailorAddress: null,
- // 委托联系人姓名
- bailorContactName: null,
- // 委托人联系人电话
- bailorContactTel: null,
- // 终端客户id
- terminalClienteleId: null,
- // 终端客户类型
- terminalClienteleType: null,
- // 终端联系人id
- terminalClienteleContactId: null,
- // 备注
- remark: null,
- // 终端联系电话
- tmobile: null,
- // 分单类型
- allotType: "指派",
- // 项目成员
- members: null,
- },
- // 客户联系人信息
- linkmanInfo: {
- },
- // 终端联系人信息
- tLinkmanInfo: {
- },
- // 终端客户信息
- tCustomerInfo: {
- },
- //
- pageParams: {
- back: null,
- row: null
- },
- // 业务类型下拉列表
- assetsBusinessGeners: [
- {
- value: '企业价值',
- label: '企业价值'
- }, {
- value: '单项资产',
- label: '单项资产'
- }, {
- value: '资产组合',
- label: '资产组合'
- }, {
- value: '无形资产',
- label: '无形资产'
- }, {
- value: '森林资源资产',
- label: '森林资源资产'
- }, {
- value: '珠宝首饰艺术品',
- label: '珠宝首饰艺术品'
- }, {
- value: '其他资产评估',
- label: '其他资产评估'
- }
- ],
- // 接单部门
- allotDepartment: [],
- // 客户信息
- customerCompany: [],
- // 业务信息(二级客户)
- subCustomerCompany: [],
- // 客户联系人下拉列表
- customerContract: [],
- // 终端客户下拉列表
- tCustomerCompany: [],
- // 终端联系人下拉列表
- tCustomerContract: [],
- // 项目负责人下拉列表
- principals: [],
- // 用户下拉列表
- allUsers: [],
- // 资产评估师
- assetEvaluator: [],
- // 资产事业部人员
- depUsers: [],
- // 资产评估对象信息
- assetsEvaluationTarget: [],
- writeProductionStatementNos: [],
- writeProductionReportNos: [],
- // 估计对象总价
- totalEvaluateValue: 0.00,
- // 评估对象表单
- targetForm: {
- id: null,
- // 资产评估目的id
- evaluationPurposeId: null,
- // 资产评估对象类型一级id
- evaluationTypeId: null,
- // 资产评估对象类型二级id
- evaluationTypeSecId: null,
- // 其他自定义二级资产评估对象类型
- evaluationTypeDefinedSec: null,
- // 产权持有人
- theHolder: null,
- // 资产价值类型id
- assetsValueId: null,
- // 项目负责人id
- principalId: null,
- // 实勘人id (json 可多个)
- siteIds: [],
- // 估价基准日
- valuationBasisDate: null,
- // 评估方法id
- evaluationMethodId: [],
- // 最终选择的评估方法id
- choiceEvaluationMethodId: [],
- // 总资产账面值(万)
- totalAssetCarryingAmount: null,
- // 总负债账面值(万)
- totalLiabilitiesCarryingAmount: null,
- // 净资产账面值(万)
- carryingAmountOfNetAssets: null,
- // 评估结论对应的评估值(万)
- estimatedValue: null,
- // 审核价格
- checkValue: null,
- // 资料路由信息
- filePath: [],
- // 资产业务id
- assetsId: null,
- //自定义其他评估方法
- definedEvaluationMethod: null,
- //最终选择的自定义其他评估方法
- choiceDefinedEvaluationMethod: null
- },
- // 资产评估对象评估目的
- assetsEvaluationTargetPurpose: [],
- // 资产评估方法
- assetsEvaluationMethod: [],
- // 资产价值类型
- assetsValueType: [],
- // 资产评估对象类型
- assetsEvaluationTargetType: [],
- // 二级资产评估对象类型
- assetsSecEvaluationTargetType: [],
- // 评估对象弹窗可视状态
- targetDialogVisible: false,
- // 添加评估对象表单校验规则
- targetFormRules: {
- evaluationPurposeId: [
- { required: true, message: '请选择评估目的', trigger: 'change' }
- ],
- evaluationTypeId: [
- { required: true, message: '请选择评估对象', trigger: 'change' }
- ],
- evaluationTypeSecId: [
- { required: true, message: '请选择评估对象', trigger: 'change' }
- ],
- evaluationTypeDefinedSec: [
- { required: true, message: '请填写其他', trigger: 'change' }
- ],
- theHolder: [
- { required: true, message: '请填写产权持有人', trigger: 'blur' }
- ],
- assetsValueId: [
- { required: true, message: '请选择价值类型', trigger: 'change' }
- ],
- principalId: [
- { required: true, message: '请选择项目负责人', trigger: 'change' }
- ],
- siteIds: [
- { required: true, message: '请选择实勘人', trigger: 'change' }
- ],
- valuationBasisDate: [
- { required: true, message: '请选择价格基准日', trigger: 'change' }
- ],
- evaluationMethodId: [
- { required: true, message: '请选择评估方法', trigger: 'change' }
- ],
- definedEvaluationMethod: [
- { required: true, message: '请填写其他评估方法', trigger: 'blur' }
- ],
- choiceEvaluationMethodId: [
- { required: true, message: '请选择最终选择的评估方法', trigger: 'change' }
- ],
- choiceDefinedEvaluationMethod: [
- { required: true, message: '请填写其他评估方法', trigger: 'blur' }
- ],
- totalAssetCarryingAmount: [
- { required: true, message: '请填写总资产账面值', trigger: 'blur' }
- ],
- totalLiabilitiesCarryingAmount: [
- { required: true, message: '请填写总负债账面值', trigger: 'blur' }
- ],
- carryingAmountOfNetAssets: [
- { required: true, message: '请填写净资产账面值', trigger: 'blur' }
- ],
- estimatedValue: [
- { required: true, message: '请填写评估结论对应的评估值', trigger: 'blur' }
- ],
- // filePath: [
- // { required: true, message: '请上传附件资料', trigger: 'change' }
- // ],
- checkValue: [
- { required: true, message: '请填写审核价格', trigger: 'blur' }
- ]
- },
- // 款项信息
- invoiceData: {
- businessId: null,
- shouldAmount: null,
- realAmount: null,
- leftAmount: null,
- title: null,
- type: null,
- taxNo: null,
- bankName: null,
- bankAddress: null,
- bankTel: null
- },
- // 节点任务提交dto
- taskRecordDTO: {
- recordId: null,
- taskData: {}
- },
- pNode: null,
- // 产品选择表单可视状态
- productionChoiceDialogVisible: false,
- // 产品信息撰写表单可视状态
- productionWriteDialogVisible: false,
- // 评估对象审核定价表单可视状态
- checkValueDialogVisible: false,
- // isCheckValue: false,
- // 0:新增,1:更新
- productionChoiceStatus: 0,
- // 产品表单
- assetsProductionForm: {
- businessId: null,
- productionNo: null,
- productionType: null,
- signatory: [],
- clientName: null,
- clientTel: null,
- valuationBasisDate: null,
- evaluateAcreage: null,
- evaluatePrice: null,
- evaluateAmount: null,
- owner: null,
- printCount: null,
- createProductionDate: null,
- comment: null,
- filePath: [],
- assetsName: null
- },
- // 产品选择表单校验规则
- assetsProductionFormRules: {
- productionType: [
- { required: true, message: '请选择产品类型', trigger: 'change' }
- ],
- printCount: [
- { required: true, message: '请填写打印份数', trigger: 'blur' },
- { type: 'number', message: '请填写数字' }
- ],
- signatory: [
- { required: true, message: '请选择签字人', trigger: 'change' },
- { required: true, validator: checkSignatoryLength, trigger: 'change' }
- ],
- clientName: [
- { required: true, message: '请填写委托方名称', trigger: 'blur' }
- ],
- // clientTel: [
- // { required: true, message: '请填写委托方电话', trigger: 'blur' }
- // ],
- valuationBasisDate: [
- { required: true, message: '请选择估价基准日', trigger: 'change' }
- ],
- // evaluateAcreage: [
- // { required: true, message: '请填写评估面积', trigger: 'blur' }
- // ],
- // evaluatePrice: [
- // { required: true, message: '请填写评估单价', trigger: 'blur' }
- // ],
- evaluateAmount: [
- { required: true, message: '请填写评估总价', trigger: 'blur' }
- ],
- // owner: [
- // { required: true, message: '请填写持有人', trigger: 'blur' }
- // ],
- createProductionDate: [
- { required: true, message: '请选择产品出具日期', trigger: 'change' }
- ],
- filePath: [
- { required: true, message: '请上传附件资料', trigger: 'change' }
- ],
- assetsName: [
- { required: true, message: '请填写项目名称', trigger: 'change' }
- ],
- productionNo: [
- { required: true, message: '请选择评估对象', trigger: 'change' }
- ]
- },
- // 资产业务取号dto
- takeAssetsProductionNoDTO: {
- targetIdList: [],
- businessId: null,
- productionType: null,
- hasNotTakeNumTargetSelect: null,
- selectAll: null,
- printCount: null,
- statementNo: null
- },
- assetsProductionData: null,
- commitProductionNo: null,
- proInatanceCount: null,
- // 产品撰写表单禁用状态
- productionDisabledStatus: false,
- // 产品表单编辑类型
- writeType: null,
- // 产品质检表单可视状态
- productionCheckDialogVisible: false,
- // 产品质检信息
- productionPerformanceForm: {
- id: null,
- businessType: null,
- productionId: null,
- checkLoop: null,
- fatalMistake: 0,
- hardMistake: 0,
- normalMistake: 0,
- reason: null,
- checkId: null
- },
- // 产品入库弹窗
- warehouseDialog: false,
- scanEntryData: null,
- wareHouseProductionType: null,
- wareHouseproductionId: null,
- assetsAchievementRatioDialogVisible: false,
- // 项目所有参与人信息
- assetsBusinessMembers: [],
- // 资产绩效比例表单
- businessPerformanceDistributionForm: {
- businessId: null,
- businessType: null,
- reportNo: null,
- distributionList: [
- // {
- // memberId: null,
- // performanceDistribution: null
- // }
- ]
- },
- showDistributionButton: null,
- // 可以更新订单基本信息的节点
- canUpdateOrderBaseInfoNode: [
- 'DEPARTMENT_ALLOCATION', 'SPOT_RECONNAISSANCE_DETERMINE_PRICE', 'QUOTATION_FEEDBACK',
- 'PRODUCT_CHOICE', 'GENERATE_STATEMENT', 'REVIEW_STATEMENT', 'REEXAMINE_STATEMENT',
- 'WRITE_REPORT', 'CHECK_REPORT', 'RECHECK_REPORT', 'FOURTH_CHECK_REPORT'
- ],
- // 统计文件上传次数与文件数量是否符合,以免过早清空文件列表
- fileCount: 0,
- // 查询评估对象时加一个加载状态,以免因为网络等原因造成修改后列表不刷新引起的一系列后续错误
- targetListLoading: false
- }
- },
- computed: {
- filteredTargetData() {
- const uniqueReportNos = new Set();
- return this.assetsEvaluationTarget.filter(item => {
- // 去除报告号为空的评估对象
- if (!item.reportNo) {
- return false;
- }
- // 去重
- if (uniqueReportNos.has(item.reportNo)) {
- return false;
- }
- uniqueReportNos.add(item.reportNo);
- return true;
- });
- }
- },
- created() {
- // 获取页面参数
- this.pageParams.back = this.$route.query.back;
- this.pageParams.row = JSON.parse(this.$route.query.row);
- this.getProductionTypes(this.pageParams.row.assetsId);
- this.nodeBusinessInfo.doWorkflow = true;
- this.nodeBusinessInfo.mainBusiness = 'ASSET_BUSINESS';
- this.nodeBusinessInfo.businessId = this.pageParams.row.assetsId;
- this.nodeBusinessInfo.businessSubId = this.pageParams.row.statementNo;
- this.nodeBusinessInfo.businessMinId = this.pageParams.row.reportNo;
- this.nodeBusinessInfo.reportNos.push(this.pageParams.row.statementNo);
- this.disabledStatus = this.$route.query.disabledStatus === 'true';
- this.couldEdit = this.$route.query.couldEdit === 'true';
- this.couldBack = this.$route.query.couldBack === 'true';
- if (this.$route.query.activeTabName !== null && this.$route.query.activeTabName !== undefined) {
- this.activeTabName = this.$route.query.activeTabName;
- }
- this.byDepartmentName();
- this.getCurrentNodeInfo();
- this.getAllotDepartment();
- this.getAssetsDetailById(this.pageParams.row.assetsId);
- this.getAETargetListByAssetsId();
- },
- methods: {
- // 根据业务id获取资产业务详情
- getAssetsDetailById(id) {
- this.$api.assets.getAssetsDetailById(id).then(res => {
- if (res.code === 200) {
- this.assetsForm = res.data;
- this.assetsForm.members = JSON.parse(res.data.members);
- this.initCustomerSelect(this.assetsForm.clienteleType);
- this.getPrincipalByAllotDepartment();
- this.getContactInfo();
- // this.getAllUser();
- }
- })
- },
- handleChange() {
- },
- workflowCommitVerify(val, callback) {
- let commit = val.commit;
- let verify = new Object();
- verify.state = true;
- verify.cleanReport = false;
- verify.nextHandlerId = this.secondCheckUserId;
- if (commit.state === 'PASS') {
- let nodeCode = this.currentNode.nodeCode;
- switch (nodeCode) {
- case 'GENERATE_STATEMENT':
- let notTakeNumberTargets = this.assetsEvaluationTarget.filter(obj => !obj.productionNo).length;
- if (notTakeNumberTargets.length > 0) {
- this.$notify({
- title: '提示',
- message: '还有意见书号未取的估价对象,请先完成取号操作。',
- type: 'error',
- duration: 3000
- });
- verify.state = false;
- callback(verify);
- return;
- }
- if (typeof (commit.businessSubId) == 'undefined' || commit.businessSubId == null || commit.ifCheckTask == null) {
- this.$notify({
- title: '提示',
- message: '未选择产品,请前往产品信息选择产品后进行提交。',
- type: 'error',
- duration: 3000
- });
- verify.state = false;
- callback(verify);
- return;
- }
- if (this.proInatanceCount > 0) {
- this.$notify({
- title: '提示',
- message: '该产品已提交相应流程,不可重复提交。',
- type: 'error',
- duration: 3000
- });
- verify.state = false;
- callback(verify);
- return;
- }
- break;
- case 'WRITE_REPORT':
- let notTakeReportNoTargets = this.assetsEvaluationTarget.filter(function (e) {
- return e.reportNo == null;
- })
- if (notTakeReportNoTargets.length > 0) {
- this.$notify({
- title: '提示',
- message: '还有报告号未取的估价对象,请先完成取号操作。',
- type: 'error',
- duration: 3000
- });
- verify.state = false;
- callback(verify);
- return;
- }
- if (typeof (commit.businessMinId) == 'undefined' || commit.businessMinId == null || commit.ifCheckTask == null) {
- this.$notify({
- title: '提示',
- message: '未选择产品,请前往产品信息选择产品后进行提交。',
- type: 'error',
- duration: 3000
- });
- verify.state = false;
- callback(verify);
- return;
- }
- if (this.proInatanceCount > 0) {
- this.$notify({
- title: '提示',
- message: '该产品已提交相应流程,不可重复提交。',
- type: 'error',
- duration: 3000
- });
- verify.state = false;
- callback(verify);
- return;
- }
- break;
- case 'ASSET_REPORT_TAKE_NO':
- // if (this.assetsEvaluationTarget.some(item => !item.reportNo)) {
- // this.$notify({
- // title: '提示',
- // message: '还有评估对象未取号,请先完成取号再提交。',
- // type: 'error',
- // duration: 3000
- // });
- // verify.state = false;
- // callback(verify);
- // return;
- // }
- if (typeof (commit.businessMinId) == 'undefined' || commit.businessMinId == null || commit.ifCheckTask == null) {
- this.$notify({
- title: '提示',
- message: '未选择要提交的产品号,请选择后进行提交。',
- type: 'error',
- duration: 3000
- });
- verify.state = false;
- callback(verify);
- return;
- }
- if (this.proInatanceCount > 0) {
- this.$notify({
- title: '提示',
- message: '该产品已提交相应流程,不可重复提交。',
- type: 'error',
- duration: 3000
- });
- verify.state = false;
- callback(verify);
- return;
- }
- break;
- // case 'RECHECK_REPORT':
- // this.flowDoFourthCheck();
- // break;
- }
- callback(verify);
- }
- },
- goBack() {
- const back = this.$route.query.back
- if (back) {
- this.$router.push(back)
- }
- },
- handleClick(tab) {
- },
- // 改变客户类型时进行值重置的操作
- changeCustomerType(val) {
- // 清空联系人下拉列表
- this.assetsForm.clienteleContactId = null;
- this.assetsForm.clienteleSubId = null;
- this.customerContract = [];
- if (val === "企业") {
- this.getCustomerCompany(0);
- this.itemHideStatus = true;
- } else {
- this.getCustomerContract(1);
- this.itemHideStatus = false;
- }
- },
- initCustomerSelect(val) {
- if (val === "企业") {
- this.getCustomerCompany(0);
- // this.getCustomerContract();
- this.itemHideStatus = true;
- } else {
- // this.getCustomerContract(1);
- this.itemHideStatus = false;
- }
- },
- // 获取部门下拉列表
- getAllotDepartment() {
- this.$api.department.allot('ASSET_BUSINESS').then(res => {
- if (res.code === 200) {
- this.allotDepartment = res.data;
- }
- })
- },
- // 获取客户信息
- getCustomerCompany(val) {
- if (val === 0) {
- let simpleAll = new Object();
- simpleAll.terminal = val;
- this.$api.customerCompany.simpleAll(simpleAll).then(res => {
- if (res.code === 200) {
- this.customerCompany = res.data;
- this.findSubClientele(0);
- }
- })
- } else {
- let simpleAll = new Object();
- simpleAll.terminal = val;
- this.$api.customerCompany.simpleAll(simpleAll).then(res => {
- if (res.code === 200) {
- this.tCustomerCompany = res.data;
- }
- })
- }
- },
- // 打开新建客户联系人弹窗
- createLinkman(val) {
- // 打开前判断是否已经选择客户信息
- if (this.targetFassetsFormorm.clienteleType === "个人" || this.assetsForm.clienteleType != null && this.assetsForm.clienteleId != null && this.assetsForm.clienteleSubId != null) {
- this.createLinkmanVisible = true;
- this.linkmanForm.terminal = val;
- this.linkmanForm.clienteleType = this.assetsForm.clienteleType;
- this.linkmanForm.clienteleId = this.assetsForm.clienteleId;
- this.linkmanForm.clienteleSubId = this.assetsForm.clienteleSubId;
- if (this.assetsForm.clienteleType === '企业') {
- this.linkmanForm.ccId = this.assetsForm.clienteleSubId
- } else {
- this.assetsForm.clienteleSubId = 1;
- this.linkmanForm.ccId = this.assetsForm.clienteleSubId;
- }
- } else {
- this.$notify({
- title: '警告',
- message: '请先选择客户!',
- type: 'warning',
- duration: 2000
- });
- }
- },
- // 获取客户联系人列表
- getCustomerContract(val) {
- // if (this.assetsForm.clienteleSubId) {
- let simpleAll = new Object();
- simpleAll.terminal = 0;
- if (val === 1) {
- simpleAll.ccId = val;
- } else {
- simpleAll.ccId = this.assetsForm.clienteleSubId;
- }
- this.$api.customerLinkman.simpleAll(simpleAll).then(res => {
- if (res.code === 200) {
- this.customerContract = res.data;
- }
- })
- // }
- },
- // 获取二级客户信息(业务来源)
- findSubClientele(val) {
- if (val === 0) {
- if (this.assetsForm.clienteleId) {
- let simpleAll = new Object();
- simpleAll.terminal = val;
- simpleAll.parentId = this.assetsForm.clienteleId;
- this.$api.customerCompany.simpleAll(simpleAll).then(res => {
- if (res.code === 200) {
- this.subCustomerCompany = res.data;
- }
- })
- }
- } else {
- if (this.assetsForm.terminalClienteleId) {
- let simpleAll = new Object();
- simpleAll.terminal = val;
- simpleAll.ccId = this.assetsForm.terminalClienteleId;
- this.$api.customerCompany.detail(this.assetsForm.terminalClienteleId).then(res => {
- if (res.code === 200) {
- this.assetsForm.tmobile = res.data.phone;
- }
- })
- }
- }
- },
- // 打开新增终端客户弹窗
- createTerminalClient() {
- this.createTerminalClientVisible = true;
- },
- // 根据部门id获取项目负责人列表
- getPrincipalByAllotDepartment() {
- let departmentId = this.assetsForm.departmentId;
- if (departmentId) {
- this.$api.user.usersByDepartmentId(departmentId).then(res => {
- if (res.code === 200) {
- this.principals = res.data;
- }
- })
- }
- },
- // 获取用户下拉列表
- getAllUser() {
- this.$api.user.simpleAll().then(res => {
- if (res.code === 200) {
- let principals = this.principals;
- let all = res.data;
- let arr = principals.concat(all);
- let obj = {}
- arr = arr.reduce((pre, next) => {
- obj[next.id] ? null : (obj[next.id] = true && pre.push(next))
- return pre;
- }, [])
- this.allUsers = arr;
- }
- })
- },
- // 获取资产评估师用户
- byAssetEvaluator() {
- this.$api.user.byAssetEvaluator().then(res => {
- if (res.code === 200) {
- this.assetEvaluator = res.data;
- }
- })
- },
- // 根据部门名称获取部门及其下辖部门人员
- byDepartmentName() {
- this.$api.user.byDepartmentName("资产评估事业部").then(res => {
- if (res.code === 200) {
- this.depUsers = res.data;
- }
- })
- },
- // 获取流程节点信息
- getCurrentNodeInfo() {
- if (this.pageParams.row.assetsId) {
- this.$api.workNodeInstance.currentNode({ "mainBusiness": "ASSET_BUSINESS", "businessId": this.pageParams.row.assetsId, "businessSubId": this.pageParams.row.statementNo, "businessMinId": this.pageParams.row.reportNo }).then(res => {
- if (res.code === 200) {
- if (res.data) {
- this.currentNode = res.data;
- this.nodeBusinessInfo.currentInstanceNodeId = res.data.instanceId;
- this.nodeBusinessInfo.currentNodeInstanceCode = res.data.nodeCode;
- this.nodeBusinessInfo.currentNodePermission.restartable = res.data.restartable;
- this.nodeBusinessInfo.currentNodePermission.reversible = res.data.reversible;
- this.nodeBusinessInfo.currentNodePermission.skippable = res.data.skippable;
- this.nodeBusinessInfo.currentNodePermission.terminable = res.data.terminable;
- // this.nodeBusinessInfo.businessId = this.pageParams.row.assetsId;
- if (this.currentNode.nodeCode === 'REPORT_IN') {
- this.getProductionRealAmount(this.pageParams.row.reportNo);
- }
- }
- }
- })
- }
- },
- // 修改项目负责人与项目成员信息
- updatePrincipalAndMembers() {
- let assetsPrincipalMembers = new Object();
- assetsPrincipalMembers.id = this.assetsForm.id;
- assetsPrincipalMembers.principalId = this.assetsForm.principalId;
- assetsPrincipalMembers.departmentId = this.assetsForm.departmentId;
- assetsPrincipalMembers.members = JSON.stringify(this.assetsForm.members);
- this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
- this.taskRecordDTO.taskData = assetsPrincipalMembers;
- if (assetsPrincipalMembers.id && assetsPrincipalMembers.principalId && assetsPrincipalMembers.departmentId && this.assetsForm.members.length > 0) {
- this.$api.assets.updatePrincipalAndMembers(this.taskRecordDTO).then(res => {
- if (res.code === 200 && res.data) {
- this.$notify({
- title: '成功',
- message: '保存成功,请提交节点继续流程。',
- type: 'success',
- duration: 2000
- });
- }
- })
- } else {
- this.$notify({
- title: '警告',
- message: '请先完善项目负责人与项目成员信息!',
- type: 'error',
- duration: 2000
- });
- }
- },
- // 更新项目成员但不完成节点任务
- updateMembers() {
- let assetsPrincipalMembers = new Object();
- assetsPrincipalMembers.id = this.assetsForm.id;
- assetsPrincipalMembers.principalId = this.assetsForm.principalId;
- assetsPrincipalMembers.departmentId = this.assetsForm.departmentId;
- assetsPrincipalMembers.members = JSON.stringify(this.assetsForm.members);
- if (assetsPrincipalMembers.id && assetsPrincipalMembers.principalId && assetsPrincipalMembers.departmentId && this.assetsForm.members.length > 0) {
- this.$api.assets.updateMembers(assetsPrincipalMembers).then(res => {
- if (res.code === 200 && res.data) {
- this.$notify({
- title: '成功',
- message: '修改成功',
- type: 'success',
- duration: 2000
- });
- }
- })
- } else {
- this.$notify({
- title: '警告',
- message: '请先完善项目成员信息!',
- type: 'error',
- duration: 2000
- });
- }
- },
- // 根据节点返回不同的操作按钮信息
- hanlderType() {
- if (this.currentNode) {
- if (this.currentNode.nodeCode === 'SPOT_RECONNAISSANCE') {
- return "编辑";
- }
- if (this.currentNode.nodeCode === 'INITIAL_PRICE') {
- return "定价";
- }
- if (this.currentNode.nodeCode === 'REVIEW_QUOTATION') {
- return "审核定价";
- }
- return "查看";
- }
- },
- // 根据资产业务id获取资产业务评估对象集合
- getAETargetListByAssetsId() {
- this.targetListLoading = true;
- let aETargetListSelectDTO = new Object();
- aETargetListSelectDTO.businessId = this.pageParams.row.assetsId;
- // if (productionNo != null || productionNo != undefined || productionNo != '') {
- // aETargetListSelectDTO.statementNo = productionNo;
- // aETargetListSelectDTO.reportNo = productionNo;
- // } else {
- aETargetListSelectDTO.statementNo = this.pageParams.row.statementNo;
- aETargetListSelectDTO.reportNo = this.pageParams.row.reportNo;
- // }
- this.$api.assets.getAETargetListByAssetsId(aETargetListSelectDTO).then(res => {
- if (res.code === 200 && res.data !== null) {
- this.assetsEvaluationTarget = res.data;
- this.writeProductionStatementNos = this.assetsEvaluationTarget
- // 过滤
- .filter(obj => (!obj.statementCreateProductionDate && obj.statementNo))
- // 获取
- .map(obj => obj.statementNo)
- // 去重
- .filter((value, index, self) => self.indexOf(value) === index);
- this.writeProductionReportNos = this.assetsEvaluationTarget
- // 过滤
- .filter(obj => (!obj.reportCreateProductionDate && obj.reportNo))
- // 获取
- .map(obj => obj.reportNo)
- // 去重
- .filter((value, index, self) => self.indexOf(value) === index);
- // 获取资产产品列表
- this.getProductionList();
- // 计算所有评估对象评估总价
- this.totalEvaluateValue = this.assetsEvaluationTarget.reduce((sum, target) => sum + target.estimatedValue, 0);
- // 获取评估对象信息后查询产品选择信息
- this.getChoiceLog();
- this.targetListLoading = false;
- }
- })
- },
- // 获取所有资产评估目的集合
- getPurpose() {
- this.$api.assets.getPurpose().then(res => {
- if (res.code === 200) {
- this.assetsEvaluationTargetPurpose = res.data;
- }
- })
- },
- // 获取所有评估方法集合
- getAssetsEvaluationMethod() {
- this.$api.assets.getAssetsEvaluationMethod().then(res => {
- if (res.code === 200) {
- this.assetsEvaluationMethod = res.data;
- }
- })
- },
- // 获取所有资产价值类型
- getAssetsValueType() {
- this.$api.assets.getAssetsValueType().then(res => {
- if (res.code === 200) {
- this.assetsValueType = res.data;
- }
- })
- },
- // 根据父级id获取资产评估对象类型(id可为空)
- getTypeList(val, level) {
- let parentId = val;
- // 每次进入方法清空二级下拉选择
- // this.targetForm.evaluationTypeSecId = null;
- this.assetsSecEvaluationTargetType = [];
- this.$api.assets.getTypeList(parentId).then(res => {
- if (res.code === 200) {
- if (level == 1) {
- // 等级为1赋值给assetsEvaluationTargetType
- this.assetsEvaluationTargetType = res.data;
- } else {
- // 其他赋值给assetsEvaluationTargetType
- this.assetsSecEvaluationTargetType = res.data;
- }
- }
- })
- },
- // 打开新增评估对象弹窗表单
- openTargetDialog() {
- // 可视状态为true
- this.targetDialogVisible = true;
- // 初始表单所需信息
- this.targetForm.principalId = this.assetsForm.principalId;
- if (!this.targetForm.siteIds || !this.targetForm.siteIds.length > 0) {
- this.targetForm.siteIds = this.assetsForm.members;
- }
- if (this.assetsEvaluationTargetPurpose.length == 0 || this.assetsEvaluationMethod.length == 0 || this.assetsValueType.length == 0 || this.assetsEvaluationTargetType.length == 0) {
- this.getPurpose();
- this.getAssetsEvaluationMethod();
- this.getAssetsValueType();
- this.getTypeList(0, 1);
- }
- },
- // 文件选择改变触发事件
- changeresTarget(res, file, fileList) {
- // 上传成功向表单附件信息数组添加信息
- if (res.code === 200) {
- this.targetForm.filePath.push({ name: file.name, url: res.data.url });
- } else {
- this.$notify({
- title: '错误',
- message: '电子文档上传失败',
- type: 'error',
- duration: 2000
- });
- }
- },
- changeresProduction(res, file, fileList) {
- // 上传成功向表单附件信息数组添加信息
- if (res.code === 200) {
- this.assetsProductionForm.filePath.push({ name: file.name, url: res.data.url });
- } else {
- this.$notify({
- title: '错误',
- message: '电子文档上传失败',
- type: 'error',
- duration: 2000
- });
- }
- },
- // 文件上传数量限制
- handleExceed() {
- this.$message.warning(`当前限制选择10个文件!`);
- },
- handleAttachmentPreview(file) {
- // window.open(file.url)
- this.officeFileView(file.name, file.url);
- },
- // 移除文件
- beforeRemove(file, fileList) {
- fileList = fileList.filter((o) => {
- return o.name !== file.name
- });
- this.targetForm.filePath = this.targetForm.filePath.filter((o) => {
- return o.name !== file.name
- });
- },
- // 移除文件
- beforeRemovePro(file, fileList) {
- fileList = fileList.filter((o) => {
- return o.name !== file.name
- });
- this.assetsProductionForm.filePath = this.assetsProductionForm.filePath.filter((o) => {
- return o.name !== file.name
- });
- },
- resettargetForm() {
- this.targetForm = {
- id: null,
- evaluationPurposeId: null,
- evaluationTypeId: null,
- evaluationTypeSecId: null,
- theHolder: null,
- assetsValueId: null,
- principalId: null,
- siteIds: [],
- valuationBasisDate: null,
- evaluationMethodId: [],
- choiceEvaluationMethodId: [],
- totalAssetCarryingAmount: null,
- totalLiabilitiesCarryingAmount: null,
- carryingAmountOfNetAssets: null,
- estimatedValue: null,
- checkValue: null,
- filePath: [],
- assetsId: null,
- definedEvaluationMethod: null,
- choiceDefinedEvaluationMethod: null
- }
- this.fileList = [];
- },
- clear() {
- if (this.$refs.targetForm !== undefined) {
- this.$refs.targetForm.clearValidate();
- }
- },
- // 保存新增资产业务评估对象
- assetsTargetSave() {
- this.$refs.targetForm.validate(valid => {
- if (valid) {
- this.targetForm.assetsId = this.assetsForm.id;
- this.targetForm.siteIds = JSON.stringify(this.targetForm.siteIds);
- this.targetForm.evaluationMethodId = JSON.stringify(this.targetForm.evaluationMethodId);
- this.targetForm.choiceEvaluationMethodId = JSON.stringify(this.targetForm.choiceEvaluationMethodId);
- this.targetForm.filePath = JSON.stringify(this.targetForm.filePath);
- this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
- this.taskRecordDTO.taskData = this.targetForm;
- this.$api.assets.assetsTargetSave(this.taskRecordDTO).then(res => {
- if (res.code === 200) {
- this.$notify({
- title: '成功',
- message: '添加资产业务评估对象成功,可继续添加或提交节点',
- type: 'success',
- duration: 2000
- });
- this.targetDialogVisible = false;
- //获取评估对象列表
- this.getAETargetListByAssetsId();
- }
- })
- }
- })
- },
- // 根据id获取资产评估对象详情
- getAssetsTargetDetail(id) {
- this.$api.assets.getAssetsTargetDetail(id).then(res => {
- if (res.code === 200) {
- this.targetForm = res.data;
- this.targetForm.siteIds = JSON.parse(res.data.siteIds);
- this.targetForm.evaluationMethodId = JSON.parse(res.data.evaluationMethodId);
- this.targetForm.choiceEvaluationMethodId = JSON.parse(res.data.choiceEvaluationMethodId);
- this.targetForm.filePath = JSON.parse(res.data.filePath);
- this.fileList = JSON.parse(JSON.stringify(this.targetForm.filePath));
- this.getTypeList(this.targetForm.evaluationTypeId, 2);
- this.openTargetDialog();
- }
- })
- },
- // 更新资产评估对象
- assetsTargetUpdate() {
- this.$refs.targetForm.validate(valid => {
- if (valid) {
- this.targetForm.assetsId = this.assetsForm.id;
- this.targetForm.siteIds = JSON.stringify(this.targetForm.siteIds);
- this.targetForm.evaluationMethodId = JSON.stringify(this.targetForm.evaluationMethodId);
- this.targetForm.choiceEvaluationMethodId = JSON.stringify(this.targetForm.choiceEvaluationMethodId);
- this.targetForm.filePath = JSON.stringify(this.targetForm.filePath);
- this.$api.assets.assetsTargetUpdate(this.targetForm).then(res => {
- if (res.code === 200) {
- this.$notify({
- title: '成功',
- message: '更新资产业务评估对象成功!',
- type: 'success',
- duration: 2000
- });
- this.targetDialogVisible = false;
- //获取评估对象列表
- this.getAETargetListByAssetsId();
- }
- })
- }
- })
- },
- // 删除资产评估对象
- assetsTargetDelete(id) {
- this.$confirm('确认删除该评估对象?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- this.$api.assets.assetsTargetDelete(id).then(res => {
- if (res.code === 200) {
- this.$notify({
- title: '成功',
- message: '删除资产业务评估对象成功!',
- type: 'success',
- duration: 2000
- });
- this.getAETargetListByAssetsId();
- }
- })
- }).catch(() => {
- this.$message({
- type: 'info',
- message: '已取消删除'
- });
- });
- },
- // 根据不同情况打开的评估对象表单可编辑状态不同
- changeStatus(val) {
- if (val == "edit") {
- this.targetDisabledStatus = false;
- this.updateButtonStatus = true;
- this.saveButtonStatus = false;
- } else if (val == "add") {
- this.targetDisabledStatus = false;
- this.saveButtonStatus = true;
- this.updateButtonStatus = false;
- } else if (val == "detail") {
- this.targetDisabledStatus = true;
- this.saveButtonStatus = false;
- this.updateButtonStatus = false;
- }
- },
- // 根据业务id获取资产业务款项信息
- getOrderFundInvoiceById() {
- if (this.pageParams.row.reportNo) {
- this.$api.assets.getOrderFundInvoiceById(this.assetsForm.id, this.pageParams.row.reportNo).then(res => {
- if (res.code === 200) {
- this.invoiceData = res.data;
- this.invoiceData.leftAmount = this.invoiceData.shouldAmount - this.invoiceData.realAmount;
- }
- })
- }
- },
- // 获取产品信息类型
- getProductionTypes(id) {
- this.$api.assets.getProductionTypes(id).then(res => {
- if (res.code === 200) {
- this.nodeBusinessInfo.production = res.data;
- this.$refs.board.getInstanceQueue();
- }
- })
- },
- // 提交节点
- commit(state) {
- this.flowDoFourthCheck();
- this.$refs.board.commit(state);
- },
- getPreviousNode(pNode) {
- this.pNode = pNode;
- },
- // 打开产品选择表单弹窗
- openProductionDialog() {
- this.productionChoiceDialogVisible = true;
- // this.getProductionByBusinessId(this.pageParams.row.assetsId);
- this.getChoiceLog();
- },
- // 获取产品选择记录
- getChoiceLog() {
- let selectDTO = {};
- selectDTO.businessType = 'ASSET_BUSINESS';
- selectDTO.businessId = this.pageParams.row.assetsId;
- for (let i = 0; i < this.assetsEvaluationTarget.length; i++) {
- if (this.assetsEvaluationTarget[i].reportNo === null) {
- selectDTO.targetId = this.assetsEvaluationTarget[i].id;
- break; // 找到第一个 reportNo 为 null 的元素后退出循环
- }
- // 如果 reportNo 不为 null,继续检查下一个元素
- }
- this.$api.businessProductionChoiceLog.getChoiceLog(selectDTO).then(res => {
- if (res.code == 200 && res.data !== null) {
- this.productionChoiceStatus = 1;
- this.assetsProductionForm.id = res.data.productionId;
- this.assetsProductionForm.productionType = res.data.productionType;
- this.assetsProductionForm.printCount = res.data.printCount;
- }
- })
- },
- // 根据业务id获取是否已选择产品
- // getProductionByBusinessId(id) {
- // this.$api.assets.getProductionByBusinessId(id).then(res => {
- // if (res.code === 200) {
- // // 产品信息不为null,则证明已经选择过产品,将按钮改为修改
- // if (res.data !== null) {
- // if (res.data.productionType == 'STATEMENT' && (this.currentNode.nodeCode === 'PRODUCT_CHOICE' || this.currentNode.nodeCode === 'GENERATE_STATEMENT')) {
- // this.assetsProductionForm = res.data;
- // this.productionChoiceStatus = 1;
- // }
- // if (res.data.productionType !== 'STATEMENT' && (this.currentNode.nodeCode === 'REPORT_CHOICE' || this.currentNode.nodeCode === 'ASSET_REPORT_TAKE_NO')) {
- // this.assetsProductionForm = res.data;
- // this.productionChoiceStatus = 1;
- // }
- // }
- // }
- // })
- // },
- // 选择产品,新增产品信息
- assetsProductionSave() {
- this.$refs.assetsProductionForm.validate(valid => {
- if (valid) {
- this.assetsProductionForm.businessId = this.assetsForm.id;
- // if (this.assetsProductionForm.productionType == 1) {
- // // 价值意见书
- // this.assetsProductionForm.productionType = 'STATEMENT';
- // } else if (this.assetsProductionForm.productionType == 4) {
- // // 意见函
- // this.assetsProductionForm.productionType = 'LETTER';
- // } else if (this.assetsProductionForm.productionType == 2) {
- // // 咨询报告
- // this.assetsProductionForm.productionType = 'CONSULT';
- // } else {
- // // 评估报告
- // this.assetsProductionForm.productionType = 'REPORT';
- // }
- this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
- this.assetsProductionForm.signatory = JSON.stringify(this.assetsProductionForm.signatory);
- this.assetsProductionForm.targetIdList = this.assetsEvaluationTarget.map(item => item.id);
- this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
- this.taskRecordDTO.taskData = this.assetsProductionForm;
- this.$api.assets.assetsProductionSave(this.taskRecordDTO).then(res => {
- if (res.code === 200) {
- this.$notify({
- title: '成功',
- message: '选择产品成功!请继续提交流程节点!',
- type: 'success',
- duration: 2000
- });
- this.getProductionTypes(this.assetsForm.id);
- this.productionChoiceDialogVisible = false;
- this.$refs.assetsProductionForm.resetFields();
- }
- })
- }
- })
- },
- // 选择产品,更新已选择产品信息
- assetsProductionUpdateChoice() {
- this.$refs.assetsProductionForm.validate(valid => {
- if (valid) {
- this.assetsProductionForm.businessId = this.assetsForm.id;
- // if (this.assetsProductionForm.productionType == 1) {
- // // 价值意见书
- // this.assetsProductionForm.productionType = 'STATEMENT';
- // } else if (this.assetsProductionForm.productionType == 4) {
- // // 意见函
- // this.assetsProductionForm.productionType = 'LETTER';
- // } else {
- // // 报告
- // this.assetsProductionForm.productionType = 'REPORT';
- // }
- this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
- this.assetsProductionForm.signatory = JSON.stringify(this.assetsProductionForm.signatory);
- this.assetsProductionForm.targetIdList = this.assetsEvaluationTarget.map(item => item.id);
- this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
- this.taskRecordDTO.taskData = this.assetsProductionForm;
- this.$api.assets.assetsProductionUpdateChoice(this.taskRecordDTO).then(res => {
- if (res.code === 200) {
- this.$notify({
- title: '成功',
- message: '选择产品成功!请继续提交流程节点!',
- type: 'success',
- duration: 2000
- });
- this.getProductionTypes(this.assetsForm.id);
- this.productionChoiceDialogVisible = false;
- this.$refs.assetsProductionForm.resetFields();
- }
- })
- }
- })
- },
- // 资产产品意见书取号
- takeAssetsStatementProductionNo() {
- // this.takeAssetsProductionNoDTO.allTargetIdList = this.assetsEvaluationTarget.map(item => item.id);
- // 提交的要取号数组长度与table长度一致则是全部取号
- // if (this.takeAssetsProductionNoDTO.targetIdList.length === this.assetsEvaluationTarget.length) {
- // this.takeAssetsProductionNoDTO.selectAll = true;
- // } else {
- // this.takeAssetsProductionNoDTO.selectAll = false;
- // }
- // 判断表格中是否还有未选择且未取号的评估对象,返回布尔
- let notTakeNumTargetSelect = this.assetsEvaluationTarget.filter(item => !this.takeAssetsProductionNoDTO.targetIdList.includes(item.id));
- this.takeAssetsProductionNoDTO.hasNotTakeNumTargetSelect = notTakeNumTargetSelect.some(target => target.statementNo === null || target.statementNo === '');
- this.takeAssetsProductionNoDTO.businessId = this.assetsForm.id;
- // this.getProductionByBusinessId(this.assetsForm.id);
- // this.takeAssetsProductionNoDTO.productionType = this.assetsProductionForm.productionType;
- // this.takeAssetsProductionNoDTO.productionType = this.nodeBusinessInfo.production[this.nodeBusinessInfo.production.length - 1];
- // this.takeAssetsProductionNoDTO.printCount = this.assetsProductionForm.printCount;
- if (!this.takeAssetsProductionNoDTO.targetIdList.length == 0) {
- this.$api.assets.takeAssetsStatementProductionNo(this.takeAssetsProductionNoDTO).then(res => {
- if (res.code === 200 && res.data) {
- this.$notify({
- title: '成功',
- message: '产品取号成功!',
- type: 'success',
- duration: 2000
- });
- // this.pageParams.row.productionNo = res.data;
- this.getAETargetListByAssetsId();
- }
- })
- } else {
- this.$notify({
- title: '警告',
- message: '您必须选择至少一个评估对象!',
- type: 'warning',
- duration: 2000
- });
- }
- },
- // 资产产品报告取号
- takeAssetsReportProductionNo() {
- // this.takeAssetsProductionNoDTO.allTargetIdList = this.assetsEvaluationTarget.map(item => item.id);
- this.takeAssetsProductionNoDTO.statementNo = this.assetsEvaluationTarget[0].statementNo;
- // 提交的要取号数组长度与table长度一致则是全部取号
- // if (this.takeAssetsProductionNoDTO.targetIdList.length === this.assetsEvaluationTarget.length) {
- // this.takeAssetsProductionNoDTO.selectAll = true;
- // } else {
- // this.takeAssetsProductionNoDTO.selectAll = false;
- // }
- // 判断表格中是否还有未选择且未取号的评估对象,返回布尔
- let notTakeNumTargetSelect = this.assetsEvaluationTarget.filter(item => !this.takeAssetsProductionNoDTO.targetIdList.includes(item.id));
- this.takeAssetsProductionNoDTO.hasNotTakeNumTargetSelect = notTakeNumTargetSelect.some(target => target.reportNo === null || target.reportNo === '');
- this.takeAssetsProductionNoDTO.businessId = this.assetsForm.id;
- // this.getProductionByBusinessId(this.assetsForm.id);
- // this.takeAssetsProductionNoDTO.productionType = this.assetsProductionForm.productionType;
- // this.takeAssetsProductionNoDTO.productionType = this.nodeBusinessInfo.production[this.nodeBusinessInfo.production.length - 1];
- // this.takeAssetsProductionNoDTO.printCount = this.assetsProductionForm.printCount;
- this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
- this.taskRecordDTO.taskData = this.takeAssetsProductionNoDTO;
- if (!this.takeAssetsProductionNoDTO.targetIdList.length == 0) {
- this.$api.assets.takeAssetsReportProductionNo(this.taskRecordDTO).then(res => {
- if (res.code === 200 && res.data) {
- this.$notify({
- title: '成功',
- message: '产品取号成功!',
- type: 'success',
- duration: 2000
- });
- // this.pageParams.row.productionNo = res.data;
- this.getAETargetListByAssetsId();
- }
- })
- } else {
- this.$notify({
- title: '警告',
- message: '您必须选择至少一个评估对象!',
- type: 'warning',
- duration: 2000
- });
- }
- },
- // 资产评估对象选取数据处理
- targetSelectionChange(val) {
- this.takeAssetsProductionNoDTO.targetIdList = val;
- this.takeAssetsProductionNoDTO.targetIdList = this.takeAssetsProductionNoDTO.targetIdList.map(selection => selection.id);
- },
- // 判断行数据是否可选
- selectable(row) {
- if (row.statementNo != null && row.statementNo != '' && this.currentNode.nodeCode !== 'ASSET_REPORT_TAKE_NO') {
- return false;
- } else if (row.reportNo != null && row.reportNo != '' && this.currentNode.nodeCode !== 'GENERATE_STATEMENT') {
- return false;
- } else {
- return true;
- }
- },
- openWriteProductionDialog(status, type) {
- this.productionWriteDialogVisible = true;
- this.productionDisabledStatus = status;
- this.writeType = type;
- },
- // 根据业务id与产品号获取资产产品信息并初始化表单
- getAssetsProductionDetailByNo() {
- let assetsProductionDetailDTO = new Object();
- assetsProductionDetailDTO.businessId = this.assetsForm.id;
- assetsProductionDetailDTO.productionNo = this.assetsProductionForm.productionNo;
- this.$api.assets.getAssetsProductionDetailByNo(assetsProductionDetailDTO).then(res => {
- if (res.code == 200 && res.data !== null) {
- this.assetsProductionForm.productionType = res.data.productionType
- this.assetsProductionForm.printCount = res.data.printCount;
- this.assetsProductionForm.clientName = this.assetsForm.bailorContactName;
- this.assetsProductionForm.clientTel = this.assetsForm.bailorContactTel;
- this.assetsProductionForm.assetsName = this.assetsForm.name;
- this.assetsProductionForm.owner = this.assetsEvaluationTarget.find(obj => obj.productionNo === assetsProductionDetailDTO.productionNo)?.theHolder;
- this.assetsProductionForm.valuationBasisDate = this.assetsEvaluationTarget[0].valuationBasisDate;
- this.assetsProductionForm.filePath = [];
- this.assetsProductionForm.signatory = [];
- }
- })
- },
- // 当产品单价或面积改变时触发
- computeAmount() {
- this.assetsProductionForm.evaluateAmount = (this.assetsProductionForm.evaluatePrice * this.assetsProductionForm.evaluateAcreage) / 10000;
- },
- // 资产撰写产品(意见书和报告都是这个接口)
- writeAssetsProduction() {
- this.$refs.assetsProductionForm.validate(valid => {
- if (valid) {
- this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
- if (this.assetsProductionForm.signatory !== null) {
- this.assetsProductionForm.signatory = JSON.stringify(this.assetsProductionForm.signatory);
- } else {
- this.assetsProductionForm.signatory = null;
- }
- this.assetsProductionForm.businessId = this.assetsForm.id;
- this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
- this.taskRecordDTO.taskData = this.assetsProductionForm;
- this.$api.assets.writeAssetsProduction(this.taskRecordDTO).then(res => {
- if (res.code == 200) {
- this.$notify({
- title: '成功',
- message: '产品撰写成功!请继续提交流程节点!',
- type: 'success',
- duration: 2000
- });
- }
- this.getAETargetListByAssetsId();
- this.productionWriteDialogVisible = false;
- // this.getProductionList();
- this.writeProductionReportNos = [];
- this.writeProductionStatementNos = [];
- })
- }
- })
- },
- resetProductionForm() {
- this.assetsProductionForm = {
- businessId: null,
- productionNo: null,
- productionType: null,
- signatory: [],
- clientName: null,
- clientTel: null,
- valuationBasisDate: null,
- evaluateAcreage: null,
- evaluatePrice: null,
- evaluateAmount: null,
- owner: null,
- printCount: null,
- createProductionDate: null,
- comment: null,
- filePath: [],
- assetsName: null
- }
- this.fileList = [];
- },
- clearassetsProductionFormValidate() {
- if (this.$refs.assetsProductionForm !== undefined) {
- this.$refs.assetsProductionForm.clearValidate();
- }
- },
- // 根据业务id与产品号查询产品信息
- getProductionList() {
- let aProListSelectDTO = new Object();
- aProListSelectDTO.businessId = this.pageParams.row.assetsId;
- // aProListSelectDTO.statementNo = this.pageParams.row.statementNo;
- // aProListSelectDTO.reportNo = this.pageParams.row.reportNo;
- // if (this.currentNode.nodeCode == 'WRITE_REPORT' && this.assetsEvaluationTarget[0].statementNo !== null) {
- // aProListSelectDTO.reportNo = this.assetsEvaluationTarget[0].reportNo;
- //获取评估对象中取的号
- aProListSelectDTO.statementNos = this.assetsEvaluationTarget.filter(obj => obj.statementNo !== null && obj.statementNo !== '').map(obj => obj.statementNo);
- aProListSelectDTO.reportNos = this.assetsEvaluationTarget.filter(obj => obj.reportNo !== null && obj.reportNo !== '').map(obj => obj.reportNo);
- // }
- this.assetsProductionData = null;
- if (aProListSelectDTO.statementNos.length > 0 || aProListSelectDTO.reportNos.length > 0) {
- this.$api.assets.getProductionList(aProListSelectDTO).then(res => {
- if (res.code == 200) {
- this.assetsProductionData = res.data;
- this.assetsProductionData = this.assetsProductionData.map(item => {
- // 检查 filePath 是否为字符串且不为空
- if (typeof item.filePath === 'string' && item.filePath.trim() !== '') {
- try {
- // 使用 JSON.parse 解析 filePath 字符串
- item.filePath = JSON.parse(item.filePath);
- } catch (error) {
- console.error('解析 filePath 时发生错误:', error);
- }
- }
- // 返回更新后的对象
- return item;
- });
- }
- })
- }
- },
- //选择要提交节点的产品号
- pushProductionNo() {
- // 查询该产品是否已有提交的流程
- let aProListSelectDTO = { businessId: null, productionNo: null, productionNos: [] };
- this.nodeBusinessInfo.reportNos = [];
- this.nodeBusinessInfo.reportNos.push(this.commitProductionNo);
- if (this.currentNode.nodeCode == 'GENERATE_STATEMENT') {
- this.nodeBusinessInfo.businessSubId = this.commitProductionNo;
- aProListSelectDTO.productionNos = this.assetsProductionData.filter(obj => obj.productionType == 'STATEMENT').map(obj => obj.productionNo);
- }
- if (this.currentNode.nodeCode == 'ASSET_REPORT_TAKE_NO') {
- this.nodeBusinessInfo.businessMinId = this.commitProductionNo;
- aProListSelectDTO.productionNos = this.assetsEvaluationTarget.filter(obj => obj.reportNo).map(obj => obj.reportNo);
- // 去重
- aProListSelectDTO.productionNos = aProListSelectDTO.productionNos.filter((item, index) => aProListSelectDTO.productionNos.indexOf(item) === index);
- }
- aProListSelectDTO.businessId = this.assetsForm.id;
- aProListSelectDTO.productionNo = this.commitProductionNo;
- this.$api.assets.getInatanceCount(aProListSelectDTO).then(res => {
- if (res.code == 200) {
- this.proInatanceCount = res.data;
- }
- })
- //判断是否还有未撰写或未提交的产品以及未取号的评估对象(false:无,提交时完成节点 true:有,提交时不完成节点)
- let isNotWriteAllPro = true;
- if (this.currentNode.nodeCode === 'GENERATE_STATEMENT') {
- isNotWriteAllPro = this.assetsEvaluationTarget.some(obj =>
- (obj.statementCreateProductionDate === null || obj.statementCreateProductionDate === '')
- );
- }
- if (this.currentNode.nodeCode === 'ASSET_REPORT_TAKE_NO') {
- isNotWriteAllPro = this.assetsEvaluationTarget.some(obj =>
- (obj.reportNo === null || obj.reportNo === '')
- );
- }
- // 判断是否完成节点
- if (isNotWriteAllPro) { // 还有未撰写或未提交产品不完成节点
- this.nodeBusinessInfo.ifCheckTask = false;
- } else {
- this.$api.assets.getInatanceCountList(aProListSelectDTO).then(res => {
- if (res.code == 200) {
- // 未提交的同类型产品大于1时,不完成节点
- if (res.data.filter(count => count === 0).length > 1) {
- this.nodeBusinessInfo.ifCheckTask = false;
- } else {
- this.nodeBusinessInfo.ifCheckTask = true;
- }
- } else {
- this.nodeBusinessInfo.ifCheckTask = true;
- }
- })
- }
- },
- // 打开审核定价弹窗表单
- openCheckValueDialog(id) {
- this.checkValueDialogVisible = true;
- this.$api.assets.getAssetsTargetDetail(id).then(res => {
- if (res.code === 200) {
- this.targetForm = res.data;
- this.targetForm.evaluationMethodId = JSON.parse(res.data.evaluationMethodId);
- this.targetForm.choiceEvaluationMethodId = JSON.parse(res.data.choiceEvaluationMethodId);
- }
- })
- this.getAssetsEvaluationMethod()
- },
- // 评估对象审核定价
- checkValue() {
- this.$refs.targetForm.validate(valid => {
- if (valid) {
- this.targetForm.evaluationMethodId = JSON.stringify(this.targetForm.evaluationMethodId);
- this.targetForm.choiceEvaluationMethodId = JSON.stringify(this.targetForm.choiceEvaluationMethodId);
- this.$api.assets.checkValue(this.targetForm).then(res => {
- if (res.code == 200) {
- this.$notify({
- title: '成功',
- message: '审核定价已完成!',
- type: 'success',
- duration: 2000
- });
- this.checkValueDialogVisible = false;
- this.getAETargetListByAssetsId();
- // this.isCheckValue = true;
- }
- })
- }
- })
- },
- // 根据产品id获取产品详情
- getAssetsProductionDetail(id) {
- this.$api.assets.getAssetsProductionDetail(id).then(res => {
- if (res.code == 200) {
- this.assetsProductionForm = res.data;
- this.assetsProductionForm.signatory = JSON.parse(res.data.signatory);
- this.assetsProductionForm.filePath = JSON.parse(res.data.filePath);
- this.fileList = JSON.parse(JSON.stringify(this.assetsProductionForm.filePath));
- this.productionWriteDialogVisible = true;
- }
- })
- },
- // 更新产品信息
- productionUpdate() {
- this.$refs.assetsProductionForm.validate(valid => {
- if (valid) {
- this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
- if (this.assetsProductionForm.signatory !== null) {
- this.assetsProductionForm.signatory = JSON.stringify(this.assetsProductionForm.signatory);
- } else {
- this.assetsProductionForm.signatory = null;
- }
- this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
- this.taskRecordDTO.taskData = this.assetsProductionForm;
- this.$api.assets.productionUpdate(this.taskRecordDTO).then(res => {
- if (res.code == 200) {
- this.$notify({
- title: '成功',
- message: '产品修改成功!',
- type: 'success',
- duration: 2000
- });
- }
- this.getAETargetListByAssetsId();
- this.productionWriteDialogVisible = false;
- // this.getProductionList();
- })
- }
- })
- },
- // 根据业务类型,产品id及checkLoop获取质检信息
- openProductionCheckDialog() {
- this.$api.assets.getAssetsProductionDetail(this.productionPerformanceForm.productionId).then(res => {
- if (res.code == 200) {
- this.assetsProductionForm = res.data;
- this.assetsProductionForm.filePath = JSON.parse(res.data.filePath);
- this.fileList = JSON.parse(JSON.stringify(this.assetsProductionForm.filePath));
- }
- })
- const curNode = this.currentNode.nodeCode;
- if (curNode === 'REVIEW_STATEMENT' || curNode === 'CHECK_REPORT') {
- if (this.assetsEvaluationTarget.some(item => (item.checkValue === null || item.checkValue === undefined || item.checkValue === ''))) {
- this.$notify({
- title: '警告',
- message: '评估对象需要进行审核定价',
- type: 'error',
- duration: 3000
- });
- } else {
- this.initProQuality(curNode);
- }
- } else {
- this.initProQuality(curNode);
- }
- },
- // 质检信息基础信息赋值
- initProQuality(curNode) {
- this.productionCheckDialogVisible = true;
- this.productionPerformanceForm.businessType = 'ASSET_BUSINESS';
- if (curNode === 'REVIEW_STATEMENT' || curNode === 'CHECK_REPORT') {
- this.productionPerformanceForm.checkLoop = "初审";
- }
- if (curNode === 'REEXAMINE_STATEMENT' || curNode === 'RECHECK_REPORT') {
- this.productionPerformanceForm.checkLoop = "复审";
- }
- if (curNode === 'FOURTH_CHECK_REPORT') {
- this.productionPerformanceForm.checkLoop = "四审";
- }
- this.$api.businessProductionPerformance.getProductionPerformance(this.productionPerformanceForm).then(res => {
- if (res.code === 200 && res.data !== null) {
- this.productionPerformanceForm.id = res.data.id;
- this.productionPerformanceForm.fatalMistake = res.data.fatalMistake;
- this.productionPerformanceForm.hardMistake = res.data.hardMistake;
- this.productionPerformanceForm.normalMistake = res.data.normalMistake;
- this.productionPerformanceForm.reason = res.data.reason;
- }
- })
- },
- // 保存产品质检信息(新增与保存都是这个方法)
- saveQuality() {
- if ((this.productionPerformanceForm.hardMistake + this.productionPerformanceForm.fatalMistake + this.productionPerformanceForm.normalMistake) > 0) {
- if (this.productionPerformanceForm.reason !== null && this.productionPerformanceForm.reason !== '') {
- this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
- this.taskRecordDTO.taskData = this.productionPerformanceForm;
- // id不为空更新
- if (this.productionPerformanceForm.id) {
- this.$api.businessProductionPerformance.edit(this.taskRecordDTO).then(res => {
- if (res.code === 200 && res.data) {
- this.$notify({
- title: '成功',
- message: '质检信息更新成功,请继续提交流程节点!',
- type: 'success',
- duration: 3000
- });
- if (this.currentNode.nodeCode === 'RECHECK_REPORT' || this.currentNode.nodeCode === 'FOURTH_CHECK_REPORT') {
- this.updateProductionFileInfo();
- }
- this.productionCheckDialogVisible = false;
- }
- })
- } else { // id为空新增
- this.$api.businessProductionPerformance.add(this.taskRecordDTO).then(res => {
- if (res.code === 200 && res.data) {
- this.$notify({
- title: '成功',
- message: '质检信息保存成功,请继续提交流程节点!',
- type: 'success',
- duration: 3000
- });
- if (this.currentNode.nodeCode === 'RECHECK_REPORT' || this.currentNode.nodeCode === 'FOURTH_CHECK_REPORT') {
- this.updateProductionFileInfo();
- }
- this.productionCheckDialogVisible = false;
- }
- })
- }
- } else {
- this.$notify({
- title: '错误',
- message: '错误个数大于0时必须填写扣分原因',
- type: 'error',
- duration: 3000
- });
- }
- } else {
- this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
- this.taskRecordDTO.taskData = this.productionPerformanceForm;
- // id不为空更新
- if (this.productionPerformanceForm.id) {
- this.$api.businessProductionPerformance.edit(this.taskRecordDTO).then(res => {
- if (res.code === 200 && res.data) {
- this.$notify({
- title: '成功',
- message: '质检信息更新成功,请继续提交流程节点!',
- type: 'success',
- duration: 3000
- });
- if (this.currentNode.nodeCode === 'RECHECK_REPORT' || this.currentNode.nodeCode === 'FOURTH_CHECK_REPORT') {
- this.updateProductionFileInfo();
- }
- this.productionCheckDialogVisible = false;
- }
- })
- } else { // id为空新增
- this.$api.businessProductionPerformance.add(this.taskRecordDTO).then(res => {
- if (res.code === 200 && res.data) {
- this.$notify({
- title: '成功',
- message: '质检信息保存成功,请继续提交流程节点!',
- type: 'success',
- duration: 3000
- });
- if (this.currentNode.nodeCode === 'RECHECK_REPORT' || this.currentNode.nodeCode === 'FOURTH_CHECK_REPORT') {
- this.updateProductionFileInfo();
- }
- this.productionCheckDialogVisible = false;
- }
- })
- }
- }
- },
- // 根据资产产品id更新文件路由信息
- updateProductionFileInfo() {
- this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
- this.$api.assets.updateProductionFileInfo(this.assetsProductionForm).then(res => {
- if (res.code === 200 && res.data) {
- this.$notify({
- title: '成功',
- message: '产品附件保存成功',
- type: 'success',
- duration: 3000
- });
- }
- })
- },
- // 打开产品出入库弹窗
- openWareHouseDialog(row) {
- this.warehouseDialog = true;
- this.wareHouseProductionType = row.productionType;
- this.wareHouseproductionId = row.id
- },
- handleScanEntry(scanData) {
- this.scanEntryData = scanData;
- },
- cleanWareHouseProductionType() {
- this.wareHouseProductionType = null;
- this.wareHouseproductionId = null;
- },
- // 产品出入库
- doWareHouse() {
- let productionNo = this.scanEntryData
- let wareHoaseDto = new Object();
- if (productionNo) {
- wareHoaseDto.productionNo = reportNo;
- } else {
- wareHoaseDto.productionNo = this.$refs.scanEntry.scanEntryData;
- }
- if (this.currentNode.nodeName.includes("入库")) {
- wareHoaseDto.repertoryState = 0;
- } else {
- wareHoaseDto.repertoryState = 1;
- }
- wareHoaseDto.productionType = this.wareHouseProductionType;
- wareHoaseDto.productionId = this.wareHouseproductionId;
- this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
- this.taskRecordDTO.taskData = wareHoaseDto;
- this.$api.assets.assetsProRepertory(this.taskRecordDTO).then(res => {
- if (res.code === 200 && res.data) {
- this.$notify({
- title: '成功',
- message: '库存操作成功,请继续提交流程节点!',
- type: 'success',
- duration: 2000
- });
- this.warehouseDialog = false;
- this.getProductionList();
- }
- else {
- this.$message({
- type: 'info',
- message: '取消操作'
- });
- }
- })
- },
- // 判断流程是否进行四审
- flowDoFourthCheck() {
- if (this.currentNode.nodeCode == 'RECHECK_REPORT') {
- // 判断评估值是否超过8000万
- let isSubstantialAssets = this.assetsEvaluationTarget.reduce((sum, obj) => { return sum + obj.estimatedValue; }, 0) > 8000;
- // 获取是否有评估目的为搬迁、司法涉讼的评估对象
- let isLawsuit = this.assetsEvaluationTarget.some(obj => obj.purposeName === '搬迁' || obj.purposeName === '资产涉讼');
- // 获取是否证券项目
- let isSecurity = this.assetsForm.security;
- // 是否证券项目,或是否评估目的搬迁、诉讼,或是否价值大于8000万
- if (isSecurity || isLawsuit || isSubstantialAssets) {
- this.nodeBusinessInfo.doFourthCheck = true;
- }
- }
- },
- // 根据产品号获取产品实收款
- getProductionRealAmount(productionNo) {
- this.$api.assets.getProductionRealAmount(productionNo).then(res => {
- if (res.code === 200 && res.data !== null) {
- this.nodeBusinessInfo.ifProductionFund = true;
- } else {
- this.nodeBusinessInfo.ifProductionFund = false;
- }
- })
- },
- // 打开绩效比例分配弹窗
- openAssetsAchievementRatioDialog() {
- // this.businessPerformanceDistributionForm.distributionList = [];
- //获取报告附件信息
- let assetsProductionDetailDTO = new Object();
- assetsProductionDetailDTO.businessId = this.pageParams.row.assetsId;
- assetsProductionDetailDTO.productionNo = this.pageParams.row.reportNo;
- this.$api.assets.getAssetsProductionDetailByNo(assetsProductionDetailDTO).then(res => {
- if (res.code == 200 && res.data !== null) {
- this.assetsProductionForm = res.data;
- this.assetsProductionForm.filePath = JSON.parse(res.data.filePath);
- this.fileList = JSON.parse(JSON.stringify(this.assetsProductionForm.filePath));
- }
- })
- this.assetsAchievementRatioDialogVisible = true;
- // this.getPerformanceDistributionList();
- // if (this.businessPerformanceDistributionForm.distributionList !== null && this.businessPerformanceDistributionForm.distributionList[0].id !== null) {
- // this.showDistributionButton = false;
- // } else {
- // this.showDistributionButton = true;
- // }
- },
- // 新增资产绩效分配信息
- saveBusinessPerformanceDistribution() {
- const sum = this.businessPerformanceDistributionForm.distributionList.reduce((accumulator, obj) => {
- return accumulator + obj.performanceDistribution;
- }, 0);
- if (sum === 100) {
- this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
- this.taskRecordDTO.taskData = this.businessPerformanceDistributionForm;
- this.$api.businessPerformanceDistribution.addAssetsPerformanceDistribution(this.taskRecordDTO).then(res => {
- if (res.code === 200) {
- this.$notify({
- title: '成功',
- message: '绩效分配新增完成,请继续提交流程节点!',
- type: 'success',
- duration: 3000
- });
- if (this.currentNode.nodeCode === 'CHECK_ARCHIVING') {
- this.updateProductionFileInfo();
- }
- this.resetBusinessPerformanceDistributionForm();
- }
- })
- } else {
- this.$notify({
- title: '警告',
- message: '所有人员分配的绩效之和必须等于100%!',
- type: 'error',
- duration: 3000
- });
- }
- },
- // 重置绩效分配表单
- resetBusinessPerformanceDistributionForm() {
- this.assetsAchievementRatioDialogVisible = false;
- this.businessPerformanceDistributionForm.businessId = null;
- this.businessPerformanceDistributionForm.businessType = null;
- this.businessPerformanceDistributionForm.reportNo = null;
- },
- // 获取资产绩效分配信息list
- getPerformanceDistributionList() {
- this.businessPerformanceDistributionForm.businessId = this.pageParams.row.assetsId;
- this.businessPerformanceDistributionForm.businessType = 'ASSET_BUSINESS';
- this.businessPerformanceDistributionForm.reportNo = this.pageParams.row.reportNo;
- let selectDTO = this.businessPerformanceDistributionForm;
- selectDTO.distributionList = null;
- this.$api.businessPerformanceDistribution.getPerformanceDistributionList(this.businessPerformanceDistributionForm).then(res => {
- if (res.code === 200 && res.data !== null && res.data.length > 0) {
- this.businessPerformanceDistributionForm.distributionList = res.data;
- this.getAssetsBusinessMembers();
- this.showDistributionButton = false;
- } else {
- this.showDistributionButton = true;
- this.getAssetsBusinessMembers(true);
- }
- })
- },
- // 获取项目参与人信息
- getAssetsBusinessMembers(state) {
- let assetsBusinessMembersDTO = { businessId: null, reportNo: null };
- assetsBusinessMembersDTO.businessId = this.pageParams.row.assetsId;
- assetsBusinessMembersDTO.reportNo = this.pageParams.row.reportNo;
- this.$api.assets.getAssetsBusinessMembers(assetsBusinessMembersDTO).then(res => {
- // 返回不为空,且没有绩效分配信息
- if (res.code === 200 && res.data !== null) {
- this.assetsBusinessMembers = res.data;
- if (state) {
- this.businessPerformanceDistributionForm.distributionList = [];
- for (let i = 0; i < this.assetsBusinessMembers.length; i++) {
- let memberInfo = { memberId: this.assetsBusinessMembers[i].memberId, performanceDistribution: 0, memberType: this.assetsBusinessMembers[i].memberType }
- this.businessPerformanceDistributionForm.distributionList.push(memberInfo)
- }
- }
- }
- })
- },
- // 修改资产绩效分配信息
- updateAssetsPerformanceDistribution() {
- const sum = this.businessPerformanceDistributionForm.distributionList.reduce((accumulator, obj) => {
- return accumulator + obj.performanceDistribution;
- }, 0);
- if (sum === 100) {
- this.taskRecordDTO.recordId = this.currentNode.tasks[0].recordId;
- this.taskRecordDTO.taskData = this.businessPerformanceDistributionForm;
- this.$api.businessPerformanceDistribution.updateAssetsPerformanceDistribution(this.taskRecordDTO).then(res => {
- if (res.code === 200) {
- this.$notify({
- title: '成功',
- message: '绩效分配修改完成,请继续提交流程节点!',
- type: 'success',
- duration: 3000
- });
- if (this.currentNode.nodeCode === 'CHECK_ARCHIVING') {
- this.updateProductionFileInfo();
- }
- this.resetBusinessPerformanceDistributionForm();
- }
- })
- } else {
- this.$notify({
- title: '警告',
- message: '所有人员分配的绩效之和必须等于100%!',
- type: 'error',
- duration: 3000
- });
- }
- },
- // 获取联系信息
- getContactInfo() {
- if (this.assetsForm.clienteleContactId) {
- this.$api.customerLinkman.detail(this.assetsForm.clienteleContactId).then(res => {
- if (res.code === 200) {
- this.linkmanInfo = res.data;
- }
- })
- }
- if (this.assetsForm.terminalClienteleContactId) {
- this.$api.customerLinkman.detail(this.assetsForm.terminalClienteleContactId).then(res => {
- if (res.code === 200) {
- this.tLinkmanInfo = res.data;
- this.$forceUpdate();
- this.assetsForm.tmobile = this.tLinkmanInfo.mobile;
- }
- })
- }
- if (this.assetsForm.terminalClienteleId) {
- this.$api.customerCompany.detail(this.assetsForm.terminalClienteleId).then(res => {
- if (res.code === 200) {
- this.tCustomerInfo = res.data;
- // this.assetsForm.tmobile = this.tCustomerInfo.phone;
- }
- })
- }
- },
- // 更新资产订单基本信息
- updateOrderBaseInfo() {
- this.$refs.assetsForm.validate(valid => {
- if (valid) {
- this.$confirm('是否确定要修改订单基本信息?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- if (this.assetsForm.members) {
- this.assetsForm.members = JSON.stringify(this.assetsForm.members);
- }
- this.$api.assets.updateOrderBaseInfo(this.assetsForm).then(res => {
- if (res.code === 200 && res.data) {
- this.$notify({
- title: '成功',
- message: '订单基本信息更新成功!',
- type: 'success',
- duration: 3000
- });
- this.getAssetsDetailById(this.pageParams.row.assetsId);
- } else {
- this.$notify({
- title: '失败',
- message: '订单基本信息更新失败!请稍后重试!',
- type: 'warning',
- duration: 3000
- });
- }
- })
- }).catch(() => {
- this.$message({
- type: 'info',
- message: '已取消更新'
- });
- });
- }
- })
- },
- // 文档预览
- officeFileView(name, url) {
- if (name && url) {
- const route = this.$router.resolve({
- path: "/office/view/window",
- query: {
- // 文档标题
- title: name,
- // 文档url地址
- url: url
- }
- });
- // 在新窗口打开页面
- window.open(route.href, "_blank");
- } else {
- this.$notify({
- title: '失败',
- message: 'url为空,无法打开,如未保存请保存后再试!',
- type: 'error',
- duration: 2000
- });
- }
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .row-style {
- margin-left: 40px;
- margin-right: 1%;
- }
- .major-radio {
- width: 92px
- }
- .task-class {
- /deep/ .el-form-item__label {
- color: red;
- }
- }
- .evaluate-table {
- margin-left: 40px;
- margin-top: 35px;
- }
- .pane-class {
- height: 800px;
- width: 100%;
- overflow-y: scroll;
- }
- /deep/ .cell-class {
- font-size: 13px;
- color: black;
- }
- .table {
- /deep/ thead {
- .el-table-column--selection {
- .cell {
- display: none;
- }
- }
- }
- }
- /deep/.doWarehouseClass {
- border-radius: 10px;
- }
- .button-area {
- position: absolute;
- top: 20px;
- right: 50px;
- }
- .error-type {
- margin-right: 5px;
- }
- .error-type:hover {
- cursor: pointer;
- }
- .box-card {
- margin-top: 40px
- }
- .time {
- font-size: 13px;
- color: #999;
- float: right;
- margin-top: 5px;
- }
- .bottom {
- margin-top: 13px;
- line-height: 12px;
- }
- .button {
- float: left;
- }
- .image {
- width: 100%;
- padding: 0%;
- display: block;
- }
- .control {
- z-index: 999;
- position: relative;
- top: 10px;
- }
- </style>
|