This commit is contained in:
曹辉 2023-01-10 15:26:26 +08:00
parent 1b4e8129ab
commit 1614b27292
4 changed files with 70 additions and 56 deletions

View File

@ -295,16 +295,16 @@
this.updata.goodsName = this.goodsDetailslist.goodsName
this.updata.nurseStationId = this.goodsDetailslist.nurseStationId
if (this.goodDetailsLists.length == 1) {
this.goodDetailsLists.isActive = true
this.updata.img = this.goodDetailsLists.attributePitureUrl
this.updata.goodsAttributeName = this.goodDetailsLists.attributeDetailsName
this.updata.goodsPrice = this.goodDetailsLists.goodsPrice
this.goodDetailsLists[0].isActive = true
this.updata.img = this.goodDetailsLists[0].attributePitureUrl
this.updata.goodsAttributeName = this.goodDetailsLists[0].attributeDetailsName
this.updata.goodsPrice = this.goodDetailsLists[0].goodsPrice
this.updata.goodsPrice = this.updata.goodsPrice.toFixed(2)
this.updata.attributeDetailsId = this.goodDetailsLists.attributeDetailsId
this.updata.goodsStock = this.goodDetailsLists.goodsStock
this.updata.goodsAttributeId = this.goodDetailsLists.goodsAttributeId
this.updata.goodsAttributeDetailsId = this.goodDetailsLists.attributeDetailsId
} else {
this.updata.attributeDetailsId = this.goodDetailsLists[0].attributeDetailsId
this.updata.goodsStock = this.goodDetailsLists[0].goodsStock
this.updata.goodsAttributeId = this.goodDetailsLists[0].goodsAttributeId
this.updata.goodsAttributeDetailsId = this.goodDetailsLists[0].attributeDetailsId
} else {
var list = {}
this.goodsDetailslist.goodAttributeDetailsLists.forEach(e => {
if (e.goodsAttributeId == this.goodsAttributeId) {

View File

@ -190,10 +190,7 @@
showPicker() {
this.$refs.cityPicker.show();
},
//+
informationinfo() {
//
var that = this
data() {
var that = this
if (that.radio == 1) {
that.$refs.uToast.show({
@ -201,7 +198,7 @@
type: 'error'
})
} else {
if (this.image) {
if (that.image) {
uni.uploadFile({
url: baseurl + '/nurseApplet/uploadFile/uploadHeadPictureUrl',
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() {
var that = this;

View File

@ -192,48 +192,54 @@
} catch (e) {}
},
//
submit() {
data() {
let that = this
if (this.addresslength.length > 2) {
if (that.isedit == true) {
addnursingStation(that.infolist).then(res => {
if (res.code == 200) {
that.$refs.uToast.show({
title: '新增成功',
type: 'success'
})
that.cencel();
setTimeout(e => {
that.goodsList()
}, 1000)
}
})
if (that.isedit == true) {
addnursingStation(that.infolist).then(res => {
if (res.code == 200) {
that.$refs.uToast.show({
title: '新增成功',
type: 'success'
})
that.cencel();
setTimeout(e => {
that.goodsList()
}, 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 {
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'
})
}
this.$refs.uToast.show({
title: '地址不完整,请选择到区级',
type: 'error'
})
}
} else {
that.$refs.uToast.show({
title: '地址不完整,请选择到区级',
type: 'error'
})
this.data()
}
},
//
updataxg(item) {

View File

@ -45,7 +45,7 @@
{{appPersonallist.provinceName}}-{{appPersonallist.cityName}}-{{appPersonallist.regionName}}-{{appPersonallist.streetName}}
</view>
</view>
<view class="addressitem" v-if="appPersonallist.regionName">
<view class="addressitem" v-else>
<view class="" style="padding-left: 5%;">
区域
</view>
@ -53,11 +53,6 @@
{{appPersonallist.provinceName}}-{{appPersonallist.cityName}}-{{appPersonallist.regionName}}
</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="" style="padding-left: 5%;">
地址