Browse Source

1、添加房屋管理和和商品管理

wangfen 3 years ago
parent
commit
ac814913cd

+ 0 - 1
operationSupport/src/views/buildingManagement/pageJump/addoredit.vue

@@ -964,7 +964,6 @@ export default {
 					this.formdata.preInstallNumber = doorNumber;
 					// this.data.deviceTypeIds
 					const url = '/sc-community-web/assets/building/add';
-					console.log(this.formdata,'++++++++++++++++++++++++++++++++c')
 					this.$http.post(url, this.formdata).then(({ msg, status }) => {
 						this.$message({
 							type: status === 0 ? 'success' : 'error',

+ 1 - 1
operationSupport/src/views/communityManagement/pageJump/AddOrEdit.vue

@@ -263,7 +263,7 @@ export default {
                 .catch(_ => {});
         },
         addressQueryClick(){
-            this.mapPopUpStatus=true;
+            // this.mapPopUpStatus=true;
         }
 
 

+ 1 - 1
operationSupport/src/views/housingManagement/index.vue

@@ -279,7 +279,7 @@
         },
         created() {
             this.mix_path = ""; // 权限
-            this.mixins_dataUrl = "/pay/getAllPayPayAgentbranch"; // 分页查询接口
+            // this.mixins_dataUrl = "/pay/getAllPayPayAgentbranch"; // 分页查询接口
             // this.mixins_query = {
             //     questParams: "",
             //     companyId: "",

+ 21 - 17
operationSupport/src/views/housingManagement/pageJump/saveEdits.vue

@@ -96,7 +96,7 @@
         </div>
         <div style="text-align: right;">
             <el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
-            <el-button>取消</el-button>
+            <el-button @click="cancelSaving">取消</el-button>
         </div>
     </div>
 </template>
@@ -160,14 +160,7 @@
                             this.ruleForm.housingType=this.housingType.roomNumber+":"+this.housingType.officeNumber+":"+this.housingType.guardNumber;
                             this.$http.post('/sc-community-web/assets/house/update', this.ruleForm).then((res) => {
                                 if(res.status==0){
-                                    this.$message({
-                                        message: '添加成功',
-                                        type: 'success'
-                                    });
-
-                                    setTimeout(function(){
-                                        self.$router.go(-1);//返回上一层
-                                    },5000)
+                                    self.$router.go(-1);//返回上一层
                                 }else{
 
                                 }
@@ -179,14 +172,7 @@
                             this.$http.post('/sc-community-web/assets/house/add', this.ruleForm).then((res) => {
                                 if(res.status==0){
                                     if(res.status==0){
-                                        this.$message({
-                                            message: '编辑成功',
-                                            type: 'success'
-                                        });
-
-                                        setTimeout(function(){
-                                            self.$router.go(-1);//返回上一层
-                                        },5000)
+                                        self.$router.go(-1);//返回上一层
                                     }else{
 
                                     }
@@ -203,6 +189,24 @@
                     }
                 });
             },
+            cancelSaving(){//取消
+                this.ruleForm.communityId='';
+                this.ruleForm.buildingId='';
+                this.ruleForm.unitName='';
+                this.ruleForm.floorNumber='';
+                this.ruleForm.roomNumber='';
+                this.ruleForm.buildingType='';
+                this.ruleForm.useArea='';
+                this.ruleForm.housingType='';
+                this.housingType.roomNumber='';
+                this.housingType.officeNumber='';
+                this.housingType.guardNumber='';
+                this.ruleForm.orientationOfRoom='';
+                this.ruleForm.buildingArea='';
+                this.ruleForm.publicArea='';
+                this.ruleForm.decorateProperties='';
+                this.ruleForm.remarks='';
+            },
             resetForm(formName) {
                 this.$refs[formName].resetFields();
             },

+ 21 - 17
operationSupport/src/views/shopManagement/pageJump/saveEdits.vue

@@ -96,7 +96,7 @@
         </div>
         <div style="text-align: right;">
             <el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
-            <el-button>取消</el-button>
+            <el-button @click="cancelSaving">取消</el-button>
         </div>
     </div>
 </template>
@@ -160,14 +160,7 @@
                             this.ruleForm.housingType=this.housingType.roomNumber+":"+this.housingType.officeNumber+":"+this.housingType.guardNumber;
                             this.$http.post('/sc-community-web/assets/house/update', this.ruleForm).then((res) => {
                                 if(res.status==0){
-                                    this.$message({
-                                        message: '添加成功',
-                                        type: 'success'
-                                    });
-
-                                    setTimeout(function(){
-                                        self.$router.go(-1);//返回上一层
-                                    },5000)
+                                    self.$router.go(-1);//返回上一层
                                 }else{
 
                                 }
@@ -179,14 +172,7 @@
                             this.$http.post('/sc-community-web/assets/house/add', this.ruleForm).then((res) => {
                                 if(res.status==0){
                                     if(res.status==0){
-                                        this.$message({
-                                            message: '编辑成功',
-                                            type: 'success'
-                                        });
-
-                                        setTimeout(function(){
-                                            self.$router.go(-1);//返回上一层
-                                        },5000)
+                                        self.$router.go(-1);//返回上一层
                                     }else{
 
                                     }
@@ -203,6 +189,24 @@
                     }
                 });
             },
+            cancelSaving(){//取消
+                this.ruleForm.communityId='';
+                this.ruleForm.buildingId='';
+                this.ruleForm.unitName='';
+                this.ruleForm.floorNumber='';
+                this.ruleForm.roomNumber='';
+                this.ruleForm.buildingType='';
+                this.ruleForm.useArea='';
+                this.ruleForm.housingType='';
+                this.housingType.roomNumber='';
+                this.housingType.officeNumber='';
+                this.housingType.guardNumber='';
+                this.ruleForm.orientationOfRoom='';
+                this.ruleForm.buildingArea='';
+                this.ruleForm.publicArea='';
+                this.ruleForm.decorateProperties='';
+                this.ruleForm.remarks='';
+            },
             resetForm(formName) {
                 this.$refs[formName].resetFields();
             },