diff --git a/.env.production b/.env.production index 370d4f4..3fce6a9 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ VITE_NOW_TYPE = 'build' -VITE_PUSH_URL = 'ws://192.168.1.22:3133' -VITE_BASE_URL = 'https://shop.lihaink.cn' \ No newline at end of file +VITE_PUSH_URL ='wss://erp.lihaink.cn/pull' +VITE_BASE_URL = 'https://erp.lihaink.cn' \ No newline at end of file diff --git a/src/api/store.js b/src/api/store.js index a4f83ba..4b70cb8 100644 --- a/src/api/store.js +++ b/src/api/store.js @@ -118,7 +118,7 @@ export function saleOrderListApi(data) { * @description 采购订单提交 */ export function createOrderApi(data) { - return request.get(`/order/OpurchaseOrder/createOrder`, { params: data }) + return request.post(`/order/OpurchaseOrder/createOrder`, { params: data }) } /** diff --git a/src/layout/myHeader.vue b/src/layout/myHeader.vue index fb31978..69f9994 100644 --- a/src/layout/myHeader.vue +++ b/src/layout/myHeader.vue @@ -34,6 +34,7 @@ const connect = () => { if (res.h5) ElMessage.error("请使用APP连接打印机"); else { printStore.setConnect(false); + printStore.setPrintAddress(''); dialogVisible.value = false; uni.postMessage({ data: { @@ -87,8 +88,10 @@ onMounted(() => { function (event) { // alert(JSON.stringify(event.data)); if (event.data.type === "connect") { + let str = event.data.data.address; printStore.setConnect(true); - ElMessage.success("已连接打印机T58"); + printStore.setPrintAddress(str); + ElMessage.success("已连接打印机T58("+str+")"); } }, false @@ -128,13 +131,14 @@ onUnmounted(() => { 打印自检 -