|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
- <view class="item-cmd_bx" @click="selectItem(info)">
|
|
|
- <view class="img_bx" style="background:#EEEEEE">
|
|
|
- <image :src="info.cover" v-if="isImg"></image>
|
|
|
+ <view class="item-cmd_bx">
|
|
|
+ <view class="img_bx" style="background:#EEEEEE;z-index:99999;" @click="showBigCover(info.bigCover)">
|
|
|
+ <image :src="info.cover"></image>
|
|
|
</view>
|
|
|
<view class="cmd-info_bx">
|
|
|
<view class="tit" style="display:flex;align-items:center;">
|
|
|
@@ -12,15 +12,15 @@
|
|
|
<view class="kc">
|
|
|
<text style="font-size:28upx;">{{info.className}}</text>
|
|
|
<text style="margin-left:20upx;color:#907a7a;font-size:28upx;font-weight:bold;">{{info.useNum}}家在用</text>
|
|
|
- <text v-if="info.select == 2 && info.is_delete == 1" style="position:absolute;right:245upx;color:red;">已删除</text>
|
|
|
- <text v-if="info.select == 2 && info.is_delete == 1" style="color:#1f1cc0;float:right;margin-right:103upx;">恢复</text>
|
|
|
- <text v-else-if="info.select == 2" style="color:#1f1cc0;float:right;margin-right:80upx;">已导入</text>
|
|
|
- <text v-else style="color:green;float:right;margin-right:80upx;border:1upx solid green;padding:4upx 10upx 4upx 10upx;">选择</text>
|
|
|
+ <text v-if="info.select == 2 && info.is_delete == 1" style="position:absolute;right:5upx;color:#1f1cc0;">恢复</text>
|
|
|
+ <text v-if="info.select == 2 && info.is_delete == 1" style="color:red;float:right;margin-right:110upx;">已删除</text>
|
|
|
+ <text v-else-if="info.select == 2" style="color:#1f1cc0;float:right;margin-right:110upx;">使用中</text>
|
|
|
+ <text v-else @click="selectItem(info)" style="color:green;float:right;margin-right:110upx;border:1upx solid green;padding:4upx 10upx 4upx 10upx;">导入</text>
|
|
|
</view>
|
|
|
<view class="num-open_bx">
|
|
|
<view class="open-bx warn">
|
|
|
- <text v-if="info.ratioType == 0">{{info.ratio}}{{info.smallUnit}}/{{ info.bigUnit }}</text>
|
|
|
- <text v-else>若干{{info.smallUnit}}/{{ info.bigUnit }}</text>
|
|
|
+ <text v-if="info.ratioType == 0">{{info.ratio}}{{info.smallUnit}}/<text @click="changeAuth(info.id)">{{ info.bigUnit }}</text></text>
|
|
|
+ <text v-else>若干{{info.smallUnit}}/<text @click="changeAuth(info.id)">{{ info.bigUnit }}</text></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -52,15 +52,11 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- isImg:false,
|
|
|
currentStock:null,
|
|
|
hidden:0
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
- setTimeout(()=>{
|
|
|
- this.isImg = true;
|
|
|
- },100)
|
|
|
},
|
|
|
watch: {
|
|
|
modifyStock:{
|
|
|
@@ -77,6 +73,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ showBigCover(url){
|
|
|
+ console.log(url)
|
|
|
+ uni.previewImage({ urls: [url] })
|
|
|
+ },
|
|
|
selectItem(item){
|
|
|
this.$emit("selectItem",item);
|
|
|
},
|
|
|
@@ -88,6 +88,9 @@ export default {
|
|
|
},
|
|
|
delEvent() {
|
|
|
this.$emit("del");
|
|
|
+ },
|
|
|
+ changeAuth(id){
|
|
|
+ this.$emit("modifyAuth",id)
|
|
|
}
|
|
|
}
|
|
|
};
|