样式
This commit is contained in:
@@ -1,43 +1,45 @@
|
||||
<template>
|
||||
<sec-header :deviceCode="deviceCode" activeIndex="1">
|
||||
<div class="wrap">
|
||||
<div class="wrap-filter">
|
||||
<div class="fr mgt10">
|
||||
<button class="mgr54 button--primary" :disabled="disabled" @click="toHandle('01')">开 始</button>
|
||||
<button class="mgr54 button--primary" :disabled="disabled" @click="toHandle('03')">报 工</button>
|
||||
<button class="mgr54 button--primary" :disabled="disabled" @click="toHandle('02', '1')">强制结束</button>
|
||||
<button class="button--primary" :disabled="disabled" @click="toHandle('02', '2')">更换设备</button>
|
||||
<div class="wrap-filter-buttons">
|
||||
<div class="wrap-buttons">
|
||||
<button class="button button--primary" :disabled="disabled" @click="toHandle('01')">开 始</button>
|
||||
<button class="button button--primary" :disabled="disabled" @click="toHandle('03')">报 工</button>
|
||||
<button class="button button--primary" :disabled="disabled" @click="toHandle('02', '1')">强制结束</button>
|
||||
<button class="button button--primary" :disabled="disabled" @click="toHandle('02', '2')">更换设备</button>
|
||||
</div>
|
||||
</div>
|
||||
<table class="filter-table">
|
||||
<tr>
|
||||
<th width="4%">
|
||||
<button v-if="isMultiple === '1'" class="iconfont select_icon select_square_icon" :class="allChoice === true ? 'selected_icon' : 'unselect_icon'" @click="allChecked"></button>
|
||||
</th>
|
||||
<th width="11%">工单号</th>
|
||||
<th width="13%">班次</th>
|
||||
<th width="13%">物料名称</th>
|
||||
<th width="10%">工序</th>
|
||||
<th width="13%">生产数量</th>
|
||||
<th width="10%">期初数量</th>
|
||||
<th width="13%">本次加工</th>
|
||||
<th width="13%">开始时间</th>
|
||||
</tr>
|
||||
<tr v-for="e in datas" :key="e.pk_id" @click="toRadio(e)">
|
||||
<td>
|
||||
<button v-if="isMultiple === '1'" class="iconfont select_icon select_square_icon" :class="e.checked === true ? 'selected_icon' : 'unselect_icon'"></button>
|
||||
<button v-else class="iconfont select_icon" :class="e.checked === true ? 'selected_icon' : 'unselect_icon'"></button>
|
||||
</td>
|
||||
<td>{{e.produceorder_code}}</td>
|
||||
<td>{{e.shift_type_scode_name}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.workprocedure_name}}</td>
|
||||
<td>{{e.produce_qty}}</td>
|
||||
<td>{{e.initial_qty}}</td>
|
||||
<td>{{e.this_qty}}</td>
|
||||
<td>{{e.realproducestart_date}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="grid_wraper">
|
||||
<table class="filter-table">
|
||||
<tr>
|
||||
<th width="4%">
|
||||
<button v-if="isMultiple === '1'" class="iconfont select_icon select_square_icon" :class="allChoice === true ? 'selected_icon' : 'unselect_icon'" @click="allChecked"></button>
|
||||
</th>
|
||||
<th width="11%">工单号</th>
|
||||
<th width="13%">班次</th>
|
||||
<th width="13%">物料名称</th>
|
||||
<th width="10%">工序</th>
|
||||
<th width="13%">生产数量</th>
|
||||
<th width="10%">期初数量</th>
|
||||
<th width="13%">本次加工</th>
|
||||
<th width="13%">开始时间</th>
|
||||
</tr>
|
||||
<tr v-for="e in datas" :key="e.pk_id" @click="toRadio(e)">
|
||||
<td>
|
||||
<button v-if="isMultiple === '1'" class="iconfont select_icon select_square_icon" :class="e.checked === true ? 'selected_icon' : 'unselect_icon'"></button>
|
||||
<button v-else class="iconfont select_icon" :class="e.checked === true ? 'selected_icon' : 'unselect_icon'"></button>
|
||||
</td>
|
||||
<td>{{e.produceorder_code}}</td>
|
||||
<td>{{e.shift_type_scode_name}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.workprocedure_name}}</td>
|
||||
<td>{{e.produce_qty}}</td>
|
||||
<td>{{e.initial_qty}}</td>
|
||||
<td>{{e.this_qty}}</td>
|
||||
<td>{{e.realproducestart_date}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<modal
|
||||
:mdShow='mdShow2'
|
||||
message="提示"
|
||||
@@ -360,4 +362,6 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.grid_wraper
|
||||
height calc(100% - 45px)
|
||||
</style>
|
||||
|
||||
@@ -1,62 +1,76 @@
|
||||
<template>
|
||||
<sec-header :deviceCode="deviceCode" activeIndex="1">
|
||||
<div class="wrap">
|
||||
<div class="wrap-filter">
|
||||
<div class="fl mgt10">
|
||||
工单日期
|
||||
<el-date-picker
|
||||
v-model="value1"
|
||||
type="daterange"
|
||||
range-separator="-"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期">
|
||||
</el-date-picker>
|
||||
<div class="wrap-filter-buttons">
|
||||
<div class="wrap-filters">
|
||||
<div class="filter_item">
|
||||
<div class="filter_label">工单日期</div>
|
||||
<div class="filter_input">
|
||||
<el-date-picker
|
||||
v-model="value1"
|
||||
type="daterange"
|
||||
range-separator="-"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期">
|
||||
</el-date-picker>
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter_item">
|
||||
<div class="filter_label">关键字</div>
|
||||
<div class="filter_input">
|
||||
<input type="text" class="filter-input" v-model="keyValue" placeholder="请输入工单号、物料编码">
|
||||
<i v-show="closeIcon1" class="iconfont close_icon" @click="clearData(1)"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fl mgt10 keyValue">
|
||||
关键字
|
||||
<input type="text" class="input" v-model="keyValue" placeholder="请输入工单号、物料编码">
|
||||
<i v-show="closeIcon1" class="iconfont close_icon" @click="clearData(1)"></i>
|
||||
</div>
|
||||
<div class="fr mgt10">
|
||||
<button class="mgr5 button--primary" @click="getDatas">查 询</button>
|
||||
<button class="button--primary" :class="{'button--defalut': !pkId || Number(pkObj.order_status) !== 1}" :disabled="disabled1" @click="_openStart">开工</button>
|
||||
<button class="button--primary" :class="{'button--defalut': !pkId || Number(pkObj.order_status) === 1}" :disabled="disabled2" @click="_saveReport">报工</button>
|
||||
<button class="button--primary" :class="{'button--defalut': !pkId || Number(pkObj.order_status) === 1}" :disabled="disabled3" @click="_tofinish">完工</button>
|
||||
<!-- <div class="wrap-buttons">
|
||||
<button class="button button--primary" @click="getDatas">查 询</button>
|
||||
<button class="button button--primary" :class="{'button--defalut': !pkId || Number(pkObj.order_status) !== 1}" :disabled="disabled1" @click="_openStart">开工</button>
|
||||
<button class="button button--primary" :class="{'button--defalut': !pkId || Number(pkObj.order_status) === 1}" :disabled="disabled2" @click="_saveReport">报工</button>
|
||||
<button class="button button--primary" :class="{'button--defalut': !pkId || Number(pkObj.order_status) === 1}" :disabled="disabled3" @click="_tofinish">完工</button>
|
||||
</div> -->
|
||||
<div class="wrap-buttons">
|
||||
<button class="button button--primary" @click="getDatas">查 询</button>
|
||||
<button class="button button--primary" :disabled="disabled1" @click="_openStart">开工</button>
|
||||
<button class="button button--primary" :disabled="disabled2" @click="_saveReport">报工</button>
|
||||
<button class="button button--primary" :disabled="disabled3" @click="_tofinish">完工</button>
|
||||
</div>
|
||||
</div>
|
||||
<table class="filter-table">
|
||||
<tr>
|
||||
<th width="4%"></th>
|
||||
<th width="8%">工单号</th>
|
||||
<th width="8%">班次</th>
|
||||
<th width="9%">物料名称</th>
|
||||
<th width="8%">工序</th>
|
||||
<th width="9%">工单状态</th>
|
||||
<th width="10%">计划数量</th>
|
||||
<th width="9%">实际数量</th>
|
||||
<th width="9%">报工数量</th>
|
||||
<th width="13%">开始时间</th>
|
||||
<th width="13%">结束时间</th>
|
||||
</tr>
|
||||
<tr v-for="e in dataList" :key="e.workorder_id">
|
||||
<td>
|
||||
<button class="iconfont select_icon" :class="pkId === e.workorder_id ? 'selected_icon' : 'unselect_icon'" @click="toRadio(e)"></button>
|
||||
</td>
|
||||
<td>{{e.workorder_code}}</td>
|
||||
<td>{{e.shift_type_scode_name}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.workprocedure_name}}</td>
|
||||
<td>{{['创建','下发','生产中','暂停', '完成'][Number(e.order_status) - 1]}}</td>
|
||||
<td>{{e.plan_qty}}</td>
|
||||
<td>{{e.real_qty}}</td>
|
||||
<!-- <td>{{e.report_qty}}</td> -->
|
||||
<td>
|
||||
<input type="number" class="grid-input" v-model="e.report_qty">
|
||||
</td>
|
||||
<td>{{e.realproducestart_date}}</td>
|
||||
<td>{{e.realproduceend_date}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="grid_wraper">
|
||||
<table class="filter-table">
|
||||
<tr>
|
||||
<th width="4%"></th>
|
||||
<th width="8%">工单号</th>
|
||||
<th width="8%">班次</th>
|
||||
<th width="9%">物料名称</th>
|
||||
<th width="8%">工序</th>
|
||||
<th width="9%">工单状态</th>
|
||||
<th width="10%">计划数量</th>
|
||||
<th width="9%">实际数量</th>
|
||||
<th width="9%">报工数量</th>
|
||||
<th width="13%">开始时间</th>
|
||||
<th width="13%">结束时间</th>
|
||||
</tr>
|
||||
<tr v-for="e in dataList" :key="e.workorder_id">
|
||||
<td>
|
||||
<button class="iconfont select_icon" :class="pkId === e.workorder_id ? 'selected_icon' : 'unselect_icon'" @click="toRadio(e)"></button>
|
||||
</td>
|
||||
<td>{{e.workorder_code}}</td>
|
||||
<td>{{e.shift_type_scode_name}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.workprocedure_name}}</td>
|
||||
<td>{{['创建','下发','生产中','暂停', '完成'][Number(e.order_status) - 1]}}</td>
|
||||
<td>{{e.plan_qty}}</td>
|
||||
<td>{{e.real_qty}}</td>
|
||||
<!-- <td>{{e.report_qty}}</td> -->
|
||||
<td>
|
||||
<input type="number" class="grid-input" v-model="e.report_qty">
|
||||
</td>
|
||||
<td>{{e.realproducestart_date}}</td>
|
||||
<td>{{e.realproduceend_date}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<Back></Back>
|
||||
</sec-header>
|
||||
@@ -120,10 +134,10 @@ export default {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
if (Number(this.pkObj.order_status) !== 1) {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
// if (Number(this.pkObj.order_status) !== 1) {
|
||||
// this.disabled1 = false
|
||||
// return
|
||||
// }
|
||||
if (Number(this.pkObj.report_qty) < 0) {
|
||||
this.toast('报工数量不能为负值')
|
||||
this.disabled1 = false
|
||||
@@ -147,10 +161,10 @@ export default {
|
||||
this.disabled2 = false
|
||||
return
|
||||
}
|
||||
if (Number(this.pkObj.order_status) === 1) {
|
||||
this.disabled2 = false
|
||||
return
|
||||
}
|
||||
// if (Number(this.pkObj.order_status) === 1) {
|
||||
// this.disabled2 = false
|
||||
// return
|
||||
// }
|
||||
if (Number(this.pkObj.report_qty) < 0) {
|
||||
this.toast('报工数量不能为负值')
|
||||
this.disabled2 = false
|
||||
@@ -174,10 +188,10 @@ export default {
|
||||
this.disabled3 = false
|
||||
return
|
||||
}
|
||||
if (Number(this.pkObj.order_status) === 1) {
|
||||
this.disabled3 = false
|
||||
return
|
||||
}
|
||||
// if (Number(this.pkObj.order_status) === 1) {
|
||||
// this.disabled3 = false
|
||||
// return
|
||||
// }
|
||||
if (Number(this.pkObj.report_qty) < 0) {
|
||||
this.toast('报工数量不能为负值')
|
||||
this.disabled3 = false
|
||||
@@ -198,14 +212,15 @@ export default {
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.input
|
||||
width 1.2rem
|
||||
width 1.5rem
|
||||
.close_icon
|
||||
top 0
|
||||
top 50%
|
||||
transform: translateY(-50%)
|
||||
.grid-input
|
||||
line-height 0.18rem
|
||||
font-size 0.13rem
|
||||
color #999
|
||||
line-height 24px
|
||||
font-size 12px
|
||||
color #606266
|
||||
text-align center
|
||||
border-radius 3px
|
||||
margin 0 .01rem
|
||||
border-radius 4px
|
||||
margin 0 auto
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user