|
@@ -126,7 +126,7 @@ export default {
|
|
|
readonly: this.$route.name === 'View',
|
|
|
addData: {
|
|
|
ticketBoxList:[],
|
|
|
- useArea: 0,
|
|
|
+ useArea: 2,
|
|
|
dueDays: 90,
|
|
|
type: 2
|
|
|
},
|
|
@@ -175,6 +175,23 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
update() {
|
|
|
+ if (this.addData.type == 1) {
|
|
|
+ if(this.addData.useArea !== 0) {
|
|
|
+ this.$message({
|
|
|
+ message: '请选择使用范围!',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ } else if (this.addData.type == 2) {
|
|
|
+ if(this.addData.useArea !== 2) {
|
|
|
+ this.$message({
|
|
|
+ message: '请选择使用范围!',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
this.$refs.addItem.validate((valid, items) => {
|
|
|
if (valid) {
|
|
|
this.addIng = true
|