|
@@ -387,7 +387,7 @@ export default {
|
|
|
"type": "", //可选
|
|
|
"discountrate": '', //可选
|
|
|
/*"saler_hrid": JSON.parse(window.sessionStorage.getItem('active_account')).hrid, //可选*/
|
|
|
- "saler_hrid":this.data.leader[0].userid || '',
|
|
|
+ "saler_hrid":this.data.leader[0].hr.hrid || '',
|
|
|
"signdate": "", //可选
|
|
|
"signby": "", //可选
|
|
|
"remarks": "", //可选
|
|
@@ -568,6 +568,13 @@ export default {
|
|
|
this.tool.showMessage(res,() => {
|
|
|
this.$emit('onSuccess')
|
|
|
this.drawer = false
|
|
|
+ let route = this.$route
|
|
|
+ if (route.path !== '/contractDetail') {
|
|
|
+ this.oldRoute = {path:route.path,query:route.query}
|
|
|
+ this.$store.dispatch('setHistoryRouter',this.oldRoute)
|
|
|
+ }
|
|
|
+ this.$store.dispatch('changeDetailDrawer',true)
|
|
|
+ this.$router.push({path:'/contractDetail',query:{type:this.contractType,id:res.data.sa_contractid,rowindex:res.data.rowindex}})
|
|
|
})
|
|
|
} else {
|
|
|
/* 其它新建 */
|