|
@@ -7,27 +7,20 @@
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
|
<image :src="info.cover" lazy-load="true" :lazy-load-margin="0"></image>
|
|
<image :src="info.cover" lazy-load="true" :lazy-load-margin="0"></image>
|
|
|
- <view style="width:30upx;height:30upx;top:0upx;left:0upx;position: absolute;" @click.stop="delProduct(info)"> </view>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cmd-info_bx">
|
|
<view class="cmd-info_bx">
|
|
|
<view class="tit" >
|
|
<view class="tit" >
|
|
|
<text style="font-size:22upx;border:1upx solid #3385ff;color:white;background-color:#3385ff;margin-right:5upx;padding-left:5upx;padding-right:5upx;"
|
|
<text style="font-size:22upx;border:1upx solid #3385ff;color:white;background-color:#3385ff;margin-right:5upx;padding-left:5upx;padding-right:5upx;"
|
|
|
v-if="info.frontHide && info.frontHide == 1">隐</text>
|
|
v-if="info.frontHide && info.frontHide == 1">隐</text>
|
|
|
- <text style="font-size:22upx;border:1upx solid #3385ff;color:white;background-color:#3385ff;margin-right:5upx;padding-left:5upx;padding-right:5upx;"
|
|
|
|
|
- v-if="info.presell == 1">预售</text>
|
|
|
|
|
{{ info.name || "" }}
|
|
{{ info.name || "" }}
|
|
|
- <text v-if="info.variety && info.variety ==1" class="show-color"></text>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="kc" style="position:absolute;top:55upx;z-index:99" @click.stop="copyCreate()">
|
|
|
|
|
|
|
+ <view class="kc" style="position:absolute;top:55upx;z-index:99">
|
|
|
<block v-if="info.ratioType == 0">{{info.ratio}}{{info.smallUnit}}/{{info.bigUnit}}</block>
|
|
<block v-if="info.ratioType == 0">{{info.ratio}}{{info.smallUnit}}/{{info.bigUnit}}</block>
|
|
|
<block v-else>若干{{info.smallUnit}}/{{info.bigUnit}}</block>
|
|
<block v-else>若干{{info.smallUnit}}/{{info.bigUnit}}</block>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="kc num-open_bx flex-end">
|
|
<view class="kc num-open_bx flex-end">
|
|
|
<view class="price" style="position:absolute;top:55upx;font-weight:bold;">
|
|
<view class="price" style="position:absolute;top:55upx;font-weight:bold;">
|
|
|
¥{{ parseFloat(info.price) }}
|
|
¥{{ parseFloat(info.price) }}
|
|
|
- <text v-if="info.reachNum && info.reachNum>0 && info.reachNumDiscount && info.reachNumDiscount>0" style="font-weight:normal;color:#3385FF;margin-left:20upx;">
|
|
|
|
|
- 满{{info.reachNum}}↓{{info.reachNumDiscount?parseFloat(info.reachNumDiscount):0}}
|
|
|
|
|
- </text>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
<view style="text-align: right;margin-right:20upx;" >
|
|
<view style="text-align: right;margin-right:20upx;" >
|
|
|
<view class="open-bx" >
|
|
<view class="open-bx" >
|
|
@@ -47,7 +40,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
export default {
|
|
export default {
|
|
|
- name: "Commodity",
|
|
|
|
|
|
|
+ name: "app-commodity2",
|
|
|
components: {},
|
|
components: {},
|
|
|
mixins: [],
|
|
mixins: [],
|
|
|
props: {
|
|
props: {
|
|
@@ -82,7 +75,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- ifFocus:false,
|
|
|
|
|
bigCount:0,
|
|
bigCount:0,
|
|
|
smallCount:0,
|
|
smallCount:0,
|
|
|
userPrice:0,
|
|
userPrice:0,
|
|
@@ -110,34 +102,13 @@ export default {
|
|
|
this.remark = this.info.remark||''
|
|
this.remark = this.info.remark||''
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- copyCreate(){
|
|
|
|
|
- this.pageTo({url: '/admin/item/copy?id='+this.info.id})
|
|
|
|
|
- },
|
|
|
|
|
- delProduct(info){
|
|
|
|
|
- this.$emit("delProduct", info)
|
|
|
|
|
- },
|
|
|
|
|
addItemFn () {
|
|
addItemFn () {
|
|
|
- if(this.info && this.info.variety == 1 && this.selectJobType == 'bill'){
|
|
|
|
|
- //小菊多颜色选择页
|
|
|
|
|
- this.$emit("goToSpecialVariety", this.info);
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
this.$emit("replaceItemFn", this.info,0,'add')
|
|
this.$emit("replaceItemFn", this.info,0,'add')
|
|
|
},
|
|
},
|
|
|
reduceItemFn() {
|
|
reduceItemFn() {
|
|
|
- if(this.info && this.info.variety == 1 && this.selectJobType == 'bill'){
|
|
|
|
|
- //小菊多颜色选择页
|
|
|
|
|
- this.$emit("goToSpecialVariety", this.info);
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
this.$emit("replaceItemFn", this.info,0,'sub')
|
|
this.$emit("replaceItemFn", this.info,0,'sub')
|
|
|
},
|
|
},
|
|
|
showAddModelFn() {
|
|
showAddModelFn() {
|
|
|
- if(this.info && this.info.variety == 1 && this.selectJobType == 'bill'){
|
|
|
|
|
- //小菊多颜色选择页
|
|
|
|
|
- this.$emit("goToSpecialVariety", this.info);
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
this.$emit("showAddModelFn", { ...this.info, bigCount: this.bigCount, smallCount: this.smallCount, userPrice: this.userPrice,remark:this.remark})
|
|
this.$emit("showAddModelFn", { ...this.info, bigCount: this.bigCount, smallCount: this.smallCount, userPrice: this.userPrice,remark:this.remark})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|