Merge remote-tracking branch 'origin/0.8.X' into 0.8.X
This commit is contained in:
@@ -5,7 +5,11 @@
|
|||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div class="section-card material-section">
|
<div class="section-card material-section">
|
||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<h3 class="section-title">查找钢卷并修正</h3>
|
<h3 class="section-title">
|
||||||
|
查找钢卷并修正
|
||||||
|
<span class="section-desc">绿色边框表示当前钢卷,灰色边框表示历史钢卷</span>
|
||||||
|
</h3>
|
||||||
|
|
||||||
<el-button size="mini" icon="el-icon-refresh" @click="getMaterialCoil">刷新</el-button>
|
<el-button size="mini" icon="el-icon-refresh" @click="getMaterialCoil">刷新</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -31,13 +35,13 @@
|
|||||||
<i class="el-icon-box"></i>
|
<i class="el-icon-box"></i>
|
||||||
<p>暂无待领物料</p>
|
<p>暂无待领物料</p>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 根据item.dataType决定边框颜色,为0使用当前的颜色,为1使用绿色,为2使用黄色 -->
|
||||||
<div v-for="(item, index) in materialCoilList" :key="item.coilId || index" class="material-card"
|
<div v-for="(item, index) in materialCoilList" :key="item.coilId || index" class="material-card"
|
||||||
:style="{ border: item.abnormalCount > 0 ? '1px solid red' : ' 1px solid #e4e7ed' }">
|
:style="item.dataType === 0 ? 'border: 1.5px solid #e4e7ed' : item.dataType === 1 ? 'border: 1.5px solid green' : 'border: 1.5px solid yellow'">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="header-left">
|
<div class="header-left">
|
||||||
<el-tag type="info" size="small" class="coil-no-tag">{{ item.currentCoilNo }}</el-tag>
|
<el-tag type="info" size="small" class="coil-no-tag">{{ item.currentCoilNo }}</el-tag>
|
||||||
<!-- <span class="material-type">{{ item.materialType || '原料' }}</span> -->
|
<span class="material-type">{{ item.materialType || '原料' }}</span>
|
||||||
<el-popover v-if="item.rawMaterial || item.product" placement="top" width="280" trigger="hover"
|
<el-popover v-if="item.rawMaterial || item.product" placement="top" width="280" trigger="hover"
|
||||||
popper-class="material-params-popover">
|
popper-class="material-params-popover">
|
||||||
<div class="material-params-content">
|
<div class="material-params-content">
|
||||||
@@ -178,7 +182,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-footer">
|
<div class="card-footer" v-if="item.dataType != 10">
|
||||||
<el-button type="primary" icon="el-icon-check" size="mini" @click="handleCorrectMaterial(item)"
|
<el-button type="primary" icon="el-icon-check" size="mini" @click="handleCorrectMaterial(item)"
|
||||||
:loading="item.picking" class="action-btn">修正</el-button>
|
:loading="item.picking" class="action-btn">修正</el-button>
|
||||||
<el-button type="danger" icon="el-icon-alarm-clock" :plain="item.abnormalCount == 0" size="mini"
|
<el-button type="danger" icon="el-icon-alarm-clock" :plain="item.abnormalCount == 0" size="mini"
|
||||||
@@ -346,7 +350,7 @@ import RawMaterialSelect from "@/components/KLPService/RawMaterialSelect";
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DoPage',
|
name: 'DoPage',
|
||||||
dicts: ['action_type', 'coil_abnormal_code', 'coil_abnormal_position', 'coil_abnormal_degree'],
|
dicts: ['action_type', 'coil_abnormal_code', 'coil_abnormal_position', 'coil_abnormal_degree', 'coil_quality_status'],
|
||||||
props: {
|
props: {
|
||||||
label: {
|
label: {
|
||||||
type: String,
|
type: String,
|
||||||
@@ -366,7 +370,6 @@ export default {
|
|||||||
ProductSelect,
|
ProductSelect,
|
||||||
RawMaterialSelect,
|
RawMaterialSelect,
|
||||||
},
|
},
|
||||||
dicts: ['coil_quality_status'],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 物料列表相关
|
// 物料列表相关
|
||||||
@@ -377,7 +380,7 @@ export default {
|
|||||||
materialQueryParams: {
|
materialQueryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
dataType: 1,
|
// dataType: 1,
|
||||||
status: 0,
|
status: 0,
|
||||||
enterCoilNo: null,
|
enterCoilNo: null,
|
||||||
currentCoilNo: null
|
currentCoilNo: null
|
||||||
@@ -829,6 +832,11 @@ export default {
|
|||||||
color: #303133;
|
color: #303133;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.section-desc {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #909399;
|
||||||
|
}
|
||||||
|
|
||||||
.material-section {
|
.material-section {
|
||||||
.section-header {
|
.section-header {
|
||||||
border-bottom-color: #409eff;
|
border-bottom-color: #409eff;
|
||||||
|
|||||||
Reference in New Issue
Block a user