|
@@ -182,8 +182,68 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <div>
|
|
|
+ <div class="query">
|
|
|
+ <el-divider></el-divider>
|
|
|
+ <el-form :inline="true">
|
|
|
+ <el-form-item>
|
|
|
+ <label class="el-form-item__label" style="width: auto;"
|
|
|
+ >发坯日期:</label
|
|
|
+ >
|
|
|
+ <el-date-picker
|
|
|
+ v-model="startTime"
|
|
|
+ type="date"
|
|
|
+ placeholder="选择日期"
|
|
|
+ style="width:150px"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ <span>至</span>
|
|
|
+ <el-date-picker
|
|
|
+ v-model="endTime"
|
|
|
+ type="date"
|
|
|
+ placeholder="选择日期"
|
|
|
+ style="width:150px"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="选择班别" style="margin-left:10px">
|
|
|
+ <el-select
|
|
|
+ class="inline-select"
|
|
|
+ v-model="clazz"
|
|
|
+ style="width:150px"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in options"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.value"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="选择班次" style="margin-left:10px">
|
|
|
+ <el-select
|
|
|
+ class="inline-select"
|
|
|
+ v-model="shift"
|
|
|
+ style="width:150px"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in optionShift"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.value"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ ><el-button type="primary" class="btn" @click="onclick">
|
|
|
+ <i class="el-icon-search"></i> </el-button
|
|
|
+ ></el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <div class="table">
|
|
|
<mergeRowTable v-bind.sync="first" ref="table" :isShowGroup="false">
|
|
|
<el-table-column label="操作" width="80px" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
@@ -211,6 +271,8 @@ export default {
|
|
|
components: { PageTitle },
|
|
|
data() {
|
|
|
return {
|
|
|
+ startTime: null,
|
|
|
+ endTime: null,
|
|
|
checkWeight: null,
|
|
|
checkCount: null,
|
|
|
checkHeatNo: null,
|
|
@@ -310,7 +372,8 @@ export default {
|
|
|
capacityIds: [],
|
|
|
first: {
|
|
|
// first请求数据的地址
|
|
|
- requestUrl: ''
|
|
|
+ requestUrl: '',
|
|
|
+ requestQuery: {}
|
|
|
},
|
|
|
isMeter: '需要过磅'
|
|
|
}
|
|
@@ -357,6 +420,29 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ onclick() {
|
|
|
+ let startTime = null
|
|
|
+ let endTime = null
|
|
|
+ let obj = {}
|
|
|
+ if (this.startTime && this.endTime) {
|
|
|
+ startTime = sjTime(this.startTime)
|
|
|
+ endTime = sjTime(this.endTime)
|
|
|
+ }
|
|
|
+ if (this.clazz) {
|
|
|
+ obj.clazz = this.clazz
|
|
|
+ }
|
|
|
+ if (this.shift) {
|
|
|
+ obj.shift = this.shift
|
|
|
+ }
|
|
|
+ this.first.requestQuery = obj
|
|
|
+ this.first.requestUrl =
|
|
|
+ '/api/v1/ams/getBilletRequirementList?apiId=518&startTime=' +
|
|
|
+ startTime +
|
|
|
+ '&endTime=' +
|
|
|
+ endTime +
|
|
|
+ '&i=' +
|
|
|
+ new Date()
|
|
|
+ },
|
|
|
getRequestUrl() {
|
|
|
if (
|
|
|
getCookie('orgCode') == 'dagangadmin' ||
|
|
@@ -627,6 +713,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .query {
|
|
|
+ margin-left: 10px;
|
|
|
+ }
|
|
|
+ .table {
|
|
|
+ margin-left: 10px;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|
|
|
<style>
|