Commit dddd68ce by wangzhihui

feat(accountApproval): Implement new account approval feature

- Added account approval API with methods for fetching details and processing approvals.
- Created a new Vue component for account approval interface, including status display and action buttons.
- Updated routing to include account approval page.
- Enhanced state management for authorization and URL parameter handling.
- Added mock data for testing purposes.
- Included a new image asset for empty state representation.
1 parent 65f453a3
...@@ -25,7 +25,9 @@ ...@@ -25,7 +25,9 @@
// "source.organizeImports": "explicit", // "source.organizeImports": "explicit",
"source.fixAll.eslint": "explicit" "source.fixAll.eslint": "explicit"
}, },
"[vue]": {}, "[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"[javascript]": {}, "[javascript]": {},
"[javascriptreact]": {}, "[javascriptreact]": {},
"i18n-ally.sourceLanguage": "zh-chs", "i18n-ally.sourceLanguage": "zh-chs",
......
const url = '/rop-dj-car-boutique/router'
export default {
/** 新员工开账号审核-详情 */
getAccountApplyDetail(data = {}) {
data.method = 'dj.api.smartcarlife.staffBaseInfo.account.approval.detail'
return window.$HTTP({
url,
data,
returnAll: true
})
},
/** 新员工开账号审核-审批处理 */
auditAccountApply(data = {}) {
data.method = 'dj.api.smartcarlife.staffAccountApproval.process'
return window.$HTTP({
url,
data,
returnAll: true
})
}
}
const url = '/rop-dj-smartcarlife/router' const url = '/rop-dj-car-boutique/router'
export default { export default {
/** 获取订单待审核详情 */ /** 获取订单待审核详情 */
...@@ -12,7 +12,16 @@ export default { ...@@ -12,7 +12,16 @@ export default {
}, },
/** 订单申请审核 */ /** 订单申请审核 */
auditOrderApply(data = {}) { auditOrderApply(data = {}) {
data.method = 'dj.api.smartcarlife.goodsOrderApplyRecord.audit.update' data.method = 'dj.api.smartcarlife.goodsOrderApplyRecord.h5.audit.update'
return window.$HTTP({
url,
data,
returnAll: true
})
},
// 根据手机号查询员工信息,入参:phone
getStaffInfoByPhone(data = {}) {
data.method = 'dj.api.smartcarlife.query.staffInfoByPhone'
return window.$HTTP({ return window.$HTTP({
url, url,
data, data,
......
...@@ -120,6 +120,18 @@ const pages = { ...@@ -120,6 +120,18 @@ const pages = {
showAction: true showAction: true
} }
} }
],
accountApproval:[
{
name: 'index',
meta: {
keepAlive: true,
title: '新员工开账号审批',
noAuth: true,
backgroundColor: '#f7f8fa',
showAction: true
}
}
] ]
} }
let routes = [ let routes = [
......
...@@ -21,6 +21,83 @@ const state = { ...@@ -21,6 +21,83 @@ const state = {
import router from '@/router' import router from '@/router'
const EVECTION_AUTH_PATHS = ['/department', '/personage', '/company']
const APPROVAL_AUTH_PATHS = ['/orderApproval', '/accountApproval']
function saveUrlParams() {
const { corpId, agentId, phone, name, id, orderCode, uuid } = util.getQuery()
if (phone) util.setLocalStorage('ww_params_phone', phone)
if (name) util.setLocalStorage('ww_params_name', name)
if (id) util.setLocalStorage('ww_params_id', id)
if (uuid) util.setLocalStorage('ww_params_uuid', uuid)
if (orderCode) util.setLocalStorage('ww_orderCode', orderCode)
if (corpId) {
const ww_storage_info = util.getLocalStorage('ww_storage_info') || {}
ww_storage_info.corpId = corpId
if (agentId && agentId != 'undefined') ww_storage_info.agentId = agentId
util.setLocalStorage('ww_storage_info', ww_storage_info)
}
}
function needWwAuth(href) {
const pushId = util.getQuery('pushId')
const isEvectionPath = EVECTION_AUTH_PATHS.some(keyword => href.includes(keyword))
const isApprovalPath = APPROVAL_AUTH_PATHS.some(keyword => href.includes(keyword))
if (isEvectionPath && pushId && pushId * 1 > 744) return true
if (isApprovalPath) return true
return false
}
async function handleWwLogin({ commit }) {
const { corpId, agentId } = util.getQuery()
const wwCode = util.getQuery('code')
const { loginUrl } = window.$fetchConfig
let userInfo = util.getLocalStorage('ww_userInfo') || ''
if (userInfo && userInfo.timestamp) {
if (Date.now() - userInfo.timestamp <= 1000 * 60 * 1440) {
commit('SET_AUTHORIZE_PAGE', true)
commit('SET_SHOW_WINDOW', true)
return
}
}
if (wwCode) {
const res = await ssoApi.login({ code: wwCode, corpId, getUserInfoFlag: false })
const { code, data, message } = res
if (code == '0') {
commit('SET_AUTHORIZE_PAGE', true)
commit('SET_SHOW_WINDOW', true)
const hrefUrl = window.location.href
const newUrl = hrefUrl.replace(/([?&])code=[^&]*/, (match, prefix) => (prefix === '?' ? '?' : ''))
window.history.replaceState({}, '', newUrl)
if (data.loginList && data.loginList.length) {
const [item] = data.loginList
if (item.loginList && item.loginList.length) {
const [loginUserInfo] = item.loginList
if (loginUserInfo.phone) util.setLocalStorage('ww_params_phone', loginUserInfo.phone)
loginUserInfo.timestamp = Date.now()
util.setLocalStorage('ww_userInfo', loginUserInfo)
return
}
}
throw new Error('登录失败或无权限')
}
Notify({ message })
commit('SET_SHOW_WINDOW', false)
commit('SET_AUTHORIZE_PAGE', false)
return
}
commit('SET_AUTHORIZE_PAGE', false)
const ua = navigator.userAgent.toLowerCase()
if (ua.match(/MicroMessenger/i) && ua.match(/wxwork/i)) {
window.location.href = `${loginUrl}?redirect_uri=${encodeURIComponent(window.location.href)}&corpId=${corpId}&agentId=${agentId}&backLoginCode=BACKCODE`
} else {
Notify({ message: '请使用企业微信打开', duration: 72000000 })
}
}
const mutations = { const mutations = {
SET_PAGE_META(state, meta) { SET_PAGE_META(state, meta) {
state.pageMeta = meta state.pageMeta = meta
...@@ -49,97 +126,24 @@ const actions = { ...@@ -49,97 +126,24 @@ const actions = {
// window.$HTTP = new Http({ ...window.$fetchConfig, alert: Notify, headers: { token: sessionId } }) // window.$HTTP = new Http({ ...window.$fetchConfig, alert: Notify, headers: { token: sessionId } })
}, },
login({ dispatch, commit, state }) { login({ commit }) {
//获取当前路由路径 // 缓存 corpId/agentId 等公共参数,再进入 OAuth
const currentPath = window.location.href; saveUrlParams()
const pathKeywords = ['/department', '/personage', '/company']; const currentPath = window.location.href
const isTargetPath = pathKeywords.some(keyword => currentPath.includes(keyword)); if (needWwAuth(currentPath)) {
// const pathTitleMap = { handleWwLogin({ commit }).catch(error => {
// '/department': '美团消费部门月度总结', const message = error && error.message ? error.message : '登录失败或无权限'
// '/personage': '美团消费个人月度总结', Notify(message)
// '/company': '美团消费公司月度总结'
// };
// const matchedPath = Object.keys(pathTitleMap).find(path => currentPath.includes(path));
// if (matchedPath) {
// document.title = pathTitleMap[matchedPath];
// }
const pushId = util.getQuery('pushId');
if (isTargetPath && (pushId && (pushId * 1) > 744)) {
try {
let { corpId, agentId } = util.getQuery();
const wwCode = util.getQuery('code');
let { loginUrl } = window.$fetchConfig;
let userInfo = util.getLocalStorage('ww_userInfo') || '';
if (userInfo && userInfo.timestamp) {
//判断用户时间戳是否过期12小时
if (userInfo.timestamp && (Date.now() - userInfo.timestamp) > (1000 * 60 * 1440)) {
console.log('用户登录过期');
} else {
console.log('用户已经登录');
commit('SET_AUTHORIZE_PAGE', true);
return commit('SET_SHOW_WINDOW', true);
}
}
if (wwCode) {
ssoApi.login({ code: wwCode, corpId, getUserInfoFlag: false }).then(res => {
const { code, data, message } = res;
if (code == "0") {
commit('SET_AUTHORIZE_PAGE', true);
commit('SET_SHOW_WINDOW', true);
const hrefUrl = window.location.href;
const newUrl = hrefUrl.replace(/([?&])code=[^&]*/, (match, prefix) => { return prefix === '?' ? '?' : ''; });
window.history.replaceState({}, '', newUrl);
if (data.loginList && data.loginList.length) {
let [item] = data.loginList
if (item.loginList && item.loginList.length) {
let [userInfo] = item.loginList,
{ phone } = userInfo
if (phone) util.setLocalStorage('ww_params_phone', phone)
//获取当前时间戳
userInfo.timestamp = Date.now();
util.setLocalStorage('ww_userInfo', userInfo);
} else throw ''
} else throw ''
} else {
Notify({ message: message })
commit('SET_SHOW_WINDOW', false);
commit('SET_AUTHORIZE_PAGE', false);
}
}) })
} else { } else {
commit('SET_AUTHORIZE_PAGE', false); commit('SET_AUTHORIZE_PAGE', true)
//是否企微环境 commit('SET_SHOW_WINDOW', true)
const ua = navigator.userAgent.toLowerCase()
if (Boolean(ua.match(/MicroMessenger/i)) && Boolean(ua.match(/wxwork/i))) {
window.location.href = `${loginUrl}?redirect_uri=${encodeURIComponent(window.location.href)}&corpId=${corpId}&agentId=${agentId}&backLoginCode=BACKCODE`
} else {
Notify({ message: '请使用企业微信打开', duration: 72000000 })
}
}
} catch (error) {
if (!error) error = '登录失败或无权限'
if (error) Notify(typeof error === 'string' ? error : error.toString())
}
} else {
commit('SET_AUTHORIZE_PAGE', true);
commit('SET_SHOW_WINDOW', true);
} }
}, },
navigation({ dispatch, commit }, to) { navigation({ dispatch, commit }) {
let { corpId, agentId, phone, name, id ,orderCode} = util.getQuery(), saveUrlParams()
userInfo = util.getLocalStorage('ww_userInfo') const userInfo = util.getLocalStorage('ww_userInfo')
if (phone) util.setLocalStorage('ww_params_phone', phone)
if (name) util.setLocalStorage('ww_params_name', name)
if (id) util.setLocalStorage('ww_params_id', id)
if (orderCode) util.setLocalStorage('ww_orderCode', orderCode)
dispatch('registerHttp') dispatch('registerHttp')
if (corpId) {
let ww_storage_info = {}
ww_storage_info.corpId = corpId
if (agentId && agentId != 'undefined') ww_storage_info.agentId = agentId
util.setLocalStorage('ww_storage_info', ww_storage_info)
}
if (userInfo) { if (userInfo) {
commit('SET_SHOW_WINDOW', true) commit('SET_SHOW_WINDOW', true)
} else { } else {
......
这是一个新员工开账号审核,页面样式跟src\views\orderApproval样式一模一样( 去掉商品信息)
基本信息的字段如下:
员工姓名:staffName
手机号:staffPhone
归属门店:merchantName
关联业务:staffSceneLabelText
驻店类型:stationType 门店常驻:1,临时调动支撑:2
区域运营:
提单时间:
后端接口还未提供,先用假数据显示当前页面,接口位置先提供,后期有的话我再替换
export default {
code: 0,
message: 'success',
data: {
id: 10001,
staffId: 20001,
staffName: '金晨',
staffPhone: '13893047470',
merchantId: 44212556,
merchantName: 'xxxx汽车销售服务有限公司',
sceneList: JSON.stringify([
{ sceneName: '权益' },
{ sceneName: '延保' }
]),
yqMerchantList: JSON.stringify([
{ yqMerchantName: 'D+西藏迅捷网界园区店', merchantId: 44212979 }
]),
createdSource: 1,
stationType: 2,
submitterAccount: 'glsadmin',
submitterName: '区域运营人员',
submitterPhone: '13800000000',
submitterUuid: 'uuid-001',
approvalStatus: 0,
approverUuid: null,
approverName: null,
approvalTime: null,
approvalRemark: null
}
}
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div class="container"> <div class="container">
<div class="label"> <div class="label">
{{ infoData.label }} {{ infoData.label }}
<span v-if="infoData.type == 2" class="required-label">*</span> <span v-if="infoData.type == 2 && rejectRemarkRequired" class="required-label">*</span>
</div> </div>
<div class="textarea-wrap"> <div class="textarea-wrap">
<van-field <van-field
...@@ -50,6 +50,10 @@ export default { ...@@ -50,6 +50,10 @@ export default {
show: { show: {
type: Boolean, type: Boolean,
default: false default: false
},
rejectRemarkRequired: {
type: Boolean,
default: false
} }
}, },
data() { data() {
...@@ -78,7 +82,7 @@ export default { ...@@ -78,7 +82,7 @@ export default {
}, },
methods: { methods: {
onConfirm() { onConfirm() {
if (this.infoData.type == 2 && !this.remark) { if (this.rejectRemarkRequired && this.infoData.type == 2 && !this.remark) {
Toast('请输入驳回备注') Toast('请输入驳回备注')
return return
} }
......
<template> <template>
<div class="page-container"> <div>
<div v-show="!$store.state.app.authorizePage" class="page-container">
<div class="content-scroll" :class="{ 'has-footer': orderInfo.status == 1 }"> <div class="content-scroll" :class="{ 'has-footer': orderInfo.status == 1 }">
<!-- 审核状态 --> <!-- 审核状态 -->
<div v-if="currentStatus" class="status-section"> <div v-if="currentStatus" class="status-section">
...@@ -13,12 +14,7 @@ ...@@ -13,12 +14,7 @@
<!-- 订单信息 --> <!-- 订单信息 -->
<div class="section"> <div class="section">
<div class="section-title">订单信息</div> <div class="section-title">订单信息</div>
<div <div v-for="(item, index) in displayOrderForm" :key="index" class="info-item" :class="{ 'flex-start': item.flexStart }">
v-for="(item, index) in displayOrderForm"
:key="index"
class="info-item"
:class="{ 'flex-start': item.flexStart }"
>
<span class="info-label">{{ item.label }}</span> <span class="info-label">{{ item.label }}</span>
<template v-if="item.format"> <template v-if="item.format">
<div class="info-value">{{ djOrderTypeMap[orderInfo[item.key]] || '-' }}</div> <div class="info-value">{{ djOrderTypeMap[orderInfo[item.key]] || '-' }}</div>
...@@ -32,12 +28,7 @@ ...@@ -32,12 +28,7 @@
</template> </template>
<template v-else-if="item.image"> <template v-else-if="item.image">
<div v-if="orderInfo[item.key] && orderInfo[item.key].length" class="image-value"> <div v-if="orderInfo[item.key] && orderInfo[item.key].length" class="image-value">
<div <div v-for="(subItem, subIndex) in orderInfo[item.key]" :key="subIndex" class="image-item" @click="previewImage(orderInfo[item.key], subIndex)">
v-for="(subItem, subIndex) in orderInfo[item.key]"
:key="subIndex"
class="image-item"
@click="previewImage(orderInfo[item.key], subIndex)"
>
<van-image :src="subItem.payVoucher" fit="cover" width="56" height="56" radius="8" /> <van-image :src="subItem.payVoucher" fit="cover" width="56" height="56" radius="8" />
</div> </div>
</div> </div>
...@@ -45,24 +36,18 @@ ...@@ -45,24 +36,18 @@
</template> </template>
<template v-else> <template v-else>
<span class="info-value"> <span class="info-value">
<span v-if="item.unit" class="unit">{{ item.unit }}</span>{{ getFieldValue(item) }} <span v-if="item.unit" class="unit">{{ item.unit }}</span>
{{ getFieldValue(item) }}
</span> </span>
</template> </template>
</div> </div>
</div> </div>
<!-- 原错误订单商品信息 --> <!-- 原错误订单商品信息 -->
<goods-order-item <goods-order-item v-if="orderInfo.oldOrderCode" title="原错误订单商品信息" :goods-data="orderInfo.oldGoodsOrderDTO || {}" />
v-if="orderInfo.oldOrderCode"
title="原错误订单商品信息"
:goods-data="orderInfo.oldGoodsOrderDTO || {}"
/>
<!-- 新订单 / 普通订单 --> <!-- 新订单 / 普通订单 -->
<goods-order-item <goods-order-item :title="orderInfo.oldOrderCode ? '新订单商品信息' : '商品信息'" :goods-data="orderInfo.goodsOrderDTO || {}" />
:title="orderInfo.oldOrderCode ? '新订单商品信息' : '商品信息'"
:goods-data="orderInfo.goodsOrderDTO || {}"
/>
<!-- 审核日志 --> <!-- 审核日志 -->
<div v-if="orderInfo.status != 1 && orderInfo.applyLogList && orderInfo.applyLogList.length" class="section"> <div v-if="orderInfo.status != 1 && orderInfo.applyLogList && orderInfo.applyLogList.length" class="section">
...@@ -74,18 +59,12 @@ ...@@ -74,18 +59,12 @@
<div class="dot-wrapper"> <div class="dot-wrapper">
<div class="dot" :class="index == 0 ? 'step-active' : 'step-done'"></div> <div class="dot" :class="index == 0 ? 'step-active' : 'step-done'"></div>
</div> </div>
<div <div v-if="orderInfo.applyLogList.length > 1 && index != orderInfo.applyLogList.length - 1" class="status-line step-done"></div>
v-if="orderInfo.applyLogList.length > 1 && index != orderInfo.applyLogList.length - 1"
class="status-line step-done"
></div>
</div> </div>
<div class="timeline-content"> <div class="timeline-content">
<div class="log-status-text"> <div class="log-status-text">
<span class="mar-r16">{{ statusForShow[item.beforeStatus] && statusForShow[item.beforeStatus].text }}</span> <span class="mar-r16">{{ statusForShow[item.beforeStatus] && statusForShow[item.beforeStatus].text }}</span>
<span <span class="status mar-r16" :class="item.afterStatus == 2 || item.afterStatus == 3 ? 'success' : 'error'">
class="status mar-r16"
:class="item.afterStatus == 2 || item.afterStatus == 3 ? 'success' : 'error'"
>
{{ statusForShow[item.afterStatus] && statusForShow[item.afterStatus].status }} {{ statusForShow[item.afterStatus] && statusForShow[item.afterStatus].status }}
</span> </span>
<template v-if="item.afterStatus == 4"> <template v-if="item.afterStatus == 4">
...@@ -113,18 +92,14 @@ ...@@ -113,18 +92,14 @@
</div> </div>
<!-- 底部操作按钮 --> <!-- 底部操作按钮 -->
<div v-if="orderInfo.status == 1" class="footer-btn"> <div v-if="orderInfo.status == 2" class="footer-btn">
<div class="btn cancel" @click="reject">驳回</div> <div class="btn cancel" @click="reject">驳回</div>
<div class="btn confirm" @click="pass">通过</div> <div class="btn confirm" @click="pass">通过</div>
</div> </div>
<approval-popup <approval-popup v-if="showPopup" :show="showPopup" :info-data="popupInfo" :reject-remark-required="true" @confirm="handlePopupConfirm" @cancel="hidePopup" />
v-if="showPopup" </div>
:show="showPopup" <div v-show="$store.state.app.authorizePage" class="loading-box">正在登录授权中...</div>
:info-data="popupInfo"
@confirm="handlePopupConfirm"
@cancel="hidePopup"
/>
</div> </div>
</template> </template>
...@@ -135,21 +110,21 @@ import orderApprovalApi from '@/api/orderApproval' ...@@ -135,21 +110,21 @@ import orderApprovalApi from '@/api/orderApproval'
import mockOrderDetailRes from './mockData' import mockOrderDetailRes from './mockData'
import GoodsOrderItem from './components/goodsOrderItem.vue' import GoodsOrderItem from './components/goodsOrderItem.vue'
import ApprovalPopup from './components/approvalPopup.vue' import ApprovalPopup from './components/approvalPopup.vue'
import store from '@/store'
export default { export default {
name: 'OrderApproval', name: 'OrderApproval',
components: { GoodsOrderItem, ApprovalPopup }, components: { GoodsOrderItem, ApprovalPopup },
data() { data() {
return { return {
//getLocalStorage('ww_orderCode') || orderCode: '',
orderCode: '260601152927430',
orderInfo: {}, orderInfo: {},
showPopup: false, showPopup: false,
popupInfo: {}, popupInfo: {},
submitFlag: false, submitFlag: false,
statusMap: { statusMap: {
1: { name: '待审核', tips: '请尽快处理', icon: 'more-o', color: '#FF9D0A' }, 2: { name: '待审核', tips: '请尽快处理', icon: 'more-o', color: '#FF9D0A' },
2: { name: '已审核', tips: '订单已流转至线上运营审核', icon: 'passed', color: '#35C376' }, // 2: { name: '已审核', tips: '订单已流转至线上运营审核', icon: 'passed', color: '#35C376' },
3: { name: '已审核', tips: '订单已被线上运营审核通过', icon: 'passed', color: '#35C376' }, 3: { name: '已审核', tips: '订单已被线上运营审核通过', icon: 'passed', color: '#35C376' },
4: { name: '已驳回', tips: '订单已驳回', icon: 'warning-o', color: '#666666' } 4: { name: '已驳回', tips: '订单已驳回', icon: 'warning-o', color: '#666666' }
}, },
...@@ -197,12 +172,39 @@ export default { ...@@ -197,12 +172,39 @@ export default {
} }
}, },
created() { created() {
console.log(this.orderCode) // 先缓存链接业务参数,避免 OAuth 跳转后 orderCode 丢失
if (this.orderCode) { this.initPageParams()
// store.dispatch('login')
},
watch: {
'$store.state.app.authorizePage': {
immediate: true,
handler(val) {
if (val && this.orderCode) {
this.loadOrderDetail(this.orderCode) this.loadOrderDetail(this.orderCode)
this.loadStaffInfoByPhone(this.phone)
}
}
} }
}, },
methods: { methods: {
initPageParams() {
const { orderCode } = this.$route.query
if (orderCode) this.setLocalStorage('ww_orderCode', orderCode)
// 授权回调后 URL 可能只剩 code,从缓存读取
this.orderCode = this.getLocalStorage('ww_orderCode') || ''
this.phone = this.getLocalStorage('ww_params_phone') || '15814019200'
if (this.phone) {
this.loadStaffInfoByPhone(this.phone)
}
this.loadOrderDetail(this.orderCode)
},
loadStaffInfoByPhone(phone) {
orderApprovalApi.getStaffInfoByPhone({ phone }).then(res => {
console.log(res)
this.userInfo = res.data
})
},
getFieldValue(item) { getFieldValue(item) {
const val = this.orderInfo[item.key] const val = this.orderInfo[item.key]
return val || val === 0 ? val : '-' return val || val === 0 ? val : '-'
...@@ -242,24 +244,20 @@ export default { ...@@ -242,24 +244,20 @@ export default {
this.showLoading() this.showLoading()
try { try {
// TODO: 联调时切换为真实接口 // TODO: 联调时切换为真实接口
const res = mockOrderDetailRes // const res = mockOrderDetailRes
// const res = await orderApprovalApi.getOrderApplyDetail({ orderCode }) const res = await orderApprovalApi.getOrderApplyDetail({ orderCode })
this.hideLoading() this.hideLoading()
const { code, data, message } = res const { code, data, message } = res
if (code == 0) { if (code == 0) {
const processedData = this.processOrderData(data || {}) const processedData = this.processOrderData(data || {})
if (data?.applyLogList) { if (data?.applyLogList) {
data.applyLogList.forEach(val => { data.applyLogList.forEach(val => {
val.createdDateStr = val.createdDate val.createdDateStr = val.createdDate ? dayjs(val.createdDate).format('YYYY-MM-DD HH:mm:ss') : '-'
? dayjs(val.createdDate).format('YYYY-MM-DD HH:mm:ss')
: '-'
}) })
} }
this.orderInfo = { this.orderInfo = {
...processedData, ...processedData,
applyDate: data.applyDate applyDate: data.applyDate ? dayjs(data.applyDate).format('YYYY-MM-DD HH:mm:ss') : '-',
? dayjs(data.applyDate).format('YYYY-MM-DD HH:mm:ss')
: '-',
oldOrderCode: data?.oldGoodsOrderDTO?.orderCode || '' oldOrderCode: data?.oldGoodsOrderDTO?.orderCode || ''
} }
} else { } else {
...@@ -296,7 +294,8 @@ export default { ...@@ -296,7 +294,8 @@ export default {
const res = await orderApprovalApi.auditOrderApply({ const res = await orderApprovalApi.auditOrderApply({
auditResult: this.popupInfo?.type, auditResult: this.popupInfo?.type,
orderCode: this.orderInfo.orderCode, orderCode: this.orderInfo.orderCode,
remark remark,
operatorName: this.userInfo.staffName
}) })
this.hideLoading() this.hideLoading()
this.submitFlag = false this.submitFlag = false
...@@ -317,6 +316,14 @@ export default { ...@@ -317,6 +316,14 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.loading-box {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #999999;
font-size: 14px;
}
.page-container { .page-container {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -499,6 +506,10 @@ export default { ...@@ -499,6 +506,10 @@ export default {
color: #999999; color: #999999;
margin-right: 8px; margin-right: 8px;
} }
.value {
word-wrap: break-word;
word-break: break-all;
}
} }
} }
} }
......
...@@ -9,7 +9,7 @@ export default { ...@@ -9,7 +9,7 @@ export default {
"sellerName": "wql", "sellerName": "wql",
"merchantId": 44212556, "merchantId": 44212556,
"merchantName": "0918测试1.1.2-门店", "merchantName": "0918测试1.1.2-门店",
"status": 2, "status":1,
"applyDate": 1769671815000, "applyDate": 1769671815000,
"orderRemark": "", "orderRemark": "",
"outTradeNo": "4gfged", "outTradeNo": "4gfged",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!