|
@@ -267,6 +267,13 @@
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
+ if( this.$store.state.choice != "" ){
|
|
|
+ if(this.goods.customerTypeFlag==1){
|
|
|
+ this.goods.customerName = this.$store.state.choice
|
|
|
+ }else if(this.goods.customerTypeFlag==2){
|
|
|
+ this.goods.compName = this.$store.state.choice
|
|
|
+ }
|
|
|
+ }else{
|
|
|
var that = this
|
|
|
this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo', {
|
|
|
commonId: this.userInfo.id
|
|
@@ -281,6 +288,7 @@
|
|
|
}
|
|
|
uni.hideLoading()
|
|
|
})
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
yearchange() {
|
|
@@ -620,11 +628,19 @@
|
|
|
that.$api.doRequest('post', '/salePlanInfo/api/insertSalePlanInfo', that
|
|
|
.insertSalePlanInfo).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
- that.$api.msg('发布成功')
|
|
|
- that.deptList = {}
|
|
|
- uni.navigateTo({
|
|
|
- url: `/pages/release/release`
|
|
|
+ uni.showToast({
|
|
|
+ title:'发布成功',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000,
|
|
|
+ success() {
|
|
|
+ setTimeout(()=>{
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/release/release`
|
|
|
+ })
|
|
|
+ },2000)
|
|
|
+ }
|
|
|
})
|
|
|
+ that.deptList = {}
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
title: res.data.message,
|