|
@@ -107,17 +107,6 @@
|
|
|
:style="{ maxHeight: 300+'px' }"
|
|
|
:scroll="{ y:230 }"
|
|
|
bordered>
|
|
|
- <!-- 特价产品 标题 -->
|
|
|
- <template slot="titleType">
|
|
|
- {{ form.promoType==='PROMO_PROD'?form.discountTypes==='STRAIGHT_DOWN'?'直降金额':'折扣(%)':form.promoType==='BUY_PROD_GIVE_VALID'?'返券金额':'--' }}
|
|
|
- </template>
|
|
|
- <!-- 特价价格-->
|
|
|
- <template slot="specialOffer" slot-scope="text,record">
|
|
|
- <!-- 直降 -->
|
|
|
- <span v-if="form.discountType==='STRAIGHT_DOWN'">{{ (record.shopProductPrice-record.resultValue).toFixed(2) }}</span>
|
|
|
- <!-- 折扣 -->
|
|
|
- <span v-else>{{ (record.shopProductPrice*record.resultValue/100).toFixed(2) }}</span>
|
|
|
- </template>
|
|
|
</s-table>
|
|
|
</div>
|
|
|
</a-form-model-item>
|
|
@@ -235,16 +224,15 @@ export default {
|
|
|
{ title: '产品编码', dataIndex: 'productCode', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品名称', dataIndex: 'productName', width: '18%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '原厂编码', dataIndex: 'productOrigCode', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '售价', dataIndex: 'shopProductPrice', width: '10%', align: 'right', customRender: text => { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
|
|
|
+ { title: '商城售价', dataIndex: 'shopProductPrice', width: '10%', align: 'right', customRender: text => { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
|
|
|
]
|
|
|
if (_this.form.promoType === 'BUY_PROD_GIVE_PROD') {
|
|
|
arr.splice(4, 0, { title: '买', dataIndex: 'conditionValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } })
|
|
|
arr.splice(5, 0, { title: '赠', dataIndex: 'resultValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } })
|
|
|
} else if (_this.form.promoType === 'PROMO_PROD') {
|
|
|
- arr.splice(5, 0, { slots: { title: 'titleType' }, dataIndex: 'resultValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } })
|
|
|
- arr.splice(6, 0, { title: '特价价格', width: '10%', align: 'right', scopedSlots: { customRender: 'specialOffer' } })
|
|
|
+ arr.splice(5, 0, { title: '特价价格', dataIndex: 'conditionValue', width: '10%', align: 'right', customRender: text => { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
} else {
|
|
|
- arr.splice(5, 0, { slots: { title: 'titleType' }, dataIndex: 'resultValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } })
|
|
|
+ arr.splice(5, 0, { title: '返券金额', dataIndex: 'resultValue', width: '10%', align: 'center', customRender: text => { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
return arr
|
|
|
}
|