|
@@ -191,15 +191,9 @@
|
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- <view class="container">
|
|
|
-
|
|
|
- <text>数量</text>
|
|
|
- <input class="uni-input" type="number" v-model="a.sl" placeholder="请填写数量" maxlength="11"
|
|
|
- style="margin-left: 10px;text-align: right;"></input>
|
|
|
- </view> -->
|
|
|
+
|
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
<text>米 数</text>
|
|
|
- <!-- style="margin-left: 10px;text-align: right;" -->
|
|
|
<view style="display: flex; justify-content: right; width: 70%;">
|
|
|
<input class="uni-input" type="number" v-model="a.sl.inputIntegerNumberValue" maxlength="6"
|
|
|
style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
@@ -364,16 +358,7 @@
|
|
|
onLoad(options) {
|
|
|
if ('params' in options) {
|
|
|
this.objValue = JSON.parse(decodeURIComponent(options.params));
|
|
|
- // if (this.objValue.enginType == `old_renovation`) {
|
|
|
- // this.title = '旧改工程-庭院'
|
|
|
-
|
|
|
- // } else if (this.objValue.enginType == `new_built`) {
|
|
|
- // this.title = '新建工程-庭院'
|
|
|
- // }
|
|
|
-
|
|
|
- // uni.setNavigationBarTitle({
|
|
|
- // title: this.title
|
|
|
- // })
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -488,9 +473,7 @@
|
|
|
success: (res) => {
|
|
|
if (res.confirm) {
|
|
|
this.imgArr.splice(index, 1)
|
|
|
- // if (this.imgArr.length <= 0) {
|
|
|
- // this.photo = true;
|
|
|
- // }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -524,24 +507,19 @@
|
|
|
header: _this.headers,
|
|
|
|
|
|
success: res => {
|
|
|
- // 判断是否json字符串,将其转为json格式
|
|
|
- // let data = _this.$u.test.jsonString(res
|
|
|
- // .data) ? JSON.parse(res.data) : res.data;
|
|
|
+
|
|
|
let data = JSON.parse(res.data);
|
|
|
if (![200].includes(data.code)) {
|
|
|
- // this.uploadError(index, data);
|
|
|
_this.$modal.msg(data.msg)
|
|
|
} else {
|
|
|
if (_this.progress === 100) {
|
|
|
_this.imgArr.push(data.data.url)
|
|
|
_this.$modal.msg('上传成功!')
|
|
|
- //_this.photo = false;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
fail: e => {
|
|
|
_this.$modal.msg('上传失败!')
|
|
|
- //_this.uploadError(index, e);
|
|
|
},
|
|
|
complete: res => {
|
|
|
uni.hideLoading();
|
|
@@ -589,7 +567,6 @@
|
|
|
if (_this.progress === 100) {
|
|
|
_this.imgArr.push(data.data.url)
|
|
|
_this.$modal.msg('上传成功!')
|
|
|
- //_this.photo = false;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -639,8 +616,6 @@
|
|
|
|
|
|
},
|
|
|
changeSelect(item, index) {
|
|
|
- // this.index = index;
|
|
|
- // this.address = item.communityName;
|
|
|
this.open = false;
|
|
|
|
|
|
if (this.type == 'cz') {
|
|
@@ -827,12 +802,7 @@
|
|
|
throw new Error('End Loop')
|
|
|
|
|
|
}
|
|
|
- // if (this.isEmpty(list.sl)) {
|
|
|
- // this.$modal.msg('数量不能为空')
|
|
|
-
|
|
|
- // throw new Error('End Loop')
|
|
|
-
|
|
|
- // }
|
|
|
+
|
|
|
|
|
|
if (this.isEmpty(list.sl.inputIntegerNumberValue)) {
|
|
|
this.$modal.msg("请输入米数")
|