|
@@ -76,9 +76,8 @@
|
|
|
<dic-select style="width: 100%;" v-show="rowFrom.fieldValueNew == 'SALES'"
|
|
|
v-model="rowFrom.secondLevelName" placeholder="业务员" key="id" label="realName"
|
|
|
res="records" url="/blade-user/page" :filterable="true" :remote="true"
|
|
|
- dataName="realName" @selectChange="dicChange('srcCnName', $event)"></dic-select>
|
|
|
+ dataName="realName" @selectChange="dicChange('salesName', $event)"></dic-select>
|
|
|
</div>
|
|
|
-
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</trade-card>
|
|
@@ -335,31 +334,44 @@ export default {
|
|
|
this.rowFrom.secondLevelName = null
|
|
|
}
|
|
|
} else if (name == 'srcCnName') {
|
|
|
+ console.log(row)
|
|
|
if (row) {
|
|
|
- // this.$set(this.rowFrom,'secondLevel',row.id)
|
|
|
- // this.$set(this.rowFrom,'secondLevelName',row.cnName)
|
|
|
- this.rowFrom.secondLevel = row.id
|
|
|
- this.rowFrom.secondLevelName = row.cnName
|
|
|
+ this.$set(this.rowFrom,'secondLevel',row.id)
|
|
|
+ this.$set(this.rowFrom,'secondLevelName',row.cnName)
|
|
|
+ // this.rowFrom.secondLevel = row.id
|
|
|
+ // this.rowFrom.secondLevelName = row.cnName
|
|
|
} else {
|
|
|
this.rowFrom.secondLevel = null
|
|
|
this.rowFrom.secondLevelName = null
|
|
|
}
|
|
|
-
|
|
|
}else if (name == '所属公司') {
|
|
|
if (row) {
|
|
|
- // this.$set(this.rowFrom,'secondLevel',row.id)
|
|
|
- // this.$set(this.rowFrom,'secondLevelName',row.cnName)
|
|
|
- this.rowFrom.secondLevel = row.id
|
|
|
- this.rowFrom.secondLevelName = row.deptName
|
|
|
+ this.$set(this.rowFrom,'secondLevel',row.id)
|
|
|
+ this.$set(this.rowFrom,'secondLevelName',row.deptName)
|
|
|
+ // this.rowFrom.secondLevel = row.id
|
|
|
+ // this.rowFrom.secondLevelName = row.deptName
|
|
|
} else {
|
|
|
this.rowFrom.secondLevel = null
|
|
|
this.rowFrom.secondLevelName = null
|
|
|
}
|
|
|
|
|
|
- } else {
|
|
|
+ } else if (name == 'salesName') {
|
|
|
+ if (row) {
|
|
|
+ this.$set(this.rowFrom,'secondLevel',row.id)
|
|
|
+ this.$set(this.rowFrom,'secondLevelName',row.realName)
|
|
|
+ // this.rowFrom.secondLevel = row.id
|
|
|
+ // this.rowFrom.secondLevelName = row.deptName
|
|
|
+ } else {
|
|
|
+ this.rowFrom.secondLevel = null
|
|
|
+ this.rowFrom.secondLevelName = null
|
|
|
+ }
|
|
|
+
|
|
|
+ } else {
|
|
|
if (row) {
|
|
|
- this.rowFrom.fieldValueNew = row.id
|
|
|
- this.rowFrom.fieldValueNewName = row.cnName
|
|
|
+ this.$set(this.rowFrom,'secondLevel',row.id)
|
|
|
+ this.$set(this.rowFrom,'secondLevelName',row.cnName)
|
|
|
+ // this.rowFrom.fieldValueNew = row.id
|
|
|
+ // this.rowFrom.fieldValueNewName = row.cnName
|
|
|
} else {
|
|
|
this.rowFrom.fieldValueNew = null
|
|
|
this.rowFrom.fieldValueNewName = null
|