|
@@ -11,7 +11,7 @@
|
11
|
11
|
</el-select>
|
12
|
12
|
<el-button type="info" size="small" @click="search">查询</el-button>
|
13
|
13
|
<el-button type="primary" size="small" @click="handleAdd">新增</el-button>
|
14
|
|
- <el-button type="danger" size="small" @click="resetButton" :disabled="backAble">重置</el-button>
|
|
14
|
+ <el-button type="danger" size="small" @click="resetButton">重置</el-button>
|
15
|
15
|
</el-row>
|
16
|
16
|
|
17
|
17
|
<el-table :data="tableData" border>
|
|
@@ -85,6 +85,28 @@
|
85
|
85
|
</el-dialog>
|
86
|
86
|
|
87
|
87
|
<el-dialog title="转移数量变动日志" :visible.sync="dialogVisibleRecord" width="1000px">
|
|
88
|
+ <div class="searchForm-header">
|
|
89
|
+ <el-form :model="queryDetail" label-width="100px" inline="">
|
|
90
|
+ <el-row>
|
|
91
|
+ <el-form-item>
|
|
92
|
+ <el-date-picker size="small" v-model="queryDetail.RecordDate" style="width:330px;margin-left: -8px" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="getTableData2" clearable>
|
|
93
|
+ </el-date-picker>
|
|
94
|
+ </el-form-item>
|
|
95
|
+ <el-form-item>
|
|
96
|
+ <el-select size="small" v-model="queryDetail.subStr" placeholder="修改类型" @change="getTableData2" clearable>
|
|
97
|
+ <el-option v-for="item in optionsSubStr" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
|
98
|
+ </el-select>
|
|
99
|
+ </el-form-item>
|
|
100
|
+ <el-form-item>
|
|
101
|
+ <el-select size="small" v-model="queryDetail.changeFrom" placeholder="修改来源" @change="getTableData2" clearable>
|
|
102
|
+ <el-option v-for="item in optionsChangeFrom" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
|
103
|
+ </el-select>
|
|
104
|
+ </el-form-item>
|
|
105
|
+
|
|
106
|
+ </el-row>
|
|
107
|
+
|
|
108
|
+ </el-form>
|
|
109
|
+ </div>
|
88
|
110
|
<el-table :data="tableData2" border>
|
89
|
111
|
<el-table-column prop="id" label="编号" width="60" v-if="isShow">
|
90
|
112
|
</el-table-column>
|
|
@@ -161,6 +183,28 @@
|
161
|
183
|
label: '减少'
|
162
|
184
|
}],
|
163
|
185
|
optionsCust: [],
|
|
186
|
+ queryDetail:{
|
|
187
|
+ uperCustomer:'',
|
|
188
|
+ Customer:'',
|
|
189
|
+ RecordDate:[],
|
|
190
|
+ subStr:'',
|
|
191
|
+ changeFrom:'',
|
|
192
|
+ },
|
|
193
|
+ optionsSubStr:[{
|
|
194
|
+ value: '增加',
|
|
195
|
+ label: '增加'
|
|
196
|
+ }, {
|
|
197
|
+ value: '减少',
|
|
198
|
+ label: '减少'
|
|
199
|
+ }],
|
|
200
|
+ optionsChangeFrom:[{
|
|
201
|
+ value: '手动调整',
|
|
202
|
+ label: '手动调整'
|
|
203
|
+ }, {
|
|
204
|
+ value: '货权转移',
|
|
205
|
+ label: '货权转移'
|
|
206
|
+ }],
|
|
207
|
+
|
164
|
208
|
|
165
|
209
|
}
|
166
|
210
|
},
|
|
@@ -196,7 +240,7 @@
|
196
|
240
|
Customer: this.query.Customer
|
197
|
241
|
}
|
198
|
242
|
axios.get(url, param).then(response => {
|
199
|
|
- console.log(response.data.data.list)
|
|
243
|
+ // console.log(response.data.data.list)
|
200
|
244
|
|
201
|
245
|
if (response.data.code == 0) {
|
202
|
246
|
this.tableData = response.data.data.list
|
|
@@ -310,20 +354,34 @@
|
310
|
354
|
handleViewRecord(row){
|
311
|
355
|
this.dialogVisibleRecord=true;
|
312
|
356
|
var tempRow = row;
|
313
|
|
-
|
|
357
|
+ this.queryDetail.uperCustomer = tempRow.uperCustomer.id;
|
|
358
|
+ this.queryDetail.Customer = tempRow.customer.id;
|
|
359
|
+ this.queryDetail.RecordDate=[],
|
|
360
|
+ this.queryDetail.subStr='',
|
|
361
|
+ this.queryDetail.changeFrom='',
|
314
|
362
|
this.getTableData2(tempRow.uperCustomer.id,tempRow.customer.id)
|
315
|
363
|
|
316
|
364
|
},
|
317
|
365
|
getTableData2(uperCustomer,Customer){
|
|
366
|
+
|
318
|
367
|
var url = 'MaintCargo/queryRecord.do'
|
|
368
|
+ // alert(this.queryDetail.RecordDate);
|
|
369
|
+ if(this.queryDetail.RecordDate == null){
|
|
370
|
+ this.queryDetail.RecordDate =[]
|
|
371
|
+ }
|
319
|
372
|
var param = {
|
320
|
373
|
page: this.currentPage2,
|
321
|
374
|
rows: this.pageSize2,
|
322
|
|
- uperCustomer: uperCustomer,
|
323
|
|
- Customer: Customer
|
|
375
|
+ uperCustomer: this.queryDetail.uperCustomer,
|
|
376
|
+ Customer: this.queryDetail.Customer,
|
|
377
|
+ RecordDateBegin : (!this.queryDetail.RecordDate[0]) ? "1970-01-01 00:00:00" : this.queryDetail.RecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),
|
|
378
|
+ RecordDateEnd : (!this.queryDetail.RecordDate[1]) ? "2999-01-01 00:00:00" : this.queryDetail.RecordDate[1].Format("yyyy-MM-dd HH:mm:ss"),
|
|
379
|
+ subStr:this.queryDetail.subStr,
|
|
380
|
+ changeFrom:this.queryDetail.changeFrom
|
|
381
|
+
|
324
|
382
|
}
|
325
|
383
|
axios.get(url, param).then(response => {
|
326
|
|
- console.log(response.data.data.list)
|
|
384
|
+ // console.log(response.data.data.list)
|
327
|
385
|
|
328
|
386
|
if (response.data.code == 0) {
|
329
|
387
|
this.tableData2 = response.data.data.list
|