Browse Source

出库记录查询界面增加出库时间修改

YL2767 2 days ago
parent
commit
0b32e9acbc
2 changed files with 39 additions and 4 deletions
  1. 3
    3
      src/view/maint/cargo.vue
  2. 36
    1
      src/view/record/outrecord.vue

+ 3
- 3
src/view/maint/cargo.vue View File

@@ -19,11 +19,11 @@
19 19
 			</el-table-column>
20 20
 			<el-table-column prop="uperCustomer.name" label="上游客户" width="400">
21 21
 			</el-table-column>
22
-			<el-table-column prop="customer.name" label="客户" width="400">
22
+			<el-table-column prop="customer.name" sortable label="客户" width="400">
23 23
 			</el-table-column>
24
-			<el-table-column prop="sumWeight" label="可使用量" width="120">
24
+			<el-table-column prop="sumWeight" sortable label="可使用量" width="120">
25 25
 			</el-table-column>
26
-			<el-table-column prop="useWeight" label="已使用量" width="120">
26
+			<el-table-column prop="useWeight" sortable label="已使用量" width="120">
27 27
 			</el-table-column>
28 28
 
29 29
 			<el-table-column label="操作">

+ 36
- 1
src/view/record/outrecord.vue View File

@@ -88,10 +88,15 @@
88 88
 							<el-dropdown-menu slot="dropdown">
89 89
 								<el-dropdown-item command="handleOutBack" style="background-color: #f5f5f5;">取消出库</el-dropdown-item>
90 90
 								<el-dropdown-item command="handleDeleteRecord" style="background-color: #f5f5f5;">删除记录</el-dropdown-item>
91
+								<el-dropdown-item command="changeRecordOutDtm" style="background-color: #f5f5f5;">修改时间</el-dropdown-item>
91 92
 							</el-dropdown-menu>
92 93
 						</el-dropdown>
93 94
 						
94 95
 					</el-form-item>
96
+					<el-form-item label="修改时间" style="margin-left: -35px">
97
+							<el-date-picker size="small" v-model="ChangeOutDtm" type="datetime" placeholder="选择日期时间" style="width:200px;margin-left: -8px">
98
+							</el-date-picker>
99
+					</el-form-item>
95 100
 						
96 101
 					</el-row>
97 102
 				</el-form>
@@ -338,7 +343,8 @@
338 343
 				modifyPrice:0,
339 344
 				optionsCust:[],
340 345
 				changeCarNo:"",
341
-				popupCarno: false
346
+				popupCarno: false,
347
+				ChangeOutDtm:''
342 348
 			};
343 349
 		},
344 350
 		//页面加载完成渲染
@@ -379,6 +385,9 @@
379 385
 					case "handleDeleteRecord":
380 386
 						this.handleDeleteRecord();
381 387
 						break;
388
+					case "changeRecordOutDtm":
389
+						this.changeRecordOutDtm();
390
+						break;
382 391
 				}
383 392
 			},
384 393
 			handleSavePriceMod(){
@@ -912,6 +921,32 @@
912 921
 					return v[j]
913 922
 				}))
914 923
 			},
924
+
925
+			changeRecordOutDtm(){
926
+				if (this.selectRows.length < 1) {
927
+					this.$message({
928
+						type: 'error',
929
+						message: '至少选择一条数据!',
930
+					});
931
+					return
932
+				}else{
933
+					var url = 'WareOutRecord/changeRecordOutDtm.do'
934
+					var param = {
935
+						json: JSON.stringify(this.selectRows),
936
+						ChangeOutDtm: this.ChangeOutDtm.Format("yyyy-MM-dd HH:mm:ss")
937
+					}
938
+					axios.post(url, param).then(response => {
939
+						if (response.data.code == 0) {
940
+							this.getTableData()
941
+						} else {
942
+							this.$message({
943
+								type: 'error',
944
+								message: '操作失败;' + response.data.msg,
945
+							});
946
+						}
947
+					});
948
+				}
949
+			}
915 950
 		},
916 951
 	}
917 952
 </script>

Loading…
Cancel
Save