|
@@ -657,7 +657,6 @@ export default {
|
|
|
const _this = this
|
|
|
this.$refs.houseForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
- _this.loadingFlag = true
|
|
|
const ids = this.houseForm.findids
|
|
|
if (ids != null && ids != [] && ids != '') {
|
|
|
this.houseForm.groupId = ids[0]
|
|
@@ -667,6 +666,28 @@ export default {
|
|
|
const extraData = {
|
|
|
}
|
|
|
const postData = Object.assign({}, this.houseForm, extraData)
|
|
|
+ if (!postData.groupId) {
|
|
|
+ this.$message({
|
|
|
+ message: '请选择小区',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!postData.discId) {
|
|
|
+ this.$message({
|
|
|
+ message: '请选择分期',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!postData.buildId) {
|
|
|
+ this.$message({
|
|
|
+ message: '请选择楼栋',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ _this.loadingFlag = true
|
|
|
this.baseRequest(this.urlStr, postData).then((res) => {
|
|
|
this.houseForm = {}
|
|
|
this.dialogVisible = false
|