|
@@ -140,11 +140,16 @@
|
|
|
},
|
|
|
// 新增 / 修改
|
|
|
addHandle () {
|
|
|
- //控制只能单选
|
|
|
- this.addOrUpdateVisible = true
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.addOrUpdate.init(this.queryParams.asnNo,'')
|
|
|
- })
|
|
|
+ if (this.dataList.length >0){
|
|
|
+ this.addOrUpdateVisible = false
|
|
|
+ alert("只能新增一条明细")
|
|
|
+ }else {
|
|
|
+ //控制只能单选
|
|
|
+ this.addOrUpdateVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.addOrUpdate.init(this.queryParams.asnNo,'')
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
updateHandle () {
|
|
|
this.addOrUpdateVisible = true
|