放号记录页面修改

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

Loading…
Cancel
Save