Procházet zdrojové kódy

同步出库记录1,2界面

dw před 1 týdnem
rodič
revize
8ca6a92fbc
1 změnil soubory, kde provedl 168 přidání a 132 odebrání
  1. 168
    132
      src/view/record/outrecordWithoutCancel.vue

+ 168
- 132
src/view/record/outrecordWithoutCancel.vue Zobrazit soubor

@@ -2,78 +2,108 @@
2 2
 	<div style="height:100%;">
3 3
 		<div class="searchForm-header">
4 4
 			<el-row>
5
-				<el-form :model="query" label-width="100px" inline="">
6
-					<el-row>
7
-						<el-form-item label="库房名称">
8
-							<el-select size="small" v-model="query.wareName" clearable style="width: 100px;" @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>
5
+        <el-form :model="query" label-width="100px" inline="">
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-select v-model="query.customerName" filterable placeholder="请选择上游客户" clearable size="small" style="margin-left: 5px; width: 170px">
28
+                <el-option v-for="item in optionsCust" :key="item.name" :label="item.name" :value="item.name" >
29
+                </el-option>
30
+              </el-select>
31
+            </el-form-item>
32
+            <el-form-item label="客户单位" style="margin-left: -35px">
33
+              <el-select v-model="query.fkComponyName" filterable placeholder="请选择上游客户" clearable size="small" style="margin-left: 5px; width: 170px">
34
+                <el-option v-for="item in optionsCust" :key="item.name" :label="item.name" :value="item.name" >
35
+                </el-option>
36
+              </el-select>
37
+            </el-form-item>
38
+            <el-form-item label="车号" style="margin-left: -35px">
39
+              <el-input v-model="query.carNo" size="small" style="width:100px;margin-left: -8px"></el-input>
40
+            </el-form-item>
39 41
 
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="结束日期">
50
-							    </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>
62
-						<el-form-item label=" " style="margin-top: -15px;margin-left: -60px">
63
-							<el-button @click="handleSearch" type="primary" size="small">查询</el-button>
64
-							<el-button @click="handlePrintOut" type="primary" size="small" style="width:90px;text-align: left">打印出库单</el-button>
65
-							
66
-						</el-form-item>
67
-						<el-form-item label="" style="margin-top: -15px">
68
-							<el-upload class="upload-demo" action="" 
69
-								 ref="upload" :limit="1" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
70
-								 :auto-upload="false"  >
71
-								 <el-button plain slot="trigger"  type="success" v-show="false" style= "margin-left: 5px" size="small">询单导入</el-button>
72
-								<el-button   type="success" @click="handleExport" style="margin-left: 2px" size="small">导出记录</el-button>
73
-							</el-upload>
74
-						</el-form-item>
75
-					</el-row>
76
-				</el-form>
42
+            <el-form-item label="规格型号" style="margin-left: 0px;">
43
+              <el-input v-model="query.model"  size="small" style="width:120px;margin-left: -8px">
44
+              </el-input>
45
+            </el-form-item>
46
+            <el-form-item label="钢板号" style="margin-left: -35px;">
47
+              <el-input v-model="query.plateNo" size="small" style="width:120px;margin-left: -8px"  @input="getPltList">
48
+              </el-input>
49
+            </el-form-item>
50
+            <el-form-item label="合约号" style="margin-left: -35px;">
51
+              <el-input v-model="query.contractNo" size="small"  style="width:120px;margin-left: -8px" @input="getConList">
52
+              </el-input>
53
+            </el-form-item>
54
+            <el-form-item label="出库时间" style="margin-left: -35px">
55
+              <el-date-picker v-model="query.RecordDate" style="width:330px;margin-left: -8px" size="small" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
56
+              </el-date-picker>
57
+            </el-form-item>
58
+            <el-form-item label="理货人员" >
59
+              <el-select v-model="query.tallyPeople" size="small" style="margin-left: 10px;margin-top: -15px" clearable placeholder="理货人员">
60
+                <el-option v-for="item in tallyPeopleOption" :key="item.id" :label="item.dicName" :value="item.dicCode">
61
+                </el-option>
62
+              </el-select>
63
+            </el-form-item>
64
+            <el-form-item label="订单号" style="margin-left: -25px">
65
+              <el-input v-model="query.ordNo" size="small"  style="width:120px;margin-left: -8px"  @input="getOrdList">
66
+              </el-input>
67
+            </el-form-item>
68
+            <el-form-item label="垛位备注" style="margin-left: -25px">
69
+              <el-input v-model="query.remark1" size="small"  style="width:120px;margin-left: -8px"  @input="getOrdList">
70
+              </el-input>
71
+            </el-form-item>
72
+            <el-form-item label="修改时间" style="margin-left: -35px">
73
+              <el-date-picker size="small" v-model="ChangeOutDtm" type="datetime" placeholder="选择日期时间" style="width:200px;margin-left: -8px">
74
+              </el-date-picker>
75
+            </el-form-item>
76
+            <el-form-item label=" " style="margin-left: -60px">
77
+              <el-button @click="handleSearch" type="primary" size="small">查询</el-button>
78
+              <el-button @click="handlePrintOut" type="primary" size="small" style="width:90px;text-align: left">打印出库单</el-button>
79
+              <!-- <el-button @click="handleOutBack" type="danger" size="small" style="width:70px">取消出库</el-button> -->
80
+              <el-button @click="handleVerifyAcc" type="primary" size="small" style="width:70px">对账</el-button>
81
+              <el-button @click="handleModifyPrice" type="primary" size="small" >批量改价</el-button>
82
+              <el-button type="primary" size="small"  @click="resetButton" :disabled="backAble">重置</el-button>
83
+              <el-button @click="changeCarNoShow" type="primary" size="small" >修改车号</el-button>
84
+            </el-form-item>
85
+            <el-form-item label="" >
86
+              <el-upload class="upload-demo" action=""
87
+                         ref="upload" :limit="1" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
88
+                         :auto-upload="false"  >
89
+                <el-button plain slot="trigger"  type="success" v-show="false" style= "margin-left: 5px" size="small">询单导入</el-button>
90
+                <el-button   type="success" @click="handleExport" style="margin-left: 2px" size="small">导出记录</el-button>
91
+              </el-upload>
92
+            </el-form-item>
93
+            <el-form-item label="" style="margin-top: 0px;margin-left: 10px">
94
+              <el-dropdown placement="bottom" trigger="click" @command="batchOperate">
95
+                <el-button type="danger" size="small"> 其他操作<i class="el-icon-arrow-down el-icon--right"></i></el-button>
96
+                <el-dropdown-menu slot="dropdown">
97
+                  <el-dropdown-item command="handleOutBack" style="background-color: #f5f5f5;">取消出库</el-dropdown-item>
98
+                  <el-dropdown-item command="handleDeleteRecord" style="background-color: #f5f5f5;">删除记录</el-dropdown-item>
99
+                  <el-dropdown-item command="changeRecordOutDtm" style="background-color: #f5f5f5;">修改时间</el-dropdown-item>
100
+                </el-dropdown-menu>
101
+              </el-dropdown>
102
+
103
+            </el-form-item>
104
+
105
+          </el-row>
106
+        </el-form>
77 107
 			</el-row>
78 108
 			<total-block style="margin-top: -15px" ref="totalBlock" v-bind:childParam="childParam" v-bind:childUrl = 'childUrl'></total-block>
79 109
 		</div>
@@ -132,9 +162,9 @@
132 162
 				</el-table-column>
133 163
 				<el-table-column prop="recordType" label="类型" width="100px" show-overflow-tooltip align="center" :formatter="typeFormatter">
134 164
 				</el-table-column>
135
-				
136
-				
137
-				
165
+
166
+
167
+
138 168
 				<el-table-column prop="backFlag" label="取消标记" show-overflow-tooltip width="100px" align="center">
139 169
 				</el-table-column>
140 170
 			</el-table>
@@ -175,20 +205,22 @@
175 205
 		},
176 206
 		data() {
177 207
 			return {
178
-				query: {
179
-					wareName: '',
180
-					stackName: '',
181
-					model: '',
182
-					materialName: '',
183
-					standard: '',
184
-					customerName: '',
185
-					plateNo: '',
186
-					RecordDate:[],
187
-					carNo:'',
188
-					tallyPeople:'',
189
-					ordNo:'',
190
-					fkComponyName:'',
191
-				},
208
+        query: {
209
+          wareName: '',
210
+          stackName: '',
211
+          model: '',
212
+          materialName: '',
213
+          standard: '',
214
+          customerName: '',
215
+          plateNo: [],
216
+          RecordDate:[],
217
+          carNo:'',
218
+          tallyPeople:'',
219
+          ordNo:[],
220
+          fkComponyName:'',
221
+          remark1:'',
222
+          contractNo:'',
223
+        },
192 224
 				tableData: [],
193 225
 
194 226
 				currentPage: 1,
@@ -296,49 +328,53 @@
296 328
 			receviceFromFkCompony(customer) {
297 329
 				this.query.fkComponyName = customer.name
298 330
 			},
299
-			
300
-			getTableData() {
301
-				var url = 'WareOutRecord/query.do'
302
-				if(this.query.RecordDate == null){
303
-					this.query.RecordDate = [false,false];
304
-				}
305
-				this.loading = true;
306
-				var param = {
307
-					page: this.currentPage,
308
-					rows: this.pageSize,
309
-					wareName: this.query.wareName,
310
-					stackName: this.query.stackName,
311
-					model: this.query.model,
312
-					materialName: this.query.materialName,
313
-					standard: this.query.standard,
314
-					customerName: this.query.customerName,
315
-					plateNo: this.query.plateNo,
316
-					pFromDate:(!this.query.RecordDate[0]) ? "1970-01-01 00:00:00" : this.query.RecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
317
-					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"),
318
-					carNo:this.query.carNo,
319
-					tallyPeople:this.query.tallyPeople,
320
-					ordNo :this.query.ordNo,
321
-					fkComponyName:this.query.fkComponyName
322
-				}
323
-				this.childParam = param;
324 331
 
325
-				axios.get(url, param).then(response => {
326
-					if (response.data.code == 0) {
327
-						this.tableData = response.data.data.list
328
-						// console.log(JSON.stringify(response))
329
-						this.totalRows = response.data.data.total
330
-						// console.log(JSON.stringify(this.tableData[0]))
331
-						this.$refs.totalBlock.getTotalData();
332
-					} else {
333
-						this.$message({
334
-							type: 'error',
335
-							message: '操作失败;' + response.data.msg,
336
-						});
337
-					}
338
-					this.loading = false;
339
-				});
332
+      getTableData() {
333
+        var url = 'WareOutRecord/query.do'
334
+        if(this.query.RecordDate == null){
335
+          this.query.RecordDate = [false,false];
336
+        }
337
+        this.loading = true
338
+        var param = {
339
+          page: this.currentPage,
340
+          rows: this.pageSize,
341
+          wareName: this.query.wareName,
342
+          stackName: this.query.stackName,
343
+          model: this.query.model,
344
+          materialName: this.query.materialName,
345
+          standard: this.query.standard,
346
+          customerName: this.query.customerName,
347
+          plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
348
+          pFromDate:(!this.query.RecordDate[0]) ? "1970-01-01 00:00:00" : this.query.RecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
349
+          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"),
350
+          carNo:this.query.carNo,
351
+          tallyPeople:this.query.tallyPeople,
352
+          ordNo: this.query.ordNo == 0 ? '' : this.query.ordNo.join(','),
353
+          fkComponyName:this.query.fkComponyName,
354
+          remark1 : this.query.remark1,
355
+          contractNo:this.query.contractNo.length == 0 ? '' : this.query.contractNo.join(','),
356
+        }
357
+        this.childParam = param;
358
+        console.log(param);
359
+        console.log(this.childParam);
340 360
 
341
-			},
361
+        axios.get(url, param).then(response => {
362
+          if (response.data.code == 0) {
363
+            this.tableData = response.data.data.list
364
+            // console.log(JSON.stringify(response))
365
+            this.totalRows = response.data.data.total
366
+            // console.log(JSON.stringify(this.tableData[0]))
367
+            this.$refs.totalBlock.getTotalData();
368
+          } else {
369
+            this.$message({
370
+              type: 'error',
371
+              message: '操作失败;' + response.data.msg,
372
+            });
373
+          }
374
+          this.loading = false;
375
+        });
376
+
377
+      },
342 378
 			handleTableSelect(val) {
343 379
 				this.selectRows = val
344 380
 			},
@@ -358,7 +394,7 @@
358 394
 					});
359 395
 					return
360 396
 				}
361
-				
397
+
362 398
 				if (this.selectRows[0].backFlag == '1') {
363 399
 					this.$message({
364 400
 						type: 'error',
@@ -430,7 +466,7 @@
430 466
 			},
431 467
 			handleExport() {
432 468
 				var imptData = [];
433
-				
469
+
434 470
 
435 471
 				var url = 'WareOutRecord/query.do'
436 472
 				var param = {
@@ -473,7 +509,7 @@
473 509
 					}
474 510
 
475 511
 				});
476
-				
512
+
477 513
 			},
478 514
 			exportExcel(imptData) {
479 515
 				 console.log(JSON.stringify(imptData))

Loading…
Zrušit
Uložit