123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938 |
- <template>
- <fullscreen :fullscreen.sync="fullscreen" class="container">
- <div class="container-box">
- <toolList @iconCli='iconCli' :tooltit='tooltit'></toolList>
- <div style="overflow: hidden;">
- <el-button style="float: right;margin-top: 10px;" type="primary" @click="dialogCheck(3)">添加</el-button>
- <el-button style="float: right;margin-top: 10px;margin-right: 20px;" type="primary"
- @click="getStanding">台账</el-button>
- </div>
- <div class="tabbox">
- <el-table height="calc(100% - 40px)" class="com-table" ref="multipleTable" :data="tableData"
- tooltip-effect="dark" size="small" border style="width: 100%" v-loading="loading">
- <el-table-column prop="woTitle" label="业务名称">
- </el-table-column>
- <el-table-column prop="opName" label="申请姓名">
- </el-table-column>
- <el-table-column prop="createTime" label="申请时间">
- </el-table-column>
- <el-table-column prop="stsDesc" label="状态">
- <template slot-scope="scope">
- {{scope.row.taskName=="信息补填"&&scope.row.stsDesc == '待办'?'未办结':scope.row.stsDesc}}
- </template>
- </el-table-column>
- <el-table-column label="操作" width="120px" align="center">
- <template slot-scope="scope">
- <el-button size="mini" type="primary" @click="dialogCheck(1,scope.row)">查看</el-button>
- <el-button size="mini" type="danger" v-if="scope.row.sts != 1"
- @click="dialogCheck(2,scope.row)">处理</el-button>
- <!-- <el-button size="mini" type="danger" @click="delLine(scope.row)">删除</el-button> -->
- </template>
- </el-table-column>
- </el-table>
- <el-pagination class="pageBox" @current-change="currchange" layout="prev, pager, next" background
- :total="total">
- </el-pagination>
- </div>
- </div>
- <el-dialog :title="titname" :visible.sync="dialogStatus" width="50%" :destroy-on-close="true"
- :modal-append-to-body="false" :close-on-click-modal="false" :before-close="closedia" :fullscreen="true">
- <div v-loading="loadinged">
- <el-form :model="infolist" ref="infolist" :rules="rules"
- style="height: calc(100vh - 180px);overflow-y: scroll;">
- <div class="info-line">
- <el-form-item prop="demandName">
- <span>需求名称</span>
- <el-input v-model="infolist.demandName" placeholder="需求名称" :disabled="disableStatus">
- </el-input>
- </el-form-item>
- <el-form-item>
- <span>需求编号</span>
- <el-input v-model="infolist.demandNo" placeholder="需求编号" :disabled="disableStatus">
- </el-input>
- </el-form-item>
- <el-form-item prop="terminal">
- <span>申请流程</span>
- <el-select clearable v-model="terminal" placeholder="申请流程" :disabled="disableStatus">
- <el-option v-for="items in options" :key="items.procId" :label="items.procName"
- :value="items.procId">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item>
- <span>紧急程度</span>
- <el-select clearable v-model="infolist.urgDegree" placeholder="紧急程度" :disabled="disableStatus">
- <el-option v-for="items in urgDegreeopt" :key="items.id" :label="items.name"
- :value="items.name">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item>
- <span>业务主题</span>
- <el-input v-model="infolist.busiSubject" placeholder="业务主题" :disabled="disableStatus">
- </el-input>
- </el-form-item>
- <el-form-item>
- <span>需求类别</span>
- <el-select clearable v-model="infolist.demandTypeCode" placeholder="需求类别" :disabled="disableStatus">
- <el-option v-for="items in demandTypeopt" :key="items.dataCode" :label="items.dataName"
- :value="items.dataCode">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item>
- <span>承载渠道</span>
- <el-select clearable v-model="infolist.carryChannelCode" placeholder="承载渠道" :disabled="disableStatus">
- <el-option v-for="items in carryChannelopt" :key="items.dataCode" :label="items.dataName"
- :value="items.dataCode">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item>
- <span>加载周期</span>
- <el-date-picker :disabled="disableStatus" v-model="busiTime" type="daterange" placeholder="加载周期" style="display: inline-flex;width: calc(100% - 120px);">
- </el-date-picker>
- </el-form-item>
- </div>
- <el-form-item class="info-line online">
- <span>需求背景</span>
- <el-input v-model="infolist.demandBackground" placeholder="需求背景" type="textarea" :autosize="{ minRows: 3, maxRows: 10}"
- :disabled="disableStatus">
- </el-input>
- </el-form-item>
- <el-form-item class="info-line online">
- <span>需求描述</span>
- <el-input v-model="infolist.demandDesc" placeholder="需求描述" type="textarea" :autosize="{ minRows: 3, maxRows: 10}"
- :disabled="disableStatus">
- </el-input>
- </el-form-item>
- <div style="padding:0 20px 0 120px;margin-bottom: 20px;" v-if="disableStatus">
- <uploadDown :datalist="datalist" :dialogStatus="uploadstatus"></uploadDown>
- </div>
- <div style="padding-left: 100px" v-if="!disableStatus">
- <myUpload @uploadBack="uploadBack" :fileInfo="fileInfo" :fileList="fileInfo.fileList">
- </myUpload>
- </div>
- <div style="margin: 20px 0;padding: 0 20px;" v-if="vision == '信息补填'">
- <el-table class="com-table" ref="multipleTable" :data="infodatas" tooltip-effect="dark"
- size="small" border style="width: 100%">
- <el-table-column prop="infoName" label="需求承接支撑方">
- <template slot-scope="scope">
- <el-input v-model="scope.row.factoryName" :disabled="titname != '审批'"></el-input>
- </template>
- </el-table-column>
- <el-table-column prop="infoName" label="涉及发生工作量">
- <template slot-scope="scope">
- <el-input v-model="scope.row.workLoad" :disabled="titname != '审批'"></el-input>
- </template>
- </el-table-column>
- <el-table-column label="操作" width="120px" align="center" v-if="titname == '审批'">
- <template slot-scope="scope">
- <el-button size="mini" type="primary" @click="choline(1,scope)">添加</el-button>
- <el-button size="mini" type="danger" @click="choline(2,scope)">删除</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- <el-form-item class="info-line online" v-if="visionsts == '2'">
- <span>审批说明</span>
- <el-input v-model="remark" placeholder="审批说明" type="textarea" :rows="3"
- :disabled="titname == '查看'">
- </el-input>
- </el-form-item>
- <div style="margin-bottom: 20px;padding: 0 20px;" v-if="titname != '添加'">
- <el-table class="com-table" :data="rovaList" tooltip-effect="dark"
- size="small" border style="width: 100%">
- <el-table-column prop="taskId" label="编号">
- </el-table-column>
- <el-table-column prop="taskName" label="环节">
- </el-table-column>
- <el-table-column prop="assigneeName" label="处理人">
- </el-table-column>
- <el-table-column prop="assigneeNo" label="处理人工号">
- </el-table-column>
- <el-table-column prop="opTime" label="处理时间">
- </el-table-column>
- <el-table-column prop="remark" label="备注">
- </el-table-column>
- </el-table>
- </div>
- </el-form>
- <div slot="footer" class="dialog-footer myfooter">
- <el-button v-if="titname != '查看' && vision == '流程发起'" type="primary" @click="dialogCli(2)">确 定
- </el-button>
- <el-button v-if="titname != '查看' && visionsts == '3'" type="primary" @click="dialogCli(2)">确 定
- </el-button>
- <el-button v-if="titname != '查看' && visionsts == '2'" type="primary" @click="dialogCli(2)">通 过
- </el-button>
- <el-button v-if="titname != '查看' && visionsts == '2'" type="primary" @click="dialogCli(1)">打 回
- </el-button>
- <el-button v-if="titname == '添加'" type="primary" @click="checkexa = true">确 定</el-button>
- <el-button v-if="titname == '查看'" @click="dialogCli(3)">确 定</el-button>
- <el-button @click="dialogCli(3)">取 消</el-button>
- </div>
- </div>
- </el-dialog>
- <el-dialog title="选择审批人" :visible.sync="checkexa" width="50%" :destroy-on-close="true"
- :modal-append-to-body="false" :close-on-click-modal="false">
- <div>
-
- <el-form :model="infolist" ref="infolist" :rules="rules">
- <el-form-item prop="visiblec" class="info-line online">
- <span>审批人员</span>
- <deptTreeOnly class="tree" @treeCheck="treeCheckonly" :defaultList="defaultList"
- :type="depttype" :closeList="closeList"></deptTreeOnly>
- <div class="tree treeUser">
- <p>{{treeListonly.leaderAuditName}}
- <i v-if="treeListonly.leaderAuditName" @click="deletes()"
- class="el-icon-error"></i>
- </p>
- </div>
- </el-form-item>
- </el-form>
-
- <div slot="footer" style="text-align: right;padding-bottom: 20px;">
- <el-button type="primary" @click="dialogCliadd">确 定</el-button>
- <el-button @click="checkexa = false">取 消</el-button>
- </div>
- </div>
- </el-dialog>
- <myMessage :messTit='messTit' @closeMessage="closeMessage" :centerDialogVisible="centerDialogVisible"
- v-if="centerDialogVisible"></myMessage>
- </fullscreen>
- </template>
- <script>
- import mySearch from "../../../components/search.vue";
- import myMessage from "../../../components/myMessage.vue"
- import toolList from '../../../components/toolList'
- import myUpload from '../../../components/upload'
- import uploadDown from '../../../components/uploadDown.vue'
- import deptTreeOnly from "../../../components/deptTreeOnly.vue"
- export default {
- components: {
- mySearch,
- myMessage,
- toolList,
- myUpload,
- uploadDown,
- deptTreeOnly
- },
- data() {
- const demandName = (rule, value, callback) => {
- if (!this.infolist.demandName) {
- callback(new Error('不能为空'))
- } else {
- callback()
- }
- }
- const terminal = (rule, value, callback) => {
- if (!this.terminal) {
- callback(new Error('不能为空'))
- } else {
- callback()
- }
- }
- return {
- rules: {
- demandName: [{
- required: true,
- trigger: 'blur',
- validator: demandName
- }],
- terminal: [{
- required: true,
- trigger: 'change',
- validator: terminal
- }],
- },
- tooltit: '线上渠道业务需求',
- fullscreen: false,
- total: 0,
- pageSize: 1,
- tableData: [{}],
- dialogStatus: false,
- disableStatus: false,
- titname: '',
- infolist: {
-
- },
- userInfo: {},
- params: {},
- centerDialogVisible: false,
- messTit: '',
- delid: '',
- loading: false,
- loadinged: false,
- fileInfo: {
- limit: 5,
- url: '/bpm/api/upload',
- fileList: []
- },
- rovaList: [],
- vision: '',
- datalist: {
- url: '/bpm/api/download',
- type: 1
- },
- uploadstatus: false,
- mydisable: 1,
- opname: '',
- opno: '',
- attList: [],
- options: [],
- terminal: '',
- remark: '',
- visionsts: '1',
- ifopt: [{
- id: 1,
- name: '是'
- }, {
- id: 0,
- name: '否'
- }],
- infodatas: [{}, {}],
- busiTime:[],
- urgDegreeopt:[
- {
- id:1,
- name:'正常'
- },{
- id:2,
- name:'紧急'
- },{
- id:3,
- name:'非常紧急'
- },
- ],
- demandTypeopt:[],
- carryChannelopt:[],
- checkexa: false,
- treeListonly: {},
- defaultList: [],
- closeList: false,
- depttype: 0
- }
- },
- methods: {
- deletes() {
- this.treeListonly = {};
- this.closeList = !this.closeList;
- },
- treeCheckonly(v) {
- this.treeListonly = v;
- },
- choline(v, n) {
- if (v == 1) {
- this.infodatas.push({})
- } else {
- this.infodatas.splice(n.$index, 1)
- }
- },
- closedia() {
- this.infolist = {};
- this.attList = [];
- this.fileInfo.fileList = [];
- this.dialogStatus = false;
- },
- //获取列表
- getList(v, n) {
- this.pageSize = n;
- let _this = this;
- this.loading = true;
- v.procName = "业务需求申请(地市公司),业务需求申请(省公司)";
- this.$http({
- url: "/bpm/api/queryToDoAndFinishTaskList",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- "page": '{"pageNo":"' + n + '","pageSize":"10"}'
- },
- data: v,
- }).then((res) => {
- this.tableData = res.data.data;
- this.total = res.data.totalRecord;
- this.loading = false;
- });
- },
- // 分页
- currchange(v) {
- this.pageSize = v;
- this.getList(this.params, this.pageSize);
- },
- //申请
- dialogCheck(v, n) {
- this.dialogStatus = true;
- let infolist = Object.assign({}, n);
- this.vision = '';
- this.visionsts = '';
- this.infodatas = [{}, {}];
- if (v === 1) {
- this.titname = '查看';
- this.disableStatus = true;
- } else if (v === 2) {
- this.titname = '审批';
- this.disableStatus = true;
- } else if (v === 3) {
- this.titname = '添加';
- this.disableStatus = false;
- return
- }
- 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.terminal = infolist.procId;
- this.opname = res.data.opName;
- this.opno = res.data.opNo;
- this.infolist = JSON.parse(res.data.params.terminalRes);
- res.data.params.fillList?this.infodatas = JSON.parse(res.data.params.fillList):'';
- this.infolist.procId = infolist.procId;
- this.infolist.procVersion = infolist.procVersion;
- this.remark = infolist.remark;
- this.infolist.stepId = infolist.stepId;
- this.infolist.taskId = infolist.taskId;
- this.infolist.taskName = infolist.taskName;
- this.infolist.opName = infolist.opName;
- this.infolist.opNo = infolist.opNo;
- this.infolist.opTime = infolist.opTime;
- this.infolist.woNo = infolist.woNo;
- if (res.data.taskList[res.data.taskList.length - 1].taskName == '流程发起') {
- this.vision = '流程发起';
- if(this.titname == '审批'){
- this.disableStatus = false;
- }
- } else if (res.data.taskList[res.data.taskList.length - 1].taskName == '科室主任初审') {
- this.vision = '科室主任初审';
- this.visionsts = '2';
- } else if (res.data.taskList[res.data.taskList.length - 1].taskName == '部门副主任复审') {
- this.vision = '部门副主任复审';
- this.visionsts = '2';
- } else if (res.data.taskList[res.data.taskList.length - 1].taskName == '主管副总终审') {
- this.vision = '主管副总终审';
- this.visionsts = '2';
- } else if (res.data.taskList[res.data.taskList.length - 1].taskName == '需求预评估') {
- this.vision = '需求预评估';
- this.visionsts = '2';
- }else if (res.data.taskList[res.data.taskList.length - 1].taskName == '需求预评估初审') {
- this.vision = '需求预评估初审';
- this.visionsts = '2';
- }else if (res.data.taskList[res.data.taskList.length - 1].taskName == '需求预评估复审') {
- this.vision = '需求预评估复审';
- this.visionsts = '2';
- }else if (res.data.taskList[res.data.taskList.length - 1].taskName == '渠道经理会签') {
- this.vision = '渠道经理会签';
- this.visionsts = '2';
- }else if (res.data.taskList[res.data.taskList.length - 1].taskName == '需求确认') {
- this.vision = '需求确认';
- this.visionsts = '3';
- }else if (res.data.taskList[res.data.taskList.length - 1].taskName == '上线管理') {
- this.vision = '上线管理';
- this.visionsts = '3';
- }else if (res.data.taskList[res.data.taskList.length - 1].taskName == '上线验证') {
- this.vision = '上线验证';
- this.visionsts = '3';
- }else if (res.data.taskList[res.data.taskList.length - 1].taskName == '信息补填') {
- this.vision = '信息补填';
- this.visionsts = '3';
- }
- this.datalist.attList = JSON.parse(res.data.params.attList);
- this.attList = [];
- this.fileInfo.fileList = [];
- this.datalist.attList.forEach(item => {
- item.id = item.attchFileId;
- this.fileInfo.fileList.push({
- name: item.fileName,
- url: '',
- id: item.id,
- attchFileId: item.attchFileId,
- fileName: item.fileName
- });
- this.attList.push({
- name: item.fileName,
- url: '',
- id: item.id,
- attchFileId: item.attchFileId,
- fileName: item.fileName
- });
- })
- this.rovaList = res.data.taskList;
- console.log(this.rovaList)
- this.uploadstatus = true;
- });
- },
- //审批
- dialogCli(v) {
- this.dialogStatus = false;
- if (v === 3) {
- this.infolist = {};
- this.attList = [];
- this.fileInfo.fileList = [];
- return
- }
- let _this = this;
- this.infolist.opTime = _this.$formatDate(new Date(), "YYYY-MM-DD HH:mm:ss")
- if (v === 1) {
- let params = {
- dealType: '1',
- dealTypeDesc: '打回',
- procId: this.infolist.procId,
- procVersion: this.infolist.procVersion,
- remark: this.remark,
- stepId: this.infolist.stepId,
- taskId: this.infolist.taskId,
- taskName: this.infolist.taskName,
- opName: this.infolist.opName,
- opNo: this.opno,
- opTime: this.infolist.opTime,
- params: {
- procExeCondiVal: '不同意',
- terminalRes: JSON.stringify(this.infolist),
- assigneeNo: this.opno,
- assigneeName: this.opname,
- },
- woNo: this.infolist.woNo,
- }
- this.submitInfo("/bpm/api/submitTask", params);
- } else if (v === 2) {
- let param = {
- dealType: '0',
- dealTypeDesc: '提交',
- procId: this.infolist.procId,
- procVersion: this.infolist.procVersion,
- remark: this.remark,
- stepId: this.infolist.stepId,
- taskId: this.infolist.taskId,
- taskName: this.infolist.taskName,
- opName: this.infolist.opName,
- opNo: this.opno,
- opTime: this.infolist.opTime,
- params: {
- woType: this.infolist.woType,
- terminalRes: JSON.stringify(this.infolist),
- },
- woNo: this.infolist.woNo,
- }
- if(this.vision == '科室主任初审'||this.vision == '部门副主任复审'){
- this.$http({
- url: "/sysmgr/csysuserinfo/queryUserListByLoginNoAndDuty",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- "page": '{"pageNo":"' + 1 + '","pageSize":"100"}'
- },
- data: {"duty":"7,12"},
- }).then((res) => {
- if(res.data.length == 0){
- this.$message({
- message: '暂无领导审批,发起失败!',
- type: 'error'
- });
- return
- }else{
- param.params.assigneeNo=res.data[0].loginNoStr;
- param.params.assigneeName=res.data[0].loginNameStr;
- _this.submitInfo("/bpm/api/submitTask", param);
- return
- }
- });
- }else if(this.vision == '渠道经理会签'||this.vision == '上线管理'){
- param.params.assigneeNo= this.opno;
- param.params.assigneeName= this.opname;
- this.submitInfo("/bpm/api/submitTask", param);
- }else if(this.vision == '信息补填'){
- param.params.fillList = JSON.stringify(this.infodatas);
- this.submitInfo("/bpm/api/submitTask", param);
- }else{
- if (this.vision == '流程发起') {
- 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,
- attchFileId: this.attList[i].attchFileId,
- });
- }
- param.params.attList = JSON.stringify(attList)
- }
- this.submitInfo("/bpm/api/submitTask", param);
- }
- }
- },
- //添加
- dialogCliadd(v) {
- let _this = this;
- let info = {};
- info.params = {};
- info.opTime = _this.$formatDate(new Date(), "YYYY-MM-DD HH:mm:ss");
- info.opNo = this.userInfo.loginNo;
- info.opName = this.userInfo.loginName;
- info.woTitle = this.infolist.demandName;
- info.params.terminalRes = this.infolist;
- info.params.terminalRes.busiStartTime = _this.$formatDate(this.busiTime[0], "YYYY-MM-DD HH:mm:ss");
- info.params.terminalRes.busiEndTime = _this.$formatDate(this.busiTime[1], "YYYY-MM-DD HH:mm:ss");
- info.procId = this.terminal;
- info.params.assigneeNo = this.treeListonly.leaderAuditNo;
- info.params.assigneeName = this.treeListonly.leaderAuditName;
- for (let i = 0; i < this.options.length; i++) {
- if (this.terminal == this.options[i].procId) {
- info.procName = this.options[i].procName;
- info.procVersion = this.options[i].procVersion;
- }
- }
- 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,
- attchFileId: this.attList[i].attchFileId,
- });
- }
- info.params.attList = JSON.stringify(attList)
- info.params.terminalRes = JSON.stringify(info.params.terminalRes);
- this.checkexa = false;
- this.submitInfo("/bpm/api/startProc", info);
- },
- submitInfo(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.closedia();
- _this.infolist = {};
- _this.attList = [];
- _this.fileInfo.fileList = [];
- _this.getList(this.params, this.pageSize);
- }
- });
- }
- })
- },
- getStanding() {
- this.$router.push({
- path: '/yStanding',
- });
- this.setabList('运营流程台账', '/yStanding');
- },
- 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));
- },
- //流程
- getTermianl() {
- this.$http({
- url: "/bpm/api/queryBpmProcList",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- "page": '{"pageNo":"' + 1 + '","pageSize":"100"}'
- },
- data: {},
- }).then((res) => {
- this.options = res.data.data;
- });
- },
- closeMessage(v) {
- this.centerDialogVisible = false;
- let _this = this;
- if (v === 1) {
- _this.$http({
- url: "/bpm/api/deleteBpmPrePlugin",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {
- id: 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) {
- 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);
- },
- // 字典
- // 需求类别 demandType
- // 承载渠道 demandChnl
- getsaleChnl() {
- this.$http({
- url: "/market/cfgDataDict/queryList",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {
- dictCode: 'demandType'
- },
- }).then((res) => {
- this.demandTypeopt = res.data;
- });
- this.$http({
- url: "/market/cfgDataDict/queryList",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {
- dictCode: 'demandChnl'
- },
- }).then((res) => {
- this.carryChannelopt = res.data;
- });
- },
- },
- mounted() {
- this.getList({}, 1);
- this.getUser();
- this.getTermianl();
- this.getsaleChnl();
- },
- created() {
- }
- }
- </script>
- <style scoped lang="scss">
- .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;
- div {
- width: 50%;
- display: inline-block;
- }
- span {
- width: 100px;
- display: inline-block;
- text-align: left;
- i {
- color: red;
- display: inline-block;
- padding-right: 5px;
- }
- }
- .el-select,
- .el-input {
- width: calc(100% - 120px);
- }
- }
- .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;
-
- .el-icon-error {
- float: right;
- font-size: 20px;
- margin-top: 9px;
- cursor: pointer;
- }
- }
-
- .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;
- }
- }
- }
- .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;
- }
- }
- }
- </style>
|