|
@@ -135,12 +135,15 @@
|
|
|
import { defineComponent, PropType, ref, toRaw } from 'vue';
|
|
import { defineComponent, PropType, ref, toRaw } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { getAddress } from '@/services/go/adress';
|
|
import { getAddress } from '@/services/go/adress';
|
|
|
-import { handleForm, FormState, warehouseApply } from '../setup';
|
|
|
|
|
|
|
+import { handleForm, FormState, warehouseApply, reqestAction } from '../setup';
|
|
|
import { ValidateErrorEntity } from 'ant-design-vue/lib/form/interface';
|
|
import { ValidateErrorEntity } from 'ant-design-vue/lib/form/interface';
|
|
|
import { AllEnums } from '@/services/go/commonService/interface';
|
|
import { AllEnums } from '@/services/go/commonService/interface';
|
|
|
import { WarehouseApplyReq } from '@/services/proto/warehouse/interface';
|
|
import { WarehouseApplyReq } from '@/services/proto/warehouse/interface';
|
|
|
import { ErmcpWareHouseInfo } from '@/services/go/ermcp/warehouse-info/interface';
|
|
import { ErmcpWareHouseInfo } from '@/services/go/ermcp/warehouse-info/interface';
|
|
|
import { getWarehouseTypeEnumList } from '@/common/constants/enumsList';
|
|
import { getWarehouseTypeEnumList } from '@/common/constants/enumsList';
|
|
|
|
|
+import { getSelectedAccountId } from '@/services/bus/account';
|
|
|
|
|
+import { addWarehouseApply, warehouseStateChangeReq } from '@/services/proto/warehouse';
|
|
|
|
|
+import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'warehouse_info_btn_add',
|
|
name: 'warehouse_info_btn_add',
|
|
@@ -175,12 +178,16 @@ export default defineComponent({
|
|
|
contactname: param.contactname, // string 联系人
|
|
contactname: param.contactname, // string 联系人
|
|
|
contactnum: param.contactnum, // string 联系电话
|
|
contactnum: param.contactnum, // string 联系电话
|
|
|
};
|
|
};
|
|
|
- warehouseApply(reqParam, loading)
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- cancel();
|
|
|
|
|
- context.emit('refresh');
|
|
|
|
|
- })
|
|
|
|
|
- .catch((err) => {});
|
|
|
|
|
|
|
+ requestResultLoadingAndInfo(addWarehouseApply, reqParam, loading, ['新建仓库成功', '新建仓库失败']).then(() => {
|
|
|
|
|
+ cancel();
|
|
|
|
|
+ context.emit('refresh');
|
|
|
|
|
+ });
|
|
|
|
|
+ // warehouseApply(reqParam, loading)
|
|
|
|
|
+ // .then((res) => {
|
|
|
|
|
+ // cancel();
|
|
|
|
|
+ // context.emit('refresh');
|
|
|
|
|
+ // })
|
|
|
|
|
+ // .catch((err) => {});
|
|
|
console.log('param', param);
|
|
console.log('param', param);
|
|
|
})
|
|
})
|
|
|
.catch((error: ValidateErrorEntity<FormState>) => {
|
|
.catch((error: ValidateErrorEntity<FormState>) => {
|