|
|
|
|
@ -90,19 +90,19 @@
|
|
|
|
|
<!-- 打卡 -->
|
|
|
|
|
<view class="clock">
|
|
|
|
|
<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="text2">({{detail.logs_count + 1}})</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="text2">{{dateFormat(time,'HH:mm:ss')}}</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="text2">{{dateFormat(time,'HH:mm:ss')}}</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="text2">{{dateFormat(time,'HH:mm:ss')}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -218,15 +218,18 @@
|
|
|
|
|
id
|
|
|
|
|
})
|
|
|
|
|
this.detail = res
|
|
|
|
|
this.skuList = res.sku.map(item => {
|
|
|
|
|
return {
|
|
|
|
|
info: item.sku_info,
|
|
|
|
|
isSelect: item.time ? true : false,
|
|
|
|
|
form: {
|
|
|
|
|
id: item.id,
|
|
|
|
|
time: item.time || '',
|
|
|
|
|
sku_id: item.sku_id,
|
|
|
|
|
}
|
|
|
|
|
this.skuList = []
|
|
|
|
|
res.sku.forEach(item => {
|
|
|
|
|
if (item.sku_id && item.sku_info) {
|
|
|
|
|
this.skuList.push({
|
|
|
|
|
info: item.sku_info,
|
|
|
|
|
isSelect: item.time ? true : false,
|
|
|
|
|
form: {
|
|
|
|
|
id: item.id,
|
|
|
|
|
time: item.time || '',
|
|
|
|
|
sku_id: item.sku_id,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.form.schedule_list_id = this.id
|
|
|
|
|
|