|
|
@@ -214,32 +214,34 @@
|
|
|
<a-form-item label="通讯地址">
|
|
|
<a-select class="inlineFormSelect"
|
|
|
style="width: 205px"
|
|
|
+ v-model:value="formState.provinceid"
|
|
|
+ @change="getCityList"
|
|
|
placeholder="请选择省">
|
|
|
- <a-select-option value="1">
|
|
|
- 客户一
|
|
|
- </a-select-option>
|
|
|
- <a-select-option value="2">
|
|
|
- 客户二
|
|
|
+ <a-select-option v-for="item in provinceList"
|
|
|
+ :key="item.autoid"
|
|
|
+ :value="item.autoid">
|
|
|
+ {{item.divisionname}}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
- <a-select class="inlineFormSelect ml10"
|
|
|
+ <a-select class="inlineFormSelect ml9"
|
|
|
style="width: 205px"
|
|
|
+ v-model:value="formState.cityid"
|
|
|
+ @change="getDistrictList"
|
|
|
placeholder="请选择市">
|
|
|
- <a-select-option value="1">
|
|
|
- 客户一
|
|
|
- </a-select-option>
|
|
|
- <a-select-option value="2">
|
|
|
- 客户二
|
|
|
+ <a-select-option v-for="item in cityList"
|
|
|
+ :key="item.autoid"
|
|
|
+ :value="item.autoid">
|
|
|
+ {{item.divisionname}}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
- <a-select class="inlineFormSelect ml10"
|
|
|
+ <a-select class="inlineFormSelect ml9"
|
|
|
+ v-model:value="formState.districtid"
|
|
|
style="width: 205px"
|
|
|
placeholder="请选择县(区)">
|
|
|
- <a-select-option value="1">
|
|
|
- 客户一
|
|
|
- </a-select-option>
|
|
|
- <a-select-option value="2">
|
|
|
- 客户二
|
|
|
+ <a-select-option v-for="item in districtList"
|
|
|
+ :key="item.autoid"
|
|
|
+ :value="item.autoid">
|
|
|
+ {{item.divisionname}}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
@@ -275,6 +277,7 @@ import { getCardType, initFormState, handleApply, handleForm } from './setup';
|
|
|
import { AllEnums } from '@/services/go/commonService/interface';
|
|
|
import { FormState } from './interface';
|
|
|
import { RuleObject, ValidateErrorEntity } from 'ant-design-vue/es/form/interface';
|
|
|
+import { getAddress } from '@/services/go/adress';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'add-custom',
|
|
|
@@ -288,6 +291,8 @@ export default defineComponent({
|
|
|
const { formRef, formState, rules } = handleForm();
|
|
|
// 下单方法
|
|
|
const { loading, applyAction } = handleApply();
|
|
|
+ // 地址
|
|
|
+ const { cityList, districtList, provinceList, getCityList, getDistrictList } = getAddress();
|
|
|
function isPersonal(): boolean {
|
|
|
return formState.userinfotype === '1';
|
|
|
}
|
|
|
@@ -314,6 +319,11 @@ export default defineComponent({
|
|
|
cancel,
|
|
|
submit,
|
|
|
loading,
|
|
|
+ cityList,
|
|
|
+ districtList,
|
|
|
+ provinceList,
|
|
|
+ getCityList,
|
|
|
+ getDistrictList,
|
|
|
};
|
|
|
},
|
|
|
});
|