|
@@ -12,6 +12,7 @@
|
|
|
tags=""
|
|
|
:statusCheck="[{key:'status',value:'审核'},{key:'status',value:'提交'},{key:'status',value:'关闭'}]"
|
|
|
:tabs="['订单明细','基本信息','订单进度','居间费明细','发货单','物流单','发票记录','收支明细','核销记录','erp对接记录','变更记录']"
|
|
|
+ @onTabClick="onTabClick"
|
|
|
@pageChange="pageChange"
|
|
|
@onEditSuccess="queryMainData($route.query.id)">
|
|
|
<div slot="customOperation" v-if="Object.keys(mainData).length > 0">
|
|
@@ -177,7 +178,8 @@ export default {
|
|
|
checked:0,
|
|
|
typeNew:'',
|
|
|
fullscreenLoading:false,
|
|
|
- siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid
|
|
|
+ siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid,
|
|
|
+ tabNow:'tab0'
|
|
|
}
|
|
|
},
|
|
|
provide () {
|
|
@@ -550,6 +552,10 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ onTabClick(val){
|
|
|
+ console.log(val,'tabs当前')
|
|
|
+ this.tabNow = val
|
|
|
+ },
|
|
|
// 提交审核订单
|
|
|
onSubmit (type) {
|
|
|
if (type == '提交' && (this.siteid == 'HY' || this.siteid == 'YOSTEST1')){
|
|
@@ -561,7 +567,7 @@ export default {
|
|
|
cancelButtonText: this.$t('取消'),
|
|
|
type: 'warning'
|
|
|
}).then(async () => {
|
|
|
- if (this.$refs.prod.time == null){
|
|
|
+ if (this.tabNow != 'tab0' || this.$refs.prod.time == null){
|
|
|
const res = await this.$api.requested({
|
|
|
"id": type === '审核'?20221108153502:20221108153402,
|
|
|
"content": {
|
|
@@ -576,7 +582,6 @@ export default {
|
|
|
this.queryMainData()
|
|
|
})
|
|
|
}else {
|
|
|
- this.queryMainData()
|
|
|
this.typeNew = type
|
|
|
}
|
|
|
}).catch((err) => {
|