diff --git a/.env.development b/.env.development index b385c031..de6453c0 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,8 @@ NODE_ENV = 'development' VITE_NOW_TYPE = 'dist' # Base API -VITE_APP_BASE_URL='http://192.168.1.231:8545' +#VITE_APP_BASE_URL='http://192.168.1.231:8545' # VITE_APP_BASE_URL='https://test-multi-store.lihaink.cn' # VITE_APP_BASE_URL='https://multi-store.lihaink.cn' +VITE_APP_BASE_URL='http://192.168.1.6:8545' diff --git a/src/api/purchase_order.ts b/src/api/purchase_order.ts index ab6dae24..94e039f9 100644 --- a/src/api/purchase_order.ts +++ b/src/api/purchase_order.ts @@ -4,12 +4,19 @@ import request from '@/utils/request' export function apiPurchaseOrderLists(params: any) { return request.get({ url: '/purchase_order/purchaseorder/lists', params }) } +// 采购订单详情列表 +export function apiPurchaseOrderInfoLists(params: any) { + return request.get({ url: '/purchase_order/purchaseorder/info_lists', params }) +} // 添加采购订单 export function apiPurchaseOrderAdd(params: any) { return request.post({ url: '/purchase_order/purchaseorder/add', params }) } - +// 添加采购订单平台 +export function apiPurchaseOrderPlatform(params: any) { + return request.post({ url: '/purchase_order/purchaseorder/platform', params }) +} // 编辑采购订单 export function apiPurchaseOrderEdit(params: any) { return request.post({ url: '/purchase_order/purchaseorder/edit', params }) @@ -23,4 +30,4 @@ export function apiPurchaseOrderDelete(params: any) { // 采购订单详情 export function apiPurchaseOrderDetail(params: any) { return request.get({ url: '/purchase_order/purchaseorder/detail', params }) -} \ No newline at end of file +} diff --git a/src/views/order/purchase_order/component/details.vue b/src/views/order/purchase_order/component/details.vue new file mode 100644 index 00000000..72c28b6a --- /dev/null +++ b/src/views/order/purchase_order/component/details.vue @@ -0,0 +1,90 @@ + + + diff --git a/src/views/order/purchase_order/component/putStorage.vue b/src/views/order/purchase_order/component/putStorage.vue new file mode 100644 index 00000000..d7bd2bf1 --- /dev/null +++ b/src/views/order/purchase_order/component/putStorage.vue @@ -0,0 +1,154 @@ + + + diff --git a/src/views/order/purchase_order/component/storeTable.vue b/src/views/order/purchase_order/component/storeTable.vue new file mode 100644 index 00000000..aebdefc1 --- /dev/null +++ b/src/views/order/purchase_order/component/storeTable.vue @@ -0,0 +1,79 @@ + + + diff --git a/src/views/order/purchase_order/component/subOrder.vue b/src/views/order/purchase_order/component/subOrder.vue new file mode 100644 index 00000000..23d993ae --- /dev/null +++ b/src/views/order/purchase_order/component/subOrder.vue @@ -0,0 +1,80 @@ + + + diff --git a/src/views/order/purchase_order/details.vue b/src/views/order/purchase_order/details.vue new file mode 100644 index 00000000..11470b8c --- /dev/null +++ b/src/views/order/purchase_order/details.vue @@ -0,0 +1,96 @@ + + + diff --git a/src/views/purchase_order/edit.vue b/src/views/order/purchase_order/edit.vue similarity index 100% rename from src/views/purchase_order/edit.vue rename to src/views/order/purchase_order/edit.vue diff --git a/src/views/purchase_order/index.vue b/src/views/order/purchase_order/index.vue similarity index 53% rename from src/views/purchase_order/index.vue rename to src/views/order/purchase_order/index.vue index 31e85a67..6b0e1cc4 100644 --- a/src/views/purchase_order/index.vue +++ b/src/views/order/purchase_order/index.vue @@ -2,13 +2,25 @@
- - + + filterable + remote + reserve-keyword + placeholder="输入门店名称搜索" + remote-show-suffix + :remote-method="remoteMethod" + :loading="storeloading" + style="width: 240px" + > + + + + + + + + + + + + + + + 查询 重置 @@ -35,35 +70,33 @@ 提交今日商户采购订单 + + + 生成今日平台采购订单 +
- + + + + - - - + @@ -89,23 +122,48 @@ import { useDictData } from '@/hooks/useDictOptions' import { apiPurchaseOrderLists, apiPurchaseOrderDelete, - apiPurchaseOrderAdd + apiPurchaseOrderAdd, + apiPurchaseOrderPlatform } from '@/api/purchase_order' import { timeFormat } from '@/utils/util' import feedback from '@/utils/feedback' import EditPopup from './edit.vue' import { ElMessage, type FormInstance } from 'element-plus' +import { apiSystemStoreLists } from '@/api/system_store' +import { useRouter, useRoute } from 'vue-router' const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) +const storeloading = ref(false) +const storeList = ref([]) +const router = useRouter() // 查询条件 const queryParams = reactive({ store_id: '', - order_id: '' + order_id: '', + is_mer: '', + storage: '' }) - +const remoteMethod = (e = '') => { + storeloading.value = true + apiSystemStoreLists({ + name: e, + page_size: 50 + }) + .then((res) => { + storeList.value = res.lists + setTimeout(() => { + storeloading.value = false + }, 300) + }) + .catch((err) => { + setTimeout(() => { + storeloading.value = false + }, 300) + }) +} // 选中数据 const selectData = ref([]) @@ -130,20 +188,19 @@ const submitOrder = async () => { ElMessage.success('提交成功') }) } - -// 编辑 -const handleEdit = async (data: any) => { - showEdit.value = true - await nextTick() - editRef.value?.open('edit') - editRef.value?.setFormData(data) +const submitPlatformOrder = async () => { + apiPurchaseOrderPlatform().then((res) => { + ElMessage.success('提交成功') + }) } -// 删除 -const handleDelete = async (id: number | any[]) => { - await feedback.confirm('确定要删除?') - await apiPurchaseOrderDelete({ id }) - getLists() +const handleDetail = async (data: any) => { + router.push({ + path: '/order/purchase_order/details', + query: { + id: data.id + } + }) } getLists() diff --git a/src/views/order/store_order/details.vue b/src/views/order/store_order/details.vue index 1dd2f6cb..3f1ea75d 100644 --- a/src/views/order/store_order/details.vue +++ b/src/views/order/store_order/details.vue @@ -13,24 +13,26 @@
-
订单状态
-
{{ formData.status_name }}
+
订单状态
+
{{ formData.status_name }}
-
实际支付
-
¥{{ formData.pay_price }}
+
实际支付
+
¥{{ formData.pay_price }}
-
支付方式
-
- +
支付方式
+
+
-
支付时间
-
{{ formData.pay_time }}
+
支付时间
+
{{ formData.pay_time }}
-
@@ -52,7 +54,12 @@