1完成酸轧轧辊调整
2完成双机架工艺规格串联 3完成双机架计划串联 4完成双机架wip快捷录入检索 5完成双机架实绩串联
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<span>钢卷信息更新</span>
|
||||
</div>
|
||||
<div class="header-actions">
|
||||
|
||||
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
@@ -26,9 +26,10 @@
|
||||
|
||||
<!-- 主内容区 - 左右布局 -->
|
||||
<div class="content-wrapper">
|
||||
<!-- 左侧:L2 匹配面板 -->
|
||||
<!-- 左侧:快捷写入面板(DR操作用双机架计划面板,其他用L2匹配) -->
|
||||
<div>
|
||||
<l2-match-panel :hot-coil-id="l2HotCoilId" @fill="applyL2Fill" />
|
||||
<dr-match-panel v-if="isDrAction" :action-id="actionId" @fill="applyDrFill" />
|
||||
<l2-match-panel v-else :hot-coil-id="l2HotCoilId" @fill="applyL2Fill" />
|
||||
</div>
|
||||
<!-- 右侧:更新表单 -->
|
||||
<div>
|
||||
@@ -326,7 +327,8 @@ import AbnormalForm from './components/AbnormalForm';
|
||||
import { generateCoilNoPrefix } from "@/utils/coil/coilNo";
|
||||
import { addCoilContractRel } from "@/api/wms/coilContractRel";
|
||||
import ContractSelect from "@/components/KLPService/ContractSelect";
|
||||
import L2MatchPanel from './panels/L2MatchPanel.vue';
|
||||
import L2MatchPanel from './panels/L2MatchPanel.vue'
|
||||
import DrMatchPanel from './panels/DrMatchPanel.vue';
|
||||
|
||||
|
||||
export default {
|
||||
@@ -340,6 +342,7 @@ export default {
|
||||
AbnormalForm,
|
||||
ContractSelect,
|
||||
L2MatchPanel,
|
||||
DrMatchPanel,
|
||||
},
|
||||
dicts: ['coil_quality_status', 'coil_abnormal_position', 'coil_abnormal_code', 'coil_abnormal_degree', 'coil_business_purpose'],
|
||||
data() {
|
||||
@@ -429,6 +432,7 @@ export default {
|
||||
],
|
||||
},
|
||||
actionId: null,
|
||||
actionType: null, // 待操作类型,504/524 = 双机架
|
||||
acidPrefill: {
|
||||
visible: false,
|
||||
type: 'info',
|
||||
@@ -462,6 +466,10 @@ export default {
|
||||
l2HotCoilId() {
|
||||
return (this.currentInfo && this.currentInfo.enterCoilNo) || ''
|
||||
},
|
||||
/** 是否双机架工序(actionType 504=正常 / 524=修复) */
|
||||
isDrAction() {
|
||||
return this.actionType === 504 || this.actionType === 524
|
||||
},
|
||||
// 动态显示标签
|
||||
getItemLabel() {
|
||||
if (this.updateForm.materialType === '成品') {
|
||||
@@ -490,6 +498,11 @@ export default {
|
||||
// 填写生产开始时间
|
||||
this.$set(this.updateForm, 'productionStartTime', pendingActionRes.data.createTime)
|
||||
|
||||
// 记录操作类型(用于判断是否双机架工序)
|
||||
if (pendingActionRes.data && pendingActionRes.data.actionType != null) {
|
||||
this.actionType = pendingActionRes.data.actionType
|
||||
}
|
||||
|
||||
if (coilId) {
|
||||
await this.loadCoilInfo(coilId);
|
||||
}
|
||||
@@ -523,6 +536,20 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/** 双机架计划/道次快捷写入 */
|
||||
applyDrFill(data) {
|
||||
if (data.outThick != null) this.$set(this.updateForm, 'actualThickness', parseFloat(data.outThick))
|
||||
if (data.inMatWidth != null) this.$set(this.updateForm, 'actualWidth', parseFloat(data.inMatWidth))
|
||||
if (data.inMatWeight != null) {
|
||||
this.$set(this.updateForm, 'netWeight', parseFloat(data.inMatWeight))
|
||||
this.$set(this.updateForm, 'grossWeight', parseFloat(data.inMatWeight))
|
||||
}
|
||||
if (data.inMatLength != null) {
|
||||
this.$set(this.updateForm, 'actualLength', parseFloat(data.inMatLength))
|
||||
this.$set(this.updateForm, 'length', parseFloat(data.inMatLength))
|
||||
}
|
||||
},
|
||||
|
||||
applyL2Fill(data) {
|
||||
if (data.entry_weight != null) {
|
||||
const w = parseFloat(data.entry_weight)
|
||||
|
||||
Reference in New Issue
Block a user