fix(emptyOrder): 空单注册选购产品相关bug修复

This commit is contained in:
woody 2025-05-16 15:26:06 +08:00
parent 67b71d8418
commit 4160d08a28
2 changed files with 44 additions and 6 deletions

View File

@ -1451,6 +1451,13 @@ export default {
}) })
return false return false
} else { } else {
if (!this.selectData.selSkuNameList || !this.selectData.selSkuList) {
this.$message({
message: '请产品选择规格',
type: 'warning'
})
return false
}
const obj = { const obj = {
pkProduct: this.selectData.pkId, pkProduct: this.selectData.pkId,
productCode: this.selectData.productCode, productCode: this.selectData.productCode,

View File

@ -226,16 +226,47 @@
align="center" align="center"
label="选购产品" label="选购产品"
min-width="200" min-width="200"
show-overflow-tooltip >
/> <template slot-scope="scope">
<div v-for="(item,idx) in scope.row.detailList || []" :key="idx">
<el-tooltip :content="item.productName" placement="top" :disabled="!item.productName || item.productName.length < 15">
<div style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">
{{ item.productName }}
</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column <el-table-column
align="center" align="center"
label="产品规格" label="产品规格"
/> min-width="180"
>
<template slot-scope="scope">
<div v-for="(item,idx) in scope.row.detailList || []" :key="idx">
<el-tooltip :content="item.specsName" placement="top" :disabled="!item.specsName || item.specsName.length < 10">
<div style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">
{{ item.specsName }}
</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column <el-table-column
align="center" align="center"
label="产品数量" label="产品数量"
/> min-width="180"
>
<template slot-scope="scope">
<div v-for="(item,idx) in scope.row.detailList || []" :key="idx">
<el-tooltip :content="String(item.quantity)" placement="top" :disabled="String(item.quantity).length < 5">
<div style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">
{{ item.quantity }}
</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="recName" prop="recName"
@ -443,9 +474,9 @@ export default {
}) })
}, },
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) { if (rowIndex % 2 === 1) {
return 'warning-row' return 'warning-row'
} else if (rowIndex % 2 == 0) { } else if (rowIndex % 2 === 0) {
return 'success-row' return 'success-row'
} }
return '' return ''