更换正式环境,测试修改

This commit is contained in:
GaoHao
2025-03-25 21:49:33 +08:00
parent f01bc839f7
commit 7fe5d028e4
71 changed files with 930 additions and 2016 deletions

View File

@@ -20,14 +20,10 @@ export function canTuiKuan(orderInfo, item) {
if( item ){
return (orderInfo.status == 'done' || orderInfo.status == 'part_refund')
&& item.status != 'return' && item.status != 'refund' && item.status != 'refunding'
&& (item.returnAmount < item.num*item.unitPrice)
&& (item.returnNum < item.num)
} else {
let goodsList = []
let data = false;
Object.entries(orderInfo.detailMap).map(([key, value]) => (
goodsList = [...goodsList,...value]
))
goodsList.some((v,i)=>{
uni.$utils.objToArrary(orderInfo.detailMap).some((v,i)=>{
if( orderInfo.refundAmount < orderInfo.payAmount || (orderInfo.status == 'done' || orderInfo.status == 'part_refund' ) && v.status != 'return' && v.status != 'refund' && v.status != 'refunding' && (v.returnNum+v.refundNum < v.num) ){
data = true
return data