1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657 |
- <template>
- <div style="display: flex; justify-content: space-between">
- <div class="taskbox">
- <div class="tit">
- <span style="font-weight: bold">待办任务</span>
- </div>
- <div style="background: #fff; padding: 20px; min-height: 400px">
- <div class="tabbox">
- <el-table
- class="com-table"
- ref="multipleTable"
- :data="niticList"
- tooltip-effect="dark"
- size="small"
- border
- style="width: 100%"
- height="350px"
- >
- <el-table-column prop="woTitle" label="工单标题">
- <template slot-scope="scope">
- <span
- :style="scope.row.woTypeDesc == '预警工单' ? 'color:red' : ''"
- >{{ scope.row.woTitle }}</span
- >
- </template>
- </el-table-column>
- <el-table-column prop="sendTime" label="发起时间">
- <template slot-scope="scope">
- <span>{{ $formatDate(scope.row.sendTime, "YYYY-MM-DD") }}</span>
- </template>
- </el-table-column>
- <!-- <el-table-column prop="sendNo" label="发起工号">
- </el-table-column> -->
- <el-table-column prop="sendName" label="发起姓名">
- <template slot-scope="scope">
- <span>{{ $desensitization(scope.row.sendName, 1) }}</span>
- </template>
- </el-table-column>
- <el-table-column label="操作" align="center" width="120">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="primary"
- @click="checkNotic(1, scope.row)"
- >查看</el-button
- >
- <el-button
- v-if="scope.row.sts == '2' || scope.row.sts == '4'"
- size="mini"
- type="primary"
- @click="checkNotic(2, scope.row)"
- >处理</el-button
- >
- <el-button
- v-if="
- scope.row.sts == '0' && scope.row.woTypeDesc == '预警工单'
- "
- size="mini"
- type="primary"
- @click="checkNotic(2, scope.row)"
- >处理</el-button
- >
- <el-button
- v-if="
- scope.row.sts == 3 && scope.row.woTypeDesc == '信息上报'
- "
- size="mini"
- type="primary"
- @click="checkNotic(2, scope.row)"
- >处理</el-button
- >
- <el-button
- v-if="scope.row.sts == 0 && scope.row.woTypeDesc == '工单'"
- size="mini"
- type="danger"
- @click="checkNotic(3, scope.row)"
- >审核</el-button
- >
- <el-button
- v-if="
- scope.row.sts == 1 && scope.row.woTypeDesc == '预警工单'
- "
- size="mini"
- type="danger"
- @click="checkNotic(3, scope.row)"
- >审核</el-button
- >
- <el-button
- v-if="
- scope.row.sts == 0 && scope.row.woTypeDesc == '信息上报'
- "
- size="mini"
- type="danger"
- @click="checkNotic(3, scope.row)"
- >审核</el-button
- >
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- <div class="taskbox">
- <div class="tit">
- <span style="font-weight: bold">已办任务</span>
- <span style="cursor: pointer" @click="newtask">发起</span>
- </div>
- <div style="background: #fff; min-height: 400px; padding: 20px">
- <div class="tabbox">
- <el-table
- class="com-table"
- ref="tableDatayj"
- :data="tableDatayj"
- tooltip-effect="dark"
- size="small"
- border
- style="width: 100%"
- height="350px"
- >
- <el-table-column prop="woTitle" label="工单标题"> </el-table-column>
- <el-table-column prop="sendTime" label="发起时间">
- <template slot-scope="scope">
- <span>{{ $formatDate(scope.row.sendTime, "YYYY-MM-DD") }}</span>
- </template>
- </el-table-column>
- <!-- <el-table-column prop="sendNo" label="发起工号"> </el-table-column> -->
- <el-table-column prop="sendName" label="发起姓名">
- <template slot-scope="scope">
- <span>{{ $desensitization(scope.row.sendName, 1) }}</span>
- </template>
- </el-table-column>
- <el-table-column label="操作" align="center">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="primary"
- @click="checkNotic(1, scope.row)"
- >
- 查看</el-button
- >
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- <el-dialog
- title="工单"
- :visible.sync="tasksts"
- width="70%"
- :close-on-press-escape="false"
- :show-close="true"
- :destroy-on-close="true"
- :modal-append-to-body="false"
- :close-on-click-modal="false"
- :fullscreen="true"
- >
- <div class="dialog-l">
- <el-tabs tab-position="left" v-model="activeName">
- <el-tab-pane
- v-for="item in routerList"
- :key="item.label"
- :name="item.label"
- :label="item.name"
- >
- </el-tab-pane>
- </el-tabs>
- </div>
- <div class="dialog-r">
- <el-form
- :model="infolist"
- ref="infolist"
- :rules="rules"
- style="height: calc(100vh - 180px); overflow-y: scroll"
- >
- <div class="info-line">
- <el-form-item prop="woTitle">
- <span>工单标题</span>
- <el-input v-model="infolist.woTitle" placeholder="工单标题">
- </el-input>
- </el-form-item>
- <el-form-item prop="requireTime">
- <span>反馈时间</span>
- <el-date-picker
- :append-to-body="false"
- v-model="infolist.requireTime"
- type="date"
- placeholder="要求反馈时间"
- >
- </el-date-picker>
- </el-form-item>
- </div>
- <el-form-item prop="visiblec" class="info-line online">
- <span>接收人员</span>
- <deptTreeOnly
- class="tree"
- @treeCheck="treeCheckonly"
- ></deptTreeOnly>
- <div class="tree treeUser">
- <p>{{ treeListonly.leaderAuditName }}</p>
- </div>
- </el-form-item>
- <el-form-item class="info-line online">
- <span>任务描述</span>
- <el-input
- v-model="infolist.arcDesc"
- placeholder="任务描述"
- type="textarea"
- :rows="3"
- ></el-input>
- </el-form-item>
- <div style="padding-left: 80px">
- <myUpload
- @uploadBack="uploadBack"
- :fileInfo="fileInfo"
- :fileList="fileInfo.fileList"
- >
- </myUpload>
- </div>
- </el-form>
- <div slot="footer" class="dialog-footer myfooter">
- <el-button
- @click="dialogCliadd(1)"
- type="primary"
- v-if="activeName != '2'"
- >确 定</el-button
- >
- <el-button
- type="primary"
- @click="dialogCliadd(3)"
- v-if="activeName == '2'"
- >通 过</el-button
- >
- <el-button
- type="primary"
- @click="dialogCliadd(4)"
- v-if="activeName == '2'"
- >打 回</el-button
- >
- <el-button @click="dialogCliadd(2)">取 消</el-button>
- </div>
- </div>
- </el-dialog>
- <el-dialog
- title="审核工单"
- :visible.sync="taskstsh"
- width="70%"
- :close-on-press-escape="false"
- :show-close="true"
- :destroy-on-close="true"
- :modal-append-to-body="false"
- :close-on-click-modal="false"
- :fullscreen="true"
- >
- <div class="dialog-l">
- <el-tabs tab-position="left" v-model="activeName">
- <el-tab-pane
- v-for="item in routerList"
- :key="item.label"
- :name="item.label"
- :label="item.name"
- >
- </el-tab-pane>
- </el-tabs>
- </div>
- <div class="dialog-r">
- <el-form
- :model="infolist"
- ref="infolist"
- :rules="rules"
- style="height: calc(100vh - 180px); overflow-y: scroll"
- >
- <div class="info-line" style="margin-bottom: 10px">
- <span>工单标题</span>
- <el-input
- v-model="infolist.woTitle"
- placeholder="工单标题"
- disabled
- >
- </el-input>
- </div>
- <div
- style="margin-bottom: 10px"
- class="info-line online"
- v-if="activeName == '1'"
- >
- <span>接收人员</span>
- <deptTreeOnly
- class="tree"
- @treeCheck="treeCheckonly"
- ></deptTreeOnly>
- <div class="tree treeUser">
- <p>{{ treeListonly.leaderAuditName }}</p>
- </div>
- </div>
- <el-form-item class="info-line online">
- <span>工单备注</span>
- <el-input
- v-model="infolist.dealRemark"
- placeholder="工单备注"
- type="textarea"
- :rows="3"
- >
- </el-input>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer myfooter">
- <el-button
- @click="dialogCliup(1)"
- type="primary"
- v-if="activeName != '2'"
- >确 定</el-button
- >
- <el-button
- type="primary"
- @click="dialogCliup(3)"
- v-if="activeName == '2'"
- >通 过</el-button
- >
- <el-button
- type="primary"
- @click="dialogCliup(4)"
- v-if="activeName == '2'"
- >打 回</el-button
- >
- <el-button @click="dialogCliup(2)">取 消</el-button>
- </div>
- </div>
- </el-dialog>
- <el-dialog
- title="处理工单"
- :visible.sync="taskstcl"
- width="70%"
- :close-on-press-escape="false"
- :show-close="true"
- :destroy-on-close="true"
- :modal-append-to-body="false"
- :close-on-click-modal="false"
- :fullscreen="true"
- >
- <div class="dialog-l">
- <el-tabs tab-position="left" v-model="activeName">
- <el-tab-pane
- v-for="item in routerList"
- :key="item.label"
- :name="item.label"
- :label="item.name"
- >
- </el-tab-pane>
- </el-tabs>
- </div>
- <div class="dialog-r">
- <el-form
- :model="infolist"
- style="height: calc(100vh - 180px); overflow-y: scroll"
- >
- <div class="info-line" style="margin-bottom: 10px">
- <span>工单标题</span>
- <el-input
- v-model="infolist.woTitle"
- placeholder="工单标题"
- disabled
- >
- </el-input>
- </div>
- <div
- class="info-line online"
- style="margin-bottom: 10px"
- v-if="activeName != '3'"
- >
- <span>接收人员</span>
- <deptTreeOnly
- class="tree"
- @treeCheck="treeCheckonly"
- ></deptTreeOnly>
- <div class="tree treeUser">
- <p>{{ treeListonly.leaderAuditName }}</p>
- </div>
- </div>
- <el-form-item class="info-line online">
- <span>工单备注</span>
- <el-input
- v-model="infolist.dealRemark"
- placeholder="工单备注"
- type="textarea"
- :rows="3"
- >
- </el-input>
- </el-form-item>
- <div style="padding-left: 80px" v-if="activeName == '3'">
- <myUpload
- @uploadBack="uploadBack"
- :fileInfo="fileInfo"
- :fileList="fileInfo.fileList"
- >
- </myUpload>
- </div>
- </el-form>
- <div slot="footer" class="dialog-footer myfooter">
- <el-button type="primary" @click="dialogClicl(2)">确 定</el-button>
- <el-button @click="dialogClicl(1)">取 消</el-button>
- </div>
- </div>
- </el-dialog>
- <el-dialog
- title="查看工单"
- :visible.sync="dialogInfo"
- width="70%"
- :close-on-press-escape="false"
- :show-close="true"
- :destroy-on-close="true"
- :modal-append-to-body="false"
- :close-on-click-modal="false"
- :fullscreen="true"
- >
- <div style="height: calc(100vh - 180px); overflow-y: scroll">
- <orderCheck
- :historySts="historySts"
- :infolist="infolist"
- :datalist="datalist"
- :backlist="backlist"
- :dialogInfo="dialogInfo"
- ></orderCheck>
- </div>
- <div class="dialog-footer myfooter">
- <el-button @click="dialoginfoCli(1)" type="primary">轨 迹</el-button>
- <el-button @click="dialoginfoCli(3)">取 消</el-button>
- </div>
- </el-dialog>
- <el-dialog
- title="审核预警工单"
- :visible.sync="taskstyjsh"
- width="70%"
- :close-on-press-escape="false"
- :show-close="true"
- :destroy-on-close="true"
- :modal-append-to-body="false"
- :close-on-click-modal="false"
- :fullscreen="true"
- >
- <el-form
- :model="infolist"
- ref="infolist"
- style="height: calc(100vh - 180px); overflow-y: scroll"
- >
- <div class="info-line">
- <el-form-item>
- <span>预警规则</span>
- <el-input
- v-model="infolist.ruleName"
- placeholder="工单标题"
- disabled
- ></el-input>
- </el-form-item>
- <el-form-item>
- <span>工单标题</span>
- <el-input
- v-model="infolist.woName"
- placeholder="工单标题"
- disabled
- ></el-input>
- </el-form-item>
- </div>
- <el-form-item class="info-line online">
- <span>任务描述</span>
- <el-input
- v-model="infolist.description"
- disabled
- placeholder="任务描述"
- type="textarea"
- :rows="3"
- >
- </el-input>
- </el-form-item>
- <div
- style="padding-left: 100px; padding-right: 20px; margin-bottom: 20px"
- >
- <uploadDown
- :datalist="datalist"
- :dialogStatus="uploadstatus"
- ></uploadDown>
- </div>
- <el-form-item class="info-line online">
- <span>工单备注</span>
- <el-input
- v-model="infolist.replyDesc"
- placeholder="工单备注"
- type="textarea"
- :rows="3"
- ></el-input>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button @click="dialogCliyj(3)" type="primary">通 过</el-button>
- <el-button @click="dialogCliyj(4)" type="primary">打 回</el-button>
- <el-button @click="dialogCliyj(2)">取 消</el-button>
- </div>
- </el-dialog>
- <el-dialog
- title="查看"
- :visible.sync="dialogInfoyj"
- width="70%"
- :close-on-press-escape="false"
- :show-close="true"
- :destroy-on-close="true"
- :modal-append-to-body="false"
- :close-on-click-modal="false"
- :fullscreen="true"
- >
- <div style="height: calc(100vh - 180px); overflow-y: scroll">
- <ruleCheck
- :infolist="infolist"
- :datalist="datalist"
- :dialogInfo="dialogInfo"
- :historySts="historySts"
- ></ruleCheck>
- </div>
- <div class="dialog-footer myfooter">
- <el-button @click="dialoginfoCliyj(1)" type="primary">轨 迹</el-button>
- <el-button
- @click="dialoginfoCliyj(2)"
- type="primary"
- v-if="infolist.sts == '1'"
- >处 理</el-button
- >
- <el-button @click="dialoginfoCliyj(3)">取 消</el-button>
- </div>
- </el-dialog>
- <el-dialog
- title="预警工单处理"
- :visible.sync="dialogStatusyj"
- width="60%"
- :close-on-press-escape="false"
- :show-close="true"
- :destroy-on-close="true"
- :modal-append-to-body="false"
- :close-on-click-modal="false"
- :fullscreen="true"
- >
- <div class="dialog-l">
- <el-tabs tab-position="left" v-model="activeName">
- <el-tab-pane
- v-if="item.label != '3'"
- v-for="item in routerList"
- :key="item.label"
- :name="item.label"
- :label="item.name"
- >
- </el-tab-pane>
- </el-tabs>
- </div>
- <div class="dialog-r">
- <el-form
- :model="infolist"
- ref="infolist"
- style="height: calc(100vh - 180px); overflow-y: scroll"
- >
- <div class="info-line">
- <el-form-item>
- <span>预警规则</span>
- <el-input
- v-model="infolist.ruleName"
- placeholder="工单标题"
- disabled
- ></el-input>
- </el-form-item>
- <el-form-item>
- <span>工单标题</span>
- <el-input
- v-model="infolist.woName"
- placeholder="工单标题"
- ></el-input>
- </el-form-item>
- </div>
- <el-form-item class="info-line online">
- <span>接收人员</span>
- <deptTreeOnly
- class="tree"
- @treeCheck="treeCheckonly"
- ></deptTreeOnly>
- <div class="tree treeUser">
- <p>{{ treeListonly.leaderAuditName }}</p>
- </div>
- </el-form-item>
- <el-form-item class="info-line online">
- <span>工单备注</span>
- <el-input
- v-model="infolist.replyDesc"
- placeholder="工单备注"
- type="textarea"
- :rows="3"
- ></el-input>
- </el-form-item>
- </el-form>
- </div>
- <div slot="footer" class="dialog-footer">
- <el-button @click="dialogCliyjt(1)" type="primary">确 定</el-button>
- <el-button @click="dialogCliyjt(2)">取 消</el-button>
- </div>
- </el-dialog>
- <el-dialog
- title="信息上报审核"
- :visible.sync="taskstxxsh"
- width="50%"
- :close-on-press-escape="false"
- :show-close="true"
- :destroy-on-close="true"
- :modal-append-to-body="false"
- :close-on-click-modal="false"
- :fullscreen="true"
- >
- <div>
- <el-form :model="infolist" ref="infolist">
- <div style="height: calc(100vh - 180px); overflow-y: scroll">
- <orderCheck :infolist="infolist" :mini="1"></orderCheck>
- <div style="padding: 0 30px 0 20px" v-if="this.attList.length > 0">
- <uploadDown
- :datalist="datalist"
- :dialogStatus="uploadstatus"
- ></uploadDown>
- </div>
- </div>
- </el-form>
- <div slot="footer" class="dialog-footer myfooter">
- <el-button type="primary" @click="dialogClixx(1)">通 过</el-button>
- <el-button type="primary" @click="dialogClixx(3)">打 回</el-button>
- <el-button @click="dialogClixx(2)">取 消</el-button>
- </div>
- </div>
- </el-dialog>
- <el-dialog
- title="信息上报处理"
- :visible.sync="dialogStatusxx"
- width="50%"
- :close-on-press-escape="false"
- :show-close="true"
- :destroy-on-close="true"
- :modal-append-to-body="false"
- :close-on-click-modal="false"
- :fullscreen="true"
- >
- <div class="dialog-l">
- <el-tabs tab-position="left" v-model="activeName">
- <el-tab-pane
- v-for="item in routerListx"
- :key="item.label"
- :name="item.label"
- :label="item.name"
- >
- </el-tab-pane>
- </el-tabs>
- </div>
- <div class="dialog-r">
- <el-form
- :model="infolist"
- ref="infolist"
- :rules="rules"
- style="height: calc(100vh - 180px); overflow-y: scroll"
- >
- <div class="info-line">
- <el-form-item prop="msgTital">
- <span>上报标题</span>
- <el-input
- v-model="infolist.msgTital"
- placeholder="标题"
- :disabled="disableStatus"
- >
- </el-input>
- </el-form-item>
- <el-form-item prop="msgType">
- <span>信息分类</span>
- <el-select
- @change="changemsgType"
- v-model="infolist.msgType"
- placeholder="信息分类"
- clearable
- :disabled="disableStatus"
- >
- <el-option
- v-for="item in typelist"
- :key="item.id"
- :label="item.msgType"
- :value="item.id"
- >
- </el-option>
- </el-select>
- </el-form-item>
- </div>
- <el-form-item
- prop="visiblec"
- class="info-line online"
- v-if="activeName == 1"
- >
- <span>接收人员</span>
- <deptTreeOnly
- class="tree"
- @treeCheck="treeCheckonly"
- ></deptTreeOnly>
- <div class="tree treeUser">
- <p>{{ treeListonly.leaderAuditName }}</p>
- </div>
- </el-form-item>
- <el-form-item
- prop="visiblec"
- class="info-line online"
- v-if="activeName == 2"
- >
- <span>接收人员</span>
- <div class="treedept">
- <p v-for="item in exaList" :key="item.loginNoStr">
- <el-checkbox
- @change="exachange(item)"
- v-model="item.sts"
- style="margin-right: 10px"
- ></el-checkbox
- >{{ item.loginNameStr }}
- </p>
- </div>
- </el-form-item>
- <el-form-item class="info-line online" prop="msgInfo">
- <span>上报内容</span>
- <el-input
- v-model="infolist.msgInfo"
- placeholder="上报内容"
- type="textarea"
- :rows="3"
- :disabled="disableStatus"
- ></el-input>
- </el-form-item>
- <div style="padding-left: 80px" v-if="!disableStatus">
- <myUpload
- @uploadBack="uploadBack"
- :fileInfo="fileInfo"
- :fileList="fileInfo.fileList"
- >
- </myUpload>
- </div>
- </el-form>
- <div slot="footer" class="dialog-footer myfooter">
- <el-button @click="dialogCli(2)" v-if="disableStatus"
- >确 定</el-button
- >
- <el-button type="primary" @click="dialogCli(1)" v-if="!disableStatus"
- >确 定</el-button
- >
- <el-button @click="dialogCli(2)">取 消</el-button>
- </div>
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import uploadDown from "../../../components/uploadDown";
- import myUpload from "../../../components/upload.vue";
- import deptTree from "../../../components/deptTreeUser.vue";
- import deptTreeOnly from "../../../components/deptTreeOnly.vue";
- import orderCheck from "../workOrderManage/orderCheck.vue";
- import ruleCheck from "../warnManage/ruleCheck.vue";
- export default {
- components: {
- uploadDown,
- myUpload,
- deptTree,
- deptTreeOnly,
- orderCheck,
- ruleCheck,
- },
- data() {
- const woTitle = (rule, value, callback) => {
- if (!this.infolist.woTitle) {
- callback(new Error("不能为空"));
- } else {
- callback();
- }
- };
- const requireTime = (rule, value, callback) => {
- if (!this.infolist.requireTime) {
- callback(new Error("不能为空"));
- } else {
- callback();
- }
- };
- return {
- rules: {
- woTitle: [
- {
- required: true,
- trigger: "blur",
- validator: woTitle,
- },
- ],
- requireTime: [
- {
- required: true,
- trigger: "change",
- validator: requireTime,
- },
- ],
- },
- noticeData: [],
- knowledgeData: [],
- srcsc: "",
- ifrshow: false,
- infolist: {},
- infolistyj: {},
- dialogStatus: false,
- dialogStatusyj: false,
- dialogStatusxx: false,
- diaKnowStatus: false,
- uploadstatus: false,
- datalist: {
- url: "/sysmgr/noticeatt/downfile",
- type: 1,
- },
- backlist: {
- url: "/sysmgr/noticeatt/downfile",
- type: 1,
- },
- datalistk: {
- url: "/market/compatt/downfile",
- type: 1,
- },
- attList: [],
- niticList: [],
- datalistn: {
- url: "/sysmgr/noticeatt/downfile",
- type: 1,
- },
- noticStatus: false,
- typelist: [],
- userInfo: {},
- knowledgeData: [],
- tableDatayj: [],
- btnsts: null,
- disableStatus: false,
- visiblec: [],
- typeOptions: [],
- fileInfo: {
- limit: 10,
- url: "/market/cwo/upload",
- fileList: [],
- },
- btnctrlStatus: false,
- tasksts: false,
- taskstsh: false,
- taskstyjsh: false,
- taskstxxsh: false,
- taskstcl: false,
- dialogInfo: false,
- treeList: [],
- treeListonly: [],
- activeName: "1",
- routerList: [
- {
- name: "其他人办理",
- label: "1",
- },
- {
- name: "领导审批",
- label: "2",
- },
- {
- name: "办理结束",
- label: "3",
- },
- ],
- routerListx: [
- {
- name: "上报",
- label: "1",
- },
- {
- name: "审批",
- label: "2",
- },
- ],
- historySts: false,
- dialogInfoyj: false,
- exaList: [],
- };
- },
- methods: {
- dialoginfoCli(v) {
- if (v == 1) {
- this.historySts = !this.historySts;
- } else if (v == 3) {
- this.dialogInfo = false;
- this.historySts = false;
- this.infolist = {};
- }
- },
- //新增待办工单
- dialogCliadd(v) {
- if (v === 2) {
- this.tasksts = false;
- return;
- } else if (v === 1) {
- let _this = this;
- let params = {};
- if (this.activeName == "1") {
- params.sts = "2";
- params.stsDesc = "待处理";
- params.auditName = this.treeListonly.leaderAuditName;
- params.auditNo = this.treeListonly.leaderAuditNo;
- params.leaderAuditName = this.treeListonly.leaderAuditName;
- params.leaderAuditNo = this.treeListonly.leaderAuditNo;
- if (!this.treeListonly.leaderAuditName) {
- this.$message({
- message: "请选择接单人!",
- type: "error",
- });
- return;
- }
- } else if (this.activeName == "2") {
- params.sts = "0";
- params.stsDesc = "待审核";
- params.auditName = this.userInfo.loginName;
- params.auditNo = this.userInfo.loginNo;
- params.leaderAuditName = this.treeListonly.leaderAuditName;
- params.leaderAuditNo = this.treeListonly.leaderAuditNo;
- if (!this.treeListonly.leaderAuditName) {
- this.$message({
- message: "请选择接单人!",
- type: "error",
- });
- return;
- }
- } else if (this.activeName == "3") {
- params.sts = "1";
- params.stsDesc = "已处理";
- }
- params.stepSts = this.activeName;
- params.sendNo = this.userInfo.loginNo;
- params.sendName = this.userInfo.loginName;
- params.woTitle = this.infolist.woTitle;
- params.arcDesc = this.infolist.arcDesc;
- params.sendTime = this.$formatDate(new Date(), "YYYY-MM-DD");
- params.requireTime = this.$formatDate(
- this.infolist.requireTime,
- "YYYY-MM-DD"
- );
- let attList = [];
- for (let i = 0; i < this.attList.length; i++) {
- attList.push({
- id: this.attList[i].id,
- fileCode: this.attList[i].fileCode,
- fileName: this.attList[i].fileName,
- opName: this.attList[i].opName,
- opNo: this.attList[i].opNo,
- opTime: this.attList[i].opTime,
- woNo: this.infolist.woNo,
- });
- }
- params.attList = attList;
- this.$http({
- url: "/market/cwo/add",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: params,
- }).then((res) => {
- if (res.data.result === 1) {
- _this.$message({
- message: res.data.desc,
- type: "error",
- });
- } else {
- _this.$message({
- message: "成功",
- type: "success",
- });
- }
- _this.tasksts = false;
- _this.treeListonly = {};
- _this.attList = [];
- _this.infolist = {};
- });
- }
- },
- //待办任务查询
- daiban() {
- this.$http({
- url: "/market/cwo/queryQaToDoList",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- page: '{"pageNo":"' + 1 + '","pageSize":"100"}',
- },
- data: {},
- }).then((res) => {
- this.niticList = res.data.data;
- });
- },
- //待办任务详情
- checkNotic(n, v) {
- let u = "";
- let params = {};
- if (v.woTypeDesc == "工单") {
- u = "/market/cwo/queryInfo";
- params.woNo = v.woNo;
- } else if (v.woTypeDesc == "预警工单") {
- u = "/market/alarmCWo/Cquery";
- params.woNo = v.woNo;
- } else {
- u = "/market/cqamsg/queryInfo";
- params.id = v.woNo;
- }
- this.$http({
- url: u,
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: params,
- }).then((res) => {
- this.activeName = v.stepSts;
- this.infolist = res.data;
- if (v.woTypeDesc == "信息上报") {
- this.infolist.id = res.data.id;
- } else {
- this.infolist.id = v.id;
- }
- if (n === 1) {
- this.datalist.attList = res.data.attList;
- if (v.woTypeDesc == "工单") {
- this.backlist.attList = res.data.revertAttList;
- this.dialogInfo = true;
- } else if (v.woTypeDesc == "预警工单") {
- this.infolist.attList = res.data.attList;
- this.dialogInfoyj = true;
- } else if (v.woTypeDesc == "信息上报") {
- this.infolist.id = res.data.id;
- this.infolist.attList = res.data.attList;
- this.dialogInfoyj = true;
- }
- } else if (n === 2) {
- this.activeName = "3";
- if (v.woTypeDesc == "工单") {
- this.taskstcl = true;
- } else if (v.woTypeDesc == "预警工单") {
- this.infolist.attList = res.data.attList;
- this.datalist.attList = res.data.attList;
- this.dialogStatusyj = true;
- } else if (v.woTypeDesc == "信息上报") {
- this.infolist.id = res.data.id;
- this.infolist.attList = res.data.attList;
- this.datalist.attList = res.data.attList;
- this.dialogStatusxx = true;
- }
- } else if (n === 3) {
- if (v.woTypeDesc == "工单") {
- this.taskstsh = true;
- } else if (v.woTypeDesc == "预警工单") {
- this.taskstyjsh = true;
- this.infolist.attList = res.data.attList;
- this.datalist.attList = res.data.attList;
- } else if (v.woTypeDesc == "信息上报") {
- this.infolist.id = res.data.id;
- this.taskstxxsh = true;
- this.infolist.attList = res.data.attList;
- this.datalist.attList = res.data.attList;
- }
- this.activeName = "2";
- }
- this.attList = [];
- this.fileInfo.fileList = [];
- if (res.data.attList) {
- res.data.attList.forEach((item) => {
- this.fileInfo.fileList.push({
- name: item.fileName,
- url: "",
- id: item.id,
- fileName: item.fileName,
- fileCode: item.fileCode,
- });
- this.attList.push({
- name: item.fileName,
- url: "",
- id: item.id,
- fileName: item.fileName,
- fileCode: item.fileCode,
- });
- });
- }
- });
- },
- //审核待办工单
- dialogCliup(v) {
- if (v === 2) {
- this.taskstsh = false;
- return;
- }
- let params = {
- woNo: this.infolist.woNo,
- taskId: this.infolist.taskId,
- woTitle: this.infolist.woTitle,
- sts: "4",
- stsDesc: v === 3 ? "通过" : "打回",
- };
- params.leaderAuditName = this.infolist.auditName;
- params.leaderAuditNo = this.infolist.auditNo;
- params.stepSts = this.activeName;
- if (this.infolist.auditNo != this.infolist.sendNo) {
- params.sts = "2";
- params.stsDesc = "待处理";
- }
- if (this.activeName == "1") {
- params.sts = "0";
- params.stsDesc = "待审核";
- params.leaderAuditName = this.treeListonly.leaderAuditName;
- params.leaderAuditNo = this.treeListonly.leaderAuditNo;
- if (!this.treeListonly.leaderAuditName) {
- this.$message({
- message: "请选择接单人!",
- type: "error",
- });
- return;
- }
- } else if (this.activeName == "3") {
- params.sts = "1";
- params.stsDesc = "已处理";
- }
- this.submitdaiban("/market/cwo/chkWoInfo", params);
- },
- //回复待办工单
- dialogClicl(v) {
- if (v == 1) {
- this.infolist = {};
- this.taskstcl = false;
- return;
- } else if (v == 2) {
- let params = {
- woNo: this.infolist.woNo,
- woTitle: this.infolist.woTitle,
- dealRemark: this.infolist.dealRemark,
- revertAttList: [],
- };
- if (this.activeName == "1") {
- params.sts = "2";
- params.stsDesc = "待处理";
- params.auditName = this.treeListonly.leaderAuditName;
- params.auditNo = this.treeListonly.leaderAuditNo;
- if (!this.treeListonly.leaderAuditName) {
- this.$message({
- message: "请选择接单人!",
- type: "error",
- });
- return;
- }
- } else if (this.activeName == "2") {
- params.sts = "0";
- params.stsDesc = "待审核";
- params.leaderAuditName = this.treeListonly.leaderAuditName;
- params.leaderAuditNo = this.treeListonly.leaderAuditNo;
- if (!this.treeListonly.leaderAuditName) {
- this.$message({
- message: "请选择接单人!",
- type: "error",
- });
- return;
- }
- } else if (this.activeName == "3") {
- params.sts = "1";
- params.stsDesc = "已处理";
- }
- let attList = [];
- for (let i = 0; i < this.attList.length; i++) {
- attList.push({
- id: this.attList[i].id,
- fileCode: this.attList[i].fileCode,
- fileName: this.attList[i].fileName,
- });
- }
- params.revertAttList = attList;
- params.stepSts = this.activeName;
- this.submitdaiban("/market/cwo/recWoInfo", params);
- }
- },
- //调用接口
- submitdaiban(u, params) {
- let _this = this;
- this.$http({
- url: u,
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: params,
- }).then((res) => {
- if (res.data.result === 1) {
- _this.$message({
- message: res.data.desc,
- type: "error",
- });
- } else {
- _this.$message({
- message: "成功",
- type: "success",
- });
- _this.infolist = {};
- _this.taskstsh = false;
- _this.taskstcl = false;
- _this.treeListonly = {};
- _this.daiban();
- }
- });
- },
- //已办列表
- getListyj() {
- let _this = this;
- this.$http({
- url: "/market/cwo/queryQaFinishList",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- page: '{"pageNo":"' + 1 + '","pageSize":"100"}',
- },
- data: {},
- }).then((res) => {
- this.tableDatayj = res.data.data;
- });
- },
- dialogCliyj(v) {
- if (v === 2) {
- this.infolist = {};
- this.taskstyjsh = false;
- return;
- }
- let info = {};
- info.woNo = this.infolist.woNo;
- info.auditRemarks = this.infolist.auditRemarks;
- info.auditTime = this.$formatDate(new Date(), "YYYY-MM-DD");
- info.auditName = this.userInfo.loginName;
- info.auditNo = this.userInfo.loginNo;
- info.auditRemarks = this.infolist.auditRemarks;
- if (v == 3) {
- info.sts = "1";
- info.stsDesc = "通过";
- } else {
- info.sts = "2";
- info.stsDesc = "打回";
- }
- this.submitInfoyj("/market/alarmCWo/examineAlarmWo", info);
- },
- submitInfoyj(u, v) {
- let _this = this;
- this.$refs.infolist.validate((valid) => {
- if (valid) {
- this.$http({
- url: u,
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: v,
- }).then((res) => {
- if (res.data.result === 1) {
- _this.$message({
- message: res.data.desc,
- type: "error",
- });
- } else {
- _this.$message({
- message: "成功",
- type: "success",
- });
- _this.infolist = {};
- _this.taskstyjsh = false;
- _this.daiban();
- }
- });
- }
- });
- },
- dialoginfoCliyj(v) {
- if (v == 1) {
- this.historySts = !this.historySts;
- } else if (v == 2) {
- this.btnsts = 3;
- this.titname = "审核";
- this.dialogInfoyj = false;
- this.dialogStatus = true;
- this.historySts = false;
- } else if (v == 3) {
- this.dialogInfoyj = false;
- this.infolist = {};
- this.fileInfo.fileList = [];
- this.historySts = false;
- }
- },
- dialogCliyjt(v) {
- if (v === 2) {
- this.infolist = {};
- this.dialogStatusyj = false;
- return;
- }
- let info = {};
- info.woNo = this.infolist.woNo;
- info.woName = this.infolist.woName;
- info.replyDesc = this.infolist.replyDesc;
- let attList = [];
- for (let i = 0; i < this.attList.length; i++) {
- attList.push({
- id: this.attList[i].id,
- fileCode: this.attList[i].fileCode,
- fileName: this.attList[i].fileName,
- woNo: this.infolist.woNo,
- });
- }
- info.attList = attList;
- if (this.activeName == "1") {
- info.sts = "0";
- info.stsDesc = "待回复";
- info.receiveName = this.treeListonly.leaderAuditName;
- info.receiveNo = this.treeListonly.leaderAuditNo;
- this.submitInfot("/market/alarmCWo/redeploySQaAlarmWo", info);
- } else if (this.activeName == "2") {
- info.sts = "1";
- info.stsDesc = "待审核";
- info.auditName = this.treeListonly.leaderAuditName;
- info.auditNo = this.treeListonly.leaderAuditNo;
- this.submitInfot("/market/alarmCWo/replyAlarmWo", info);
- }
- },
- submitInfot(u, v) {
- let _this = this;
- this.$refs.infolist.validate((valid) => {
- if (valid) {
- this.$http({
- url: u,
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: v,
- }).then((res) => {
- if (res.data.result === 1) {
- _this.$message({
- message: res.data.desc,
- type: "error",
- });
- } else {
- _this.$message({
- message: "成功",
- type: "success",
- });
- _this.infolist = {};
- _this.dialogStatusyj = false;
- _this.daiban();
- }
- });
- }
- });
- },
- dialogClixx(v) {
- this.datalist.attList = [];
- if (v === 2) {
- this.fileInfo.fileList = [];
- this.infolist = {};
- this.taskstxxsh = false;
- return;
- }
- let info = {};
- info.auditTime = this.$formatDate(new Date(), "YYYY-MM-DD");
- info.auditNo = this.userInfo.loginNo;
- info.auditName = this.userInfo.loginName;
- info.id = this.infolist.id;
- info.auditResultRemark = this.infolist.auditResultRemark;
- if (v === 1) {
- info.dealType = "2";
- info.stsDesc = "通过";
- } else {
- info.dealType = "3";
- info.stsDesc = "打回";
- }
- this.submitInfoxx("/market/cqamsg/chkQaMsg", info);
- },
- submitInfoxx(u, v) {
- 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: v,
- }).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.fileInfo.fileList = [];
- _this.infolist = {};
- _this.infolist.deptCode = "";
- _this.taskstxxsh = false;
- _this.daiban();
- }
- });
- }
- });
- },
- //文件返回值
- uploadBack(v) {
- this.attList = v;
- },
- treeCheckonly(v) {
- this.treeListonly = v;
- },
- //发起工单
- newtask() {
- this.tasksts = true;
- },
- changemsgType() {
- for (let i = 0; i < this.typelist.length; i++) {
- if (this.infolist.msgType === this.typelist[i].id) {
- this.infolist.msgTypeName = this.typelist[i].msgType;
- }
- }
- },
- getType() {
- this.$http({
- url: "/market/qatype/queryPage",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- page: '{"pageNo":"' + 1 + '","pageSize":"100"}',
- },
- data: {
- sts: 0,
- },
- }).then((res) => {
- this.typelist = res.data.data;
- });
- },
- exachange(v) {
- for (let i = 0; i < this.exaList.length; i++) {
- this.exaList[i].sts = false;
- if (this.exaList[i].id == v.id) {
- this.exaList[i].sts = true;
- let opt = {
- leaderAuditNo: this.exaList[i].loginNoStr,
- leaderAuditName: this.exaList[i].loginNameStr,
- displayname: this.exaList[i].groupName,
- };
- this.treeListonly = opt;
- }
- }
- this.$forceUpdate();
- },
- //获取人员
- getDepot() {
- this.$http({
- url: "/sysmgr/csysuserinfo/queryOwnDeptUserListByLoginNo",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {},
- }).then((res) => {
- this.exaList = res.data;
- });
- },
- },
- mounted() {
- this.daiban();
- this.getType();
- this.getListyj();
- this.userInfo = JSON.parse(window.sessionStorage.userInfo);
- },
- created() {},
- };
- </script>
- <style lang="scss" scoped>
- .dialog-footer {
- padding-right: 20px;
- text-align: right;
- margin-top: 20px;
- }
- .taskbox {
- width: 49.5%;
- display: inline-block;
- }
- .tit {
- margin-top: 10px;
- clear: both;
- height: 47px;
- background: #fff;
- line-height: 47px;
- padding: 0 20px;
- display: flex;
- justify-content: space-between;
- border-bottom: 1px solid black;
- }
- .info-line {
- width: 100%;
- display: block;
- padding-left: 20px;
- div {
- width: 50%;
- display: inline-block;
- overflow: hidden;
- }
- .mytxt {
- height: 40px;
- padding-left: 20px;
- border: 1px solid #ddd;
- border-radius: 5px;
- width: calc(100% - 100px);
- float: left;
- }
- .mytxtinfo {
- line-height: 40px;
- height: auto;
- padding-left: 20px;
- border: 1px solid #ddd;
- border-radius: 5px;
- width: calc(100% - 100px);
- }
- span {
- width: 80px;
- display: inline-block;
- text-align: left;
- float: 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);
- }
- .tree {
- width: calc(50% - 60px);
- display: inline-block;
- margin-right: 20px;
- height: 300px;
- overflow-y: scroll;
- }
- .treeUser {
- margin: 0;
- border: 1px solid #ddd;
- p {
- background: #f4f4f4;
- padding: 0 20px;
- margin-bottom: 5px;
- }
- }
- .treeUserb {
- width: calc(100% - 100px);
- border: 1px solid #ddd;
- background: #f4f4f4;
- border-radius: 3px;
- height: auto;
- overflow: hidden;
- p {
- display: inline-block;
- padding: 0 20px;
- margin-bottom: 5px;
- }
- }
- .treedept {
- width: calc(100% - 100px);
- // display: inline-block;
- margin-right: 20px;
- border: 1px solid #ddd;
- border-radius: 3px;
- padding: 0 20px;
- p {
- display: inline-block;
- margin-right: 20px;
- }
- }
- }
- </style>
|