|
@@ -504,21 +504,21 @@ 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
|
|
|
- }
|
|
|
+ // 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() {
|