Commit d6b2713e authored by Mac's avatar Mac

1

parent 704ed15e
...@@ -142,6 +142,7 @@ ...@@ -142,6 +142,7 @@
v-model="msg.pageIndex" v-model="msg.pageIndex"
:max="pageCount" :max="pageCount"
@input="changePage" @input="changePage"
class="full-width justify-end" color="primary" :input="true"
> >
</q-pagination> </q-pagination>
</li> </li>
......
...@@ -294,7 +294,10 @@ ...@@ -294,7 +294,10 @@
</div> </div>
</div> </div>
<div class="col"> <div class="col">
<div>收款单据:</div> <div class="row" style="justify-content: space-between">
<span>收款单据:</span>
<span @click="chanceType(item,1)">修改</span>
</div>
</div> </div>
</div> </div>
...@@ -302,6 +305,16 @@ ...@@ -302,6 +305,16 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div class="row" style="justify-content: flex-end;padding: 5px 20px">
<q-pagination
v-model="msg.pageIndex"
:max="pageCount"
@input="changePage"
class="full-width justify-end" color="primary" :input="true"
>
</q-pagination>
</div>
</div> </div>
...@@ -501,8 +514,11 @@ ...@@ -501,8 +514,11 @@
//翻页 //翻页
changePage(val) { changePage(val) {
this.msg.pageIndex = val; if(val !=1 && this.msg.pageIndex!=1){//对第一次进来防止掉2次getList
this.getList() this.msg.pageIndex = val;
this.getList()
}
}, },
resetSearch() { resetSearch() {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
...@@ -526,13 +542,39 @@ ...@@ -526,13 +542,39 @@
} }
this.loading = true; this.loading = true;
getMyOrderPageList(this.msg).then(res => { getMyOrderPageList(this.msg).then(res => {
this.loading = false
this.data = res.Data.PageData this.data = res.Data.PageData;
let OrderIds=[]
this.data.List.forEach(x=>{
OrderIds.push(x.OrderId)
})
OrderIds = OrderIds.join(',')
this.getOrderFinanceList(OrderIds)
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
}) })
}, },
getOrderFinanceList(msg){
this.apipost('sellorder_post_GetOrderFinanceListForEdu',{OrderIds:msg},res=>{
if(res.data.resultCode===1){
this.loading = false;
this.data.List.forEach(x=>{
res.data.data.forEach(j=>{
if(x.OrderId == j.OrderId){
x.FinanceList = j.FinanceList
x.RefundFinanceList = j.RefundFinanceList
}
})
})
console.log()
}else{
this.loading = false;
this.$message.error(res.data.message);
}
},err=>{})
},
gostudent(item){//跳转到学生名单 gostudent(item){//跳转到学生名单
var tempStr = '/sale/studentList?OrderId='+item.OrderId+'&ClassId='+item.ClassId; var tempStr = '/sale/studentList?OrderId='+item.OrderId+'&ClassId='+item.ClassId;
this.$router.push({ this.$router.push({
...@@ -748,6 +790,29 @@ ...@@ -748,6 +790,29 @@
}).catch(() => { }).catch(() => {
}) })
},
chanceType(obj,type){
let TCIDARR=[]
TCIDARR.push(obj.ClassId)
let orderObj = {
OrderID:obj.orderId,
OrderSource:8,
Obj: {},
SourceID:17,
TCIDList: TCIDARR
}
this.$router.push({
path: '/financial/financalDocument/ChoiceAddFinancialDocuments',
query:{
"Type":1,
"companyID":this.getLocalStorage().School_Id,
"path": "",
'blank':'y',
'orderObj':JSON.stringify(orderObj),
'tradeWay':obj.tradeWay,
}
});
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment