fix(emptyOrder): 空单注册选购产品相关bug修复
This commit is contained in:
parent
67b71d8418
commit
4160d08a28
|
@ -1451,6 +1451,13 @@ export default {
|
|||
})
|
||||
return false
|
||||
} else {
|
||||
if (!this.selectData.selSkuNameList || !this.selectData.selSkuList) {
|
||||
this.$message({
|
||||
message: '请产品选择规格',
|
||||
type: 'warning'
|
||||
})
|
||||
return false
|
||||
}
|
||||
const obj = {
|
||||
pkProduct: this.selectData.pkId,
|
||||
productCode: this.selectData.productCode,
|
||||
|
|
|
@ -226,16 +226,47 @@
|
|||
align="center"
|
||||
label="选购产品"
|
||||
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
|
||||
align="center"
|
||||
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
|
||||
align="center"
|
||||
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
|
||||
align="center"
|
||||
prop="recName"
|
||||
|
@ -443,9 +474,9 @@ export default {
|
|||
})
|
||||
},
|
||||
tableRowClassName({ row, rowIndex }) {
|
||||
if (rowIndex % 2 == 1) {
|
||||
if (rowIndex % 2 === 1) {
|
||||
return 'warning-row'
|
||||
} else if (rowIndex % 2 == 0) {
|
||||
} else if (rowIndex % 2 === 0) {
|
||||
return 'success-row'
|
||||
}
|
||||
return ''
|
||||
|
|
Loading…
Reference in New Issue