diff --git a/src/components/Upload/Images.vue b/src/components/Upload/Images.vue index a04bad4..6b23200 100644 --- a/src/components/Upload/Images.vue +++ b/src/components/Upload/Images.vue @@ -167,17 +167,39 @@ watch( return } - fileList.value = newValue - .split(",") - .map((item: string) => { - const url = item.startsWith("http") ? item : imageBaseUrl + item - return { - name: item.split("/").pop() || "", - url: url, - fileUrl: item, - } - }) - .filter((item) => item.url) + if (!newValue.match(/x-oss-process/g)) { + fileList.value = newValue + .split(",") + .map((item: string) => { + const url = item.startsWith("http") ? item : imageBaseUrl + item + return { + name: item.split("/").pop() || "", + url: url, + fileUrl: item, + } + }) + .filter((item) => item.url) + + console.log("fileList.value", fileList.value) + } else { + fileList.value = newValue + .split("?") + .filter( + (item) => + item.endsWith(".jpg") || item.endsWith(".png") || item.endsWith(".gif") || item.endsWith(".jpeg") || item.endsWith(".webp"), + ) + .map((item: string) => { + const url = item.startsWith("http") ? item : imageBaseUrl + item + return { + name: item.split("/").pop() || "", + url: url, + fileUrl: item, + } + }) + .filter((item) => item.url) + + console.log("fileList.value", fileList.value) + } }, { immediate: true }, ) diff --git a/src/views/hard/hard-door-manager/index.vue b/src/views/hard/hard-door-manager/index.vue index da69135..29835da 100644 --- a/src/views/hard/hard-door-manager/index.vue +++ b/src/views/hard/hard-door-manager/index.vue @@ -177,6 +177,18 @@ + + + + + + + {{ "121121" }} + + + + + @@ -305,6 +317,7 @@ const checkOpenAccess = async () => { }) if (res.code == 0) { useMessage().success("操作成功") + await getDetail() return } useMessage().error(res.msg || "操作失败") @@ -325,6 +338,7 @@ const checkCloseAccess = async () => { }) if (res.code == 0) { useMessage().success("操作成功") + await getDetail() return } useMessage().error(res.msg || "操作失败") @@ -436,4 +450,69 @@ const deleteGoods = async (v: any) => { } } } +.el-timeline-right-content { + display: flex; + align-items: center; + min-height: 30px; + padding: 10px; + background-color: #409eff; + + &::before { + position: absolute; + top: 10px; + left: 13px; + border-color: transparent #409eff transparent transparent; + border-style: solid; + border-width: 8px; + content: ""; + } +} +// 时间线样式调整 +:deep(.el-timeline) { + margin: 10px 0 0 160px; + + .el-timeline-item__wrapper { + position: relative; + top: -20px; + + .el-timeline-item__timestamp { + position: absolute !important; + top: 10px; + left: -150px; + } + } + + .el-timeline-right-content { + display: flex; + align-items: center; + min-height: 30px; + padding: 10px; + background-color: #409eff; + + &::before { + position: absolute; + top: 10px; + left: 13px; + border-color: transparent #409eff transparent transparent; + border-style: solid; + border-width: 8px; + content: ""; + } + } + + .el-timeline-item__node { + position: absolute; + left: -5px; + top: -50%; + transform: translateY(100%); + display: flex; + width: 20px; + height: 20px; + font-size: 10px; + background: #409eff; + border-radius: 50%; + justify-content: center; + align-items: center; + } +} diff --git a/src/views/hard/hard-spu/form.vue b/src/views/hard/hard-spu/form.vue index 2a07d1c..c14a7bd 100644 --- a/src/views/hard/hard-spu/form.vue +++ b/src/views/hard/hard-spu/form.vue @@ -4,7 +4,7 @@ - + @@ -14,27 +14,27 @@ - + - + - + - + - + @@ -66,7 +66,7 @@ 是否标品 - + {{ v.label }} @@ -98,7 +98,7 @@ const loading = ref(false) // 定义字典 const { yes_no_type } = useDict("yes_no_type") // 提交表单数据 -const form = reactive({ +const form = reactive({ id: "", hardId: "", spuCategoryId: "", @@ -173,7 +173,7 @@ const gethardSpuData = (id: string) => { hardSpu .getObj(id) .then((res: any) => { - Object.assign(form, res.data, { price: displayPrice(res.data.price, "", 0) }) + Object.assign(form, res.data, { price: Number(displayPrice(res.data.price, "", 0)) }) }) .finally(() => { loading.value = false diff --git a/src/views/hard/hard-spu/index.vue b/src/views/hard/hard-spu/index.vue index 98f3e94..d833ff4 100644 --- a/src/views/hard/hard-spu/index.vue +++ b/src/views/hard/hard-spu/index.vue @@ -97,11 +97,18 @@ - - + + 编辑 - + 删除 diff --git a/src/views/hard/third-door-log/index.vue b/src/views/hard/third-door-log/index.vue index 405094f..bea0b3f 100644 --- a/src/views/hard/third-door-log/index.vue +++ b/src/views/hard/third-door-log/index.vue @@ -28,7 +28,7 @@ @sort-change="sortChangeHandle" > - + @@ -68,6 +68,7 @@ + diff --git a/src/views/wallet/wallet-recharge-apply/form.vue b/src/views/wallet/wallet-recharge-apply/form.vue index 40ff3b6..8addf21 100644 --- a/src/views/wallet/wallet-recharge-apply/form.vue +++ b/src/views/wallet/wallet-recharge-apply/form.vue @@ -17,7 +17,7 @@ - + @@ -66,6 +66,27 @@ const form = reactive({ remark: "", }) const walletTypeOptions = ref() +const walletTypeIdDisabled = ref(true) +watch( + () => form.bizType, + (val) => { + if (!val) return + + if (val == "2" && roleCodes.includes("CANTEEN_FINANCE")) { + walletTypeIdDisabled.value = false + } else { + walletTypeIdDisabled.value = true + if (roleCodes.includes("CAN_RECH_CONS_WALLET")) { + form.walletTypeId = walletTypeOptions.value?.find((item: any) => item.uniqueCode == "2").id || "" + } else { + form.walletTypeId = walletTypeOptions.value?.find((item: any) => item.uniqueCode == "1").id || "" + } + } + }, + { + immediate: true, + }, +) // 定义校验规则 const dataRules = ref({ @@ -85,19 +106,14 @@ const openDialog = async (id: string) => { form.walletTypeId = "" }) + const res = await getWalletTypeSimple() + walletTypeOptions.value = res.data.records + // 获取walletRechargeApply信息 if (id) { form.id = id await getwalletRechargeApplyData(id) } - - const res = await getWalletTypeSimple() - walletTypeOptions.value = res.data.records - if (roleCodes.includes("CAN_RECH_CONS_WALLET")) { - form.walletTypeId = res.data.records.find((item: any) => item.uniqueCode == "2").id - } else { - form.walletTypeId = res.data.records.find((item: any) => item.uniqueCode == "1").id - } } // 提交 diff --git a/src/views/wallet/wallet-recharge-apply/index.vue b/src/views/wallet/wallet-recharge-apply/index.vue index f8332a7..16a8e6f 100644 --- a/src/views/wallet/wallet-recharge-apply/index.vue +++ b/src/views/wallet/wallet-recharge-apply/index.vue @@ -126,8 +126,9 @@ type="primary" v-auth="'wallet_walletRechargeApply_view'" @click="doInfo(row)" - >数据 + 数据 + 申请 + 申请 + 编辑 + 编辑 + 删除 + 删除 + { } catch (error: any) { loading.close() if (error && error.code != 0) { - useMessage().error(error.msg) + // useMessage().error(error.msg) + ElMessage({ + message: h("div", { style: { maxHeight: "80vh", overflow: "auto", marginRight: "20px" } }, [ + h( + "table", + { style: { color: "#7f7f7f" } }, + error.msg.split("\n").map((item: string) => { + return h("tr", {}, [ + // h("td", { style: { padding: "0 4px", border: "1px solid #7f7f7f77", textAlign: "center" } }, index), + item.split(",").map((i: string) => { + return h("td", { style: { padding: "0 4px", border: "1px solid #7f7f7f77" } }, i) + }), + ]) + }), + ), + ]), + showClose: true, + duration: 10000, + type: "error", + }) } } } diff --git a/src/views/wallet/wallet-recharge-apply/preview-excel.vue b/src/views/wallet/wallet-recharge-apply/preview-excel.vue index 5b9c9b0..b0f9179 100644 --- a/src/views/wallet/wallet-recharge-apply/preview-excel.vue +++ b/src/views/wallet/wallet-recharge-apply/preview-excel.vue @@ -38,8 +38,16 @@ (余额不足记账扣款) - - + + + {{ data.tableListStr[i] }}