Browse Source

修改应收金额

Shannon_mu 3 years ago
parent
commit
3626c3d38e

+ 1 - 1
operationSupport/src/views/patrolManagement/popups/addPatrol.vue

@@ -167,7 +167,7 @@ export default {
                 periodValue: '',
                 periodValue: '',
                 positioningDistance: '',
                 positioningDistance: '',
                 cameraSettings: '',
                 cameraSettings: '',
-                signFlag: '',
+                signFlag: 1,
                 remark: ''
                 remark: ''
             },
             },
             periodValue: [],
             periodValue: [],

+ 9 - 5
operationSupport/src/views/patrolManagement/popups/addPoint.vue

@@ -11,6 +11,10 @@
             >
             >
                 <el-option v-for="(item, index) in communityArr" :key="index" :label="item.communityName" :value="item.id"></el-option>
                 <el-option v-for="(item, index) in communityArr" :key="index" :label="item.communityName" :value="item.id"></el-option>
             </el-select>
             </el-select>
+            <template slot="pointNo">
+                <el-input  v-model="formData.pointNo" :disabled="params.todo == 'edit'" @change="initDotTggle" placeholder="请输入巡更点编号"> </el-input>
+            </template>
+
             <el-select v-model="formData.buildingId" placeholder="请选择楼栋" clearable slot="buildingId" @change="buildingChange">
             <el-select v-model="formData.buildingId" placeholder="请选择楼栋" clearable slot="buildingId" @change="buildingChange">
                 <el-option v-for="(item, index) in buildingArr" :key="index" :label="item.label" :value="item.id"></el-option>
                 <el-option v-for="(item, index) in buildingArr" :key="index" :label="item.label" :value="item.id"></el-option>
             </el-select>
             </el-select>
@@ -86,7 +90,7 @@ export default {
                     {
                     {
                         label: '巡更点编号',
                         label: '巡更点编号',
                         prop: 'pointNo',
                         prop: 'pointNo',
-                        input: true
+                        slot: 'pointNo'
                     },
                     },
                     {
                     {
                         label: '经纬度坐标',
                         label: '经纬度坐标',
@@ -98,7 +102,7 @@ export default {
             communityArr: [],
             communityArr: [],
             buildingArr: [],
             buildingArr: [],
             unitArr: [],
             unitArr: [],
-            communityLoc:[],
+            communityLoc: [],
             backfill: false,
             backfill: false,
             mapPopUpStatus: false //地图弹出框
             mapPopUpStatus: false //地图弹出框
         };
         };
@@ -116,7 +120,7 @@ export default {
                         callback: resolve,
                         callback: resolve,
                         location: this.initDot,
                         location: this.initDot,
                         data: this.formData,
                         data: this.formData,
-                        communityLoc:this.communityLoc
+                        communityLoc: this.communityLoc
                     },
                     },
                     title: title
                     title: title
                 });
                 });
@@ -192,7 +196,7 @@ export default {
             let thisLoc = this.communityArr.find((item) => {
             let thisLoc = this.communityArr.find((item) => {
                 return item.id == e;
                 return item.id == e;
             });
             });
-            this.communityLoc = [thisLoc.longitude,thisLoc.latitude];
+            this.communityLoc = [thisLoc.longitude, thisLoc.latitude];
             this.formData.buildingId = '';
             this.formData.buildingId = '';
             this.formData.unit = '';
             this.formData.unit = '';
             this.nestedLoop(this.communityTre, 'building', 'buildingArr', e);
             this.nestedLoop(this.communityTre, 'building', 'buildingArr', e);
@@ -211,7 +215,7 @@ export default {
         this.communityTre = this.params.communityTre;
         this.communityTre = this.params.communityTre;
         this.communityArr = this.params.communityArr;
         this.communityArr = this.params.communityArr;
         if (this.params.todo == 'edit') {
         if (this.params.todo == 'edit') {
-            let newData = this.params.data;
+            let newData = JSON.parse(JSON.stringify(this.params.data));
             this.formData = newData;
             this.formData = newData;
             this.nestedLoop(this.communityTre, 'building', 'buildingArr', newData.communityId);
             this.nestedLoop(this.communityTre, 'building', 'buildingArr', newData.communityId);
             this.nestedLoop(this.buildingArr, 'unit', 'unitArr', newData.buildingId);
             this.nestedLoop(this.buildingArr, 'unit', 'unitArr', newData.buildingId);

+ 19 - 0
operationSupport/src/views/payService/propertyFee/index.vue

@@ -69,6 +69,9 @@
                         <el-tooltip v-show="chargeStatus == 1" class="item" effect="light" placement="bottom" content="收款">
                         <el-tooltip v-show="chargeStatus == 1" class="item" effect="light" placement="bottom" content="收款">
                             <i class="zoniot_font zoniot-icon-shoukuan" @click="collections('single', scope.row)"></i>
                             <i class="zoniot_font zoniot-icon-shoukuan" @click="collections('single', scope.row)"></i>
                         </el-tooltip>
                         </el-tooltip>
+                        <el-tooltip v-show="chargeStatus == 1" class="item" effect="light" placement="bottom" content="修改金额">
+                            <i class="zoniot_font zoniot-icon-koufeijilu" @click="editAmount(scope.row)"></i>
+                        </el-tooltip>
                         <el-tooltip v-show="chargeStatus == 2" class="item" effect="light" placement="bottom" content="详情">
                         <el-tooltip v-show="chargeStatus == 2" class="item" effect="light" placement="bottom" content="详情">
                             <i class="zoniot_font zoniot-icon-xiangqing" @click="lookDetails(scope.row)"></i>
                             <i class="zoniot_font zoniot-icon-xiangqing" @click="lookDetails(scope.row)"></i>
                         </el-tooltip>
                         </el-tooltip>
@@ -216,6 +219,22 @@ export default {
             }
             }
             this.getList();
             this.getList();
         },
         },
+        editAmount(row) {
+            new Promise((resolve) => {
+                this.$store.dispatch('addPopup', {
+                    url: '/payService/propertyFee/stepPage/editAmount.vue',
+                    width: '550px',
+                    height: '180px',
+                    props: {
+                        data: row,
+                        callback: resolve
+                    },
+                    title: '修改应收金额'
+                });
+            }).then(() => {
+                this.mixins_search();
+            });
+        },
         collections(todo, row) {
         collections(todo, row) {
             new Promise((resolve) => {
             new Promise((resolve) => {
                 let title = '',
                 let title = '',

+ 57 - 0
operationSupport/src/views/payService/propertyFee/stepPage/editAmount.vue

@@ -0,0 +1,57 @@
+<template>
+    <el-form ref="form" :model="formData" :rules="formRules" label-width="100px">
+        <el-form-item label="应收金额" prop="receivableAmount">
+            <el-input v-model="formData.receivableAmount" placeholder="请输入应收金额"></el-input>
+        </el-form-item>
+    </el-form>
+</template>
+<script >
+export default {
+    props: ['params'],
+    data() {
+        return {
+            formData: {
+                receivableAmount: '',
+                id: ''
+            },
+            formRules: {
+                receivableAmount: [this.$valid.inputRequired('应收金额')]
+            }
+        };
+    },
+
+    methods: {
+        submit() {
+            this.$refs.form.validate((valid) => {
+                if (valid) {
+                    var loading = this.$loading();
+                    let installData = {
+                        amount: this.formData.receivableAmount,
+                        billId: this.formData.id
+                    };
+                    this.$http
+                        .get('/sc-charge/charge/bill/update/amount', installData)
+                        .then(({ status, msg }) => {
+                            if (status == 0) {
+                                this.$message.success(msg);
+                                this.params.callback();
+                                this.$emit('close');
+                            } else {
+                                this.$message.error(msg);
+                            }
+                            loading.close();
+                        })
+                        .catch(() => {
+                            loading.close();
+                        });
+                }
+            });
+        }
+    },
+    created() {
+        Object.assign(this.formData, this.params.data);
+    }
+};
+</script>
+<style lang="scss" scoped>
+</style>