|
|
@@ -145,22 +145,19 @@ export default defineComponent({
|
|
|
const loading = ref<boolean>(false);
|
|
|
const { cityList, districtList, provinceList, getCityList, getDistrictList } = getAddress();
|
|
|
const warehouseType = ref<AllEnums[]>(getWarehouseType());
|
|
|
- console.log('warehouseType', warehouseType);
|
|
|
const { formRef, formState, rules } = handleForm();
|
|
|
-
|
|
|
function submit() {
|
|
|
formRef.value
|
|
|
.validate()
|
|
|
.then(() => {
|
|
|
const param = toRaw(formState) as WarehouseApplyReq;
|
|
|
- warehouseApply(param, loading)
|
|
|
+ warehouseApply(param, loading);
|
|
|
console.log('param', param);
|
|
|
})
|
|
|
.catch((error: ValidateErrorEntity<FormState>) => {
|
|
|
console.log('error', error);
|
|
|
});
|
|
|
}
|
|
|
- initData(() => {});
|
|
|
return {
|
|
|
visible,
|
|
|
cancel,
|