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,15 +295,15 @@
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 => {

View File

@ -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;

View File

@ -192,9 +192,8 @@
} 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) {
@ -227,13 +226,20 @@
} }
}) })
} }
},
submit() {
if (this.addresslength) {
if (this.addresslength.length > 2) {
this.data();
} else { } else {
that.$refs.uToast.show({ this.$refs.uToast.show({
title: '地址不完整,请选择到区级', title: '地址不完整,请选择到区级',
type: 'error' type: 'error'
}) })
} }
} else {
this.data()
}
}, },
// //
updataxg(item) { updataxg(item) {

View File

@ -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%;">
地址 地址