Commit 56ccb7d9 authored by dragondean@qq.com's avatar dragondean@qq.com

拆单标签错误

parent 6a79db31
...@@ -108,7 +108,8 @@ export default { ...@@ -108,7 +108,8 @@ export default {
loadData(){ loadData(){
printTag(this.orderId).then(res => { printTag(this.orderId).then(res => {
this.$set(this, 'tags', res.data) this.$set(this, 'tags', res.data)
this.form.end = res.data.length this.form.start = res.data[0].num
this.form.end = res.data[res.data.length-1].num
}) })
}, },
closeDialog(){ closeDialog(){
...@@ -117,7 +118,7 @@ export default { ...@@ -117,7 +118,7 @@ export default {
this.$emit('close'); this.$emit('close');
}, },
showPreview(){ showPreview(){
if(this.form.end > this.tags.length){ if(this.form.end > this.tags[this.tags.length-1].num){
return this.$message.error(this.$t('结束标签不对')) return this.$message.error(this.$t('结束标签不对'))
} }
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
......
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