|
@@ -89,10 +89,15 @@
|
89
|
89
|
<el-button type="danger" size="small"> 其他操作<i class="el-icon-arrow-down el-icon--right"></i></el-button>
|
90
|
90
|
<el-dropdown-menu slot="dropdown">
|
91
|
91
|
<el-dropdown-item command="deleteRecord" style="background-color: #f5f5f5;">删除记录</el-dropdown-item>
|
|
92
|
+ <el-dropdown-item command="changeRecordInDtm" style="background-color: #f5f5f5;">修改时间</el-dropdown-item>
|
92
|
93
|
</el-dropdown-menu>
|
93
|
94
|
</el-dropdown>
|
94
|
95
|
|
95
|
96
|
</el-form-item>
|
|
97
|
+ <el-form-item label="修改时间" style="margin-left: -35px;margin-top: -15px">
|
|
98
|
+ <el-date-picker size="small" v-model="ChangeInDtm" type="datetime" placeholder="选择日期时间" style="width:200px;margin-left: -8px">
|
|
99
|
+ </el-date-picker>
|
|
100
|
+ </el-form-item>
|
96
|
101
|
</el-row>
|
97
|
102
|
</el-form>
|
98
|
103
|
<total-block ref="totalBlock" style="margin-left: -25px;font-size: 13px;margin-left: 5px" v-bind:childParam="childParam" v-bind:childUrl = 'childUrl'></total-block>
|
|
@@ -215,6 +220,7 @@
|
215
|
220
|
childUrl:'WareInRecord/queryTotal.do',
|
216
|
221
|
tallyPeopleOption:[],
|
217
|
222
|
optionsCust:[],
|
|
223
|
+ ChangeInDtm: '',
|
218
|
224
|
|
219
|
225
|
};
|
220
|
226
|
},
|
|
@@ -265,6 +271,9 @@
|
265
|
271
|
case "deleteRecord":
|
266
|
272
|
this.deleteRecord();
|
267
|
273
|
break;
|
|
274
|
+ case "changeRecordInDtm":
|
|
275
|
+ this.changeRecordInDtm();
|
|
276
|
+ break;
|
268
|
277
|
}
|
269
|
278
|
},
|
270
|
279
|
|
|
@@ -539,6 +548,31 @@
|
539
|
548
|
});
|
540
|
549
|
}
|
541
|
550
|
|
|
551
|
+ },
|
|
552
|
+ changeRecordInDtm(){
|
|
553
|
+ if (this.selectRows.length < 1) {
|
|
554
|
+ this.$message({
|
|
555
|
+ type: 'error',
|
|
556
|
+ message: '至少选择一条数据!',
|
|
557
|
+ });
|
|
558
|
+ return
|
|
559
|
+ }else{
|
|
560
|
+ var url = 'WareInRecord/changeRecordInDtm.do'
|
|
561
|
+ var param = {
|
|
562
|
+ json: JSON.stringify(this.selectRows),
|
|
563
|
+ ChangeInDtm: this.ChangeInDtm.Format("yyyy-MM-dd HH:mm:ss")
|
|
564
|
+ }
|
|
565
|
+ axios.post(url, param).then(response => {
|
|
566
|
+ if (response.data.code == 0) {
|
|
567
|
+ this.getTableData()
|
|
568
|
+ } else {
|
|
569
|
+ this.$message({
|
|
570
|
+ type: 'error',
|
|
571
|
+ message: '操作失败;' + response.data.msg,
|
|
572
|
+ });
|
|
573
|
+ }
|
|
574
|
+ });
|
|
575
|
+ }
|
542
|
576
|
}
|
543
|
577
|
|
544
|
578
|
},
|