diff --git a/src/views/booknumber/index.vue b/src/views/booknumber/index.vue
index 35cb18c..b19d885 100644
--- a/src/views/booknumber/index.vue
+++ b/src/views/booknumber/index.vue
@@ -74,6 +74,7 @@
提交
+ 上一步
取消
提交
@@ -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 {
}