Commit 0b0eef78 authored by 黄奎's avatar 黄奎

页面修改

parent 632c9163
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
margin-right: 15px; margin-right: 15px;
display: inline-block; display: inline-block;
text-align: right; text-align: right;
width:60px; width: 60px;
} }
.Scdu_benci::after { .Scdu_benci::after {
...@@ -330,8 +330,8 @@ ...@@ -330,8 +330,8 @@
Id: 0, Id: 0,
Shift: 0, Shift: 0,
Status: 0, //Status(1-值班打卡,2-交接打卡) Status: 0, //Status(1-值班打卡,2-交接打卡)
IsBurst:0, //突发 IsBurst: 0, //突发
IsHandover:0 //交接 IsHandover: 0 //交接
}, },
dataList: {}, dataList: {},
//是否显示访客操作按钮 //是否显示访客操作按钮
...@@ -345,11 +345,11 @@ ...@@ -345,11 +345,11 @@
isShowEditAndDelete: false, //是否显示编辑和删除按钮【默认不显示】 isShowEditAndDelete: false, //是否显示编辑和删除按钮【默认不显示】
}, },
isShowTuFA: false, isShowTuFA: false,
isHaveTufa:2, //是否有突发 isHaveTufa: 2, //是否有突发
isHaveHand:2, //是否有交接 isHaveHand: 2, //是否有交接
isShowOne:false, isShowOne: false,
isShowTwo:false, isShowTwo: false,
status:0 status: 0
} }
}, },
created() { created() {
...@@ -376,31 +376,34 @@ ...@@ -376,31 +376,34 @@
//值班打卡或值班交接 //值班打卡或值班交接
SetDutyCheck(status) { SetDutyCheck(status) {
this.status = status; this.status = status;
if (this.status == 2) {
this.checkMsg.IsBurst = this.$refs.schOrder.getTufaHand().IsBurst; this.checkMsg.IsBurst = this.$refs.schOrder.getTufaHand().IsBurst;
this.checkMsg.IsHandover = this.$refs.schOrder.getTufaHand().IsHandover; this.checkMsg.IsHandover = this.$refs.schOrder.getTufaHand().IsHandover;
//突发事件 //突发事件
if(this.$refs.schOrder.getTufaHand().IsBurst==0){ if (this.$refs.schOrder.getTufaHand().IsBurst == 0) {
this.isShowOne=true; this.isShowOne = true;
this.isShowTuFA=true; this.isShowTuFA = true;
} }
//交接工作 //交接工作
if(this.$refs.schOrder.getTufaHand().IsHandover==0){ if (this.$refs.schOrder.getTufaHand().IsHandover == 0) {
this.isShowTwo=true; this.isShowTwo = true;
this.isShowTuFA=true; this.isShowTuFA = true;
} }
if(this.$refs.schOrder.getTufaHand().IsBurst>0&&this.$refs.schOrder.getTufaHand().IsHandover>0){ if (this.$refs.schOrder.getTufaHand().IsBurst > 0 && this.$refs.schOrder.getTufaHand().IsHandover > 0) {
this.saveInfo() this.saveInfo()
} }
} else {
this.saveInfo();
}
}, },
//保存 //保存
saveInfo(){ saveInfo() {
let diaMsg=''; let diaMsg = '';
if(this.status==1){ if (this.status == 1) {
diaMsg='是否确定值班打卡?' diaMsg = '是否确定值班打卡?'
} }
if(this.status==2){ if (this.status == 2) {
diaMsg='是否确定值班交接?' diaMsg = '是否确定值班交接?'
} }
this.$q.dialog({ this.$q.dialog({
title: '消息提示', title: '消息提示',
...@@ -437,8 +440,8 @@ ...@@ -437,8 +440,8 @@
}, },
//确定是否有突发 //确定是否有突发
submitHand(){ submitHand() {
if(this.isHaveTufa==2){ if (this.isHaveTufa == 2) {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
position: "top", position: "top",
...@@ -447,7 +450,7 @@ ...@@ -447,7 +450,7 @@
this.isShowTuFA = false; this.isShowTuFA = false;
return return
} }
if(this.isHaveHand==2){ if (this.isHaveHand == 2) {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
position: "top", position: "top",
...@@ -456,12 +459,12 @@ ...@@ -456,12 +459,12 @@
this.isShowTuFA = false; this.isShowTuFA = false;
return return
} }
if(this.isHaveTufa==1){ if (this.isHaveTufa == 1) {
this.checkMsg.IsBurst=1; this.checkMsg.IsBurst = 1;
this.saveInfo(); this.saveInfo();
} }
if(this.isHaveHand==1){ if (this.isHaveHand == 1) {
this.checkMsg.IsHandover=1; this.checkMsg.IsHandover = 1;
this.saveInfo(); this.saveInfo();
} }
this.isShowTuFA = false; this.isShowTuFA = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment