|
@@ -17,7 +17,7 @@
|
|
|
:label-col="formItemLayout.labelCol"
|
|
|
:wrapper-col="formItemLayout.wrapperCol">
|
|
|
<a-form-model-item label="客户名称" prop="dealerSn">
|
|
|
- <dealerByScope :disabled="!!itemSn" ref="dealer" @change="custChange" />
|
|
|
+ <dealerSubareaScopeList :disabled="!!itemSn" ref="dealer" @change="custChange" />
|
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="备注">
|
|
|
<a-textarea :rows="4" :maxLength="300" placeholder="请输入备注(最多300个字符)" v-model="form.remarks"></a-textarea>
|
|
@@ -34,12 +34,12 @@
|
|
|
<script>
|
|
|
import { commonMixin } from '@/utils/mixin'
|
|
|
import { VSelect } from '@/components'
|
|
|
-import dealerByScope from '@/views/common/dealerByScope.vue'
|
|
|
+import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
|
|
|
import { verifyAccountBillCreate, verifyAccountBillModify, verifyAcountBillDetail } from '@/api/verifyAccount.js'
|
|
|
export default {
|
|
|
name: 'ASBaseModal',
|
|
|
mixins: [commonMixin],
|
|
|
- components: { VSelect, dealerByScope },
|
|
|
+ components: { VSelect, dealerSubareaScopeList },
|
|
|
props: {
|
|
|
show: [Boolean],
|
|
|
itemSn: {
|
|
@@ -72,8 +72,8 @@ export default {
|
|
|
// 客户
|
|
|
custChange (v) {
|
|
|
if (v && v.key) {
|
|
|
- this.form.dealerSn = v.row ? v.row.dealerSn : ''
|
|
|
- this.form.dealerName = v.key
|
|
|
+ this.form.dealerSn = v.key
|
|
|
+ this.form.dealerName = v.row ? v.row.dealerName : ''
|
|
|
} else {
|
|
|
this.form.dealerSn = ''
|
|
|
this.form.dealerName = ''
|