|
|
@@ -31,7 +31,7 @@
|
|
|
<view v-if="!$util.isEmpty(globalItemData)">
|
|
|
<template v-for="(productItem, productIndex) in globalItemData">
|
|
|
<view class="item_list_title" v-if="productItem.className && productItem.className!=''">{{ productItem.className }}</view>
|
|
|
- <view style="height: 175upx" :key="productIndex">
|
|
|
+ <view class="item-row item-row--h175" :class="{ 'item-row--remark': productItem.itemRemark }" :key="productIndex">
|
|
|
<Commondity
|
|
|
:globalCheckStock="true"
|
|
|
:selectJobType="selectJobType"
|
|
|
@@ -42,6 +42,7 @@
|
|
|
@goTree="goTree"
|
|
|
@delProduct="delProduct"
|
|
|
@cancelLimitBuyFn="cancelLimitBuyFn"
|
|
|
+ @remarkCleared="onItemRemarkCleared"
|
|
|
></Commondity>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -244,6 +245,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ onItemRemarkCleared(id) {
|
|
|
+ if (this.$util.isEmpty(this.globalItemData)) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.globalItemData.forEach((item, index) => {
|
|
|
+ if (item.id == id) {
|
|
|
+ this.$set(this.globalItemData[index], 'itemRemark', '')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
calcKindCount() {
|
|
|
if (!this.customData || Number(this.customData.kind) !== 3) {
|
|
|
return
|
|
|
@@ -326,6 +337,8 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+@import '@/static/css/item-list-row.scss';
|
|
|
+
|
|
|
.billing_box_bg {
|
|
|
background: white;
|
|
|
height: 100%;
|