|
@@ -145,16 +145,21 @@ class Index extends Component {
|
|
|
}
|
|
|
|
|
|
|
|
|
- saleedHandle () {
|
|
|
+ saleedHandle (str) {
|
|
|
+ const { formObj } = this.state
|
|
|
const {id} = this.$router.params
|
|
|
- Taro.$msgConfirm(`确定是洪楼内部卖出的吗?`, () => {
|
|
|
- // Taro.api.room.apieshousesold({
|
|
|
- // is_sold: 1,
|
|
|
- // id
|
|
|
- // }).then(() => {
|
|
|
- // Taro.$msg('已标记')
|
|
|
- // })
|
|
|
- this.saveHandle('is_sold')
|
|
|
+ if (!formObj.xprice || formObj.xprice < 0) {
|
|
|
+ Taro.$msg('请输入正确的成交价格')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ Taro.$msgConfirm(`确定是${str}卖出的总价${formObj.xprice}万吗?`, () => {
|
|
|
+ Taro.api.room.apieshousesold({
|
|
|
+ sold_price: formObj.xprice,
|
|
|
+ sold_platform: str,
|
|
|
+ id
|
|
|
+ }).then(() => {
|
|
|
+ Taro.$msg('操作成功')
|
|
|
+ })
|
|
|
}, () => {})
|
|
|
}
|
|
|
|
|
@@ -1070,8 +1075,22 @@ class Index extends Component {
|
|
|
{
|
|
|
id
|
|
|
?
|
|
|
- <View style="padding-top: 10px;" className="lff-flex">
|
|
|
- <View className="lff-btn full t4" onClick={this.saleedHandle.bind(this)}>标记已成交</View>
|
|
|
+ <View style="padding-top: 10px;">
|
|
|
+ <View className="l-floor-pos2">
|
|
|
+ <LFormGroup
|
|
|
+ val={formObj.xprice}
|
|
|
+ valStr="xprice"
|
|
|
+ keyStr="成交总价"
|
|
|
+ keyStr2="请输入"
|
|
|
+ typeStr="inputFont"
|
|
|
+ inputFont="万"
|
|
|
+ bc={this.baseFormChange.bind(this)}
|
|
|
+ />
|
|
|
+ </View>
|
|
|
+ <View className="lff-flex">
|
|
|
+ <View className="lff-btn t5" onClick={this.saleedHandle.bind(this, '洪楼')}>洪楼成交</View>
|
|
|
+ <View className="lff-btn t4" onClick={this.saleedHandle.bind(this, '其它')}>其它成交</View>
|
|
|
+ </View>
|
|
|
</View>
|
|
|
: ''
|
|
|
}
|