1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239 |
- <template>
- <fullscreen :fullscreen.sync="fullscreen" class="container">
- <div class="container-box">
- <toolList @iconCli='iconCli' :tooltit='tooltit'></toolList>
- <div class="search">
- <!-- <mySearch :searchList="searchList" @searchInfo="searchInfo"></mySearch> -->
- <eltabs :tabList="tabList" @status="clickTabs"></eltabs>
- <!-- <el-button class="btn-check" size="medium" type="primary" @click='jumpadd'
- v-if="(userInfo.cityName==null&&userInfo.countyName==null)||(userInfo.cityName!=null&&userInfo.countyName==null)">添加
- </el-button> -->
- <el-button class="btn-check" size="medium" type="primary"
- @click='jumpadd'
- v-if="userInfo.duty > 9"
- style="width:100px;height:50px"
- >添加
- </el-button>
-
- <!-- <el-button size="medium" type="primary" @click="operationZuo()">
- 处理
- </el-button> -->
- </div>
- <div class="tabbox" v-if="this.childname == 'first' || this.childname == 'two'">
- <tableList
- :list="Table"
- ref="TableList"
- @clickDemand="clickDemand"
- @changeNum="changeNum"
- ></tableList>
- </div>
- <div class="tabbox" v-if="this.childname == 'three'">
- <el-table :data="tableData" style="width: 100%" ref="refTable" height="400px" max-height="400px">
- <el-table-column type="expand">
- <template slot-scope="props">
- <!-- <el-table v-loading="loading2" :data="props.row.fxfkProcessList" size="mini" style="width: 95%;margin-left: 5%;"> -->
- <el-table :data="props.row.xcwlProProcessList" size="mini" style="width: 95%;margin-left: 5%;"
- @cell-click="getRowList">
- <el-table-column label="序号" type="index" width="50">
- </el-table-column>
- <el-table-column label="业务名称" prop="needName"></el-table-column>
- <el-table-column label="地市" prop="region"></el-table-column>
- <el-table-column label="区县" prop="district"></el-table-column>
- <el-table-column label="渠道/小区/校园名称" prop="channelQuartersSchool"> </el-table-column>
- <el-table-column label="使用场景" prop="useCase"></el-table-column>
- <el-table-column label="物料名称" prop="material"></el-table-column>
- <el-table-column label="物料编码" prop="materialNo"></el-table-column>
- <el-table-column label="规格尺码" prop="spec"></el-table-column>
- <el-table-column label="长(米)" prop="chang"></el-table-column>
- <el-table-column label="宽(米)" prop="kuan"></el-table-column>
- <el-table-column label="横/竖" prop="hengShu"></el-table-column>
- <el-table-column label="系数" prop="coefficient"></el-table-column>
- <!-- <el-table-column label="单价" prop="price"></el-table-column> -->
- <el-table-column label="数量" prop="quantity"></el-table-column>
- <!-- <el-table-column label="结算金额" prop="replyContent"></el-table-column> -->
- <el-table-column label="麦穗" prop="gys1Price"></el-table-column>
- <el-table-column label="神笔" prop="gys2Price"></el-table-column>
- <el-table-column label="状态" prop="taskname"></el-table-column>
- <el-table-column label="操作" fixed="right" align="center">
- <template slot-scope="scope">
- <el-button size="mini" type="text" @click="getinform(scope.row)" v-if="scope.row.taskname == null">
- 任务下发</el-button>
- <el-button size="mini" type="text" @click="chakanfaqi(scope.row)" v-if="scope.row.taskname != null">
- 查看</el-button>
- </template>
- <!-- <template slot-scope="scope">
-
- </template> -->
- </el-table-column>
- </el-table>
- </template>
- </el-table-column>
- <el-table-column label="业务名称" prop="businessName">
- </el-table-column>
- <el-table-column label="下单周期" prop="cycle">
- </el-table-column>
- <el-table-column label="申请人" prop="proposer">
- </el-table-column>
- <el-table-column label="申请人部门" prop="applydept">
- </el-table-column>
- <el-table-column label="申请人类型" prop="applyType">
- </el-table-column>
- <el-table-column label="申请时间" prop="applyTime">
- </el-table-column>
- <el-table-column label="当前进度" prop="progressBar">
- <template slot-scope="props">
- <el-progress :percentage="props.row.progressBar"></el-progress>
- </template>
- </el-table-column>
-
- </el-table>
- <!-- v-if="adminpageData.total > 0" -->
- <el-pagination style="display: flex; flex-direction: row-reverse"
- :current-page.sync="adminpageData.pageNum" :page-sizes="
- adminpageData.pageSizes ? adminpageData.pageSizes : [5, 10, 15, 20]
- " :page-size="adminpageData.pageSize" layout="total, sizes, prev, pager, next, jumper"
- :total="adminpageData.total" @size-change="adminhandleSizeChange"
- @current-change="adminhandleCurrentChange" />
- </div>
- </div>
- <div class="containtbox">
- <el-dialog
- title="处理操作"
- :visible.sync="dialogVisible1"
- :before-close="handleCloses"
- width="100%"
- height="100vh"
- class="dialogClass"
- top="0"
- :modal="false"
- :modal-append-to-body="true"
- :destroy-on-close="true"
- >
- <!-- -->
- <!-- <Workflow :list="ruleForm" :requestForm="requestForm" @dialogVisible1 = "Visible1"/> -->
- <Workflow
- :list="infolist"
- @updateForm = "updateForm"
- :requestForm="requestForm"
- />
- <!-- @dialogVisible1 = "Visible1" -->
- <!-- <WorkflowEntrance
- :list="infolist"
- v-else
- :lastManList="lastManList"
-
- @beforeClose = "updateForm"
- :requestForm="requestForm"
- /> -->
- <span slot="footer" class="dialog-footer">
- </span>
- </el-dialog>
- </div>
- <el-dialog
- :visible.sync="dialogVisible"
- :before-close="handleCloses"
- width="100%"
- height="500vh"
- class="dialogClass"
- top="0"
- :modal="false"
- :modal-append-to-body="true"
- >
- <span class="dialog-body">
- <el-form
- :model="infolist"
- ref="infolist"
- :rules="rules"
- label-width="100px"
- class="demo-ruleForm"
- >
- <!--dialogVisible1 = true -->
- <el-form-item
- style="position: fixed; top: 50px; left: -60px; z-index: 1000"
- >
- <!-- v-if="baocun" @click="newFormgong"-->
- <el-button type="primary" @click="dealwith()" v-if="deal">处理</el-button>
- <el-button type="primary" @click="close()">关闭</el-button>
- <el-button type="primary" @click="saveform()" v-if="baocun">保存</el-button>
- <!-- <el-button type="primary" @click="submitForm()" v-if = "baocun">保存</el-button> -->
- </el-form-item>
- <!-- style="height: calc(100% - 160px); overflow: auto" -->
- <div >
- <el-row :gutter="10">
- <el-col :span="8" style="width: 450px; padding-top: 68px">
- <el-form-item prop="businessName" label="业务名称">
- <el-input
- v-model="infolist.businessName"
- placeholder="业务名称"
- :disabled="disableStatus"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" style="width: 450px;padding-top: 68px">
- <el-form-item label="下单周期" prop="cycle">
- <el-date-picker
- v-model="infolist.cycle"
- type="daterange"
- range-separator="-"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- :disabled="disableStatus"
- :picker-options="pickerOptions0"
- >
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8" style="width: 450px;padding-top: 68px">
- <el-form-item label="需求编号" prop="needCode">
- <el-input
- v-model="infolist.needCode"
- placeholder="需求编号"
- disabled
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="10">
- <el-col :span="8" style="width: 450px">
- <el-form-item prop="districtScore" label="区县打分">
- <el-input
- v-model="infolist.districtScore"
- placeholder="区县打分"
- :disabled="this.infolist.tabletaskName != '区县公司负责人'"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" style="width: 410px">
- <el-form-item prop="gys" label="供应商">
- <!-- <span>供应商</span> -->
- <el-select
- @change="gysMing(1, $event)"
- clearable
- v-model="infolist.gys"
- placeholder="供应商"
- :disabled="this.infolist.tabletaskName != '省公司宣传负责人'"
- >
- <el-option
- v-for="(items, index) in gysopt"
- :key="index"
- :label="items.name"
- :value="items.name"
- >
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8" style="width: 470px">
- <el-form-item label="物料验证材料链接" prop="materialUrl" label-width="140px">
- <el-input
- v-model="infolist.materialUrl"
- placeholder="物料验证材料链接"
- :disabled="this.infolist.tabletaskName != '区县公司负责人'"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item class="info-line online">
- <el-table
- :data="infomaterType"
- style="width: 100%"
- height="240px"
- border
- size="mini"
-
- >
- <!-- <el-table-column type="selection" width="55" fixed="left" > -->
- <!-- </el-table-column> -->
- <el-table-column prop="riqi" label="日期">
- </el-table-column>
- <el-table-column prop="formType" label="表单类型">
- </el-table-column>
- <el-table-column prop="region" label="地市公司">
- </el-table-column>
- <el-table-column prop="district" label="区县名称">
- </el-table-column>
- <el-table-column prop="channelCode" label="渠道编码">
- </el-table-column>
- <el-table-column
- prop="channelQuartersSchool"
- label="渠道/小区/校园名称"
- >
- </el-table-column>
- <!-- <el-table-column prop="useCase" label="场景"> -->
- <el-table-column prop="useCase" label="场景">
- </el-table-column>
- <el-table-column prop="channelCode" label="物料编码">
- </el-table-column>
- <el-table-column prop="material" label="物料名称">
- </el-table-column>
- <el-table-column prop="unit" label="物料单位">
- </el-table-column>
- <el-table-column prop="spec" label="规格尺寸">
- </el-table-column>
- <el-table-column prop="chang" label="长"> </el-table-column>
- <el-table-column prop="kuan" label="宽"> </el-table-column>
- <el-table-column prop="hengShu" label="横竖">
- </el-table-column>
- <el-table-column prop="coefficient" label="系数">
- </el-table-column>
- <!-- <el-table-column prop="price" label="单价"> </el-table-column> -->
- <el-table-column prop="quantity" label="数量" >
- </el-table-column>
- <el-table-column prop="priority" label="优先级">
- </el-table-column>
- <el-table-column label="麦穗" prop="gys1Price">
- <!-- <template slot-scope="scope">
- <div>
- {{
- (scope.row.gys1Price =
- scope.row.quantity *
- scope.row.price *
- scope.row.coefficient)
- }}
- </div>
- </template> -->
- </el-table-column>
- <el-table-column label="神笔" prop="gys2Price">
- <!-- <template slot-scope="scope">
- <div>
- {{
- (scope.row.gys2Price =
- scope.row.quantity *
- scope.row.price *
- scope.row.coefficient)
- }}
- </div>
- </template> -->
- </el-table-column>
- <el-table-column label="操作" fixed="right" align="center" v-if="this.infolist.tabletaskName == '起草'">
- <template slot-scope="scope">
- <el-button size="mini" type="text" @click="updatexiuform(scope.row)" :disabled="xiugaizhuan">
- 修改</el-button>
- </template>
- </el-table-column>
- <!-- <el-table-column label="供应商3金额" prop="gys3Price">
- <template slot-scope="scope">
- <div>
- {{
- (scope.row.gys3Price =
- scope.row.quantity *
- scope.row.price *
- scope.row.coefficient)
- }}
- </div>
- </template>
- </el-table-column>
- <el-table-column label="供应商4金额" prop="gys4Price">
- <template slot-scope="scope">
- <div>
- {{
- (scope.row.gys4Price =
- scope.row.quantity *
- scope.row.price *
- scope.row.coefficient)
- }}
- </div>
- </template>
- </el-table-column> -->
- </el-table>
- </el-form-item>
- </el-col>
- </el-row>
- <div style="width: 96%; margin:20px 0 0 38px">
- <div>
- <myUpload
- @uploadBack="uploadBack"
- @clickDownload = "download"
- :disabled = "updisabled"
- :fileInfo="fileInfo"
- :fileList="fileInfo.fileList"
- >
- </myUpload>
- </div>
- </div>
- </div>
-
- </el-form>
- <div class="table-title">
- <h2>流程追踪</h2>
- </div>
- <div class="flex-header-process">
- <!-- <tableList :list="processTable" ref="el-form" @clickDemand = "clickDemand"></tableList> -->
- <el-table
- :data="tableData1"
- :header-cell-style="{ textAlign: 'center' }"
- :cell-style="{ textAlign: 'center' }"
- style="width: 100%"
- max-height="350"
- >
- <el-table-column
- type="index"
- label="序号"
- width="50">
- </el-table-column>
- <el-table-column
- prop="taskName"
- label="环节名称"
- width="280"
- class="is-center"
- >
- </el-table-column>
- <el-table-column prop="assignee" label="处理人" width="280">
- </el-table-column>
- <el-table-column prop="startTime" label="到达时间" width="280">
- </el-table-column>
- <el-table-column prop="endTime" label="处理时间" width="280">
- </el-table-column>
- <el-table-column prop="content" label="回复意见" width="280">
- </el-table-column>
-
- </el-table>
- </div>
- </span>
- </el-dialog>
- <el-dialog
- title="下单信息"
- :visible.sync="typests"
- width="50%"
- :destroy-on-close="true"
- :modal-append-to-body="false"
- :close-on-click-modal="false"
- :before-close="closedia"
- >
- <el-form
- :model="rulelist"
- ref="rulelist"
-
- style="height: 30vh; overflow-y: scroll"
- v-loading="loadinged"
- >
- <div class="info-lineform">
- <el-form-item prop="useCase" label="使用场景">
- <el-select
- @change="changeMing(1,$event)"
- clearable
- v-model="rulelist.useCase"
- placeholder="使用场景"
- >
- <el-option
- v-for="(items, index) in useCaseopt"
- :key="index"
- :label="items.dataName"
- :value="items.dataName"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="formType" label="表单类型">
- <el-select
- v-model="rulelist.formType"
- placeholder="请选择表单类型"
- >
- <el-option
- v-for="(item, index) in optionList"
- :label="item.value"
- :value="item.value"
- :key="index"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="material" label="物料名称">
- <el-select
- @change="changeSearch(3, $event)"
- clearable
- v-model="rulelist.material"
- placeholder="物料名称"
- >
- <el-option
- v-for="(items, index) in metirialOpt"
- :key="index"
- :label="items.metirialName"
- :value="items.metirialName"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item prop="quantity" label="数量" label-width="68px" >
- <el-input
- v-model="rulelist.quantity"
- placeholder="数量"
- type="number"
- style="width:256px"
- >
- </el-input>
-
- </el-form-item>
- <el-form-item prop="channelQuartersSchool" label="渠道/小区/校园名称" label-width="137px">
- <el-input
- v-model="rulelist.channelQuartersSchool"
- placeholder="渠道/小区/校园名称"
- style="width:256px"
- >
- </el-input>
-
- </el-form-item>
-
- </div>
- </el-form>
- <div class="t-footer">
- <!-- -->
- <el-button type="primary" @click="gengxinge">确 定</el-button>
- <el-button @click="closediaform">取 消</el-button>
- </div>
- </el-dialog>
- <el-dialog
- :title="titname"
- :visible.sync="applicationDialogStatus"
- width="30%"
- :destroy-on-close="true"
- :modal-append-to-body="false"
- :close-on-click-modal="false"
- :before-close="closedia"
- >
- <div v-loading="loadinged">
- <el-form
- :model="approvalinfolist"
- ref="approvalinfolist"
- >
- <el-form-item class="info-line online" style="margin-left: 10%">
- <el-radio-group v-model="approvalinfolist.opinionradio">
- <el-radio :label="1">同意</el-radio>
- <el-radio :label="2">打回</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item class="info-line online" style="text-align: center">
- <el-input
- v-model="approvalinfolist.opinion"
- placeholder="审批意见"
- type="textarea"
- :rows="2"
- ></el-input>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer myfooter">
- <el-button @click="dialogCli(4)">取 消</el-button>
- <el-button type="primary" @click="dialogCli(5)">确 定</el-button>
- </div>
- </div>
- </el-dialog>
- <myMessage :messTit='messTit' @closeMessage="closeMessage" :centerDialogVisible="centerDialogVisible" v-if="centerDialogVisible"></myMessage>
- </fullscreen>
- </template>
- <script>
- import eltabs from "../../../components/el-tabs";
- import mySearch from "../../../components/search.vue";
- import myMessage from "../../../components/myMessage.vue"
- import toolList from '../../../components/toolList'
- import myUpload from '../../../components/upload'
- import tableList from "../../../components/el-form";
- import Workflow from "../../../components/workflowBasexcwls";
- // import Workflow from "../../../components/workflow";
- // import WorkflowEntrance from "../../../components/workflowEntrance";
- import {
- getTodoBase,
- getDoneBase,
-
- } from "../../../http/api.js";
- export default {
- components: {
- mySearch,
- myMessage,
- toolList,
- myUpload,
- eltabs,
- tableList,
- Workflow,
-
- },
- data() {
- // const regionName = (rule, value, callback) => {
- // if (!this.infolist.regionName) {
- // callback(new Error('不能为空'))
- // } else {
- // callback()
- // }
- // }
- // const advTypeDesc = (rule, value, callback) => {
- // if (!this.infolist.advTypeDesc) {
- // callback(new Error('不能为空'))
- // } else {
- // callback()
- // }
- // }
- return {
- requestForm: {
- fresourceId: "241efa62-a816-11ed-886f-d6cd97160e00",
- processDefinitionKey: "xcwl_cit_process",
- processDefinitionKey1: "xcwl_pro_process",
- // processDefinitionKeys: "xcwl_cit_process",
- taskId:"",
- },
- request_form: {
- userId: "",
- userName: "",
- path: this.$router.currentRoute.name,
- userCode: JSON.parse(window.sessionStorage.userInfo).loginNo,
- title: "",
- businessKey: "",
- processDefinitionKey: "xcwl_cit_process",
-
- },
- processDefinitionKey1: "xcwl_pro_process",
- lastManList: [],
- tabList: [
- {
- index: "first",
- label: "我的待办",
- number: "",
- name: "prosss_key",
- },
- {
- index: "two",
- label: "我的已办",
- number: "",
- },
- {
- index: "three",
- label: "我发起的",
- number: "",
- },
- ],
- Table: {},
- adminpageData: {
- total: 15, // 总条数
- pageSizes: 10, // 每页数量
- pageNum: 1, // 页码
- },
- firstTable: {
- name: "first",
- height: "350",
- titledata: [
- {
- label: "业务名称",
- prop: "needName",
- width: 200,
- },
- {
- label: "地市",
- prop: "region",
- width: 200,
- },
-
- {
- label: "区县",
- prop: "district",
- width: 200,
- },
- {
- label: "渠道/小区/校园名称",
- prop: "channelQuartersSchool",
- width: 200,
- },
- {
- label: "使用场景",
- prop: "useCase",
- width: 200,
- },
- {
- label: "物料名称",
- prop: "material",
- width: 200,
- },
- {
- label: "规格尺寸",
- prop: "spec",
- width: 100,
- },
- {
- label: "长",
- prop: "chang",
- width: 100,
- },
- {
- label: "宽",
- prop: "kuan",
- width: 100,
- },
- {
- label: "横/竖",
- prop: "hengShu",
- width: 100,
- },
- {
- label: "系数",
- prop: "coefficient",
- width: 100,
- },
- // {
- // label: "单价",
- // prop: "price",
- // width: 100,
- // },
- {
- label: "数量",
- prop: "quantity",
- width: 100,
- },
- {
- label: "麦穗",
- prop: "gys1Price",
- width: 100,
- },
- {
- label: "神笔",
- prop: "gys2Price",
- width: 100,
- },
- {
- label: "状态",
- prop: "taskName",
- width: 200,
- },
- ], //表格头
- data: [
- {
- label: "文件标题", // 操作名
- handleRow: (e, r, o) => {
-
- this. operationZuo(r);
- }
- }
- ], //内容数据
- loading: true,
- pageData: {
- total: 100, // 总条数
- pageSize: 10, // 每页数量
- pageNum: 1, // 页码
- },
- isSelection: false, // 表格有多选时设置
- isOperation: false, // 表格有操作列时设置
- isIndex: false, // 列表序号
- operation: {
- // 表格有操作列时设置
- label: "操作", // 列名
- width: "50", // 根据实际情况给宽度
- data: [
- {
- label: "任务下发", // 操作名称
- type: "", //按钮类型
- handleRow: function (e, r, o) {
- console.log(e);
- console.log(r);
- console.log(o);
- // getinform
- // this.getinform(r);
- }, // 自定义事件
- },
- ],
- },
- },
- twoTable: {
- name: "first",
- height: "350",
- titledata: [
- {
- label: "业务名称",
- prop: "needName",
- width: 200,
- },
- {
- label: "地市",
- prop: "region",
- width: 200,
- },
-
- {
- label: "区县",
- prop: "district",
- width: 200,
- },
- {
- label: "渠道/小区/校园名称",
- prop: "channelQuartersSchool",
- width: 200,
- },
- {
- label: "使用场景",
- prop: "useCase",
- width: 200,
- },
- {
- label: "物料名称",
- prop: "material",
- width: 200,
- },
- {
- label: "规格尺寸",
- prop: "spec",
- width: 100,
- },
- {
- label: "长",
- prop: "chang",
- width: 100,
- },
- {
- label: "宽",
- prop: "kuan",
- width: 100,
- },
- {
- label: "横/竖",
- prop: "hengShu",
- width: 100,
- },
- {
- label: "系数",
- prop: "coefficient",
- width: 100,
- },
- // {
- // label: "单价",
- // prop: "price",
- // width: 100,
- // },
- {
- label: "数量",
- prop: "quantity",
- width: 100,
- },
- {
- label: "麦穗",
- prop: "gys1Price",
- width: 100,
- },
- {
- label: "神笔",
- prop: "gys2Price",
- width: 100,
- },
- {
- label: "状态",
- prop: "taskName",
- width: 200,
- },
- ], //表格头
- data: [
- {
- label: "文件标题", // 操作名
- handleRow: (e, r, o) => {
-
- this. operationZuo(r);
- }
- }
- ], //内容数据
- loading: true,
- pageData: {
- total: 100, // 总条数
- pageSize: 10, // 每页数量
- pageNum: 1, // 页码
- },
- isSelection: false, // 表格有多选时设置
- isOperation: false, // 表格有操作列时设置
- isIndex: false, // 列表序号
- operation: {
- // 表格有操作列时设置
- label: "操作", // 列名
- width: "50", // 根据实际情况给宽度
- data: [
- {
- label: "任务下发", // 操作名称
- type: "", //按钮类型
- handleRow: function (e, r, o) {
- console.log(e);
- console.log(r);
- console.log(o);
- // getinform
- // this.getinform(r);
- }, // 自定义事件
- },
- ],
- },
- },
- gysopt:[
-
-
- ],
- useCaseopt: [
- {
- dataCode: "1",
- dataName: "小区"
- },
- {
- dataCode: "2",
- dataName: "校园"
- },
- {
- dataCode: "3",
- dataName: "营业厅-VI改造-自有渠道"
- },
- {
- dataCode: "4",
- dataName: "营业厅-常规物料-自有渠道"
- },
- {
- dataCode: "5",
- dataName:'营业厅-VI改造-合作渠道'
- },
- {
- dataCode: "6",
- dataName: '营业厅-常规物料-合作渠道'
- },
- {
- dataCode: "7",
- dataName: "政企"
- }
- ],
- optionList: [
- {
- id: 1,
- value: "自有渠道",
- },
- {
- id: 2,
- value: "合作渠道",
- },
- {
- id: 3,
- value: "家庭市场",
- },
- {
- id: 4,
- value: "个人市场",
- },
- {
- id: 5,
- value: "政企市场",
- },
- ],
- metirialOpt: [
- {
- materialNo: "6",
- metirialName: '常规物料'
- },
- {
- materialNo: "7",
- metirialName: "政企物料"
- }
- ],
- searchList: [
- {
- type: 'input',
- tit: '业务名称',
- value: '',
- width: '32%',
- },
- {
- type: 'sel',
- tit: '状态',
- value: '',
- width: '32%',
- options: [
- {
- dataCode: "0",
- dataName: "待审批"
- },
- {
- dataCode: "1",
- dataName: "待确认"
- },
- {
- dataCode: "2",
- dataName: "待验收"
- },
- {
- dataCode: "3",
- dataName: "已完成"
- }
- ]
- },
- {
- type: 'date',
- tit: '申请时间',
- value: '',
- width: '32%',
- },
- ],
- rules:{
- cycle: [{type: "array",required: true,trigger: "blur",message: "下单周期不能为空"}],
- needCode: [{required: true,trigger: "blur",message: "需求编号不能为空"}],
- businessName: [{required: true,trigger: "blur",message: "业务名称不能为空"}],
- // districtScore: [{required: true,trigger: "blur",message: "区县打分不能为空"}],
- // gys: [{required: true,trigger: "change",message: "请选择供应商"}],
- // materialUrl: [{required: true,trigger: "blur",message: "物料验证材料链接不能为空"}],
- },
- childname:"first",
- tooltit:'物料申请管理',
- // applyType: "省",
- fullscreen: false,
- total: 0,
- pageSize: 1,
- pageNo: "1",
- page: "1",
- selectLetter:"",
- tableData: [],
- tableData1: [],
- typests:false, //修改弹窗
- dialogStatus: false,
- disableStatus: false,
- dialogVisible1:false,
- treeList: [], //候选人列表
- textarea: "未填写意见",
- destroy:false,
- infomaterType:[],
- infolist:[],
- xiugaizhuan:false,
- deal: true,
- baocun: true,
- rulelist:[],
- teshuhuanjie: [],
- isWorkflowStatus:false,
- titname: '',
- infolist: {},
- searchBox: {},
- userInfo: {},
- params: {},
- centerDialogVisible: false,
- dialogVisible:false,
- messTit: '',
- delid: '',
- loading:false,
- loadinged:false,
- updisabled:false,
- fileInfo: {
- limit: 10,
- url: '/market/waf/upload',
- fileList: []
- },
- infoApply:{},
- rovaList:[],
- applicationDialogStatus:false,
- approvalinfolist: {
- opinionradio: 1
- },
- pickerOptions0: {
- disabledDate(time) {
- return time.getTime() < Date.now() - 8.64e7; //如果没有后面的-8.64e7就是不可以选择今天的
- },
- },
- stsArr: ['待审批','待确认','待验收','已完成'],
- provinceCityArr:['省',"地市","区县"],
- loginNoStr: "",
- cityWoId: "",
- }
- },
- watch:{
- 'infolist.tabletaskName':{
- handler(newVal,oldVal){
- // console.log(this.ruleForm);
- console.log(newVal);
- let rule1 = {
- gys: [
- { required: true, validator: this.validatorFile , trigger: "blur" },
- ],
- }
- let rule2 = {
- districtScore: [
- { required: true, validator: this.validatorDafen , trigger: "blur" },],
- materialUrl: [
- { required: true, validator: this.validatorLianjie , trigger: "blur" },],
- }
- if(newVal === '省公司宣传负责人'){
- console.log(121);
- this.rules = { ...this.rules, ...rule1 }
- console.log(111);
- }
- else if(newVal === '区县公司负责人'){
- console.log(1234);
- this.rules = { ...this.rules, ...rule2 }
- }
- },
- deep:true,
-
- },
- // 'infolist.tabletaskName':{
- // handler(newVal,oldVal){
- // // console.log(this.ruleForm);
- // // console.log(newVal);
- // let rule2 = {
- // districtScore: [
- // { required: true, validator: this.validatorDafen , trigger: "blur" },],
- // materialUrl: [
- // { required: true, validator: this.validatorLianjie , trigger: "blur" },],
- // }
- // if(newVal === '市公司主管宣传副主任'){
- // this.rules = { ...this.rules, ...rule }
- // }
- // },
- // deep:true,
-
- // },
- },
- methods: {
- clickTabs(name){
- console.log(name);
- this.pageNo = "1";
- this.page = "1";
- this.childname = name;
- if(name == "first"){
- this.Table = this.firstTable;
- this.getTodoList();
- }else if(name == "two"){
- this.Table = this.twoTable;
- this.haveDone();
- }else{
- this.Table = {}
- this.getIssueList();
- }
- },
- changeNum(val) {
- this.page = val;
- this.pageNo = val;
- console.log(this.page);
- console.log(this.childname);
- switch (this.childname) {
- case "first":
- this.getTodoList();
- // this.iniTiate();
- break;
- case "two":
- this.haveDone();
- break;
- case "three":
- // this.iniTiate();
- // this.Table = this.thirdTable;
- }
- },
- clickDemand(e, r) {
- // console.log(e,r);
- if (e === "业务名称") {
- if(this.childname == "first"){
-
-
- }
- if(this.childname == "two"){
- this.disableStatus = true;
- this.deal = false;
- this.baocun = false;
- this.xiugaizhuan = true;
- // this.shanchu = false;
- // this.xinzeng = false;
- }
- if(this.childname == "three"){
- // this.shanchu = false;
- // this.xinzeng = false;
- // this.isdisabled = true;
- // if(r.taskName == "起草"){
-
- this.deal = false;
- this.baocun = false;
- // }else{
- // this.deal = false;
- // this.baocun = false;
- // }
- }
- this.operationZuo(r); //点标题
- this.clickForm(r); //流程追踪
- }
- },
- chakanfaqi(r){
- this.operationZuo(r); //点标题
- this.deal = false;
- this.baocun = false;
- this.clickForm1(r)
- },
- // operationZuo(){
- // this.dialogVisible = true;
- // },
- //点击标题
- operationZuo(r){
- console.log(r);
- let list = {}
- list.id = r.id,
- // console.log(row)
- this.$http({
- url:"/market/xcwlProcess/query",
- method:"post",
- headers: {
- "Content-Type": "application/json",
- },
- data: list,
- }).then((res)=>{
-
- this.dialogVisible = true;
- this.infolist = res.data;
- this.infolist.businessName = res.data.xcwlProProcessList[0].needName;
- this.infomaterType.riqi = res.data.riqi;
- this.infomaterType.region = res.data.region;
- this.infomaterType = res.data.xcwlProProcessList;
- this.fileInfo.fileList = res.data.mkFileShareAttachList;
- this.infolist.cycle = res.data.cycleList;
- this.infolist.resourceId = r.resourceId;
- this.infolist.taskId = r.taskId;
- this.infolist.id = r.id;
- this.infolist.createId = r.createId;
- this.infolist.tabletaskName = r.taskName;
- // console.log(this.infolist.tabletaskname);
- this.infolist.gys = res.data.xcwlProProcessList[0].selectedGys;
- this.infolist.districtScore = res.data.xcwlProProcessList[0].districtScore;
- this.infolist.materialUrl = res.data.xcwlProProcessList[0].materialUrl;
- if(r.taskName != "起草"){
- this.disableStatus = true;
- this.updisabled = true; //上传附件
- }else{
- this.updisabled = false;
- }
- if(this.infolist.tabletaskName === "起草" || this.infolist.tabletaskName === "省公司宣传负责人" || this.infolist.tabletaskName === "区县公司负责人"){
-
- this.baocun = true;
-
- }else{
- this.baocun = false;
- }
- this.$http({
- url: "/market/cadvSupplier/queryList",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data:{},
- }).then((res) => {
- // console.log(res.data);
- this.gysopt = res.data;
- // console.log( this.infolist.gysopt);
- // this.infomaterType = res.data;
- // if(res.data){
- // this.typests = false;
- // return;
- // }
- });
- });
- },
- uploadBack(v) {
- this.attList = v;
- console.log(this.attList);
- },
- gysMing(n,ev){
- let that = this;
- // console.log(that);
- let hh = that.gysopt.filter(function (c, i, a) {
- // console.log(c,i,a);
- if (c.name == that.infolist.gys) {
- return c;
- }
- });
- this.selectLetter = hh[0].code;
- console.log(this.selectLetter);
- },
- dealwith(){
- if(this.infolist.tabletaskName == "省公司宣传负责人" || this.infolist.tabletaskName == "区县公司负责人"){
- console.log(this.teshuhuanjie);
- if(this.teshuhuanjie.length == 0){
- this.$message.error("请先点击保存");
- }else{
- this.dialogVisible1 = true;
- }
- }else{
- this.dialogVisible1 = true;
- }
-
- },
- updatexiuform(r){
- console.log(r);
- this.typests = true;
- this.rulelist = r;
- },
- closediaform(){
- this.typests = false;
- },
- //更新表格
- gengxinge(){
- this.typests = false;
- // this.$http({
- // url: "/market/xcwlProcess/update",
- // method: "post",
- // headers: {
- // "Content-Type": "application/json",
- // },
-
- // data: this.rulelist,
- // }).then((res) => {
- // console.log(res.data);
- // // this.infomaterType = res.data;
- // if(res.data){
- // this.typests = false;
- // return;
- // }
- // });
- },
- validatorFile(rule,value,callback){
- if(this.infolist.gys == null){
- // console.log(this.ruleForm.addJobNumber);
- callback(new Error('请选择供应商'));
- }else{
-
- callback();
- }
- },
- validatorDafen(rule,value,callback){
- if(this.infolist.districtScore == null || ""){
- console.log(this.infolist.districtScore);
- callback(new Error('请输入区县打分'));
- }else{
-
- callback();
- }
- },
- validatorLianjie(rule,value,callback){
- if(this.infolist.materialUrl == null || ""){
- console.log(this.infolist.materialUrl);
- callback(new Error('请输入物料验证材料链接'));
- }else{
-
- callback();
- }
- },
- //任务下发
- getinform(r){
- console.log(r);
- this.infolist = r;
- this.infolist.id = r.id;
- this.request_form.businessKey = r.id;
- this.getUserIds();
- // console.log(this.request_form);
- // this.infolist.userId = this.request_form.userId;
- // this.infolist.userName = this.request_form.userName;
- // console.log(r);
- // this.clickHandle(r);
- },
- //获取userID
- getUserIds() {
- let id = JSON.parse(window.sessionStorage.userInfo).loginNo
- this.$http({
- url: "/market//api/user/info/queryNodePers?params="+ id,
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {
- // params: JSON.parse(window.sessionStorage.userInfo).loginNo,
- },
- }).then((res) => {
- // console.log(res.data.data.rows[0].name);
- // console.log(res.data.data.rows[0].userCode);
- console.log(res.data[0].children);
- this.request_form.userName = res.data[0].children[0].loginNameStr;
- this.request_form.userId = res.data[0].children[0].loginNoStr;
- this.request_form.title = this.infolist.needName;
- console.log(this.request_form);
- this.clickHandle(this.infolist);
- });
- },
- async clickHandle(e) {
- console.log(this.request_form);
- let _this = this;
- let obj = {
- url: this.$url.formList.startWork, //开始工作流接口
- data: _this.request_form,
- status: "form",
- headers: {
- "Content-Type": "application/x-www-form-urlencoded",
- },
- };
-
- let res = await this.common.httpPost(obj, success);
- function success(data) {
- console.log(data);
- // _this.ruleForm.taskId = _this.ruleForm.taskId;
- // a = a
- // _this.taskId = data.data;
- // console.log(data);
- // console.log(data.code);
- _this.infolist.processId = data.data;
- let list = {
- id: e.id,
- // taskId:_this.formId,
- processId: data.data,
- tableName: _this.processDefinitionKey1,
-
- // resourceId: _this.nextPath.currentShape[0].resourceId,
- };
- // console.log(processDefinitionKey);
- console.log(list);
- _this.setUpdate(list);
- }
- },
- //更新工作流接口
- setUpdate(e) {
- console.log(e);
- this.$http({
- url: "/market/waf/updateBase",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: e,
- }).then((res) => {
- this.infolist.taskId = res.data.body[0].taskId;
- this.clickHandles();
- });
- },
- //是否最后一个人
- async getLastName() {
- console.log(this.infolist);
- let list = {
- procinstid: this.infolist.processId,
- taskid: this.infolist.taskId,
- // taskId:e.taskId
- };
- let _this = this;
- let obj = {
- url: this.$url.formList.getLastName, //流程追踪接口
- data: list,
- // status: "form",
- headers: {
- "Content-Type": "application/json",
- },
- };
- let res = await this.common.httpPost(obj, success);
- function success(data) {
- console.log(data);
- if (data.lastMan == true) {
- _this.adminResourceId = data.adminResourceId;
- }
- _this.destroy = true;
- _this.dialogVisible1 = true;
- _this.isWorkflowStatus = data.lastMan == false ? false : true;
- _this.lastManList = data;
- // console.log(_this.isWorkflowStatus);
- }
- },
- getNextPath(e) {
- let list = {
- // fresourceId: "bf79721c-33f3-11ed-ba0b-00505687dcd3", //测试环境
- fresourceId: this.requestForm.fresourceId, // 本地环境
- processId: this.requestForm.processDefinitionKey,
- // processId: this.infolist.processId,
- // fresourceId: "0d94de8a-0281-11ed-a302-4ae7da54db39", // 本地环境
- // processId: "request_form_process",
- // resourceId: e,
- };
- if (e) {
- // this.propsList = [];
- list.resourceId = e;
- }
- this.$http({
- url: "/market/waf/queryPath",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: list,
- }).then((res) => {
- if (res.data.body.nextShapes[0].multi) {
- console.log('这是mulit节点');
- if (res.data.body.nextShapes[0].multi.multi === "true") {
- console.log('这是mulit节点');
- this.getLastName();
- } else {
- this.adminResourceId = ''
- console.log('这不是mulit节点');
- this.destroy = true;
- this.dialogVisible1 = true;
- // this.getMetirialType();
- }
- } else {
- this.adminResourceId = ''
- console.log('这不是mulit节点');
- this.destroy = true;
- this.dialogVisible1 = true;
- // this.getMetirialType();
- }
- // if (this.infolist.processId) {
- // } else {
- // this.$message.error("请先点击保存按钮");
- // }
- });
- },
- //处理按钮,开始工作流接口
- clickHandles() {
- // console.log(this.infolist.resourceId);
- // this.getNextPath(this.infolist.resourceId || "");
- this.dialogVisible1 = true;
- },
- async clickForm(r) {
- let list = {
- processInstanceId: r.processId,
- // taskId:e.taskId
- };
- let _this = this;
- let obj = {
- url: this.$url.formList.getCommentsByProcessId, //流程追踪接口
- data: list,
- headers: {
- "Content-Type": "application/json",
- },
- };
- let res = await this.common.httpPost(obj, success);
- function success(data) {
- _this. tableData1 = data.data.data;
- data.data.data.map((item) => {
- item.startTime = _this.$util.datetimeFormat(item.startTime);
- item.endTime = _this.$util.datetimeFormat(item.endTime);
- });
- // _this.getProcess(e, data.data);
- _this. tableData1 = data.data.data;
- }
- },
- async clickForm1(r) {
- let list = {
- processInstanceId: r.processId,
- // taskId:e.taskId
- };
- let _this = this;
- let obj = {
- url: this.$url.formList.getCommentsByProcessId, //流程追踪接口
- data: list,
- headers: {
- "Content-Type": "application/json",
- },
- };
- let res = await this.common.httpPost(obj, success);
- function success(data) {
- _this. tableData1 = data.data.data;
- data.data.data.map((item) => {
- item.startTime = _this.$util.datetimeFormat(item.startTime);
- item.endTime = _this.$util.datetimeFormat(item.endTime);
- });
- // _this.getProcess(e, data.data);
- _this. tableData1 = data.data.data;
- }
- },
- updateForm(){
- this.dialogVisible1 = false;
- this.dialogVisible = false;
- this.getIssueList();
- // this.refreshbtn();
- },
- // changeNum(e) {
- // console.log(e)
- // this.pageNo = e;
- // this.page = e;
- // this.firstTable.pageData.pageNum = e;
- // this.getTodoList()
- // },
- adminhandleSizeChange(val) {
- console.log(`每页 ${val} 条`);
- },
- adminhandleCurrentChange(val) {
- // console.log(e)
- this.pageNo = val;
- this.getIssueList()
- console.log(`当前页: ${val}`);
- },
- handleCloses() {
- this.treeList = [];
- this.textarea = "";
- this.dialogVisible1 = false;
- },
- close(){
- this.dialogVisible = false;
- },
- //我发起列表
- getIssueList(e) {
- this.loading2 = true;
- this.$http({
- url: "/market/xcwlProcessImport/queryPage",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- page: '{"pageNo":"' + this.pageNo + '","pageSize":"10"}',
- },
- data:this.searchBox,
- }).then((res) => {
- this.tableData = res.data.data;
- this.tabList[2].number = res.data.totalRecord;
- this.adminpageData.total = res.data.totalRecord;
- this.loading2 = false;
- });
- },
- //待办列表
- getTodoList(e) {
- // this.loading2 = true;
- let list = {
- tableName: this.requestForm.processDefinitionKey1,
- applyType: "地市"
- };
- this.$http({
- url: "/market/xcwlProcess/queryTodoBase",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- page: '{"pageNo":"' + this.pageNo + '","pageSize":"10"}',
- },
- data:list,
- }).then((res) => {
- this.firstTable.data = res.data.data;
- this.firstTable.pageData.total = res.data.totalRecord;
- this.tabList[0].number = res.data.totalRecord;
- this.Table = this.firstTable;
- // this.adminpageData.total = res.data.totalRecord;
- // this.loading2 = false;
- });
- },
- // getTodoList(){
- // let list = {
- // tableName: this.requestForm.processDefinitionKey,
- // };
- // // getInitiateBase getTodoBase
- // getTodoBase(this.page,"",list).then((res)=>{
- // this.firstTable.data = res.data.data;
- // this.firstTable.pageData.total = res.data.totalRecord;
- // // this.Table = this.firstTable;
- // // this.tabList[0].number = res.data.totalRecord;
- // })
- // },
- //已办
- haveDone(){
- // let list = {
- // tableName : this.requestForm.processDefinitionKey
- // }
- // getDoneBase(this.page,"",list).then((res)=>{
- // this.twoTable.data = res.data.data;
- // this.twoTable.pageData.total = res.data.totalRecord;
- // this.tabList[1].number = res.data.totalRecord;
- // this.Table = this.twoTable;
- // // console.log(this.Table);
- // // this.tabList[1].number = res.data.totalRecord;
- // })
- let list = {
- tableName: this.requestForm.processDefinitionKey1,
- applyType: "地市"
- };
- this.$http({
- url: "/market/xcwlProcess/queryDoneBase",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- page: '{"pageNo":"' + this.pageNo + '","pageSize":"10"}',
- },
- data:list,
- }).then((res) => {
- this.twoTable.data = res.data.data;
- this.twoTable.pageData.total = res.data.totalRecord;
- this.tabList[1].number = res.data.totalRecord;
- this.Table = this.twoTable;
-
- });
- },
- saveform(){
- this.$refs.infolist.validate((valid) => {
- console.log(valid);
- if (valid) {
- this.$message.success("保存成功");
- let list = {}
- list.id = this.infolist.id;
- list.businessName = this.infolist.businessName;//业务名称
- list.cycleList = [this.$util.datetimeFormat(this.infolist.cycle[0]),this.$util.datetimeFormat(this.infolist.cycle[1])];
- list.needCode = this.infolist.needCode;
- list.districtScore = this.infolist.districtScore;
- list.gys = this.infolist.gys;
- list.materialUrl = this.infolist.materialUrl;
- list.xcwlProProcessList = this.infomaterType;
- list.gysCode = this.selectLetter;
- // list.xcwlProProcessList = this.multipleSelection;
-
- if(this.attList == null){
- list.mkFileShareAttachList = this.fileInfo.fileList
- }else{
- list.mkFileShareAttachList = this.attList;
- }
- this.$http({
- url: "/market/xcwlProcessImport/update",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
-
- data: list,
- }).then((res) => {
- console.log(res.data);
- this.teshuhuanjie = res.data;
-
- // this.infomaterType = res.data;
- // if(res.data){
- // this.typests = false;
- // return;
- // }
- });
- }else{
- this.$message.error("请完善表单信息");
- }
-
- });
-
-
- },
- download(u) {
- console.log(u);
- // if (this.ruleForm.wfFileShareAttachList.length > 1) {
- this.$http({
- url: "/market/waf/downAllFile",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- responseType: "blob",
- data: { wfFileShareAttachList: this.fileInfo.fileList },
- }).then((response) => {
- if (window.navigator && window.navigator.msSaveOrOpenBlob) {
- let blob = new Blob([response.data], {
- type: "application/vnd.ms-excel",
- });
- window.navigator.msSaveOrOpenBlob(
- blob,
- new Date().getTime().toString() + ".zip"
- );
- } else {
- /* 火狐谷歌的文件下载方式 */
- var blob = new Blob([response.data]);
- var downloadElement = document.createElement("a");
- var href = window.URL.createObjectURL(blob);
- downloadElement.href = href;
- // downloadElement.download = this.ruleForm.fileName + ".zip";
- downloadElement.download = "附件.zip";
- document.body.appendChild(downloadElement);
- downloadElement.click();
- document.body.removeChild(downloadElement);
- window.URL.revokeObjectURL(href);
- }
- if (this.infolist.authType === "3") {
- this.dialogCli(10);
- }
- });
-
- },
- jumpadd(){
- this.$router.push({
- path: '/materialApplicationadd',
- query: {applyType:'地市'},
-
- });
- this.setabList('物料宣传申请','/materialApplicationadd');
- },
- jump(v, n){
- if(v === 1){
- // this.$router.push("/materialApplicationExa?id=" + n.id + "");
- this.$router.push({
- path: '/materialApplicationExa',
- query: {cityWoId: n.cityWoId, id: n.id, btnS: 1}
- })
- }else if(v === 2){
- this.$router.push("/materialApplicationDetail?id="+ n.id + "")
- }else if(v === 3){
- let jumpParams = {cityWoId: n.cityWoId, countyWoId: n.countryWoId, woId: n.id, pcId: n.provinceCity};
- sessionStorage.setItem("jumpParams", JSON.stringify(jumpParams))
- if(n.provinceCity == 1 && n.nextStep ==7){
- this.$router.push({
- path: '/subtaskList',
- // query: { cityWoId: n.cityWoId, countyWoId: n.countryWoId, woId: n.id, }
- // path: '/subtaskList/:name',
- // name: 'subtaskList',
- // params: { cityWoId: n.cityWoId, countyWoId: n.countryWoId, woId: n.id, }
- })
- } else if((n.provinceCity == 1 && n.nextStep ==11) || (n.provinceCity == 2 && n.nextStep == 9) || (n.provinceCity == 3 && n.nextStep == 10)){
- this.$router.push({
- path: '/acceptanceSituation',
- // query: { cityWoId: n.cityWoId, countyWoId: n.countryWoId, woId: n.id, pcId: n.provinceCity}
- // path: '/acceptanceSituation/:name',
- // name: 'acceptanceSituation',
- // params: { cityWoId: n.cityWoId, countyWoId: n.countryWoId, woId: n.id, pcId: n.provinceCity}
- })
- }
- }else if(v === 4){
- // this.$router.push("/acceptance?cityWoId="+ n.cityWoId + "&countyWoId=" + n.countryWoId)
- this.$router.push({
- path: '/acceptance',
- query: { cityWoId: n.cityWoId, countyWoId: n.countryWoId, woId: n.id }
- })
- }
- },
- setabList(n, p) {
- let params = {
- children: "",
- name: n,
- rountPath: p,
- target: "_self",
- };
- for (let i = 0; i < this.$store.state.tabList.length; i++) {
- if (this.$store.state.tabList[i].name === params.name) {
- this.$store.state.tabList[i] = params;
- }
- }
- let set = new Set([...this.$store.state.tabList, params]);
- set.add(params);
- this.$store.commit("setDefaultActive", params.rountPath);
- this.$store.commit("setTabList", Array.from(set));
- },
- closedia() {
- this.infolist = {};
- this.dialogStatus = false;
- this.approvalinfolist = {};
- this.applicationDialogStatus = false;
- },
- //搜索数据
- searchInfo(v) {
- this.params = {};
- v[0] ? this.params.bizName = v[0] : '';
- v[1] ? this.params.sts = v[1] : '';
- let timeFrom = '';
- let timeTo = '';
- if (v[2]){
- timeFrom = this.$formatDate(v[2],"YYYY-MM-DD")+ ' 00:00:00'
- timeTo = this.$formatDate(v[2],"YYYY-MM-DD")+ ' 23:59:59'
- }
- timeFrom ? this.params.opTimeFrom = timeFrom : '';
- timeTo ? this.params.opTimeTo = timeTo : '';
- this.getList(this.params, this.pageSize);
- },
- //获取列表
- getList(v, n) {
- this.pageSize = n;
- let _this = this;
- // this.loading = true;
- this.tableData = [];
- this.$http({
- url: "/market/cadvBusiMetirialWo/queryPage",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- "page": '{"pageNo":"' + n + '","pageSize":"10"}'
- },
- data: v,
- }).then((res) => {
- this.tableData = res.data.body.pageList.data;
- this.total = res.data.body.pageList.totalRecord;
- // console.log(this.tableData);
- this.loading = false;
- });
- },
- // 分页
- currchange(v) {
- this.pageSize = v;
- this.getList(this.params, this.pageSize);
- },
- //申请
- dialogCheck(v, n) {
- this.dialogStatus = true;
- // 审批同意对话框
- this.applicationDialogStatus = true;
- this.infolist = Object.assign({}, n);
- if (v === 1) {
- this.titname = '查看';
- this.disableStatus = true;
- } else if (v === 2) {
- this.titname = '审批';
- this.disableStatus = false;
- }
- this.$http({
- url: '/bpm/api/taskInit',
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {
- woNo: n.woNo
- },
- }).then((res) => {
- this.infolist = Object.assign({}, res.data);
- this.infoApply = JSON.parse(this.infolist.params.wo);
- this.rovaList = res.data.taskList;
- });
- },
- //添加
- dialogCli(v) {
- if (v === 1) {
- this.infolist = {};
- this.dialogStatus = false;
- return
- }else if(v===5){
- if(this.approvalinfolist.opinionradio == 1){
- this.infolist.opTime = this.$formatDate(new Date(), "YYYY-MM-DD");
- this.infolist.dealType = '2';
- this.infolist.dealTypeDesc = this.approvalinfolist.opinion;
- this.applicationDialogStatus = false;
- this.submitInfo("/bpm/api/submitTask", this.infolist);
- }
- }
- else {
- this.infolist.opTime = this.$formatDate(new Date(), "YYYY-MM-DD");
- if (this.titname === '添加') {
- this.submitInfo("/bpm/api/addBpmPrePlugin");
- } else if (this.titname === '审批') {
- this.submitInfo("/bpm/api/updateBpmPrePlugin", v);
- }
- }
- },
- submitInfo(u) {
- let _this = this;
- //this.$refs.infolist.validate(valid => {
- //if (valid) {
- this.loadinged = true;
- this.$http({
- url: u,
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: this.infolist,
- }).then((res) => {
- this.loadinged = false;
- if (res.data.result === 1) {
- _this.$message({
- message: res.data.desc,
- type: 'error'
- });
- } else {
- _this.$message({
- message: '成功',
- type: 'success'
- });
- _this.infolist = {};
- _this.dialogStatus = false;
- _this.getList({}, _this.pageSize);
- }
- });
- //}
- //})
- },
- closeMessage(v) {
- this.centerDialogVisible = false;
- let _this = this;
- if (v === 1) {
- _this.$http({
- url: "/market/cadvBusiMetirialWo/del",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {
- woId: this.delid
- },
- }).then((res) => {
- if (res.data.result === 1) {
- _this.$message({
- message: res.data.desc,
- type: 'error'
- });
- } else {
- _this.$message({
- message: '删除成功',
- type: 'success'
- });
- _this.getList(this.params, this.pageSize);
- }
- });
- }
- },
- //删除
- delLine(v) {
- this.centerDialogVisible = true;
- this.messTit = '即将删除此条数据, 是否删除?';
- this.delid = v.id;
- },
- //文件返回值
- uploadBack(v) {
- console.log(v)
- this.attList = v;
- },
- //功能栏
- iconCli(v) {
- if (v === 1) {
- this.getList(this.params, this.pageSize);
- }
- if (v === 2) {
- this.fullscreen = !this.fullscreen
- }
- },
- getUser() {
- this.userInfo = JSON.parse(window.sessionStorage.userInfo);
- this.loginNoStr = this.userInfo.loginNoStr;
- }
- },
- mounted() {
- // this.getList({}, 1);
- this.getUser();
- },
- created() {
- // console.log(this.$route);
-
- this.getTodoList();
- this.Table = this.firstTable;
- // this.haveDone();
- this.getIssueList();
- }
- }
- </script>
- <style scoped lang="scss">
- .t-footer {
- text-align: center;
- padding: 20px;
- margin: 20px 0 20px 0;
- }
- .info-lineform {
- width: 100%;
- display: block;
- // padding-left: 20px;
- div {
- width: 50%;
- display: inline-block;
- }
- span {
- width: 80px;
- display: inline-block;
- text-align: left;
- i {
- color: red;
- display: inline-block;
- padding-right: 5px;
- }
- }
- .el-select,
- .el-input {
- width: calc(100% - 100px);
- }
- .el-checkbox-group {
- border: 1px solid #ddd;
- padding-left: 20px;
- height: 40px;
- width: calc(100% - 100px);
- border-radius: 5px;
- }
- }
- .table-title {
- width: 100%;
- height: 50px;
- margin-top: 100px;
- line-height: 50px;
- background-color: rgb(243, 250, 255);
- // font-size: 18px;
- font-weight: 700;
- }
- // ::v-deep.online .el-form-item__content {
- // width: 98%;
- // margin-left: 0 !important;
- // }
- ::v-deep .el-tabs__nav {
- margin: 12px 0 0 12px;
- }
- ::v-deep .el-tabs__nav-wrap::after {
- display: none;
- }
- ::v-deep .el-tabs__active-bar {
- display: none;
- }
- ::v-deep .el-tabs .is-active {
- color: #fff;
- background-color: #0583cd;
- }
- ::v-deep .el-tabs__item {
- padding: 0;
- margin-right: 20px;
- width: 166px;
- text-align: center;
- background-color: #d8eaf6;
- color: #000;
- height: 40px;
- box-sizing: border-box;
- line-height: 40px;
- display: inline-block;
- list-style: none;
- font-size: 14px;
- font-weight: 500;
- color: #303133;
- position: relative;
- }
- .onetab {
- margin-bottom: 20px;
- padding: 0 20px;
- }
- .titbox {
- div {
- float: right;
- i {
- font-size: 22px;
- margin-left: 20px;
- cursor: pointer;
- }
- }
- }
- .tabbox {
- margin-top: 15px;
- }
- .pageBox {
- text-align: right;
- margin-top: 10px;
- }
- .info-line {
- width: 100%;
- display: block;
- // padding-left: 20px;
- margin: 20px 0 0 -35px;
- div {
- width: 50%;
- display: inline-block;
- }
- span {
- width: 80px;
- display: inline-block;
- text-align: left;
- i {
- color: red;
- display: inline-block;
- padding-right: 5px;
- }
- }
- .el-select,
- .el-input {
- width: calc(100% - 100px);
- }
- }
- .online {
- width: 100%;
- .el-select {
- width: calc(100% - 100px);
- }
- span {
- vertical-align: top;
- }
- .el-textarea {
- width: calc(100% - 100px);
- }
- }
- .adv-type{
- margin-top: 20px;
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- // border: 1px solid #ddd;
- border-radius: 5px;
- padding: 20px;
- box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
- div{
- width: 33%;
- text-align: center;
- height: 80px;
- overflow: hidden;
- min-width: 100px;
- cursor: pointer;
- padding-top: 10px;
- margin: 10px 0;
- }
- div:hover{
- background: #CFE8FC;
- border-radius: 5px;
- }
- span{
- width: 100%;
- display: inline-block;
- height: 40px;
- // line-height: 40px;
- i{
- color: #0074D9;
- font-size: 36px;
- }
- }
- }
- .boximgc {
- display: flex;
- flex-wrap: wrap;
- width: 100% !important;
- margin-top: 20px;
- div {
- display: inline-block;
- width: 18% !important;
- margin-right: 2%;
- margin-bottom: 20px;
- overflow: hidden;
- border: 1px solid #ddd;
- border-radius: 3px;
- background: #fff;
- position: relative;
- height: 100px;
- img {
- width: 100%;
- position: absolute;
- top: 0;
- bottom: 0;
- margin: auto;
- // height: 100%;
- }
- }
- }
- </style>
|