放号记录页面修改

main
jinna 3 years ago
parent 83f442e98b
commit 243be3ed28
  1. 21
      src/views/booknumber/index.vue

@ -74,6 +74,7 @@
<el-button type="primary" @click="handleSubmit">提交</el-button> <el-button type="primary" @click="handleSubmit">提交</el-button>
</div> </div>
<div class="button_box" v-show="!isShow"> <div class="button_box" v-show="!isShow">
<el-button @click="goBefore">上一步</el-button>
<el-button @click="closeDraw">取消</el-button> <el-button @click="closeDraw">取消</el-button>
<el-button type="primary" @click="clickSubmit">提交</el-button> <el-button type="primary" @click="clickSubmit">提交</el-button>
</div> </div>
@ -266,6 +267,7 @@ export default {
column: [ column: [
{ {
label:'上午', label:'上午',
labelWidth:60,
prop: 'addData', prop: 'addData',
type: 'dynamic', type: 'dynamic',
span:24, span:24,
@ -310,6 +312,7 @@ export default {
}, },
{ {
label:'下午', label:'下午',
labelWidth:60,
prop: 'addData1', prop: 'addData1',
type: 'dynamic', type: 'dynamic',
span:24, span:24,
@ -399,13 +402,15 @@ export default {
}, },
// //
addNumber(){ addNumber(){
this.tabArr = this.tabArr1
this.activeName = this.tabArr[0].dictValue; this.activeName = this.tabArr[0].dictValue;
console.log(this.tabArr)
console.log(this.activeName)
this.isNumber = true; this.isNumber = true;
this.isShow = true; this.isShow = true;
this.isEdit = false this.isEdit = false
this.deptName = ''; this.deptName = '';
this.tabArr = this.tabArr1
this.tabArr.map(item =>{ this.tabArr.map(item =>{
item.addForm={ item.addForm={
addData: [ addData: [
@ -623,10 +628,10 @@ export default {
console.log(this.userInfo) console.log(this.userInfo)
this.deptName = this.userInfo.dept_id this.deptName = this.userInfo.dept_id
} }
let tmp = this.tabArr.find(item => item.addForm.addData.length != 0)
let tmp1 = this.tabArr.find(item => item.addForm.addData1.length != 0)
if(this.tabArr[0].addForm.addData.length == 0 && this.tabArr[1].addForm.addData.length == 0 if(tmp == undefined && tmp1 == undefined){
&& this.tabArr[2].addForm.addData.length == 0 && this.tabArr[0].addForm.addData1.length == 0
&& this.tabArr[1].addForm.addData1.length == 0 && this.tabArr[2].addForm.addData1.length == 0){
this.$message.error('请至少添加一条数据'); this.$message.error('请至少添加一条数据');
done() done()
}else if(this.count == 0){ }else if(this.count == 0){
@ -749,6 +754,9 @@ export default {
} }
}) })
}, },
goBefore(){
this.isShow = true
},
closeDraw(){ closeDraw(){
this.isNumber = false this.isNumber = false
}, },
@ -851,6 +859,9 @@ export default {
} }
</style> </style>
<style lang="scss"> <style lang="scss">
.el-drawer .avue-form{
padding: 0 !important;
}
.dialog_box{ .dialog_box{
right: 10%; right: 10%;
position: absolute; position: absolute;
@ -859,7 +870,7 @@ export default {
} }
.el-drawer__wrapper{ .el-drawer__wrapper{
.number_box{ .number_box{
width: 45% !important; width: 800px !important;
overflow: hidden !important; overflow: hidden !important;
.el-drawer__body{ .el-drawer__body{
overflow: hidden; overflow: hidden;

Loading…
Cancel
Save