修改
This commit is contained in:
parent
1b4e8129ab
commit
1614b27292
@ -295,16 +295,16 @@
|
|||||||
this.updata.goodsName = this.goodsDetailslist.goodsName
|
this.updata.goodsName = this.goodsDetailslist.goodsName
|
||||||
this.updata.nurseStationId = this.goodsDetailslist.nurseStationId
|
this.updata.nurseStationId = this.goodsDetailslist.nurseStationId
|
||||||
if (this.goodDetailsLists.length == 1) {
|
if (this.goodDetailsLists.length == 1) {
|
||||||
this.goodDetailsLists.isActive = true
|
this.goodDetailsLists[0].isActive = true
|
||||||
this.updata.img = this.goodDetailsLists.attributePitureUrl
|
this.updata.img = this.goodDetailsLists[0].attributePitureUrl
|
||||||
this.updata.goodsAttributeName = this.goodDetailsLists.attributeDetailsName
|
this.updata.goodsAttributeName = this.goodDetailsLists[0].attributeDetailsName
|
||||||
this.updata.goodsPrice = this.goodDetailsLists.goodsPrice
|
this.updata.goodsPrice = this.goodDetailsLists[0].goodsPrice
|
||||||
this.updata.goodsPrice = this.updata.goodsPrice.toFixed(2)
|
this.updata.goodsPrice = this.updata.goodsPrice.toFixed(2)
|
||||||
this.updata.attributeDetailsId = this.goodDetailsLists.attributeDetailsId
|
this.updata.attributeDetailsId = this.goodDetailsLists[0].attributeDetailsId
|
||||||
this.updata.goodsStock = this.goodDetailsLists.goodsStock
|
this.updata.goodsStock = this.goodDetailsLists[0].goodsStock
|
||||||
this.updata.goodsAttributeId = this.goodDetailsLists.goodsAttributeId
|
this.updata.goodsAttributeId = this.goodDetailsLists[0].goodsAttributeId
|
||||||
this.updata.goodsAttributeDetailsId = this.goodDetailsLists.attributeDetailsId
|
this.updata.goodsAttributeDetailsId = this.goodDetailsLists[0].attributeDetailsId
|
||||||
} else {
|
} else {
|
||||||
var list = {}
|
var list = {}
|
||||||
this.goodsDetailslist.goodAttributeDetailsLists.forEach(e => {
|
this.goodsDetailslist.goodAttributeDetailsLists.forEach(e => {
|
||||||
if (e.goodsAttributeId == this.goodsAttributeId) {
|
if (e.goodsAttributeId == this.goodsAttributeId) {
|
||||||
|
|||||||
@ -190,10 +190,7 @@
|
|||||||
showPicker() {
|
showPicker() {
|
||||||
this.$refs.cityPicker.show();
|
this.$refs.cityPicker.show();
|
||||||
},
|
},
|
||||||
//上传图片+提交信息
|
data() {
|
||||||
informationinfo() {
|
|
||||||
//上传图片
|
|
||||||
var that = this
|
|
||||||
var that = this
|
var that = this
|
||||||
if (that.radio == 1) {
|
if (that.radio == 1) {
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
@ -201,7 +198,7 @@
|
|||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if (this.image) {
|
if (that.image) {
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: baseurl + '/nurseApplet/uploadFile/uploadHeadPictureUrl',
|
url: baseurl + '/nurseApplet/uploadFile/uploadHeadPictureUrl',
|
||||||
filePath: that.appPersonallist.headPictureUrl,
|
filePath: that.appPersonallist.headPictureUrl,
|
||||||
@ -266,6 +263,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
informationinfo() {
|
||||||
|
//上传图片
|
||||||
|
var that = this
|
||||||
|
if (this.addresslength) {
|
||||||
|
if (this.addresslength.length > 2) {
|
||||||
|
that.data();
|
||||||
|
} else {
|
||||||
|
that.$refs.uToast.show({
|
||||||
|
title: '地址不完整,请选择到区级',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
that.data();
|
||||||
|
}
|
||||||
|
},
|
||||||
//上传头像
|
//上传头像
|
||||||
uploadImag() {
|
uploadImag() {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
|||||||
@ -192,48 +192,54 @@
|
|||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
},
|
},
|
||||||
// 保存按钮
|
// 保存按钮
|
||||||
submit() {
|
data() {
|
||||||
let that = this
|
let that = this
|
||||||
if (this.addresslength.length > 2) {
|
if (that.isedit == true) {
|
||||||
if (that.isedit == true) {
|
addnursingStation(that.infolist).then(res => {
|
||||||
addnursingStation(that.infolist).then(res => {
|
if (res.code == 200) {
|
||||||
if (res.code == 200) {
|
that.$refs.uToast.show({
|
||||||
that.$refs.uToast.show({
|
title: '新增成功',
|
||||||
title: '新增成功',
|
type: 'success'
|
||||||
type: 'success'
|
})
|
||||||
})
|
that.cencel();
|
||||||
that.cencel();
|
setTimeout(e => {
|
||||||
setTimeout(e => {
|
that.goodsList()
|
||||||
that.goodsList()
|
}, 1000)
|
||||||
}, 1000)
|
}
|
||||||
}
|
})
|
||||||
})
|
} else {
|
||||||
|
updatenursingStation(that.infolist).then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
that.$refs.uToast.show({
|
||||||
|
title: '修改成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
that.cencel();
|
||||||
|
setTimeout(e => {
|
||||||
|
that.goodsList()
|
||||||
|
}, 1000)
|
||||||
|
} else {
|
||||||
|
that.$refs.uToast.show({
|
||||||
|
title: res.msg,
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
submit() {
|
||||||
|
if (this.addresslength) {
|
||||||
|
if (this.addresslength.length > 2) {
|
||||||
|
this.data();
|
||||||
} else {
|
} else {
|
||||||
updatenursingStation(that.infolist).then(res => {
|
this.$refs.uToast.show({
|
||||||
if (res.code == 200) {
|
title: '地址不完整,请选择到区级',
|
||||||
that.$refs.uToast.show({
|
type: 'error'
|
||||||
title: '修改成功',
|
|
||||||
type: 'success'
|
|
||||||
})
|
|
||||||
that.cencel();
|
|
||||||
setTimeout(e => {
|
|
||||||
that.goodsList()
|
|
||||||
}, 1000)
|
|
||||||
} else {
|
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: res.msg,
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
that.$refs.uToast.show({
|
this.data()
|
||||||
title: '地址不完整,请选择到区级',
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
// 修改按钮
|
// 修改按钮
|
||||||
updataxg(item) {
|
updataxg(item) {
|
||||||
|
|||||||
@ -45,7 +45,7 @@
|
|||||||
{{appPersonallist.provinceName}}-{{appPersonallist.cityName}}-{{appPersonallist.regionName}}-{{appPersonallist.streetName}}
|
{{appPersonallist.provinceName}}-{{appPersonallist.cityName}}-{{appPersonallist.regionName}}-{{appPersonallist.streetName}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="addressitem" v-if="appPersonallist.regionName">
|
<view class="addressitem" v-else>
|
||||||
<view class="" style="padding-left: 5%;">
|
<view class="" style="padding-left: 5%;">
|
||||||
区域:
|
区域:
|
||||||
</view>
|
</view>
|
||||||
@ -53,11 +53,6 @@
|
|||||||
{{appPersonallist.provinceName}}-{{appPersonallist.cityName}}-{{appPersonallist.regionName}}
|
{{appPersonallist.provinceName}}-{{appPersonallist.cityName}}-{{appPersonallist.regionName}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="addressitem" v-else>
|
|
||||||
<view class="" style="padding-left: 5%;">
|
|
||||||
区域:
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="addressitem" style="height:100%" v-if="appPersonallist.address">
|
<view class="addressitem" style="height:100%" v-if="appPersonallist.address">
|
||||||
<view class="" style="padding-left: 5%;">
|
<view class="" style="padding-left: 5%;">
|
||||||
地址:
|
地址:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user