|
@@ -44,6 +44,10 @@
|
44
|
44
|
<el-input v-model="query.ordNo" size="small" style="width:120px;margin-left: -8px">
|
45
|
45
|
</el-input>
|
46
|
46
|
</el-form-item>
|
|
47
|
+ <el-form-item label="入库时间" style="margin-left: -35px">
|
|
48
|
+ <el-date-picker size="small" v-model="query.inRecordDate" style="width:330px;margin-left: -8px" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
|
|
49
|
+ </el-date-picker>
|
|
50
|
+ </el-form-item>
|
47
|
51
|
<el-form-item label="" style="margin-top: 0px;margin-left: 10px">
|
48
|
52
|
<el-button @click="handleSearch" size="small" type="primary">查询</el-button>
|
49
|
53
|
<el-button @click="showChangeCustomer" size="small" type="primary">货权转移</el-button>
|
|
@@ -99,6 +103,8 @@
|
99
|
103
|
</el-table-column>
|
100
|
104
|
<el-table-column prop="addTime" label="入库时间" width="200" show-overflow-tooltip header-align="center">
|
101
|
105
|
</el-table-column>
|
|
106
|
+ <el-table-column prop="carNo" label="入库车号" width="200" show-overflow-tooltip header-align="center">
|
|
107
|
+ </el-table-column>
|
102
|
108
|
</el-table>
|
103
|
109
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
104
|
110
|
:page-sizes="pageSizes" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="totalRows">
|
|
@@ -223,6 +229,7 @@
|
223
|
229
|
customerName: '',
|
224
|
230
|
plateNo: '',
|
225
|
231
|
wareId:'',
|
|
232
|
+ inRecordDate:[],
|
226
|
233
|
},
|
227
|
234
|
multipleSelection: [],
|
228
|
235
|
tableData: [],
|
|
@@ -253,10 +260,15 @@
|
253
|
260
|
};
|
254
|
261
|
},
|
255
|
262
|
mounted() {
|
256
|
|
- this.getWare()
|
|
263
|
+ this.getWare(),
|
|
264
|
+ THIS.setSearchTime()
|
257
|
265
|
//this.getTableData()
|
258
|
266
|
},
|
259
|
267
|
methods: {
|
|
268
|
+ setSearchTime(){
|
|
269
|
+ var now = new Date();
|
|
270
|
+ this.query.inRecordDate = [new Date(now.getFullYear(), now.getMonth(), now.getDate()),new Date(now.getFullYear(), now.getMonth(), now.getDate()+1)];
|
|
271
|
+ },
|
260
|
272
|
showMaterial() {
|
261
|
273
|
this.$refs.PopupMaterial.show()
|
262
|
274
|
},
|
|
@@ -389,6 +401,9 @@
|
389
|
401
|
getTableData() {
|
390
|
402
|
this.loading = true
|
391
|
403
|
var url = 'WareStore/queryStore.do'
|
|
404
|
+ if(this.query.inRecordDate == null){
|
|
405
|
+ this.query.inRecordDate = [false,false];
|
|
406
|
+ }
|
392
|
407
|
var param = {
|
393
|
408
|
page: this.currentPage,
|
394
|
409
|
rows: this.pageSize,
|
|
@@ -397,7 +412,9 @@
|
397
|
412
|
model: this.query.model,
|
398
|
413
|
materialName: this.query.materialName,
|
399
|
414
|
standard: this.query.standard,
|
400
|
|
- customerName: this.query.customerName
|
|
415
|
+ customerName: this.query.customerName,
|
|
416
|
+ fromDate:(!this.query.inRecordDate[0]) ? "1970-01-01 00:00:00" : this.query.inRecordDate[0].Format("yyyy-MM-dd HH:mm:ss"), //date类型
|
|
417
|
+ toDate :(!this.query.inRecordDate[1]) ? new Date().Format("yyyy-MM-dd HH:mm:ss") :this.query.inRecordDate[1].Format("yyyy-MM-dd HH:mm:ss"),
|
401
|
418
|
}
|
402
|
419
|
axios.get(url, param).then(response => {
|
403
|
420
|
if (response.data.code == 0) {
|
|
@@ -680,6 +697,9 @@
|
680
|
697
|
|
681
|
698
|
handleExport() {
|
682
|
699
|
var imptData = [];
|
|
700
|
+ if(this.query.inRecordDate == null){
|
|
701
|
+ this.query.inRecordDate = [false,false];
|
|
702
|
+ }
|
683
|
703
|
var url = 'WareStore/queryStore.do'
|
684
|
704
|
var param = {
|
685
|
705
|
page: this.currentPage,
|
|
@@ -689,7 +709,9 @@
|
689
|
709
|
model: this.query.model,
|
690
|
710
|
materialName: this.query.materialName,
|
691
|
711
|
standard: this.query.standard,
|
692
|
|
- customerName: this.query.customerName
|
|
712
|
+ customerName: this.query.customerName,
|
|
713
|
+ fromDate:(!this.query.inRecordDate[0]) ? "1970-01-01 00:00:00" : this.query.inRecordDate[0].Format("yyyy-MM-dd HH:mm:ss"), //date类型
|
|
714
|
+ toDate :(!this.query.inRecordDate[1]) ? new Date().Format("yyyy-MM-dd HH:mm:ss") :this.query.inRecordDate[1].Format("yyyy-MM-dd HH:mm:ss"),
|
693
|
715
|
}
|
694
|
716
|
|
695
|
717
|
|
|
@@ -734,6 +756,7 @@
|
734
|
756
|
,"产地"
|
735
|
757
|
,"备注"
|
736
|
758
|
,"入库时间"
|
|
759
|
+ ,"车号"
|
737
|
760
|
|
738
|
761
|
] // 导出的表头名
|
739
|
762
|
const filterVal = ["layer"
|
|
@@ -752,6 +775,7 @@
|
752
|
775
|
,"productionPlace"
|
753
|
776
|
,"remark"
|
754
|
777
|
,"addTime"
|
|
778
|
+ ,"carNo"
|
755
|
779
|
]
|
756
|
780
|
for(var i=0;i<imptData.length;i++){
|
757
|
781
|
imptData[i]["stackName"] = imptData[i].stack.name;
|