|
|
|
@ -160,8 +160,8 @@
|
|
|
|
|
<!-- <div class="round" :class="{ active: serive.isYield }">
|
|
|
|
|
<a-icon v-if="serive.isYield" style="color:rgb(48,172,214);font-size: 10px;" type="check" />
|
|
|
|
|
</div> -->
|
|
|
|
|
<a-icon v-if="serive.isYield" class="serve-icon" type="check-circle" />
|
|
|
|
|
<div v-else class="round" >
|
|
|
|
|
<a-icon v-if="serive.isYield" class="serve-icon" type="check-circle" />
|
|
|
|
|
<div v-else class="round">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="showName">{{ serive.showName }}</div>
|
|
|
|
|
</div>
|
|
|
|
@ -514,6 +514,7 @@ export default {
|
|
|
|
|
bookingServiceItem: [],
|
|
|
|
|
atdLoading: false,
|
|
|
|
|
booGoodsStatusItem: [],
|
|
|
|
|
time:null,
|
|
|
|
|
bookingAttachType: [],
|
|
|
|
|
changeGoods: true,
|
|
|
|
|
attachName: '',
|
|
|
|
@ -947,8 +948,12 @@ export default {
|
|
|
|
|
this.details.log[index].showMore = !this.details.log[index].showMore
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
stopTimer() {
|
|
|
|
|
window.clearTimeout(this.time);
|
|
|
|
|
},
|
|
|
|
|
saveService(data) {
|
|
|
|
|
var date = new Date();
|
|
|
|
|
console.log(date.valueOf())
|
|
|
|
|
if (!this.id) {
|
|
|
|
|
this.$message.error('请先保存主单')
|
|
|
|
|
return false
|
|
|
|
@ -964,10 +969,15 @@ export default {
|
|
|
|
|
item.isYield = !item.isYield
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.spinning = true
|
|
|
|
|
SaveServiceProject(obj).then(res => {
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
this.getServiceItemList(2, data.projectCode)
|
|
|
|
|
if (this.time !== null) {
|
|
|
|
|
this.stopTimer()
|
|
|
|
|
}
|
|
|
|
|
this.time = setTimeout(() => {
|
|
|
|
|
this.spinning = true
|
|
|
|
|
this.getServiceItemList(2, data.projectCode)
|
|
|
|
|
}, 500)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
this.spinning = false
|
|
|
|
@ -980,10 +990,15 @@ export default {
|
|
|
|
|
item.isYield = !item.isYield
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.spinning = true
|
|
|
|
|
CancelSeryiceProject(obj).then(res => {
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
this.getServiceItemList(2, data.projectCode)
|
|
|
|
|
if (this.time !== null) {
|
|
|
|
|
this.stopTimer()
|
|
|
|
|
}
|
|
|
|
|
this.time = setTimeout(() => {
|
|
|
|
|
this.spinning = true
|
|
|
|
|
this.getServiceItemList(2, data.projectCode)
|
|
|
|
|
}, 500)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
this.spinning = false
|
|
|
|
@ -1274,15 +1289,17 @@ export default {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
color: rgb(48,172,214);
|
|
|
|
|
color: rgb(48, 172, 214);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.serve-icon{
|
|
|
|
|
font-size:22px;
|
|
|
|
|
|
|
|
|
|
.serve-icon {
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
display: block;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.round {
|
|
|
|
|
width: 22px;
|
|
|
|
|
height: 22px;
|
|
|
|
@ -1294,8 +1311,9 @@ export default {
|
|
|
|
|
text-align: center;
|
|
|
|
|
border: 2px solid rgb(146, 146, 146);
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
border: 1px solid rgb(48,172,214);
|
|
|
|
|
border: 1px solid rgb(48, 172, 214);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1312,11 +1330,13 @@ export default {
|
|
|
|
|
line-height: 17px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.showName{
|
|
|
|
|
|
|
|
|
|
.showName {
|
|
|
|
|
width: 48px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box-line {
|
|
|
|
|
height: 1px;
|
|
|
|
|
width: 10px;
|
|
|
|
@ -1325,7 +1345,7 @@ export default {
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
border: 1px solid rgb(48,172,214);
|
|
|
|
|
border: 1px solid rgb(48, 172, 214);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|