工单对账tabIndex记录
This commit is contained in:
@ -17,10 +17,10 @@ service.interceptors.request.use(
|
|||||||
config => {
|
config => {
|
||||||
config.data = config.contentType ? config.data : qs.stringify(config.data)
|
config.data = config.contentType ? config.data : qs.stringify(config.data)
|
||||||
config.headers['Content-Type'] = config.contentType || 'application/x-www-form-urlencoded'
|
config.headers['Content-Type'] = config.contentType || 'application/x-www-form-urlencoded'
|
||||||
// const token = localStorage.getItem('token');
|
const token = localStorage.getItem('token');
|
||||||
// const urlParams = new URLSearchParams(window.location.search);
|
// const urlParams = new URLSearchParams(window.location.search);
|
||||||
// const token = urlParams.get('token') ;
|
// const token = urlParams.get('token') ;
|
||||||
let token='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzemwiLCJhdWQiOlsic3VwcGxpZXItYXBwIl0sIm5iZiI6MTY5Mjc3MzMxMSwidXNlcl9pbmZvIjp7InVzZXJJZCI6NTQ1ODUsInBob25lIjoiMTc2MzAwMzU2NTgiLCJuYW1lIjoi5bCP5a6LIiwic3VwcGxpZXJOYW1lIjoi5LiK5rW35a6J55WFQSIsInN1cHBsaWVySWQiOjExMjgsInN1cHBsaWVyVHlwZSI6MSwidXNlcm5hbWUiOiJzemwiLCJ1c2VyVHlwZSI6IkFQUCIsImF1dGhvcml0aWVzIjpbXX0sInNjb3BlIjpbImFsbCJdLCJpc3MiOiJodHRwczovL3Npbm9hc3Npc3QuY29tIiwiZXhwIjoxNjkyODU5NzExLCJpYXQiOjE2OTI3NzMzMTF9.bFTJlX73vYl06ncE6Ge5_qtbEwRNFZwXhzNjMXzikkE'
|
// let token='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzemwiLCJhdWQiOlsic3VwcGxpZXItYXBwIl0sIm5iZiI6MTY5Mjc3MzMxMSwidXNlcl9pbmZvIjp7InVzZXJJZCI6NTQ1ODUsInBob25lIjoiMTc2MzAwMzU2NTgiLCJuYW1lIjoi5bCP5a6LIiwic3VwcGxpZXJOYW1lIjoi5LiK5rW35a6J55WFQSIsInN1cHBsaWVySWQiOjExMjgsInN1cHBsaWVyVHlwZSI6MSwidXNlcm5hbWUiOiJzemwiLCJ1c2VyVHlwZSI6IkFQUCIsImF1dGhvcml0aWVzIjpbXX0sInNjb3BlIjpbImFsbCJdLCJpc3MiOiJodHRwczovL3Npbm9hc3Npc3QuY29tIiwiZXhwIjoxNjkyODU5NzExLCJpYXQiOjE2OTI3NzMzMTF9.bFTJlX73vYl06ncE6Ge5_qtbEwRNFZwXhzNjMXzikkE'
|
||||||
config.headers['Authorization'] = `${token}`;
|
config.headers['Authorization'] = `${token}`;
|
||||||
return config
|
return config
|
||||||
},
|
},
|
||||||
|
@ -204,8 +204,12 @@ export default {
|
|||||||
button {
|
button {
|
||||||
border: none;
|
border: none;
|
||||||
//width: 48px;
|
//width: 48px;
|
||||||
padding: 2px;
|
//padding: 2px;
|
||||||
@include all-height(20px);
|
//@include all-height(20px);
|
||||||
|
padding: 4px 8px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
@include fontWeightSize(bold, 12px)
|
@include fontWeightSize(bold, 12px)
|
||||||
}
|
}
|
||||||
|
@ -162,8 +162,11 @@ export default {
|
|||||||
button{
|
button{
|
||||||
border: none;
|
border: none;
|
||||||
//width: 48px;
|
//width: 48px;
|
||||||
@include all-height(20px);
|
//@include all-height(20px);
|
||||||
padding: 2px;
|
padding: 4px 8px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
@include fontWeightSize(bold,12px)
|
@include fontWeightSize(bold,12px)
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
:border="false"
|
:border="false"
|
||||||
:fixed="true"
|
:fixed="true"
|
||||||
:safe-area-inset-top="true"
|
:safe-area-inset-top="true"
|
||||||
@click-left="h5GoBack"
|
@click-left="goback"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="baseInfo common">
|
<div class="baseInfo common">
|
||||||
@ -266,6 +266,7 @@ export default {
|
|||||||
auditFormShow:false,
|
auditFormShow:false,
|
||||||
auditPhotoList:[],
|
auditPhotoList:[],
|
||||||
supplierPhotoList:[],
|
supplierPhotoList:[],
|
||||||
|
index:'',//记录工单对账属于哪个状态
|
||||||
form:{
|
form:{
|
||||||
id:'',
|
id:'',
|
||||||
taskOrderCostHisId:'',
|
taskOrderCostHisId:'',
|
||||||
@ -340,6 +341,7 @@ export default {
|
|||||||
async mounted() {
|
async mounted() {
|
||||||
this.id=this.$route.params?.id;
|
this.id=this.$route.params?.id;
|
||||||
this.postfix=this.$route.params?.postfix;
|
this.postfix=this.$route.params?.postfix;
|
||||||
|
this.index=this.$route.params?.index;
|
||||||
this.$nextTick(async ()=>{
|
this.$nextTick(async ()=>{
|
||||||
await this.getDetail()
|
await this.getDetail()
|
||||||
})
|
})
|
||||||
@ -361,6 +363,14 @@ export default {
|
|||||||
handleFileRead() {
|
handleFileRead() {
|
||||||
// console.log("file",file)
|
// console.log("file",file)
|
||||||
},
|
},
|
||||||
|
goback(){
|
||||||
|
this.$router.push({
|
||||||
|
name:"workOrderReconciliation",
|
||||||
|
params:{
|
||||||
|
activeIndex:this.index
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
async compute() {
|
async compute() {
|
||||||
//现金业务置为0
|
//现金业务置为0
|
||||||
// if(this.form.contractSettleTypeString == '车主现收'){
|
// if(this.form.contractSettleTypeString == '车主现收'){
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
:border="false"
|
:border="false"
|
||||||
:fixed="true"
|
:fixed="true"
|
||||||
:safe-area-inset-top="true"
|
:safe-area-inset-top="true"
|
||||||
@click-left="h5GoBack"
|
@click-left="goback"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="baseInfo common">
|
<div class="baseInfo common">
|
||||||
@ -104,15 +104,24 @@ export default {
|
|||||||
id:'',
|
id:'',
|
||||||
postfix:'',
|
postfix:'',
|
||||||
orderInfo:{},
|
orderInfo:{},
|
||||||
|
index:"",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
this.id=this.$route.query?.id;
|
this.id=this.$route.params?.id;
|
||||||
this.postfix=this.$route.query?.postfix;
|
this.postfix=this.$route.params?.postfix;
|
||||||
console.log(this.id,this.postfix)
|
this.index=this.$route.params?.index;
|
||||||
await this.getDetail()
|
await this.getDetail()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
goback(){
|
||||||
|
this.$router.push({
|
||||||
|
name:"workOrderReconciliation",
|
||||||
|
params:{
|
||||||
|
activeIndex:this.index,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
async getDetail() {
|
async getDetail() {
|
||||||
let res = await getAccountRecordDetail({
|
let res = await getAccountRecordDetail({
|
||||||
id: this.id,
|
id: this.id,
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
<button class="btn" v-if="queryType == 1" @click="handleAccounting(item)">记账</button>
|
<button class="btn" v-if="queryType == 1" @click="handleAccounting(item)">记账</button>
|
||||||
<button class="btn" v-if="queryType == 3" @click="handleAccounting(item)">{{item.accountStatus.code == 3 ? '重新记账' : '记账'}}</button>
|
<button class="btn" v-if="queryType == 3" @click="handleAccounting(item)">{{item.accountStatus.code == 3 ? '重新记账' : '记账'}}</button>
|
||||||
<button class="btn" v-if="queryType == 5" @click="handleAccounting(item)">重新记账</button>
|
<button class="btn" v-if="queryType == 5" @click="handleAccounting(item)">重新记账</button>
|
||||||
<button class="btn" v-if="queryType == 7" @click="goPage('aduitCompleteDetail',{id:item.id,postfix: item.postfix})">查看详情</button>
|
<button class="btn" v-if="queryType == 7" @click="goPageDetail(item)">查看详情</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -86,16 +86,19 @@ export default {
|
|||||||
queryTime:'',
|
queryTime:'',
|
||||||
showDatetime: false,
|
showDatetime: false,
|
||||||
currentDate: new Date(),
|
currentDate: new Date(),
|
||||||
ymTime: ''
|
ymTime: '',
|
||||||
|
recordIndex:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.activeIndex=this.$route.params?.activeIndex || 0
|
||||||
|
this.queryType=this.$route.params?.queryType || this.queryType
|
||||||
|
this.initIndex()
|
||||||
this.initSelectTime();
|
this.initSelectTime();
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async changeTab(index) {
|
initIndex(){
|
||||||
this.activeIndex = index
|
|
||||||
if(this.activeIndex === 0){
|
if(this.activeIndex === 0){
|
||||||
this.queryType = 1
|
this.queryType = 1
|
||||||
}else if(this.activeIndex === 1){
|
}else if(this.activeIndex === 1){
|
||||||
@ -105,6 +108,10 @@ export default {
|
|||||||
}else if(this.activeIndex === 3){
|
}else if(this.activeIndex === 3){
|
||||||
this.queryType = 7
|
this.queryType = 7
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
async changeTab(index) {
|
||||||
|
this.activeIndex = index
|
||||||
|
this.initIndex()
|
||||||
this.total = 0;
|
this.total = 0;
|
||||||
this.pageNum = 1
|
this.pageNum = 1
|
||||||
this.orderList = [];
|
this.orderList = [];
|
||||||
@ -127,6 +134,17 @@ export default {
|
|||||||
params: {
|
params: {
|
||||||
id: item.id, // 参数对象的属性
|
id: item.id, // 参数对象的属性
|
||||||
postfix:item.postfix,
|
postfix:item.postfix,
|
||||||
|
index:this.activeIndex
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
goPageDetail(item){
|
||||||
|
this.$router.push({
|
||||||
|
name: 'aduitCompleteDetail', // 目标路由的名称
|
||||||
|
params: {
|
||||||
|
id: item.id, // 参数对象的属性
|
||||||
|
postfix:item.postfix,
|
||||||
|
index:this.activeIndex
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user