|
@@ -638,7 +638,8 @@
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="混料统计" name="second">
|
|
|
<div class="search" ref="myHeightSecond">
|
|
|
- <el-date-picker v-model="tab2.table.getdataListParm.parammaps.inputDatetime2" :clearable="false" style="width: 140px;margin-top: 5px;" type="date" placeholder="选择日期"> </el-date-picker>
|
|
|
+ <el-date-picker v-model="tab2.table.getdataListParm.parammaps.inputDatetime" :clearable="false" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 250px;" :picker-options="pickerOptions3" />
|
|
|
+ <!-- <el-date-picker v-model="tab2.table.getdataListParm.parammaps.inputDatetime2" :clearable="false" style="width: 140px;margin-top: 5px;" type="date" placeholder="选择日期"> </el-date-picker> -->
|
|
|
<el-button class="el-icon-arrow-left elIconArrowLeft" style="display:inline-block;margin-top: 5px;" :disabled="Beforedisabled2" @click="handleBefore2" />
|
|
|
<el-button class="el-icon-arrow-right elIconArrowRight" style="display:inline-block;margin-top: 5px;" :disabled="Nextdisabled2" @click="handleNext2" />
|
|
|
<el-select clearable filterable v-model="tab2.table.getdataListParm.parammaps.tmrtname" placeholder="TMR设备" class="filter-item" style="width: 120px;">
|
|
@@ -714,13 +715,15 @@
|
|
|
<u-table-column sortable label="跳转方式" min-width="55px" align="center" prop="跳转方式" />
|
|
|
<u-table-column sortable label="开始重量" min-width="55px" align="center" prop="开始重量" />
|
|
|
<u-table-column sortable label="结束重量" min-width="55px" align="center" prop="结束重量" />
|
|
|
+ <u-table-column sortable label="车次描述" min-width="55px" align="center" prop="remark" />
|
|
|
</u-table>
|
|
|
<span v-if="tab2.table.listLoading == false" style="margin-right: 30px;margin-top: 10px;font-size: 14px;">共{{ tab2.table.total }}条</span>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="撒料统计" name="third">
|
|
|
<div class="search" ref="myHeightThird">
|
|
|
- <el-date-picker v-model="tab3.table.getdataListParm.parammaps.inputDatetime2" :clearable="false" style="margin-top: 5px;width:140px;" type="date" placeholder="选择日期"> </el-date-picker>
|
|
|
+ <el-date-picker v-model="tab3.table.getdataListParm.parammaps.inputDatetime" :clearable="false" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 250px;" :picker-options="pickerOptions3" />
|
|
|
+ <!-- <el-date-picker v-model="tab3.table.getdataListParm.parammaps.inputDatetime2" :clearable="false" style="margin-top: 5px;width:140px;" type="date" placeholder="选择日期"> </el-date-picker> -->
|
|
|
<el-button class="el-icon-arrow-left elIconArrowLeft" style="dispaly:inline-block;margin-top: 5px;" :disabled="Beforedisabled3" @click="handleBefore3" />
|
|
|
<el-button class="el-icon-arrow-right elIconArrowRight" style="dispaly:inline-block;margin-top: 5px;" :disabled="Nextdisabled3" @click="handleNext3" />
|
|
|
<el-select v-model="tab3.table.getdataListParm.parammaps.tmrtname" placeholder="TMR设备" class="filter-item" style="margin-top: 5px;width: 120px;" clearable filterable>
|
|
@@ -1305,6 +1308,27 @@ export default {
|
|
|
return time.getTime() > Date.now()
|
|
|
}
|
|
|
},
|
|
|
+ pickerOptions3:{
|
|
|
+ onPick: ({ maxDate, minDate }) => {
|
|
|
+ this.pickerMinDate = minDate.getTime()
|
|
|
+ if (maxDate) {
|
|
|
+ this.pickerMinDate = ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 限制不能选择今天之后的日期
|
|
|
+ disabledDate: (time) => {
|
|
|
+ if (this.pickerMinDate !== '') {
|
|
|
+ const one = 365 * 24 * 3600 * 1000
|
|
|
+ const minTime = this.pickerMinDate - one
|
|
|
+ let maxTime = this.pickerMinDate + one
|
|
|
+ if (maxTime > new Date()) {
|
|
|
+ maxTime = new Date()
|
|
|
+ }
|
|
|
+ return time.getTime() < minTime || time.getTime() > maxTime
|
|
|
+ }
|
|
|
+ return time.getTime() > Date.now()
|
|
|
+ }
|
|
|
+ },
|
|
|
// 班次
|
|
|
maxTime: {
|
|
|
getMaxTimesParm: {
|
|
@@ -4417,17 +4441,17 @@ export default {
|
|
|
},
|
|
|
form_search2() {
|
|
|
this.tab2.table.getdataListParm.name = 'getStatisticsHL'
|
|
|
- // if (this.tab2.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab2.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
- // console.log(this.tab2.table.getdataListParm.parammaps.inputDatetime)
|
|
|
- // this.tab2.table.getdataListParm.parammaps.startTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
- // this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
- // } else {
|
|
|
- // this.tab2.table.getdataListParm.parammaps.inputDatetime = ''
|
|
|
- // this.tab2.table.getdataListParm.parammaps.startTime = ''
|
|
|
- // this.tab2.table.getdataListParm.parammaps.stopTime = ''
|
|
|
- // }
|
|
|
- this.tab2.table.getdataListParm.parammaps.startTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
|
|
|
- this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
|
|
|
+ if (this.tab2.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab2.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
+ console.log(this.tab2.table.getdataListParm.parammaps.inputDatetime)
|
|
|
+ this.tab2.table.getdataListParm.parammaps.startTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
+ this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
+ } else {
|
|
|
+ this.tab2.table.getdataListParm.parammaps.inputDatetime = ''
|
|
|
+ this.tab2.table.getdataListParm.parammaps.startTime = ''
|
|
|
+ this.tab2.table.getdataListParm.parammaps.stopTime = ''
|
|
|
+ }
|
|
|
+ // this.tab2.table.getdataListParm.parammaps.startTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
|
|
|
+ // this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
|
|
|
this.tab2.table.getdataListParm.offset = 1
|
|
|
this.getTab2List()
|
|
|
this.getTMRNameList2()
|
|
@@ -4519,16 +4543,16 @@ export default {
|
|
|
},
|
|
|
form_search3() {
|
|
|
this.tab3.table.getdataListParm.name = 'getStatisticsSL'
|
|
|
- // if (this.tab3.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab3.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
- // this.tab3.table.getdataListParm.parammaps.startTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
- // this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
- // } else {
|
|
|
- // this.tab3.table.getdataListParm.parammaps.inputDatetime = ''
|
|
|
- // this.tab3.table.getdataListParm.parammaps.startTime = ''
|
|
|
- // this.tab3.table.getdataListParm.parammaps.stopTime = ''
|
|
|
- // }
|
|
|
- this.tab3.table.getdataListParm.parammaps.startTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
|
|
|
- this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
|
|
|
+ if (this.tab3.table.getdataListParm.parammaps.inputDatetime !== '' && this.tab3.table.getdataListParm.parammaps.inputDatetime !== null) {
|
|
|
+ this.tab3.table.getdataListParm.parammaps.startTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
|
|
|
+ this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
|
|
|
+ } else {
|
|
|
+ this.tab3.table.getdataListParm.parammaps.inputDatetime = ''
|
|
|
+ this.tab3.table.getdataListParm.parammaps.startTime = ''
|
|
|
+ this.tab3.table.getdataListParm.parammaps.stopTime = ''
|
|
|
+ }
|
|
|
+ // this.tab3.table.getdataListParm.parammaps.startTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
|
|
|
+ // this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
|
|
|
this.tab3.table.getdataListParm.offset = 1
|
|
|
this.getTab3List()
|
|
|
this.getTMRNameList3()
|