Commit b671178f authored by 我在何方's avatar 我在何方
parents b20b4bb0 91bec0ed
......@@ -69,7 +69,7 @@
</el-table-column>
<el-table-column label="操作">
<template v-slot:default='scope'>
<el-button type="text" @click ="guanlianOrderByOrderId(scope.row.orderId)">
<el-button type="text" @click ="guanlianOrderByOrderId(scope.row.relateOrderId)">
移出
</el-button>
</template>
......
......@@ -336,9 +336,21 @@ export default {
// 根据状态获取状态名称 ,这个应该可以改成字典,目前接口缺少相关数据,待定
statusName() {
return row => {
if(row.blacklist) return '黑名单';
if(row.auditStatus === AuditStatusEnum.PASS) return '已审核';
return '已下架';
//判断价格是否过期
let validateStartDate = row.validateStartDate;
let validateEndDate = row.validateEndDate;
let notSetPrice = false;
let nowDate = new Date().getTime();
if(validateStartDate && validateStartDate > nowDate) {
notSetPrice = true;
}
if(validateEndDate && validateEndDate < nowDate) {
notSetPrice = true;
}
let setPriceText = notSetPrice ? '(未设置价格)' : '';
if(row.blacklist) return '黑名单' + setPriceText;
if(row.auditStatus === AuditStatusEnum.PASS) return '已审核' + setPriceText;
return '已下架' + setPriceText;
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment