|
|
@@ -163,9 +163,10 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="业务员:" prop="salesmanName">
|
|
|
- <el-input
|
|
|
- v-model="form.contractInfo.salesmanName"
|
|
|
- readonly
|
|
|
+ <personSelect
|
|
|
+ ref="directorRef"
|
|
|
+ v-model="form.salesmanName"
|
|
|
+ @selfChange="changeUserInfo"
|
|
|
:disabled="type == 'view'"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
@@ -944,6 +945,7 @@ import { getToken } from '@/utils/token-util';
|
|
|
import processSubmitDialog from '@/views/salesServiceManagement/components/processSubmitDialog/processSubmitDialog.vue';
|
|
|
import { getByCode } from '@/api/system/dictionary-data';
|
|
|
|
|
|
+import personSelect from '@/components/CommomSelect/person-select.vue';
|
|
|
import GYSparentList from '@/views/purchasingManage/supplierManage/components/parentList.vue';
|
|
|
export default {
|
|
|
mixins: [dictMixins],
|
|
|
@@ -956,7 +958,8 @@ export default {
|
|
|
ProductDialog,
|
|
|
processSubmitDialog,
|
|
|
spareParts,
|
|
|
- GYSparentList
|
|
|
+ GYSparentList,
|
|
|
+ personSelect
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(['getDictValue']),
|
|
|
@@ -1364,6 +1367,7 @@ export default {
|
|
|
faultDetailList: [],
|
|
|
associationType: '1',
|
|
|
aftertype: '',
|
|
|
+ salesmanName:'',
|
|
|
charge: '',
|
|
|
part: '',
|
|
|
car: '',
|
|
|
@@ -1401,6 +1405,9 @@ export default {
|
|
|
this.getPietypeCode('pie_car_type');
|
|
|
},
|
|
|
methods: {
|
|
|
+ changeUserInfo(val, info) {
|
|
|
+ this.form.salesmanName = info.name;
|
|
|
+ },
|
|
|
// 获取售后类型字典
|
|
|
async getAftertypeCode(code) {
|
|
|
try {
|
|
|
@@ -1472,6 +1479,8 @@ export default {
|
|
|
res.afterSalesType ? String(res.afterSalesType) : ''
|
|
|
);
|
|
|
this.$set(this.form, 'charge', res.isFee ?? '');
|
|
|
+
|
|
|
+ this.$set(this.form, 'salesmanName', res.salesmanName ?? '');
|
|
|
this.$set(this.form, 'part', res.isWithAccessories ?? '');
|
|
|
this.$set(this.form, 'car', res.isPieCar ?? '');
|
|
|
this.$set(
|
|
|
@@ -1674,6 +1683,7 @@ export default {
|
|
|
orderId: '',
|
|
|
associationType: '1',
|
|
|
aftertype: '',
|
|
|
+ salesmanName:'',
|
|
|
charge: '',
|
|
|
part: '',
|
|
|
car: '',
|