Explorar el Código

1.垛位操作导入入库明细表 新增合约号字段

2.出库操作导入出库明细表字段 新增合约号字段
3.导出入库明细表excel 新增合约号字段
4.导出出库明细表excel 新增合约号字段
dw hace 5 días
padre
commit
60eb01e76f
Se han modificado 3 ficheros con 44 adiciones y 40 borrados
  1. 10
    8
      src/view/record/inrecord.vue
  2. 29
    27
      src/view/record/outrecord.vue
  3. 5
    5
      src/view/ware/store.vue

+ 10
- 8
src/view/record/inrecord.vue Ver fichero

@@ -12,7 +12,7 @@
12 12
 							<el-form-item label="垛位名称" style="margin-left: -35px">
13 13
 								<el-input v-model="query.stackName" size="small" style="width:100px;margin-left: -8px"></el-input>
14 14
 							</el-form-item>
15
-							<el-form-item label="物料名称" style="margin-left: -35px"> 
15
+							<el-form-item label="物料名称" style="margin-left: -35px">
16 16
 								<el-input v-model="query.materialName" size="small"  style="width:130px;margin-left: -8px">
17 17
 									<el-button slot="append" icon="el-icon-search" @click="showMaterial"></el-button>
18 18
 								</el-input>
@@ -71,7 +71,7 @@
71 71
 								<!-- <el-button @click="handleSearch" type="primary" size="small">查询</el-button> -->
72 72
 							</el-form-item>
73 73
 							<el-form-item label="" style="margin-top: -15px">
74
-								<el-upload class="upload-demo" action="" 
74
+								<el-upload class="upload-demo" action=""
75 75
 									 ref="upload" :limit="1" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
76 76
 									 :auto-upload="false"  >
77 77
 									 <el-button plain slot="trigger"  type="success" v-show="false" style= "margin-left: 5px" size="small">询单导入</el-button>
@@ -92,7 +92,7 @@
92 92
 										<el-dropdown-item command="changeRecordInDtm" style="background-color: #f5f5f5;">修改时间</el-dropdown-item>
93 93
 									</el-dropdown-menu>
94 94
 								</el-dropdown>
95
-								
95
+
96 96
 							</el-form-item>
97 97
 							<el-form-item label="修改时间" style="margin-left: -35px;margin-top: -15px">
98 98
 								<el-date-picker size="small" v-model="ChangeInDtm" type="datetime" placeholder="选择日期时间" style="width:200px;margin-left: -8px">
@@ -149,7 +149,7 @@
149 149
 				</el-table-column>
150 150
 				<el-table-column prop="recordType" label="类型" width="100px" show-overflow-tooltip align="center" :formatter="typeFormatter">
151 151
 				</el-table-column>
152
-				
152
+
153 153
 			</el-table>
154 154
 		</div>
155 155
 		<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
@@ -231,7 +231,7 @@
231 231
 			// this.getTableData()
232 232
 			this.setSearchTime();
233 233
 			this.getAllCustomer();
234
-			
234
+
235 235
 		},
236 236
 		methods: {
237 237
 			setSearchTime(){
@@ -389,7 +389,7 @@
389 389
 					}
390 390
 					this.loading = false
391 391
 				});
392
-				
392
+
393 393
 			},
394 394
 			changeWare(){
395 395
 
@@ -446,7 +446,7 @@
446 446
 					}
447 447
 
448 448
 				});
449
-				
449
+
450 450
 			},
451 451
 			exportExcel(imptData) {
452 452
 				// alert(JSON.stringify(imptData))
@@ -473,6 +473,7 @@
473 473
 								,"垛位备注"
474 474
 								,"类型"
475 475
 								,"备注"
476
+                ,"合约号"
476 477
 				] // 导出的表头名
477 478
 				const filterVal = [
478 479
 						"wareName"
@@ -498,6 +499,7 @@
498 499
 						,"remark1"
499 500
 						,"recordType"
500 501
 						,"remark"
502
+            ,"contractNo"
501 503
 				]
502 504
 
503 505
 				for(var i=0;i<imptData.length;i++){
@@ -547,7 +549,7 @@
547 549
 						}
548 550
 					});
549 551
 				}
550
-				
552
+
551 553
 			},
552 554
 			changeRecordInDtm(){
553 555
 				if (this.selectRows.length < 1) {

+ 29
- 27
src/view/record/outrecord.vue Ver fichero

@@ -75,7 +75,7 @@
75 75
 							<el-button @click="changeCarNoShow" type="primary" size="small" >修改车号</el-button>
76 76
 						</el-form-item>
77 77
 						<el-form-item label="" >
78
-							<el-upload class="upload-demo" action="" 
78
+							<el-upload class="upload-demo" action=""
79 79
 								 ref="upload" :limit="1" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
80 80
 								 :auto-upload="false"  >
81 81
 								 <el-button plain slot="trigger"  type="success" v-show="false" style= "margin-left: 5px" size="small">询单导入</el-button>
@@ -91,13 +91,13 @@
91 91
 								<el-dropdown-item command="changeRecordOutDtm" style="background-color: #f5f5f5;">修改时间</el-dropdown-item>
92 92
 							</el-dropdown-menu>
93 93
 						</el-dropdown>
94
-						
94
+
95 95
 					</el-form-item>
96 96
 					<el-form-item label="修改时间" style="margin-left: -35px">
97 97
 							<el-date-picker size="small" v-model="ChangeOutDtm" type="datetime" placeholder="选择日期时间" style="width:200px;margin-left: -8px">
98 98
 							</el-date-picker>
99 99
 					</el-form-item>
100
-						
100
+
101 101
 					</el-row>
102 102
 				</el-form>
103 103
 			</el-row>
@@ -217,7 +217,7 @@
217 217
 					</el-col>
218 218
 				</el-row>
219 219
 			</el-form>
220
-			
220
+
221 221
 
222 222
 		</el-dialog>
223 223
 		<el-dialog title="批量改价" :visible.sync="popupModPrice" width="780px">
@@ -252,7 +252,7 @@
252 252
 				<el-row>
253 253
 					<el-button size="small" type="primary" style="margin-left: 30px;" @click="handlechangeCarNo">提交</el-button>
254 254
 				</el-row>
255
-				
255
+
256 256
 			</el-form>
257 257
 		</el-dialog>
258 258
 		<popup-stack-with-select-ware :selectVareName="optionsWare" ref="PopupStackWithSelectWare" @receviceFromChild="receviceFromWareStack"></popup-stack-with-select-ware>
@@ -301,7 +301,7 @@
301 301
 					ordNo:[],
302 302
 					fkComponyName:'',
303 303
 					remark1:''
304
-					
304
+
305 305
 				},
306 306
 				accData:{
307 307
 					accDate:'',
@@ -429,7 +429,7 @@
429 429
 							message: '保存成功',
430 430
 						});
431 431
 						this.popupVerifyAcc = false
432
-						this.getTableData();	
432
+						this.getTableData();
433 433
 					} else {
434 434
 						this.$message({
435 435
 							type: 'error',
@@ -535,22 +535,22 @@
535 535
 					});
536 536
 				}
537 537
 			},
538
-			numSub(num1, num2) { 
539
-				var baseNum, baseNum1, baseNum2; 
540
-				var precision;// 精度 
541
-				try { 
542
-					baseNum1 = num1.toString().split(".")[1].length; 
543
-				} catch (e) { 
544
-					baseNum1 = 0; 
545
-				} 
546
-				try { 
547
-					baseNum2 = num2.toString().split(".")[1].length; 
548
-				} catch (e) { 
549
-					baseNum2 = 0; 
550
-				} 
551
-				baseNum = Math.pow(10, Math.max(baseNum1, baseNum2)); 
552
-				precision = (baseNum1 >= baseNum2) ? baseNum1 : baseNum2; 
553
-				return ((num1 * baseNum + num2 * baseNum) / baseNum).toFixed(precision); 
538
+			numSub(num1, num2) {
539
+				var baseNum, baseNum1, baseNum2;
540
+				var precision;// 精度
541
+				try {
542
+					baseNum1 = num1.toString().split(".")[1].length;
543
+				} catch (e) {
544
+					baseNum1 = 0;
545
+				}
546
+				try {
547
+					baseNum2 = num2.toString().split(".")[1].length;
548
+				} catch (e) {
549
+					baseNum2 = 0;
550
+				}
551
+				baseNum = Math.pow(10, Math.max(baseNum1, baseNum2));
552
+				precision = (baseNum1 >= baseNum2) ? baseNum1 : baseNum2;
553
+				return ((num1 * baseNum + num2 * baseNum) / baseNum).toFixed(precision);
554 554
 			},
555 555
 			numMulti(arg1,arg2){
556 556
 				var m=0,s1=arg1.toString(),s2=arg2.toString();
@@ -619,7 +619,7 @@
619 619
 			receviceFromFkCompony(customer) {
620 620
 				this.query.fkComponyName = customer.name
621 621
 			},
622
-			
622
+
623 623
 			getTableData() {
624 624
 				var url = 'WareOutRecord/query.do'
625 625
 				if(this.query.RecordDate == null){
@@ -684,7 +684,7 @@
684 684
 					});
685 685
 					return
686 686
 				}
687
-				
687
+
688 688
 				if (this.selectRows[0].backFlag == '1') {
689 689
 					this.$message({
690 690
 						type: 'error',
@@ -796,7 +796,7 @@
796 796
 			},
797 797
 			handleExport() {
798 798
 				var imptData = [];
799
-				
799
+
800 800
 
801 801
 				var url = 'WareOutRecord/query.do'
802 802
 				var param = {
@@ -840,7 +840,7 @@
840 840
 					}
841 841
 
842 842
 				});
843
-				
843
+
844 844
 			},
845 845
 			exportExcel(imptData) {
846 846
 				 console.log(JSON.stringify(imptData))
@@ -870,6 +870,7 @@
870 870
 								,"备注"
871 871
 								,"垛位备注"
872 872
 								,"类型"
873
+                ,"合约号"
873 874
 
874 875
 				] // 导出的表头名
875 876
 				const filterVal = [
@@ -899,6 +900,7 @@
899 900
 						,"remark"
900 901
 						,"remark1"
901 902
 						,"recordType"
903
+          ,"contractNo"
902 904
 				]
903 905
 
904 906
 				for(var i=0;i<imptData.length;i++){

+ 5
- 5
src/view/ware/store.vue Ver fichero

@@ -21,7 +21,7 @@
21 21
 				<el-button size="small" type="danger" @click="handleInBack" :disabled="backAble">取消入库</el-button>
22 22
 				<el-button type="primary" size="small" @click="showDistribution">配货</el-button>
23 23
 				<el-button type="primary" size="small" @click="showOut">出库</el-button>
24
-			</el-col> 
24
+			</el-col>
25 25
 			<el-col :span="2">
26 26
 				<el-row style=" margin:10px;">
27 27
 				</el-row>
@@ -139,7 +139,7 @@
139 139
 			</el-form>
140 140
 
141 141
 		</el-dialog>
142
-		
142
+
143 143
 		<el-dialog title="库房明细" :visible.sync="importDialogVisible" width="1000px">
144 144
 
145 145
 			<el-upload class="upload-demo" action="" :on-change="handleChange" :on-exceed="handleExceed" :on-remove="handleRemove"
@@ -223,7 +223,7 @@
223 223
 		<popup-distribution ref="PopupDistribution" @receviceFromChild="receviceFromDistreibution" :selectRows="selectRows"></popup-distribution>
224 224
 		<popup-out ref="PopupOut" @receviceFromChild="receviceFromOut"></popup-out>
225 225
 		<popup-in ref="PopupIn" @receviceFromChild="receviceFromIn" :wares="options" :wareId="query.wareId" :stack="moveFromStack"></popup-in>
226
- 
226
+
227 227
 	</div>
228 228
 </template>
229 229
 
@@ -235,7 +235,7 @@
235 235
 	import PopupDistribution from '@/components/PopupDistribution.vue'
236 236
 	import PopupOut from '@/components/PopupOut.vue'
237 237
 	import PopupIn from '@/components/PopupIn.vue'
238
- 
238
+
239 239
 	import {
240 240
 		mapState
241 241
 	} from 'vuex'
@@ -1343,7 +1343,7 @@
1343 1343
 					return
1344 1344
 				}
1345 1345
 				//console.log(this.selectRows.length)
1346
-				
1346
+
1347 1347
 				this.$refs.PopupDistribution.show()
1348 1348
 
1349 1349
 			},

Loading…
Cancelar
Guardar