YL2767 2 meses atrás
pai
commit
ea51437139
1 arquivos alterados com 86 adições e 43 exclusões
  1. 86
    43
      src/view/ware/storechange.vue

+ 86
- 43
src/view/ware/storechange.vue Ver arquivo

@@ -26,13 +26,13 @@
26 26
 							<el-button slot="append" icon="el-icon-search" @click="showMaterial"></el-button>
27 27
 						</el-input>
28 28
 					</el-form-item>
29
-					<el-form-item label="客户名称" style="margin-left: -35px">
29
+					<el-form-item label="货权单位" style="margin-left: -35px">
30 30
 						<el-select v-model="query.fkcustmerName" filterable placeholder="请选择客户名称" clearable size="small" style="margin-left: 5px; width: 170px">
31 31
 							<el-option v-for="item in optionsCust" :key="item.name" :label="item.name" :value="item.name" >
32 32
 							</el-option>
33 33
 						</el-select>
34 34
 					</el-form-item>
35
-					<el-form-item label="订单客户" style="margin-left: -35px">
35
+					<el-form-item label="客户名称" style="margin-left: -35px">
36 36
 						<el-select v-model="query.customerName" filterable placeholder="请选择订单客户" clearable size="small" style="margin-left: 5px; width: 170px">
37 37
 							<el-option v-for="item in optionsCust" :key="item.name" :label="item.name" :value="item.name" >
38 38
 							</el-option>
@@ -47,6 +47,10 @@
47 47
 						<el-input v-model="query.ordNo" size="small" style="width:120px;margin-left: -8px" @input="getOrdList">
48 48
 						</el-input>
49 49
 					</el-form-item>
50
+					<el-form-item label="合约号" style="margin-left: -15px">
51
+						<el-input v-model="query.contractNo" size="small" style="width:120px;margin-left: -8px" @input="getContractList">
52
+						</el-input>
53
+					</el-form-item>
50 54
 
51 55
 					<el-form-item label="" style="margin-top: 0px;margin-left: 10px">
52 56
 						<el-button @click="handleSearch" size="small"  type="primary">查询</el-button>
@@ -113,7 +117,7 @@
113 117
 				</el-table-column>
114 118
 				<el-table-column prop="remark" label="备注" width="150" show-overflow-tooltip header-align="center">
115 119
 				</el-table-column>
116
-				<el-table-column prop="lockFlag" label="锁定状态" width="200" show-overflow-tooltip header-align="center">
120
+				<el-table-column prop="lockFlag" label="锁定状态" width="200" show-overflow-tooltip header-align="center" :formatter="lockFormatter">
117 121
 				</el-table-column>
118 122
 				<el-table-column prop="addUser.userDesc" label="入库操作人" width="120px" show-overflow-tooltip align="left">
119 123
 				</el-table-column>
@@ -305,6 +309,7 @@
305 309
 					plateNo: [],
306 310
 					wareId:'',
307 311
 					ordNo:[],
312
+					contractNo:[],
308 313
 					fkcustmerName:'',
309 314
 					remark1:''
310 315
 				},
@@ -412,6 +417,17 @@
412 417
 				window.open(this.serverName.substr(0, this.serverName.lastIndexOf('/', this.serverName.lastIndexOf('/') - 1)) +
413 418
 					'/import.xls')
414 419
 			},
420
+			lockFormatter: function(row, column) {
421
+				switch (row.lockFlag) {
422
+
423
+					case "0":
424
+						return "";
425
+						break;
426
+					default:
427
+						return "已锁定";
428
+						break;
429
+				}
430
+			},
415 431
 			showIn() {
416 432
 				// if (this.query.wareId == '') {
417 433
 				// 	this.$message({
@@ -539,6 +555,7 @@
539 555
 					fkcustmerName: this.query.fkcustmerName,
540 556
 					plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
541 557
 					ordNo: this.query.ordNo == 0 ? '' : this.query.ordNo.join(','),
558
+					contractNo: this.query.contractNo == 0 ? '' : this.query.contractNo.join(','),
542 559
 					remark1: this.query.remark1
543 560
 				}
544 561
 				//console.log(param);
@@ -857,6 +874,10 @@
857 874
 				const replaceResult = this.query.ordNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
858 875
 				this.query.ordNo = replaceResult;
859 876
 			},
877
+			getContractList(){
878
+				const replaceResult = this.query.contractNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
879
+				this.query.contractNo = replaceResult;
880
+			},
860 881
 
861 882
 			handleExport() {
862 883
 				var imptData = [];
@@ -873,6 +894,7 @@
873 894
 					fkcustmerName: this.query.fkcustmerName,
874 895
 					plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
875 896
 					ordNo: this.query.ordNo == 0 ? '' : this.query.ordNo.join(','),
897
+					contractNo: this.query.contractNo == 0 ? '' : this.query.contractNo.join(','),
876 898
 					remark1: this.query.remark1
877 899
 				}
878 900
 
@@ -903,50 +925,67 @@
903 925
 			},
904 926
 			exportExcel(imptData) {
905 927
 				// alert(JSON.stringify(imptData))
906
-				const header = ["层数"
907
-								,"垛位"
908
-								,"货物品名"
909
-								,"材质"
910
-								,"钢板号"
911
-								,"规格型号"
912
-								,"数量"
913
-								,"重量"
914
-								,"订单号"
915
-								,"合约号"
916
-								,"订单客户"
917
-								,"客户名称"
918
-								,"收货地址"
919
-								,"产地"
920
-								,"备注"
921
-								,"垛位备注"
922
-								,"入库时间"
923
-								,"入库车号"
928
+				const header = ["仓库名称",
929
+								"垛位",
930
+								"层数",
931
+								"品名",
932
+								"钢种",
933
+								"产品编号",
934
+								"订单号",
935
+								"规格型号",
936
+								"重量",
937
+								"数量",
938
+								"合约号",
939
+								"入库车号",
940
+								"入库时间",
941
+								"货权单位",
942
+								"客户名称",
943
+								"收货地址",
944
+								"产地",
945
+								"捆包号",
946
+								"备注",
947
+								"锁定状态",
948
+								"入库操作人",
949
+								"吊装工",
950
+								"计量方式",
951
+								"月付方式",
952
+								"存储天数"
924 953
 
925 954
 				] // 导出的表头名
926
-				const filterVal = ["layer"
927
-									,"stackName"
928
-									,"materialName"
929
-									,"materialStandard"
930
-									,"plateNo"
931
-									,"model"
932
-									,"count"
933
-									,"weight"
934
-									,"ordNo"
935
-									,"contractNo"
936
-									,"customerName"
937
-									,"customerName"
938
-									,"receiveAddress"
939
-									,"productionPlace"
940
-									,"remark"
941
-									,"remark1"
942
-									,"addTime"
943
-									,"carNo"
955
+				const filterVal = ["wareName",
956
+									"stackName",
957
+									"layer",
958
+									"materialName",
959
+									"materialStandard",
960
+									"plateNo",
961
+									"ordNo",
962
+									"model",
963
+									"weight",
964
+									"count",
965
+									"contractNo",
966
+									"carNo",
967
+									"addTime",
968
+									"fkCustomerName",
969
+									"customerName",
970
+									"receiveAddress",
971
+									"productionPlace",
972
+									"packNo",
973
+									"remark",
974
+									"lockFlag",
975
+									"addUserUserDesc",
976
+									"tallyPeople",
977
+									"wgtDcnMtcCd",
978
+									"payWay",
979
+									"inwareDay"
944 980
 				]
945 981
 				for(var i=0;i<imptData.length;i++){
982
+					imptData[i]["wareName"] 			= imptData[i].ware.name;
946 983
 					imptData[i]["stackName"] 			= imptData[i].stack.name;
947 984
 					imptData[i]["materialName"]     	= imptData[i].material.name;
948 985
 					imptData[i]["materialStandard"]     = imptData[i].material.standard;
949 986
 					imptData[i]["customerName"]     	= imptData[i].customer.name;
987
+					imptData[i]["addUserUserDesc"]     	= imptData[i].addUser.userDesc;
988
+					imptData[i]["lockFlag"]     		= imptData[i].lockFlag == 0 ? '': '已锁定';
950 989
 				}
951 990
 				const list = imptData
952 991
 				const data = this.formatJson(filterVal, list)
@@ -975,10 +1014,10 @@
975 1014
 </script>
976 1015
 
977 1016
 <style>
978
-.option_btn{
979
-	margin-left: 30px
980
-}
981
-.searchForm-header{
1017
+	.option_btn{
1018
+		margin-left: 30px
1019
+	}
1020
+	.searchForm-header{
982 1021
 		height: auto;
983 1022
 		margin-left: 10px;
984 1023
 	}
@@ -988,4 +1027,8 @@
988 1027
 		height: calc(100% - 100px);
989 1028
 
990 1029
 	}
1030
+	.el-select-dropdown .el-scrollbar .el-scrollbar__wrap
1031
+    {
1032
+        overflow: scroll!important;
1033
+    }
991 1034
 </style>

Carregando…
Cancelar
Salvar