Browse Source

电能修改bug

Shan9312 1 tuần trước cách đây
mục cha
commit
3988f2611b

+ 3 - 2
src/views/cost/diesel/index.vue

@@ -556,7 +556,7 @@ export default {
       }
 
       let data = {
-        name:"getPastureSumDayWater",
+        name:"getPastureSumDayDiesel",
         parammaps:{
           startTime: this.getChart7Parm.parammaps.startTime || parseTime(new Date(), '{y}-{m}'),
           endTime: this.getChart7Parm.parammaps.endTime || parseTime(new Date(), '{y}-{m}'),
@@ -1019,7 +1019,7 @@ export default {
       this.temp.note = ''
     },
     form_add() {
-      console.log(this.temp.DATE)
+      console.log(this.temp.date)
       this.form_reset()
       this.dialogStatus = 'create'
       this.dialogFormVisible = true
@@ -1155,6 +1155,7 @@ export default {
 
     form_edit(row) {
       this.temp = Object.assign({}, row) // copy obj
+      this.temp.date = row.dateFormat;
       this.dialogStatus = 'update'
       this.dialogFormVisible = true
       this.$nextTick(() => {

+ 6 - 4
src/views/cost/elec/index.vue

@@ -194,8 +194,8 @@
             </el-form-item>
           </el-col>
           <el-col :span="8">
-            <el-form-item label="当前时间:" prop="DATE">
-              <el-date-picker v-model="temp.DATE" type="date" placeholder="当前时间" format="yyyy-MM-dd" value-format="yyyy-MM-dd" disabled style="width:100%;" />
+            <el-form-item label="当前时间:" prop="date">
+              <el-date-picker v-model="temp.date" type="date" placeholder="当前时间" format="yyyy-MM-dd" value-format="yyyy-MM-dd" disabled style="width:100%;" />
             </el-form-item>
           </el-col>
         </el-row>
@@ -547,7 +547,7 @@ export default {
       }
 
       let data = {
-        name:"getPastureSumDayWater",
+        name:"getPastureSumDayElec",
         parammaps:{
           startTime: this.getChart7Parm.parammaps.startTime || parseTime(new Date(), '{y}-{m}'),
           endTime: this.getChart7Parm.parammaps.endTime || parseTime(new Date(), '{y}-{m}'),
@@ -984,7 +984,7 @@ export default {
       this.temp.note = ''
       this.temp.employeId = ''
       this.temp.employeName = ''
-      this.temp.DATE = parseTime(new Date(), '{y}-{m}-{d}')
+      this.temp.date = parseTime(new Date(), '{y}-{m}-{d}')
       this.temp.inputDatetime = parseTime(new Date(), '{y}-{m}-{d}')
       this.temp.typeName = ''
       this.temp.assTypeId = ''
@@ -1142,10 +1142,12 @@ export default {
       })
     },
     form_edit(row) {
+      console.log(row,'编剧')
       this.temp = Object.assign({}, row) // copy obj
       // if (this.temp.endAmount !== '' && this.temp.endAmount !== undefined && this.temp.endAmount !== null && this.temp.aAmount !== '' && this.temp.aAmount !== undefined && this.temp.aAmount !== null) {
       //   this.$set(this.temp, 'consumption', parseFloat(this.temp.endAmount) - parseFloat(this.temp.aAmount))
       // }
+      this.temp.date = row.dateFormat;
       this.dialogStatus = 'update'
       this.dialogFormVisible = true
       this.$nextTick(() => {

+ 4 - 3
src/views/cost/water/index.vue

@@ -181,7 +181,7 @@
         <el-row>
           <el-col :span="8">
             <el-form-item label="当前时间:" prop="DATE">
-              <el-date-picker v-model="temp.DATE" type="date" placeholder="当前时间" format="yyyy-MM-dd" value-format="yyyy-MM-dd" disabled style="width:100%;" />
+              <el-date-picker v-model="temp.date" type="date" placeholder="当前时间" format="yyyy-MM-dd" value-format="yyyy-MM-dd" disabled style="width:100%;" />
             </el-form-item>
           </el-col>
           <el-col :span="8">
@@ -993,7 +993,7 @@ export default {
       this.temp.consumption = ''
       // this.temp.employeId = ''
       this.temp.employeName = ''
-      this.temp.DATE = parseTime(new Date(), '{y}-{m}-{d}')
+      this.temp.date = parseTime(new Date(), '{y}-{m}-{d}')
       this.temp.inputDatetime = parseTime(new Date(), '{y}-{m}-{d}')
       this.temp.typeName = ''
       this.temp.assTypeId = ''
@@ -1002,7 +1002,7 @@ export default {
       this.temp.pastureId = this.$store.state.user.pastureid
     },
     form_add() {
-      // console.log(this.temp.DATE)
+      // console.log(this.temp.date)
       this.form_reset()
       this.dialogStatus = 'create'
       this.dialogFormVisible = true
@@ -1156,6 +1156,7 @@ export default {
       // if (this.temp.endAmount !== '' && this.temp.endAmount !== undefined && this.temp.endAmount !== null && this.temp.aAmount !== '' && this.temp.aAmount !== undefined && this.temp.aAmount !== null) {
       //   this.$set(this.temp, 'consumption', parseFloat(this.temp.endAmount) - parseFloat(this.temp.aAmount))
       // }
+        this.temp.date = row.dateFormat;
       this.dialogStatus = 'update'
       this.dialogFormVisible = true
       this.$nextTick(() => {