Browse Source

添加项目外部流转系统

master
13176889840 5 years ago
parent
commit
44196198e3
  1. 22436
      epmet-oper-web/package-lock.json
  2. 1
      epmet-oper-web/package.json
  3. 9
      epmet-oper-web/src/views/modules/customer/customize/CustomerList.vue
  4. 505
      epmet-oper-web/src/views/modules/productConfig/mostedit/MostList.vue

22436
epmet-oper-web/package-lock.json

File diff suppressed because it is too large

1
epmet-oper-web/package.json

@ -5,7 +5,6 @@
"scripts": {
"dev": "vue-cli-service serve",
"serve": "vue-cli-service serve",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"build:sit": "vue-cli-service build --mode production.sit",
"build:uat": "vue-cli-service build --mode production.uat",

9
epmet-oper-web/src/views/modules/customer/customize/CustomerList.vue

@ -88,8 +88,7 @@
@cancleBack="cancleBack"></footbar-list>
</div>
<div v-show="showType==='mostedit'">
<most-list ref="ref_mostlist"
@cancleBack="cancleBack"></most-list>
<most-list ref="ref_mostlist" @cancleBack="cancleBack"></most-list>
</div>
<el-dialog :visible.sync="funcVisible"
@ -213,11 +212,9 @@ export default {
// most
showMost (customerId, customerName) {
this.showType = 'mostedit'
//this.$refs['ref_mostlist'].initData(customerId, customerName)
console.log('ref_mostlist', this.$refs['ref_mostlist'])
this.$refs['ref_mostlist'].initData(customerId, customerName)
},
//
showLimitConfig (customerId, customerName) {
this.customerId = customerId

505
epmet-oper-web/src/views/modules/productConfig/mostedit/MostList.vue

@ -1,17 +1,66 @@
<template>
<!-- 项目滞留超期提醒 -->
<div v-show="showType==='customize'" class="m-body">
<div class="m-body">
<!-- 项目外部系统流转设置-->
<el-tag class="mh">
<div class="h-left">
<div class="line">
项目滞留超期提醒
<div class="line">项目外部系统流转设置</div>
</div>
<div class="h-right">
<button class="h-right-two">保存设置</button>
<button class="h-right-one" @click="yitimoren()">恢复默认</button>
<el-button class="diaCancel" @click="diaCancel()">取消返回</el-button>
</div>
</el-tag>
<div class="mh-child">
<el-tag class="set-overtime">项目外部系统流转</el-tag>
<el-switch
v-model="sendProjectSwitch"
active-text="开启"
inactive-text="关闭"
element
style="width: 200px"
>
</el-switch>
</div>
<div v-if="selectSys.length > 0" class="mh-child" style="display: flex;">
<el-tag class="set-overtime">已选外部系统</el-tag>
<div class="sys-list">
<div v-for="item in selectSys" :key="item.platformId" class="sys-list-item">
<img :src="item.icon" />
<span>{{ item.platformName }}</span>
<el-button type="text" size="small" >编辑</el-button>
<el-button type="text" style="color: red;" size="small" >删除</el-button>
</div>
</div>
</div>
<div class="mh-child">
<el-tag class="set-overtime">外部系统</el-tag>
<el-select v-model="selectSys" multiple placeholder="请选择" @change="handleSys" class="overtime-input">
<el-option
v-for="item in sysList"
:key="item.platformId"
:label="item.platformName"
:value="item.platformId"
>
</el-option>
</el-select>
<el-tag
style="
font-size: 14px;
background-color: white;
border: white;
color: black;
"
>可多选</el-tag>
</div>
<!-- 项目滞留超期提醒 -->
<el-tag class="mh">
<div class="h-left">
<div class="line">项目滞留超期提醒</div>
</div>
<div class="h-right">
<button class="h-right-two" @click="one_two()">保存设置</button>
<button class="h-right-one" @click="stayover()">恢复默认</button>
<el-button class="diaCancel" @click="diaCancel()">取消返回</el-button>
</div>
</el-tag>
<!-- 设定核算单位prefix-icon="el-icon-date" -->
@ -20,46 +69,53 @@
<el-time-picker
class="overtime-input"
arrow-control
prefix-icon=el-icon-date
prefix-icon="el-icon-date"
v-model="startTime"
:picker-options="{
selectableRange: '00:00:00'+ '-' + '23:59:59' ,
selectableRange: '00:00:00' + '-' + '23:59:59'
}"
placeholder="任意时间点"
value-format="HH:mm:ss">
value-format="HH:mm:ss"
>
</el-time-picker>
<text-align style=" padding: 20px;"></text-align>
<span style="padding: 20px"></span>
<el-time-picker
class="overtime-input"
arrow-control
prefix-icon=el-icon-date
prefix-icon="el-icon-date"
v-model="endTime"
:picker-options="{
selectableRange: startTime + '-' + '23:59:59' ,
selectableRange: startTime + '-' + '23:59:59'
}"
placeholder="任意时间点"
value-format="HH:mm:ss">
value-format="HH:mm:ss"
>
</el-time-picker>
</div>
<!-- 设定滞留超期时间 start: '08:30:00',
step: '00:15:00',
end: '23:30:00' -->
<!-- 设定滞留超期时间 start: '08:30:00',step: '00:15:00',end: '23:30:00' -->
<div class="mh-child">
<el-tag class="set-overtime">设定滞留超期时间</el-tag>
<el-from-item class="el-from-item">
<button class="btn btn-delet" @click="staytime_subtract()">-</button>
</el-from-item>
<el-input class="overtime-input" v-model="detentionDays"></el-input>
<el-from-item class="el-from-item">
<button class="btn btn-add" @click="staytime_add()">+</button>
</el-from-item>
<el-tag style="padding-left: 14px;padding-right: 14px;font-size: 15px;background-color: white;border: 0px;color: #000000;">/</el-tag>
<el-tag
style="
padding-left: 14px;
padding-right: 14px;
font-size: 15px;
background-color: white;
border: 0px;
color: #000000;
"
>/</el-tag
>
<el-select v-model="value" placeholder="请选择" class="overtime-input">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
:value="item.value"
>
</el-option>
</el-select>
</div>
@ -67,16 +123,17 @@
<!-- 设定即将超期时间提醒 -->
<div class="mh-child">
<el-tag class="set-overtime">设定即将超期时间提醒</el-tag>
<el-from-item class="el-from-item">
<button class="btn btn-delet" @click="subtract_remind()">-</button>
</el-from-item>
<el-from-item>
<el-input class="overtime-input" v-model="remindTime" ></el-input>
</el-from-item>
<el-from-item class="el-from-item">
<el-input class="overtime-input" v-model="remindTime"></el-input>
<button class="btn btn-add" @click="add_remind()">+</button>
</el-from-item>
<el-tag style="font-size: 14px; background-color: white;border: white;color: black;">单位天</el-tag>
<el-tag
style="
font-size: 14px;
background-color: white;
border: white;
color: black;
"
>单位天</el-tag>
</div>
<!-- 统一定时消息推送时间 -->
<div class="mh-child">
@ -89,19 +146,17 @@
step: '00:05',
end: '23:00'
}"
placeholder="选择时间">
placeholder="选择时间"
>
</el-time-select>
</div>
<!-- 议题发布前经网络员审核-->
<!-- 议题发布前经网络员审核-->
<el-tag class="mh">
<div class="h-left">
<div class="line">
议题发布前经网络员审核
</div>
<div class="line">议题发布前经网络员审核</div>
</div>
<div class="h-right">
<button class="h-right-two">保存设置</button>
<button class="h-right-one" @click="yitimoren()">恢复默认</button>
</div>
@ -113,18 +168,17 @@
v-model="button1"
active-text="开启"
inactive-text="关闭"
element style="width: 200px;">
element
style="width: 200px"
>
</el-switch>
</div>
<!-- 待办事项短信通知 -->
<!-- 待办事项短信通知 -->
<el-tag class="mh">
<div class="h-left">
<div class="line">
待办事项短信通知
</div>
<div class="line">待办事项短信通知</div>
</div>
<div class="h-right">
<button class="h-right-two">保存设置</button>
<button class="h-right-one" @click="daibanshi()">恢复默认</button>
</div>
@ -132,10 +186,7 @@
<!-- 代办事项发送短信通知 -->
<div class="mh-child">
<el-tag class="set-overtime">待办事项发送短信通知</el-tag>
<el-switch
v-model="button2"
active-text="开启"
inactive-text="关闭">
<el-switch v-model="button2" active-text="开启" inactive-text="关闭">
</el-switch>
</div>
<!-- 剩余短信数量-->
@ -145,19 +196,24 @@
placeholder="请输入内容"
v-model="input"
clearable
class="overtime-input">
class="overtime-input"
>
</el-input>
<el-tag style="font-size: 14px; background-color: white;border: white;color: black;">单位条</el-tag>
<el-tag
style="
font-size: 14px;
background-color: white;
border: white;
color: black;
"
>单位条</el-tag>
</div>
<!-- 小组审核机制-->
<!-- 小组审核机制-->
<el-tag class="mh">
<div class="h-left">
<div class="line">
小组审核机制
</div>
<div class="line">小组审核机制</div>
</div>
<div class="h-right">
<button class="h-right-two">保存设置</button>
<button class="h-right-one">恢复默认</button>
</div>
@ -165,103 +221,116 @@
<!-- 新建小组进组需小组审核-->
<div class="mh-child">
<el-tag class="set-overtime">新建小组进组需小组审核</el-tag>
<el-switch
v-model="button3"
active-text="开启"
inactive-text="关闭">
<el-switch v-model="button3" active-text="开启" inactive-text="关闭">
</el-switch>
</div>
<!-- 其他设置-->
<!-- 其他设置-->
<el-tag class="mh">
<div class="h-left">
<div class="line">
其他设置
</div>
<div class="line">其他设置</div>
</div>
<div class="h-right">
<button class="h-right-two">保存设置</button>
<button class="h-right-one">恢复默认</button>
</div>
</el-tag>
</div>
</template>
<script>
export default {
data() {
export default {
data () {
return {
options:[{
options: [
{
value: 'work',
label: '工作日'
}, {
},
{
value: 'rest',
label: '休息日'
}],
}
],
value: 'rest',
button1: false,
button2: true,
button3: true,
sendProjectSwitch: false,
input: 2,
startTime: '10:10:10',
endTime:'12:15:16',
endTime: '12:15:16',
code: ' ',
auditSwitch: "",
customerId: '81776', // id
auditSwitch: '',
customerId: '', // id
customerName: '', //
detentionDays:'1',
detentionDays: '1',
calculation: '',
remindTime: '1',
pushTime: "18:10",
showType:'customize',
pushTime: '18:10',
showType: 'customize',
sysList: [],
sysOptions: [],
selectSys: []
}
},
watch: {
input: function(val){
this.input = val.replace(/\D/g,'')
input: function (val) {
this.input = val.replace(/\D/g, '')
},
detentionDays: function(val){
this.detentionDays = val.replace(/\D/g,'')
detentionDays: function (val) {
this.detentionDays = val.replace(/\D/g, '')
},
remindTime: function(val){
this.remindTime = val.replace(/\D/g,'')
remindTime: function (val) {
this.remindTime = val.replace(/\D/g, '')
}
},
// mounted:function(){
// this.one_one();
// },
methods:{
staytime_subtract:function(detentionDays){
if(this.detentionDays>=1){
this.detentionDays--
methods: {
handleSys (e) {
console.log('eeeeww', e)
},
initData (customerId, customerName) {
this.customerId = customerId
this.customerName = customerName
this.initSysList()
},
initSysList () {
let params = {
customerId: this.customerId,
actionKey: 'PROJECT_ASSIST'
}
else if(this.detentionDays==0){
alert("已达最小值","注意","ss");
this.$http
.post('/third/thirdplatform/customer/list-selectable-platforms-by-action', params)
.then(({ data: res }) => {
if (res.code === 0) {
this.sysList = res.data
}
})
},
staytime_add:function(detentionDays){
this.detentionDays++;
},
subtract_remind:function(remindTime){
if(this.remindTime>=1){
this.remindTime--;
staytime_subtract: function (detentionDays) {
if (this.detentionDays >= 1) {
this.detentionDays--
} else if (this.detentionDays == 0) {
alert('已达最小值', '注意', 'ss')
}
else if(this.remindTime==0){
alert("已达最小值","注意","ss");
},
staytime_add: function (detentionDays) {
this.detentionDays++
},
subtract_remind: function (remindTime) {
if (this.remindTime >= 1) {
this.remindTime--
} else if (this.remindTime == 0) {
alert('已达最小值', '注意', 'ss')
}
},
add_remind:function(remindTime){
this.remindTime++;
add_remind: function (remindTime) {
this.remindTime++
},
//
//
// cancleBack:function(){
// this.showType = 'customize';
// },
diaCancel() {
diaCancel () {
this.$emit('cancleBack')
},
@ -271,39 +340,43 @@
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
})
.then(() => {
const url = '/gov/issue/parameter/reviewinit'
const param = {
customerId: this.customerId,
}
window.app.ajax.post(url, param,
(data, rspMsg) => { //data
this.$message.success('初始化成功' + rspMsg,) //
customerId: this.customerId
}
window.app.ajax.post(
url,
param,
(data, rspMsg) => {
// data
this.$message.success('初始化成功' + rspMsg) //
// console.log(data.auditSwitch)
// console.log('-----------------')
// console.log(this.button1)
if(data.auditSwitch==='open'){
this.button1= true
}else{
this.button1=false
if (data.auditSwitch === 'open') {
this.button1 = true
} else {
this.button1 = false
}
},
(rspMsg, data) => {
this.$message.error(rspMsg)
}
)
})
}).catch(() => {
})
.catch(() => {})
},
//
//
stayover (row) {
this.$confirm('确认恢复默认值', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
})
.then(() => {
const url = '/gov/project/parameter/remindinit'
const param = {
customerId: this.customerId,
@ -312,11 +385,14 @@
remindTime: this.remindTime,
pushTime: this.pushTime,
startTime: this.startTime,
endTime: this.endTime,
}
window.app.ajax.post(url, param,
(data, rspMsg) => { //data
this.$message.success('初始化成功' + rspMsg,) //
endTime: this.endTime
}
window.app.ajax.post(
url,
param,
(data, rspMsg) => {
// data
this.$message.success('初始化成功' + rspMsg) //
// console.log(data.detentionDays)
// console.log(data.calculation)
// console.log(data.remindTime)
@ -327,10 +403,10 @@
// console.log(this.pushTime)
this.remindTime = parseInt(data.remindTime)
this.detentionDays = parseInt(data.detentionDays)
if(data.calculation=='work'){
this.value= 'work';
}else{
this.value='work'
if (data.calculation == 'work') {
this.value = 'work'
} else {
this.value = 'work'
}
this.pushTime = data.pushTime
this.startTime = data.startTime
@ -338,43 +414,38 @@
},
(rspMsg, data) => {
this.$message.error(rspMsg)
}
)
})
}).catch(() => {
})
},
.catch(() => {})
}
// ------
},
}
}
</script>
<style lang="scss" scoped>
.line{
.line {
position: relative;
width: 120px;
border-bottom: 3px solid #17b3a3;
}
.el-card__body{
}
.el-card__body {
padding: 0px;
}
.m-body{
height: 790px;
}
.m-body {
// height: 790px;
width: 100%;
padding-top: 0px;
}
.select-date{
overflow-y: scroll;
}
.select-date {
margin-left: 100px;
}
}
.mh{
.mh {
width: 100%;
height: 50px;
display: flex;
@ -383,34 +454,31 @@
color: black;
padding: 0px;
border-bottom: 2px solid #eeeeee;
}
.mh-child{
}
.mh-child {
margin-top: 30px;
position: relative;
}
/* div.el-switch.is-checked{
}
/* div.el-switch.is-checked{
} */
div.el-switch{
div.el-switch {
margin-left: 60px;
}
.el-switch__core{
}
.el-switch__core {
height: 25px;
width: 50px;
border-radius: 25px;
}
.el-switch__core:after{
}
.el-switch__core:after {
width: 20px;
height: 20px;
}
.el-switch.is-checked .el-switch__core::after{
}
.el-switch.is-checked .el-switch__core::after {
margin-left: -20px;
}
}
.h-left{
.h-left {
padding: 9px;
margin: auto 0;
font-size: 15px;
@ -419,48 +487,42 @@
padding-left: 0px;
padding-top: 15px;
padding-bottom: 2px;
}
.h-right{
}
.h-right {
padding-bottom: 2px;
padding-top: 8px;
font-size: 15px;
position: relative;
width: 30%;
}
.h-right-one{
}
.h-right-one {
background-color: #d4d2ce;
color: black;
border: 0px;
width:30%;
width: 30%;
height: 30px;
text-align: center;
padding-left: 2px;
padding-right: 2px;
border-radius: 4px;
float: right;
}
.h-right-one:hover {
}
.h-right-one:hover {
background-color: #deddda;
color: black;
border: 0px;
width:30%;
width: 30%;
height: 30px;
text-align: center;
padding-left: 2px;
padding-right: 2px;
border-radius: 4px;
float: right;
}
.h-right-two{
}
.h-right-two {
background-color: #17b3a3;
color: white;
width:30%;
width: 30%;
height: 30px;
border: 0px;
margin-left: 10px;
@ -469,24 +531,21 @@
padding-right: 2px;
border-radius: 4px;
float: right;
}
.h-right-two:hover {
}
.h-right-two:hover {
background-color: #18bfac;
}
}
.diaCancel{
.diaCancel {
float: right;
margin-right: 10px;
width: 30%;
height: 30px;
padding: 0px;
font-size: 15px;
}
}
.set-accont{
.set-accont {
width: 250px;
text-align: right;
font-size: 15px;
@ -494,8 +553,8 @@
background-color: white;
color: black;
border-color: white;
}
.set-overtime{
}
.set-overtime {
width: 250px;
text-align: right;
font-size: 16px;
@ -503,30 +562,28 @@
background-color: white;
color: black;
border-color: white;
}
.overtime-input{
}
.overtime-input {
width: 280px;
border-radius: 0px;
}
.el-input--medium{
}
.el-input--medium {
text-align: center;
}
input.el-input__inner{
}
input.el-input__inner {
border-radius: 0px;
text-align: center;
padding-right: 5px;
}
.btn{
}
.btn {
background-color: #f1f1f1;
border: 1px solid #DCDFE6;
}
.el-from-item :hover {
background-color:#f7f7f7 !important;
border: 1px solid #DCDFE6;
}
.btn-add{
border: 1px solid #dcdfe6;
}
.el-form-item :hover {
background-color: #f7f7f7 !important;
border: 1px solid #dcdfe6;
}
.btn-add {
font-size: 20px;
height: 36px;
padding-top: 2px;
@ -537,9 +594,8 @@
border-bottom-right-radius: 5px;
border-top-right-radius: 5px;
width: 10px;
}
.btn-delet{
}
.btn-delet {
font-size: 20px;
height: 36px;
padding-top: 2px;
@ -550,10 +606,25 @@
border-bottom-left-radius: 5px;
border-top-left-radius: 5px;
width: 10px;
}
}
div.set-overtime.el-input.el-input--medium.el-input--suffix{
div.set-overtime.el-input.el-input--medium.el-input--suffix {
padding-right: 0px;
}
.sys-list {
.sys-list-item {
display: flex;
align-items: center;
padding: 5px 0;
border-bottom: 1px solid #eee;
img {
width: 30px;
height: 30px;
}
span {
margin: 0 20px;
}
}
}
</style>

Loading…
Cancel
Save