|
@@ -45,8 +45,9 @@
|
|
|
</view>
|
|
|
<tm-poup v-model="show_1" :position="pos" class="tcc">
|
|
|
<view style="position: relative !important;" v-if="chukudata.length !=0">
|
|
|
- <view style="height: 10px;"></view>
|
|
|
- <tm-swiper @change="qiehuanLb" :current="current" :indicator-dots="false" :round="6" :ani3d="190" :autoplay="false" :list="list1"></tm-swiper>
|
|
|
+ <image @click="quxiao()" class="close" src="/static/img/close.png" mode="widthFix"></image>
|
|
|
+ <view style="clear: both;"></view>
|
|
|
+ <tm-swiper class="lunbohhh" @change="qiehuanLb" :current="current" :indicator-dots="false" :round="6" :ani3d="190" :autoplay="false" :list="list1"></tm-swiper>
|
|
|
<view class="text-white text-align-center mt-15">{{chukudata[current].brand}}{{chukudata[current].color}}{{chukudata[current].goods_name}}</view>
|
|
|
<view class="text-white text-align-center mt-10 text-size-s">{{chukudata[current].description}}</view>
|
|
|
<image class="guayi" :src="chukudata[current].ygimage" mode="widthFix"></image>
|
|
@@ -55,10 +56,24 @@
|
|
|
<image class="aniOn deng" src="/static/img/101.png" mode="widthFix"></image>
|
|
|
<text style="vertical-align: middle;">指示灯已亮,请取出衣柜</text>
|
|
|
</view>
|
|
|
- <view class="anniu">
|
|
|
+ <view class="daojishi">
|
|
|
+ <text>倒计时:</text>
|
|
|
+ <tm-countdown format="HH时MM分数SS秒哈" ref="testCountdown" :time="2*60*60*1000">
|
|
|
+ <template
|
|
|
+ v-slot:default=" { timeData } ">
|
|
|
+ <view class="flex-center">
|
|
|
+ <view v-for="(item,key) in timeData.data" :key="key" class="pa-10 primary mr-10 round-2" :class="$tm.vx.state().tmVuetify.black?'bk':''">
|
|
|
+ {{item}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </tm-countdown>
|
|
|
+ <text>结束后若衣服仍未取出,出库将自动取消</text>
|
|
|
+ </view>
|
|
|
+ <!-- <view class="anniu">
|
|
|
<tm-button @click="quxiao()" theme="gray" size="n">关闭弹框</tm-button>
|
|
|
<tm-button @click="quxchuFun()" class="fr" theme="primary" size="n">取消出库</tm-button>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
</tm-poup>
|
|
|
<!-- 弹出层消息 -->
|
|
@@ -95,7 +110,8 @@ export default {
|
|
|
chukudata:[],
|
|
|
current:0,
|
|
|
list1:[],
|
|
|
- mingriyuanList:[]
|
|
|
+ mingriyuanList:[],
|
|
|
+ qiu_id:''
|
|
|
};
|
|
|
},
|
|
|
onLoad(e) {
|
|
@@ -212,7 +228,7 @@ export default {
|
|
|
myRequest({
|
|
|
url: "/api/Goods/cancelDelivery",
|
|
|
method:'post',
|
|
|
- data:{qiu_id:that.qiuid,id:that.chukudata[that.current].id}
|
|
|
+ data:{qiu_id:that.qiu_id,id:that.chukudata[that.current].id}
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
that.show_1=false;
|
|
@@ -228,7 +244,6 @@ export default {
|
|
|
qiehuanLb(e){
|
|
|
var that=this;
|
|
|
this.current=e;
|
|
|
- console.log(e)
|
|
|
},
|
|
|
chuku(){
|
|
|
var ids=[];
|
|
@@ -243,12 +258,24 @@ export default {
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
that.show_1=true;
|
|
|
- that.chukudata=res.data.data;
|
|
|
that.list1=[];
|
|
|
- for(let i=0;i<res.data.data.length;i++){
|
|
|
- that.qiuid=res.data.data[i].qiu_id
|
|
|
- that.list1.push(res.data.data[i].image)
|
|
|
+ that.chukudata=res.data.data.goodInfo;
|
|
|
+ for(let i=0;i<res.data.data.goodInfo.length;i++){
|
|
|
+ that.list1.push(res.data.data.goodInfo[i].image)
|
|
|
+
|
|
|
}
|
|
|
+ that.qiu_id=res.data.data.qiu_id;
|
|
|
+ // 倒计时开始
|
|
|
+ var countdownstart=Date.parse(new Date(res.data.data.stock_time))/1000;
|
|
|
+ var countdownend=countdownstart+2*60*60;
|
|
|
+ var countdownnow=Date.parse(new Date())/1000
|
|
|
+ var daojishi=countdownend-countdownnow;
|
|
|
+ if(daojishi<0){
|
|
|
+ that.countdown=0;
|
|
|
+ }else{
|
|
|
+ that.countdown=daojishi*1000;
|
|
|
+ }
|
|
|
+ // 倒计时结束
|
|
|
that.$refs.toast.show({model:'success',label:'出库成功'})
|
|
|
}else{
|
|
|
that.$refs.toast.show({model:'error',label:res.data.msg})
|
|
@@ -272,12 +299,23 @@ export default {
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
that.show_1=true;
|
|
|
- that.chukudata=res.data.data;
|
|
|
that.list1=[];
|
|
|
- for(let i=0;i<res.data.data.length;i++){
|
|
|
- that.qiuid=res.data.data[i].qiu_id
|
|
|
- that.list1.push(res.data.data[i].image)
|
|
|
+ that.chukudata=res.data.data.goodInfo;
|
|
|
+ for(let i=0;i<res.data.data.goodInfo.length;i++){
|
|
|
+ that.list1.push(res.data.data.goodInfo[i].image)
|
|
|
+ }
|
|
|
+ that.qiu_id=res.data.data.qiu_id;
|
|
|
+ // 倒计时开始
|
|
|
+ var countdownstart=Date.parse(new Date(res.data.data.stock_time))/1000;
|
|
|
+ var countdownend=countdownstart+2*60*60;
|
|
|
+ var countdownnow=Date.parse(new Date())/1000
|
|
|
+ var daojishi=countdownend-countdownnow;
|
|
|
+ if(daojishi<0){
|
|
|
+ that.countdown=0;
|
|
|
+ }else{
|
|
|
+ that.countdown=daojishi*1000;
|
|
|
}
|
|
|
+ // 倒计时结束
|
|
|
that.$refs.toast.show({model:'success',label:'出库成功'})
|
|
|
}else{
|
|
|
that.$refs.toast.show({model:'error',label:res.data.msg})
|
|
@@ -337,7 +375,7 @@ export default {
|
|
|
/deep/ .tcc .uni-swiper-slides{width: 100%;}
|
|
|
/deep/ .tcc uni-swiper{width: 100% !important;}
|
|
|
/deep/ .uni-swiper-slides{width: 160px !important;}
|
|
|
- /deep/ .tcc uni-image{width: 160px !important;}
|
|
|
+ /deep/ .tcc .lunbohhh uni-image{width: 160px !important;}
|
|
|
.tcc .guayi{width: 70% !important;display: block;margin:0 auto;margin-top:15px !important;}
|
|
|
.tcc .deng{width:25px !important;height:25px !important;vertical-align: middle;margin-right:8px;}
|
|
|
.aniOn{
|
|
@@ -364,4 +402,6 @@ export default {
|
|
|
}
|
|
|
/deep/ .tcc .anniu .gray.bk{color: white !important;}
|
|
|
.tcc .anniu{width: 88%;margin: 0 auto;margin-top: 20px;}
|
|
|
+ /deep/ .close{width: 30px !important;height: 30px !important;float: right;right: 6px;}
|
|
|
+ .daojishi{width: 90%;margin: 15px auto;font-size: 14px;}
|
|
|
</style>
|