|
@@ -4,61 +4,71 @@
|
4
|
4
|
<el-row>
|
5
|
5
|
<el-form :model="query" label-width="100px" inline="">
|
6
|
6
|
<el-row>
|
7
|
|
- <el-form-item label="库房名称">
|
8
|
|
- <el-select size="small" v-model="query.wareName" clearable style="width: 140px;" @change="changeWare">
|
9
|
|
- <el-option v-for="item in optionsWare" :key="item.id" :label="item.name" :value="item.name">
|
10
|
|
- </el-option>
|
11
|
|
- </el-select>
|
12
|
|
- </el-form-item>
|
13
|
|
- <el-form-item label="垛位名称" style="margin-left: -35px">
|
14
|
|
- <el-input v-model="query.stackName" size="small" style="width:100px;margin-left: -8px"></el-input>
|
15
|
|
- </el-form-item>
|
16
|
|
- <el-form-item label="物料名称" style="margin-left: -35px">
|
17
|
|
- <el-input v-model="query.materialName" size="small" style="width:130px;margin-left: -8px">
|
18
|
|
- <el-button slot="append" icon="el-icon-search" @click="showMaterial"></el-button>
|
19
|
|
- </el-input>
|
20
|
|
- </el-form-item>
|
21
|
|
- <el-form-item label="钢种" style="margin-left: -35px">
|
22
|
|
- <el-input v-model="query.standard" size="small" style="width:130px;margin-left: -8px">
|
23
|
|
- <el-button slot="append" icon="el-icon-search" @click="showMaterial"></el-button>
|
24
|
|
- </el-input>
|
25
|
|
- </el-form-item>
|
26
|
|
- <el-form-item label="客户名称" style="margin-left: -35px">
|
27
|
|
- <el-input v-model="query.customerName" size="small" style="width:200px;margin-left: -8px">
|
28
|
|
- <el-button slot="append" icon="el-icon-search" @click="showCustomer"></el-button>
|
29
|
|
- </el-input>
|
30
|
|
- </el-form-item>
|
31
|
|
- <el-form-item label="付款单位" style="margin-left: -35px">
|
32
|
|
- <el-input v-model="query.fkComponyName" size="small" style="width:200px;margin-left: -8px">
|
33
|
|
- <el-button slot="append" icon="el-icon-search" @click="showFkCompony"></el-button>
|
34
|
|
- </el-input>
|
35
|
|
- </el-form-item>
|
36
|
|
- <el-form-item label="车号" style="margin-left: -35px">
|
37
|
|
- <el-input v-model="query.carNo" size="small" style="width:100px;margin-left: -8px"></el-input>
|
38
|
|
- </el-form-item>
|
39
|
|
-
|
40
|
|
- <el-form-item label="规格型号" style="margin-left: 0px;">
|
41
|
|
- <el-input v-model="query.model" size="small" style="width:120px;margin-left: -8px">
|
42
|
|
- </el-input>
|
43
|
|
- </el-form-item>
|
44
|
|
- <el-form-item label="钢板号" style="margin-left: -35px;">
|
45
|
|
- <el-input v-model="query.plateNo" size="small" style="width:120px;margin-left: -8px">
|
46
|
|
- </el-input>
|
47
|
|
- </el-form-item>
|
48
|
|
- <el-form-item label="出库时间" style="margin-left: -35px;margin-top: -15px">
|
49
|
|
- <el-date-picker v-model="query.RecordDate" style="width:330px;margin-left: -8px" size="small" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
|
|
7
|
+ <el-form-item label="库房名称" style="margin-left: -25px">
|
|
8
|
+ <el-select v-model="query.wareName" clearable size="small" style="width:100px;margin-left: -8px" @change="changeWare">
|
|
9
|
+ <el-option v-for="item in optionsWare" :key="item.id" :label="item.name" :value="item.name">
|
|
10
|
+ </el-option>
|
|
11
|
+ </el-select>
|
|
12
|
+ </el-form-item>
|
|
13
|
+ <el-form-item label="垛位名称" style="margin-left: -35px">
|
|
14
|
+ <el-input v-model="query.stackName" size="small" style="width:100px;margin-left: -8px"></el-input>
|
|
15
|
+ </el-form-item>
|
|
16
|
+ <el-form-item label="品名" style="margin-left: -35px">
|
|
17
|
+ <el-input v-model="query.materialName" size="small" style="width:130px;margin-left: -8px">
|
|
18
|
+ <el-button slot="append" icon="el-icon-search" @click="showMaterial"></el-button>
|
|
19
|
+ </el-input>
|
|
20
|
+ </el-form-item>
|
|
21
|
+ <el-form-item label="钢种" style="margin-left: -35px">
|
|
22
|
+ <el-input v-model="query.standard" size="small" style="width:150px;margin-left: -8px">
|
|
23
|
+ <el-button slot="append" icon="el-icon-search" @click="showMaterial"></el-button>
|
|
24
|
+ </el-input>
|
|
25
|
+ </el-form-item>
|
|
26
|
+ <el-form-item label="规格型号" style="margin-left: -25px">
|
|
27
|
+ <el-input v-model="query.model" size="small" style="width:120px;margin-left: -8px">
|
|
28
|
+ </el-input>
|
|
29
|
+ </el-form-item>
|
|
30
|
+ <el-form-item label="捆包号" style="margin-left: -15px">
|
|
31
|
+ <el-input v-model="query.packNo" clearable size="small" style="width:120px;margin-left: -8px" @input="getPackList">
|
|
32
|
+ </el-input>
|
|
33
|
+ </el-form-item>
|
|
34
|
+ <el-form-item label="材料号" style="margin-left: -15px">
|
|
35
|
+ <el-input v-model="query.plateNo" clearable size="small" style="width:120px;margin-left: -8px" @input="getPltList">
|
|
36
|
+ </el-input>
|
|
37
|
+ </el-form-item>
|
|
38
|
+ <el-form-item label="订单号" style="margin-left: -15px">
|
|
39
|
+ <el-input v-model="query.ordNo" clearable size="small" style="width:120px;margin-left: -8px" @input="getOrdList">
|
|
40
|
+ </el-input>
|
|
41
|
+ </el-form-item>
|
|
42
|
+ <el-form-item label="合约号" style="margin-left: -15px">
|
|
43
|
+ <el-input v-model="query.contractNo" clearable size="small" style="width:120px;margin-left: -8px" @input="getContractList">
|
|
44
|
+ </el-input>
|
|
45
|
+ </el-form-item>
|
|
46
|
+ <el-form-item label="货权单位" style="margin-left: -35px">
|
|
47
|
+ <el-select v-model="query.fkComponyName" filterable placeholder="请选择客户名称" clearable size="small" style="margin-left: 5px; width: 170px">
|
|
48
|
+ <el-option v-for="item in optionsCust" :key="item.name" :label="item.name" :value="item.name" >
|
|
49
|
+ </el-option>
|
|
50
|
+ </el-select>
|
|
51
|
+ </el-form-item>
|
|
52
|
+ <el-form-item label="客户名称" style="margin-left: -35px">
|
|
53
|
+ <el-select v-model="query.customerName" filterable placeholder="请选择订单客户" clearable size="small" style="margin-left: 5px; width: 170px">
|
|
54
|
+ <el-option v-for="item in optionsCust" :key="item.name" :label="item.name" :value="item.name" >
|
|
55
|
+ </el-option>
|
|
56
|
+ </el-select>
|
|
57
|
+ </el-form-item>
|
|
58
|
+ <el-form-item label="出库车号" style="margin-left: -25px">
|
|
59
|
+ <el-input v-model="query.carNo" size="small" style="width:120px;margin-left: -8px">
|
|
60
|
+ </el-input>
|
|
61
|
+ </el-form-item>
|
|
62
|
+ <el-form-item label="理货人员" style="">
|
|
63
|
+ <el-select v-model="query.tallyPeople" size="small" style="margin-left: 10px;margin-top: -15px" clearable placeholder="理货人员">
|
|
64
|
+ <el-option v-for="item in tallyPeopleOption" :key="item.id" :label="item.dicName" :value="item.dicCode">
|
|
65
|
+ </el-option>
|
|
66
|
+ </el-select>
|
|
67
|
+ </el-form-item>
|
|
68
|
+ <el-form-item label="出库时间" style="margin-left: -35px">
|
|
69
|
+ <el-date-picker size="small" v-model="query.RecordDate" style="width:330px;margin-left: -8px" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
|
50
|
70
|
</el-date-picker>
|
51
|
|
- </el-form-item>
|
52
|
|
- <el-form-item label="理货人员" style="margin-top: -15px">
|
53
|
|
- <el-select v-model="query.tallyPeople" size="small" style="margin-left: 10px;margin-top: -15px" clearable placeholder="理货人员">
|
54
|
|
- <el-option v-for="item in tallyPeopleOption" :key="item.id" :label="item.dicName" :value="item.dicCode">
|
55
|
|
- </el-option>
|
56
|
|
- </el-select>
|
57
|
|
- </el-form-item>
|
58
|
|
- <el-form-item label="订单号" style="margin-left: -25px;margin-top: -15px">
|
59
|
|
- <el-input v-model="query.ordNo" size="small" style="width:120px;margin-left: -8px">
|
60
|
|
- </el-input>
|
61
|
|
- </el-form-item>
|
|
71
|
+ </el-form-item>
|
62
|
72
|
<el-form-item label=" " style="margin-top: -15px;margin-left: -60px">
|
63
|
73
|
<el-button @click="handleSearch" type="primary" size="small">查询</el-button>
|
64
|
74
|
<el-button @click="handlePrintOut" type="primary" size="small" style="width:90px;text-align: left">打印出库单</el-button>
|
|
@@ -277,11 +287,13 @@
|
277
|
287
|
materialName: '',
|
278
|
288
|
standard: '',
|
279
|
289
|
customerName: '',
|
280
|
|
- plateNo: '',
|
|
290
|
+ plateNo: [],
|
281
|
291
|
RecordDate:[],
|
|
292
|
+ ordNo:[],
|
|
293
|
+ contractNo:[],
|
|
294
|
+ packNo:[],
|
282
|
295
|
carNo:'',
|
283
|
296
|
tallyPeople:'',
|
284
|
|
- ordNo:'',
|
285
|
297
|
fkComponyName:'',
|
286
|
298
|
|
287
|
299
|
},
|
|
@@ -312,7 +324,14 @@
|
312
|
324
|
materialName: '',
|
313
|
325
|
standard: '',
|
314
|
326
|
customerName: '',
|
315
|
|
- plateNo: ''
|
|
327
|
+ plateNo: [],
|
|
328
|
+ RecordDate:[],
|
|
329
|
+ ordNo:[],
|
|
330
|
+ contractNo:[],
|
|
331
|
+ packNo:[],
|
|
332
|
+ carNo:'',
|
|
333
|
+ tallyPeople:'',
|
|
334
|
+ fkComponyName:'',
|
316
|
335
|
},
|
317
|
336
|
childUrl:'WareOutRecord/queryTotal.do',
|
318
|
337
|
time:"",
|
|
@@ -325,7 +344,8 @@
|
325
|
344
|
popupCar:false,
|
326
|
345
|
truckNo:"",
|
327
|
346
|
driverName:"",
|
328
|
|
- driverPhone:""
|
|
347
|
+ driverPhone:"",
|
|
348
|
+ optionsCust:[]
|
329
|
349
|
};
|
330
|
350
|
},
|
331
|
351
|
//页面加载完成渲染
|
|
@@ -334,6 +354,7 @@
|
334
|
354
|
// this.getTableData()
|
335
|
355
|
this.getSearchItem();
|
336
|
356
|
this.setSearchTime();
|
|
357
|
+ this.getAllCustomer();
|
337
|
358
|
},
|
338
|
359
|
methods: {
|
339
|
360
|
setSearchTime(){
|
|
@@ -350,6 +371,13 @@
|
350
|
371
|
break;
|
351
|
372
|
}
|
352
|
373
|
},
|
|
374
|
+ getAllCustomer() {
|
|
375
|
+ var url = 'MaintCustomer/queryByUserId.do'
|
|
376
|
+ var param = {}
|
|
377
|
+ axios.get(url, param).then(response => {
|
|
378
|
+ this.optionsCust = response.data.data
|
|
379
|
+ });
|
|
380
|
+ },
|
353
|
381
|
handleSavePriceMod(){
|
354
|
382
|
var url = 'WareOutRecord/savePriceMod.do'
|
355
|
383
|
var param = {
|
|
@@ -554,13 +582,15 @@
|
554
|
582
|
materialName: this.query.materialName,
|
555
|
583
|
standard: this.query.standard,
|
556
|
584
|
customerName: this.query.customerName,
|
557
|
|
- plateNo: this.query.plateNo,
|
558
|
585
|
pFromDate:(!this.query.RecordDate[0]) ? "1970-01-01 00:00:00" : this.query.RecordDate[0].Format("yyyy-MM-dd HH:mm:ss"), //date类型
|
559
|
586
|
pToDate :(!this.query.RecordDate[1]) ? new Date().Format("yyyy-MM-dd HH:mm:ss") :this.query.RecordDate[1].Format("yyyy-MM-dd HH:mm:ss"),
|
560
|
587
|
carNo:this.query.carNo,
|
561
|
588
|
tallyPeople:this.query.tallyPeople,
|
562
|
|
- ordNo :this.query.ordNo,
|
563
|
|
- fkComponyName:this.query.fkComponyName
|
|
589
|
+ fkComponyName:this.query.fkComponyName,
|
|
590
|
+ plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
|
|
591
|
+ ordNo: this.query.ordNo == 0 ? '' : this.query.ordNo.join(','),
|
|
592
|
+ contractNo: this.query.contractNo == 0 ? '' : this.query.contractNo.join(','),
|
|
593
|
+ packNo: this.query.packNo == 0 ? '' : this.query.packNo.join(','),
|
564
|
594
|
}
|
565
|
595
|
this.childParam = param;
|
566
|
596
|
|
|
@@ -585,31 +615,32 @@
|
585
|
615
|
this.selectRows = val
|
586
|
616
|
},
|
587
|
617
|
handleOutBack() {
|
588
|
|
- if (this.selectRows.length != 1) {
|
589
|
|
- this.$message({
|
590
|
|
- type: 'error',
|
591
|
|
- message: '只能选择一条数据取消出库!',
|
592
|
|
- });
|
593
|
|
- return
|
594
|
|
- }
|
595
|
|
-
|
596
|
|
- if (this.selectRows[0].recordType == '0') {
|
597
|
|
- this.$message({
|
598
|
|
- type: 'error',
|
599
|
|
- message: '取消记录不能再次取消出库!',
|
600
|
|
- });
|
601
|
|
- return
|
602
|
|
- }
|
603
|
|
-
|
604
|
|
- if (this.selectRows[0].backFlag == '1') {
|
605
|
|
- this.$message({
|
606
|
|
- type: 'error',
|
607
|
|
- message: '该记录不能再次取消出库!',
|
|
618
|
+ this.$confirm('该操作将取消出库, 是否继续?', '提示', {
|
|
619
|
+ confirmButtonText: '确定',
|
|
620
|
+ cancelButtonText: '取消',
|
|
621
|
+ type: 'warning'
|
|
622
|
+ }).then(() => {
|
|
623
|
+ var url = 'WareOut/back.do'
|
|
624
|
+ var param = {
|
|
625
|
+ json: JSON.stringify(this.selectRows),
|
|
626
|
+ to: '',
|
|
627
|
+ }
|
|
628
|
+ axios.post(url, param).then(response => {
|
|
629
|
+ if (response.data.code == 0) {
|
|
630
|
+ this.getTableData()
|
|
631
|
+ } else {
|
|
632
|
+ this.$message({
|
|
633
|
+ type: 'error',
|
|
634
|
+ message: '操作失败;' + response.data.msg,
|
|
635
|
+ });
|
|
636
|
+ }
|
|
637
|
+ });
|
|
638
|
+ }).catch(() => {
|
|
639
|
+ this.$message({
|
|
640
|
+ type: 'info',
|
|
641
|
+ message: '已取消删除'
|
|
642
|
+ });
|
608
|
643
|
});
|
609
|
|
- return
|
610
|
|
- }
|
611
|
|
- // alert("1")
|
612
|
|
- this.$refs.PopupStackWithSelectWare.show()
|
613
|
644
|
|
614
|
645
|
},
|
615
|
646
|
receviceFromWareStack(stack) {
|
|
@@ -670,6 +701,22 @@
|
670
|
701
|
this.time = year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':' + second
|
671
|
702
|
|
672
|
703
|
},
|
|
704
|
+ getPltList(){
|
|
705
|
+ const replaceResult = this.query.plateNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
|
|
706
|
+ this.query.plateNo = replaceResult;
|
|
707
|
+ },
|
|
708
|
+ getOrdList(){
|
|
709
|
+ const replaceResult = this.query.ordNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
|
|
710
|
+ this.query.ordNo = replaceResult;
|
|
711
|
+ },
|
|
712
|
+ getContractList(){
|
|
713
|
+ const replaceResult = this.query.contractNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
|
|
714
|
+ this.query.contractNo = replaceResult;
|
|
715
|
+ },
|
|
716
|
+ getPackList(){
|
|
717
|
+ const replaceResult = this.query.packNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
|
|
718
|
+ this.query.packNo = replaceResult;
|
|
719
|
+ },
|
673
|
720
|
handleExport() {
|
674
|
721
|
var imptData = [];
|
675
|
722
|
|
|
@@ -684,13 +731,15 @@
|
684
|
731
|
materialName: this.query.materialName,
|
685
|
732
|
standard: this.query.standard,
|
686
|
733
|
customerName: this.query.customerName,
|
687
|
|
- plateNo: this.query.plateNo,
|
688
|
734
|
pFromDate:(!this.query.RecordDate[0]) ? "1970-01-01 00:00:00" : this.query.RecordDate[0].Format("yyyy-MM-dd HH:mm:ss"), //date类型
|
689
|
735
|
pToDate :(!this.query.RecordDate[1]) ? new Date().Format("yyyy-MM-dd HH:mm:ss") :this.query.RecordDate[1].Format("yyyy-MM-dd HH:mm:ss"),
|
690
|
736
|
carNo:this.query.carNo,
|
691
|
737
|
tallyPeople:this.query.tallyPeople,
|
692
|
|
- ordNo :this.query.ordNo,
|
693
|
|
- fkComponyName:this.query.fkComponyName
|
|
738
|
+ fkComponyName:this.query.fkComponyName,
|
|
739
|
+ plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
|
|
740
|
+ ordNo: this.query.ordNo == 0 ? '' : this.query.ordNo.join(','),
|
|
741
|
+ contractNo: this.query.contractNo == 0 ? '' : this.query.contractNo.join(','),
|
|
742
|
+ packNo: this.query.packNo == 0 ? '' : this.query.packNo.join(','),
|
694
|
743
|
}
|
695
|
744
|
// alert(JSON.stringify(param))
|
696
|
745
|
|
|
@@ -768,59 +817,61 @@
|
768
|
817
|
},
|
769
|
818
|
exportExcel(imptData) {
|
770
|
819
|
console.log(JSON.stringify(imptData))
|
771
|
|
- const header = ["仓库名称"
|
772
|
|
- ,"垛位"
|
773
|
|
- ,"层号"
|
774
|
|
- ,"品名"
|
775
|
|
- ,"订单号"
|
776
|
|
- ,"入库人"
|
777
|
|
- ,"入库车号"
|
778
|
|
- ,"入库时间"
|
779
|
|
- ,"规格"
|
780
|
|
- ,"钢种"
|
781
|
|
- ,"出库数量"
|
782
|
|
- ,"出库重量"
|
783
|
|
- ,"钢板号"
|
784
|
|
- ,"货权单位"
|
785
|
|
- ,"付款单位"
|
786
|
|
- ,"收货地址"
|
787
|
|
- ,"计量方式"
|
788
|
|
- ,"切边类型"
|
789
|
|
- ,"产地"
|
790
|
|
- ,"出库车号"
|
791
|
|
- ,"出库理货人员"
|
792
|
|
- ,"出库操作人"
|
793
|
|
- ,"出库时间"
|
794
|
|
- ,"备注"
|
795
|
|
- ,"类型"
|
|
820
|
+ const header = ["仓库名称",
|
|
821
|
+ "垛位",
|
|
822
|
+ "层号",
|
|
823
|
+ "品名",
|
|
824
|
+ "钢种",
|
|
825
|
+ "产品编号",
|
|
826
|
+ "订单号",
|
|
827
|
+ "规格型号",
|
|
828
|
+ "出库重量",
|
|
829
|
+ "出库数量",
|
|
830
|
+ "合约号",
|
|
831
|
+ "出库车号",
|
|
832
|
+ "出库时间",
|
|
833
|
+ "货权单位",
|
|
834
|
+ "客户名称",
|
|
835
|
+ "收货地址",
|
|
836
|
+ "产地",
|
|
837
|
+ "捆包号",
|
|
838
|
+ "备注",
|
|
839
|
+ "出库操作人",
|
|
840
|
+ "吊装工",
|
|
841
|
+ "入库车号",
|
|
842
|
+ "入库时间",
|
|
843
|
+ "入库操作人",
|
|
844
|
+ "计量方式",
|
|
845
|
+ "类型"
|
796
|
846
|
|
797
|
847
|
] // 导出的表头名
|
798
|
848
|
const filterVal = [
|
799
|
|
- "wareName"
|
800
|
|
- ,"stackName"
|
801
|
|
- ,"layer"
|
802
|
|
- ,"materialName"
|
803
|
|
- ,"ordNo"
|
804
|
|
- ,"inUser"
|
805
|
|
- ,"inCarNo"
|
806
|
|
- ,"inTime"
|
807
|
|
- ,"model"
|
808
|
|
- ,"standard"
|
809
|
|
- ,"count"
|
810
|
|
- ,"weight"
|
811
|
|
- ,"plateNo"
|
812
|
|
- ,"customerName"
|
813
|
|
- ,"fkComponyName"
|
814
|
|
- ,"receiveAddress"
|
815
|
|
- ,"wgtDcnMtcCd"
|
816
|
|
- ,"edgeTy"
|
817
|
|
- ,"productionPlace"
|
818
|
|
- ,"outCarNo"
|
819
|
|
- ,"tallyPeople"
|
820
|
|
- ,"addId"
|
821
|
|
- ,"addTime"
|
822
|
|
- ,"remark"
|
823
|
|
- ,"recordType"
|
|
849
|
+ "wareName",
|
|
850
|
+ "stackName",
|
|
851
|
+ "layer",
|
|
852
|
+ "materialName",
|
|
853
|
+ "standard",
|
|
854
|
+ "plateNo",
|
|
855
|
+ "ordNo",
|
|
856
|
+ "model",
|
|
857
|
+ "weight",
|
|
858
|
+ "count",
|
|
859
|
+ "contractNo",
|
|
860
|
+ "outCarNo",
|
|
861
|
+ "addTime",
|
|
862
|
+ "fkComponyName",
|
|
863
|
+ "customerName",
|
|
864
|
+ "receiveAddress",
|
|
865
|
+ "productionPlace",
|
|
866
|
+ "packNo",
|
|
867
|
+ "remark",
|
|
868
|
+ "addId",
|
|
869
|
+ "tallyPeople",
|
|
870
|
+ "inCarNo",
|
|
871
|
+ "inTime",
|
|
872
|
+ "inUser",
|
|
873
|
+ "wgtDcnMtcCd",
|
|
874
|
+ "recordType"
|
824
|
875
|
]
|
825
|
876
|
|
826
|
877
|
for(var i=0;i<imptData.length;i++){
|