|
@@ -85,12 +85,14 @@
|
|
|
index:0
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapState(['hasLogin', 'userInfo']),
|
|
|
+ },
|
|
|
onLoad(){
|
|
|
this.validityPeriod = this.$helper.makeValidityPeriod(0,50)
|
|
|
this.getList()
|
|
|
},
|
|
|
onShow() {
|
|
|
- console.log(uni.getStorageSync('currectcompany'))
|
|
|
if(uni.getStorageSync('currectcompany')){
|
|
|
this.dataDetails.company=uni.getStorageSync('currectcompany').companyName
|
|
|
this.dataDetails.legalPersonName=uni.getStorageSync('currectcompany').legalPersonName
|
|
@@ -213,6 +215,7 @@
|
|
|
mask:true
|
|
|
})
|
|
|
var _this=this
|
|
|
+ this.dataDetails.commonId=this.userInfo.id
|
|
|
this.$request.baseRequest('post', '/cargoOwnerCompInfo/api/addCargoOwnerComp', _this.dataDetails).then(res => {
|
|
|
uni.hideLoading()
|
|
|
uni.$u.toast('提交成功')
|