diff --git a/src/api/pay/merchant/index.ts b/src/api/pay/merchant/index.ts index bfb8f5e4..bb630c36 100644 --- a/src/api/pay/merchant/index.ts +++ b/src/api/pay/merchant/index.ts @@ -39,9 +39,9 @@ export const getMerchant = (id: number) => { } // 根据商户名称搜索商户列表 -export const getMerchantListByName = (name: string) => { +export const getMerchantListByName = (name?: string) => { return request.get({ - url: '/pay/merchant/list-by-name?id=', + url: '/pay/merchant/list-by-name', params: { name: name } diff --git a/src/api/pay/order/index.ts b/src/api/pay/order/index.ts index 6088c172..6621381a 100644 --- a/src/api/pay/order/index.ts +++ b/src/api/pay/order/index.ts @@ -88,6 +88,11 @@ export const getOrder = async (id: number) => { return await request.get({ url: '/pay/order/get?id=' + id }) } +// 获得支付订单的明细 +export const getOrderDetail = async (id: number) => { + return await request.get({ url: '/pay/order/get-detail?id=' + id }) +} + // 新增支付订单 export const createOrder = async (data: OrderVO) => { return await request.post({ url: '/pay/order/create', data }) diff --git a/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue b/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue index a14b0b60..fb1af307 100644 --- a/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue +++ b/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue @@ -188,7 +188,13 @@ - + @@ -196,10 +202,7 @@ {{ previewResult }} - - + @@ -231,7 +234,7 @@ import activitiModdleExtension from './plugins/extension-moddle/activiti' import flowableModdleExtension from './plugins/extension-moddle/flowable' // 引入json转换与高亮 // import xml2js from 'xml-js' -import xml2js from 'fast-xml-parser' +// import xml2js from 'fast-xml-parser' import { XmlNode, XmlNodeType, parseXmlString } from 'steady-xml' // 代码高亮插件 // import hljs from 'highlight.js/lib/highlight' @@ -626,7 +629,7 @@ const elementsAlign = (align) => { const previewProcessXML = () => { console.log(bpmnModeler.saveXML, 'bpmnModeler') bpmnModeler.saveXML({ format: true }).then(({ xml }) => { - console.log(xml, 'xml111111') + // console.log(xml, 'xml111111') previewResult.value = xml previewType.value = 'xml' previewModelVisible.value = true @@ -634,7 +637,7 @@ const previewProcessXML = () => { } const previewProcessJson = () => { bpmnModeler.saveXML({ format: true }).then(({ xml }) => { - console.log(xml, 'xml') + // console.log(xml, 'xml') // const rootNode = parseXmlString(xml) // console.log(rootNode, 'rootNoderootNode') @@ -644,9 +647,9 @@ const previewProcessJson = () => { // console.log(JSON.stringify(rootNodes.parent.toJsObject()), 'rootNodes.toJSON()') // console.log(JSON.stringify(rootNodes.parent.toJSON()), 'rootNodes.toJSON()') - const parser = new xml2js.XMLParser() - let jObj = parser.parse(xml) - console.log(jObj, 'jObjjObjjObjjObjjObj') + // const parser = new xml2js.XMLParser() + // let jObj = parser.parse(xml) + // console.log(jObj, 'jObjjObjjObjjObjjObj') // const builder = new xml2js.XMLBuilder(xml) // const xmlContent = builder // console.log(xmlContent, 'xmlContent') diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts index 6558357f..75cf16d9 100644 --- a/src/types/auto-imports.d.ts +++ b/src/types/auto-imports.d.ts @@ -6,7 +6,6 @@ export {} declare global { const DICT_TYPE: typeof import('@/utils/dict')['DICT_TYPE'] const EffectScope: typeof import('vue')['EffectScope'] - const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] const computed: typeof import('vue')['computed'] const createApp: typeof import('vue')['createApp'] const customRef: typeof import('vue')['customRef'] diff --git a/src/views/bpm/oa/leave/detail.vue b/src/views/bpm/oa/leave/detail.vue index 31e54de3..838be149 100644 --- a/src/views/bpm/oa/leave/detail.vue +++ b/src/views/bpm/oa/leave/detail.vue @@ -1,5 +1,5 @@ - + @@ -21,13 +21,13 @@ import { DICT_TYPE } from '@/utils/dict' import { formatDate } from '@/utils/formatTime' import * as LeaveApi from '@/api/bpm/leave' -const modelVisible = ref(false) // 弹窗的是否展示 +const dialogVisible = ref(false) // 弹窗的是否展示 const detailLoading = ref(false) // 表单的加载中 const detailData = ref() // 详情数据 /** 打开弹窗 */ const open = async (data: LeaveApi.LeaveVO) => { - modelVisible.value = true + dialogVisible.value = true // 设置数据 detailLoading.value = true try { diff --git a/src/views/pay/app/AppForm.vue b/src/views/pay/app/AppForm.vue index cacf49b2..2e6c81da 100644 --- a/src/views/pay/app/AppForm.vue +++ b/src/views/pay/app/AppForm.vue @@ -1,5 +1,5 @@ - + - - + { formLoading.value = false } } - await handleGetMerchantListByName(null) + // 加载商户列表 + merchantList.value = await MerchantApi.getMerchantListByName() } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 @@ -134,14 +126,6 @@ const submitForm = async () => { } } -/** - * 根据商户名称模糊匹配商户信息 - * @param name 商户名称 - */ -const handleGetMerchantListByName = async (name) => { - merchantList.value = await MerchantApi.getMerchantListByName(name) -} - /** 重置表单 */ const resetForm = () => { formData.value = { diff --git a/src/views/pay/app/index.vue b/src/views/pay/app/index.vue index 0c510b8f..4bafeed8 100644 --- a/src/views/pay/app/index.vue +++ b/src/views/pay/app/index.vue @@ -52,24 +52,16 @@ class="!w-240px" /> - - - - 搜索 - - - - 重置 - + 搜索 + 重置 - - 新增 + 新增 - - 导出 + 导出 @@ -97,13 +88,13 @@ - + @@ -114,20 +105,20 @@ type="danger" circle @click=" - handleCreateChannel(scope.row, payChannelEnum.ALIPAY_APP.code, payType.ALIPAY) + handleCreateChannel(scope.row, PayChannelEnum.ALIPAY_APP.code, PayType.ALIPAY) " > - + @@ -135,20 +126,20 @@ v-else type="danger" circle - @click="handleCreateChannel(scope.row, payChannelEnum.ALIPAY_PC.code, payType.ALIPAY)" + @click="handleCreateChannel(scope.row, PayChannelEnum.ALIPAY_PC.code, PayType.ALIPAY)" > - + @@ -158,20 +149,20 @@ type="danger" circle @click=" - handleCreateChannel(scope.row, payChannelEnum.ALIPAY_WAP.code, payType.ALIPAY) + handleCreateChannel(scope.row, PayChannelEnum.ALIPAY_WAP.code, PayType.ALIPAY) " > - + @@ -179,20 +170,20 @@ v-else type="danger" circle - @click="handleCreateChannel(scope.row, payChannelEnum.ALIPAY_QR.code, payType.ALIPAY)" + @click="handleCreateChannel(scope.row, PayChannelEnum.ALIPAY_QR.code, PayType.ALIPAY)" > - + @@ -202,7 +193,7 @@ type="danger" circle @click=" - handleCreateChannel(scope.row, payChannelEnum.ALIPAY_BAR.code, payType.ALIPAY) + handleCreateChannel(scope.row, PayChannelEnum.ALIPAY_BAR.code, PayType.ALIPAY) " > @@ -211,13 +202,13 @@ - + @@ -225,19 +216,19 @@ v-else type="danger" circle - @click="handleCreateChannel(scope.row, payChannelEnum.WX_LITE.code, payType.WECHAT)" + @click="handleCreateChannel(scope.row, PayChannelEnum.WX_LITE.code, PayType.WECHAT)" > - + @@ -245,19 +236,19 @@ v-else type="danger" circle - @click="handleCreateChannel(scope.row, payChannelEnum.WX_PUB.code, payType.WECHAT)" + @click="handleCreateChannel(scope.row, PayChannelEnum.WX_PUB.code, PayType.WECHAT)" > - + @@ -265,7 +256,7 @@ v-else type="danger" circle - @click="handleCreateChannel(scope.row, payChannelEnum.WX_APP.code, payType.WECHAT)" + @click="handleCreateChannel(scope.row, PayChannelEnum.WX_APP.code, PayType.WECHAT)" > @@ -312,15 +303,13 @@ - + diff --git a/src/views/pay/order/index.vue b/src/views/pay/order/index.vue index f70801d3..ba04d0d9 100644 --- a/src/views/pay/order/index.vue +++ b/src/views/pay/order/index.vue @@ -5,24 +5,14 @@ :model="queryParams" ref="queryFormRef" :inline="true" - label-width="120px" + label-width="100px" > { - queryParams.merchantId = null - } - " - filterable - remote - reserve-keyword placeholder="请选择所属商户" - @change="handleGetAppListByMerchantId" - :remote-method="handleGetMerchantListByName" - :loading="merchantLoading" + class="!w-240px" > - + @@ -42,14 +37,10 @@ v-model="queryParams.channelCode" placeholder="请输入渠道编码" clearable - @clear=" - () => { - queryParams.channelCode = null - } - " + class="!w-240px" > @@ -70,25 +62,36 @@ placeholder="请输入渠道订单号" clearable @keyup.enter="handleQuery" + class="!w-240px" /> - + - + @@ -97,12 +100,13 @@ v-model="queryParams.notifyStatus" placeholder="请选择订单回调商户状态" clearable + class="!w-240px" > @@ -118,14 +122,8 @@ /> - - - 搜索 - - - - 重置 - + 搜索 + 重置 - - 导出 + 导出 - + + @@ -151,17 +149,17 @@ - + - + - 商户 + 商户 {{ scope.row.merchantOrderId }} - 支付 + 支付 {{ scope.row.channelOrderNo }} @@ -195,35 +193,29 @@ label="创建时间" align="center" prop="createTime" - width="100" + width="180" :formatter="dateFormatter" /> - + 查看详情 + > + 详情 - - + - + - - diff --git a/src/views/pay/refund/index.vue b/src/views/pay/refund/index.vue index b8a949e7..a17f5552 100644 --- a/src/views/pay/refund/index.vue +++ b/src/views/pay/refund/index.vue @@ -227,7 +227,7 @@ - + - +
@@ -196,10 +202,7 @@ {{ previewResult }}
- 商户 + 商户 {{ scope.row.merchantOrderId }}
- 支付 + 支付 {{ scope.row.channelOrderNo }}