|
@@ -1,143 +1,171 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <!-- 新增仓库信息 -->
|
|
|
|
|
- <a-modal class="add-warehouse" title="新增仓库信息" v-model:visible="visible" @cancel="cancel" width="890px">
|
|
|
|
|
- <template #footer>
|
|
|
|
|
- <a-button key="submit" type="primary" :loading="loading" @click="submit">完成</a-button>
|
|
|
|
|
- </template>
|
|
|
|
|
- <a-form class="inlineForm" :form="form" @submit="handleSearch">
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="仓库类型">
|
|
|
|
|
- <a-select class="typeSelect" style="width: 200px" placeholder="请选择仓库类型">
|
|
|
|
|
- <a-select-option value="1">
|
|
|
|
|
- 仓库一
|
|
|
|
|
- </a-select-option>
|
|
|
|
|
- <a-select-option value="2">
|
|
|
|
|
- 仓库二
|
|
|
|
|
- </a-select-option>
|
|
|
|
|
- </a-select>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="仓库名称">
|
|
|
|
|
- <a-input class="dialogInput" style="width: 200px" placeholder="请输入仓库名称" />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="仓库简称">
|
|
|
|
|
- <a-input class="dialogInput" style="width: 200px" placeholder="请输入仓库简称" />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="联系人">
|
|
|
|
|
- <a-input class="dialogInput" style="width: 200px" placeholder="请输入联系人" />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item label="联系电话">
|
|
|
|
|
- <a-input class="dialogInput" style="width: 200px" placeholder="请输入联系电话" />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item label="所在地区">
|
|
|
|
|
- <a-select class="inlineFormSelect" style="width: 205px" placeholder="请选择省">
|
|
|
|
|
- <a-select-option value="1">
|
|
|
|
|
- 广东省
|
|
|
|
|
- </a-select-option>
|
|
|
|
|
- <a-select-option value="2">
|
|
|
|
|
- 湖南省
|
|
|
|
|
- </a-select-option>
|
|
|
|
|
- </a-select>
|
|
|
|
|
- <a-select class="inlineFormSelect" style="width: 205px" placeholder="请选择市">
|
|
|
|
|
- <a-select-option value="1">
|
|
|
|
|
- 深圳市
|
|
|
|
|
- </a-select-option>
|
|
|
|
|
- <a-select-option value="2">
|
|
|
|
|
- 岳阳市
|
|
|
|
|
- </a-select-option>
|
|
|
|
|
- </a-select>
|
|
|
|
|
- <a-select class="inlineFormSelect" style="width: 205px" placeholder="请选择县(区)">
|
|
|
|
|
- <a-select-option value="1">
|
|
|
|
|
- 区一
|
|
|
|
|
- </a-select-option>
|
|
|
|
|
- <a-select-option value="2">
|
|
|
|
|
- 区二
|
|
|
|
|
- </a-select-option>
|
|
|
|
|
- </a-select>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item label="详细地址">
|
|
|
|
|
- <a-input class="dialogInput" style="width: 635px" placeholder="请输入详细地址" />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- </a-form>
|
|
|
|
|
- </a-modal>
|
|
|
|
|
|
|
+ <!-- 新增仓库信息 -->
|
|
|
|
|
+ <a-modal class="add-warehouse"
|
|
|
|
|
+ title="新增仓库信息"
|
|
|
|
|
+ v-model:visible="visible"
|
|
|
|
|
+ @cancel="cancel"
|
|
|
|
|
+ width="890px">
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <a-button key="submit"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :loading="loading"
|
|
|
|
|
+ @click="submit">完成</a-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <a-form class="inlineForm"
|
|
|
|
|
+ :form="form"
|
|
|
|
|
+ @submit="handleSearch">
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="仓库类型">
|
|
|
|
|
+ <a-select class="typeSelect"
|
|
|
|
|
+ style="width: 200px"
|
|
|
|
|
+ placeholder="请选择仓库类型">
|
|
|
|
|
+ <a-select-option value="1">
|
|
|
|
|
+ 仓库一
|
|
|
|
|
+ </a-select-option>
|
|
|
|
|
+ <a-select-option value="2">
|
|
|
|
|
+ 仓库二
|
|
|
|
|
+ </a-select-option>
|
|
|
|
|
+ </a-select>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="仓库名称">
|
|
|
|
|
+ <a-input class="dialogInput"
|
|
|
|
|
+ style="width: 200px"
|
|
|
|
|
+ placeholder="请输入仓库名称" />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="仓库简称">
|
|
|
|
|
+ <a-input class="dialogInput"
|
|
|
|
|
+ style="width: 200px"
|
|
|
|
|
+ placeholder="请输入仓库简称" />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="联系人">
|
|
|
|
|
+ <a-input class="dialogInput"
|
|
|
|
|
+ style="width: 200px"
|
|
|
|
|
+ placeholder="请输入联系人" />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item label="联系电话">
|
|
|
|
|
+ <a-input class="dialogInput"
|
|
|
|
|
+ style="width: 200px"
|
|
|
|
|
+ placeholder="请输入联系电话" />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item label="所在地区">
|
|
|
|
|
+ <a-select class="inlineFormSelect"
|
|
|
|
|
+ style="width: 205px"
|
|
|
|
|
+ placeholder="请选择省">
|
|
|
|
|
+ <a-select-option value="1">
|
|
|
|
|
+ 广东省
|
|
|
|
|
+ </a-select-option>
|
|
|
|
|
+ <a-select-option value="2">
|
|
|
|
|
+ 湖南省
|
|
|
|
|
+ </a-select-option>
|
|
|
|
|
+ </a-select>
|
|
|
|
|
+ <a-select class="inlineFormSelect"
|
|
|
|
|
+ style="width: 205px"
|
|
|
|
|
+ placeholder="请选择市">
|
|
|
|
|
+ <a-select-option value="1">
|
|
|
|
|
+ 深圳市
|
|
|
|
|
+ </a-select-option>
|
|
|
|
|
+ <a-select-option value="2">
|
|
|
|
|
+ 岳阳市
|
|
|
|
|
+ </a-select-option>
|
|
|
|
|
+ </a-select>
|
|
|
|
|
+ <a-select class="inlineFormSelect"
|
|
|
|
|
+ style="width: 205px"
|
|
|
|
|
+ placeholder="请选择县(区)">
|
|
|
|
|
+ <a-select-option value="1">
|
|
|
|
|
+ 区一
|
|
|
|
|
+ </a-select-option>
|
|
|
|
|
+ <a-select-option value="2">
|
|
|
|
|
+ 区二
|
|
|
|
|
+ </a-select-option>
|
|
|
|
|
+ </a-select>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item label="详细地址">
|
|
|
|
|
+ <a-input class="dialogInput"
|
|
|
|
|
+ style="width: 635px"
|
|
|
|
|
+ placeholder="请输入详细地址" />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ </a-form>
|
|
|
|
|
+ </a-modal>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
- import { defineComponent, ref } from 'vue';
|
|
|
|
|
- import { closeModal } from '@/common/setup/modal/index';
|
|
|
|
|
- import { initData } from '@/common/methods/index';
|
|
|
|
|
|
|
+import { defineComponent, ref } from 'vue';
|
|
|
|
|
+import { closeModal } from '@/common/setup/modal/index';
|
|
|
|
|
+import { initData } from '@/common/methods/index';
|
|
|
|
|
|
|
|
- export default defineComponent({
|
|
|
|
|
- name: 'add-warehouse',
|
|
|
|
|
- components: {},
|
|
|
|
|
- setup() {
|
|
|
|
|
- const { visible, cancel } = closeModal('addCustomInfo');
|
|
|
|
|
- const loading = ref<boolean>(false);
|
|
|
|
|
- function submit() {
|
|
|
|
|
- loading.value = true;
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- loading.value = false;
|
|
|
|
|
- cancel();
|
|
|
|
|
- }, 2000);
|
|
|
|
|
- }
|
|
|
|
|
- initData(() => {});
|
|
|
|
|
- return {
|
|
|
|
|
- visible,
|
|
|
|
|
- cancel,
|
|
|
|
|
- submit,
|
|
|
|
|
- loading,
|
|
|
|
|
- };
|
|
|
|
|
- },
|
|
|
|
|
- });
|
|
|
|
|
|
|
+export default defineComponent({
|
|
|
|
|
+ name: 'add-warehouse',
|
|
|
|
|
+ components: {},
|
|
|
|
|
+ setup() {
|
|
|
|
|
+ const { visible, cancel } = closeModal('custom_info_btn_add');
|
|
|
|
|
+ const loading = ref<boolean>(false);
|
|
|
|
|
+ function submit() {
|
|
|
|
|
+ loading.value = true;
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ loading.value = false;
|
|
|
|
|
+ cancel();
|
|
|
|
|
+ }, 2000);
|
|
|
|
|
+ }
|
|
|
|
|
+ initData(() => {});
|
|
|
|
|
+ return {
|
|
|
|
|
+ visible,
|
|
|
|
|
+ cancel,
|
|
|
|
|
+ submit,
|
|
|
|
|
+ loading,
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+});
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less">
|
|
<style lang="less">
|
|
|
- .add-warehouse {
|
|
|
|
|
- }
|
|
|
|
|
- .upload {
|
|
|
|
|
- display: inline-flex;
|
|
|
|
|
- .ant-btn.uploadBtn {
|
|
|
|
|
- width: 60px;
|
|
|
|
|
- height: 30px;
|
|
|
|
|
- background: @m-blue0;
|
|
|
|
|
- border: 0;
|
|
|
|
|
- padding: 0;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- font-size: 14px;
|
|
|
|
|
- color: @m-white0;
|
|
|
|
|
- .rounded-corners(3px);
|
|
|
|
|
- &:hover {
|
|
|
|
|
- background: rgba(@m-blue0, 0);
|
|
|
|
|
- color: rgba(@m-white0, 0.8);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .look {
|
|
|
|
|
- color: @m-blue0;
|
|
|
|
|
- font-size: 14px;
|
|
|
|
|
- margin-left: 10px;
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
|
|
+.add-warehouse {
|
|
|
|
|
+}
|
|
|
|
|
+.upload {
|
|
|
|
|
+ display: inline-flex;
|
|
|
|
|
+ .ant-btn.uploadBtn {
|
|
|
|
|
+ width: 60px;
|
|
|
|
|
+ height: 30px;
|
|
|
|
|
+ background: @m-blue0;
|
|
|
|
|
+ border: 0;
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ color: @m-white0;
|
|
|
|
|
+ .rounded-corners(3px);
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ background: rgba(@m-blue0, 0);
|
|
|
|
|
+ color: rgba(@m-white0, 0.8);
|
|
|
}
|
|
}
|
|
|
- }</style
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ .look {
|
|
|
|
|
+ color: @m-blue0;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ margin-left: 10px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</style
|
|
|
>;
|
|
>;
|