master
xy 3 years ago
parent dda56386f0
commit 4a6bd15082

@ -3,9 +3,8 @@ const mode = process.env.NODE_ENV;
let ROOTPATH = ''; //域名 let ROOTPATH = ''; //域名
switch (mode) { switch (mode) {
case 'development': case 'development':
ROOTPATH = "http://sstt.ali251.langye.net" //ROOTPATH = "http://sstt.ali251.langye.net"
//ROOTPATH = "https://sstt.115.langye.net" ROOTPATH = "https://sstt.115.langye.net"
break; break;
case 'production': case 'production':
ROOTPATH = "https://sstt.115.langye.net" ROOTPATH = "https://sstt.115.langye.net"

@ -90,19 +90,19 @@
<!-- 打卡 --> <!-- 打卡 -->
<view class="clock"> <view class="clock">
<view class="btn" v-if="detail.status === 1 && detail.logs_count < detail.product.process_total" <view class="btn" v-if="detail.status === 1 && detail.logs_count < detail.product.process_total"
@click="$u.throttle(clockIn,1000)"> @click="$u.throttle(clockIn,5000)">
<view class="text1">过程打卡</view> <view class="text1">过程打卡</view>
<view class="text2">{{detail.logs_count + 1}}</view> <view class="text2">{{detail.logs_count + 1}}</view>
</view> </view>
<view class="btn" v-if="detail.status === 0 && flag" @click="$u.throttle(sign,1000)"> <view class="btn" v-if="detail.status === 0 && flag" @click="$u.throttle(sign,5000)">
<view class="text1">签到</view> <view class="text1">签到</view>
<view class="text2">{{dateFormat(time,'HH:mm:ss')}}</view> <view class="text2">{{dateFormat(time,'HH:mm:ss')}}</view>
</view> </view>
<view class="btn" v-if="detail.status === 1" @click="$u.throttle(signOut,1000)"> <view class="btn" v-if="detail.status === 1" @click="$u.throttle(signOut,5000)">
<view class="text1">签退</view> <view class="text1">签退</view>
<view class="text2">{{dateFormat(time,'HH:mm:ss')}}</view> <view class="text2">{{dateFormat(time,'HH:mm:ss')}}</view>
</view> </view>
<view class="btn" v-if="detail.status === 0 && !flag" @click="$u.throttle(refreshLoaction,1000)"> <view class="btn" v-if="detail.status === 0 && !flag" @click="$u.throttle(refreshLoaction,5000)">
<view class="text1">更新定位</view> <view class="text1">更新定位</view>
<view class="text2">{{dateFormat(time,'HH:mm:ss')}}</view> <view class="text2">{{dateFormat(time,'HH:mm:ss')}}</view>
</view> </view>
@ -218,15 +218,18 @@
id id
}) })
this.detail = res this.detail = res
this.skuList = res.sku.map(item => { this.skuList = []
return { res.sku.forEach(item => {
info: item.sku_info, if (item.sku_id && item.sku_info) {
isSelect: item.time ? true : false, this.skuList.push({
form: { info: item.sku_info,
id: item.id, isSelect: item.time ? true : false,
time: item.time || '', form: {
sku_id: item.sku_id, id: item.id,
} time: item.time || '',
sku_id: item.sku_id,
}
})
} }
}) })
this.form.schedule_list_id = this.id this.form.schedule_list_id = this.id

Loading…
Cancel
Save