|
@@ -465,6 +465,24 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ watch: {
|
|
|
|
+ goodsList: {
|
|
|
|
+ handler(newValue, oldValue) {
|
|
|
|
+ if(this.goodsList && this.goodsList.length) {
|
|
|
|
+ if(this.isFirst) {
|
|
|
|
+ this.isFirst = false;
|
|
|
|
+ }else {
|
|
|
|
+ this.mainForm.salesMan = this.goodsList[0].serviceId;
|
|
|
|
+ }
|
|
|
|
+ }else {
|
|
|
|
+ this.mainForm.salesMan = '';
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ immediate: true,
|
|
|
|
+ deep: true
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
beforeCreate() {
|
|
beforeCreate() {
|
|
that = this;
|
|
that = this;
|
|
},
|
|
},
|