修改问题

master
sunzehua 1 year ago
parent 38f1528e90
commit 4f54daae07

@ -1129,3 +1129,11 @@ export function CancelServiceStatus (parameter) {
data: parameter
})
}
export function SaveBookingTxxp (parameter) {
return axios({
url: '/BookingOrder/SaveBookingTxxp',
method: 'post',
params: parameter
})
}

@ -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);
}
}

@ -97,7 +97,7 @@
<!-- <div class="nav" @click="handleRefshYZ">
<a-spin :spinning="refshYZloading"><i class="iconfont icon-shishijifei"></i>刷新运踪</a-spin>
</div> -->
<div class="nav"><i class="iconfont icon-xiaopiaodayin"></i>小票状态</div>
<div class="nav" @click="handleSearchTxxp"><i class="iconfont icon-xiaopiaodayin"></i>小票状态</div>
<div class="nav" @click="openTraceModel"><i class="iconfont icon-yunshu1"></i>运踪订阅</div>
<div class="nav">
<a-dropdown>
@ -913,7 +913,8 @@ import {
singleBCFileRead,
refreshSailingDate,
RefreshBillTrace,
SaveDataInList
SaveDataInList,
SaveBookingTxxp
} from '@/api/modular/main/BookingLedger'
import initData from './modules/initData'
@ -1912,6 +1913,15 @@ export default {
})
}
},
handleSearchTxxp() {
const select = this.$refs.xGrid.getCheckboxRecords()
const pkIdArr = select.map((item, index) => {
return item.id
})
SaveBookingTxxp({ Id: pkIdArr[0] }).then(res => {
console.log(res)
})
},
dateFtt(fmt, date) {
const o = {
'Y+': date.getFullYear(),
@ -2153,11 +2163,13 @@ export default {
item.sqxsLoading = false
item.ponoLoading = false
let hasGoods = 0
item.goodsStatusList.map((gitem, gindex) => {
if (item.goodsStatusList) {
item.goodsStatusList.map((gitem, gindex) => {
if (gitem.finishTime || gitem.remark) {
hasGoods++
}
})
}
item.hasGoods = hasGoods
this.$set(newBookingList, item.id, item)
return item

Loading…
Cancel
Save