同步规程同步代码和录入监测代码
This commit is contained in:
@@ -31,6 +31,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="matchedSpec" style="margin-bottom:10px">
|
||||
<el-tag type="success" size="small">
|
||||
<i class="el-icon-s-order" style="margin-right:4px" />
|
||||
已匹配规程:{{ matchedSpec.specCode }}{{ matchedSpec.specName ? ' - ' + matchedSpec.specName : '' }} / {{ matchedSpec.versionCode }}
|
||||
</el-tag>
|
||||
</div>
|
||||
<el-form ref="updateForm" :model="updateForm" :rules="rules" label-width="86px" size="small">
|
||||
<el-row>
|
||||
<el-col :span="16">
|
||||
@@ -305,6 +311,7 @@
|
||||
|
||||
<script>
|
||||
import { getMaterialCoil, updateMaterialCoil, getFirstHeatCoilMaterial } from '@/api/wms/coil';
|
||||
import { matchBestSpecVersion } from '@/api/wms/processSpecVersion';
|
||||
import { completeAction, getPendingAction } from '@/api/wms/pendingAction';
|
||||
import { saveCoilCache, getCoilCacheByCoilId, delCoilCache } from '@/api/wms/coilCache';
|
||||
import ActualWarehouseSelect from "@/components/KLPService/ActualWarehouseSelect";
|
||||
@@ -381,7 +388,10 @@ export default {
|
||||
productionEndTime: '',
|
||||
productionDuration: '',
|
||||
formattedDuration: '',
|
||||
specId: null,
|
||||
versionId: null,
|
||||
},
|
||||
matchedSpec: null,
|
||||
rules: {
|
||||
currentCoilNo: [
|
||||
{ required: true, message: '请输入当前钢卷号', trigger: 'blur' },
|
||||
@@ -576,6 +586,18 @@ export default {
|
||||
else if (t === '0') this.$set(this.updateForm, 'trimmingRequirement', '毛边料')
|
||||
}
|
||||
this.$message.success('L2 数据已写入表单')
|
||||
const ACID_ROLL_ACTION_TYPES = [11, 200, 520]
|
||||
const ACID_LINE_ID = 1
|
||||
if (this.l2HotCoilId && ACID_ROLL_ACTION_TYPES.includes(this.actionType)) {
|
||||
matchBestSpecVersion(this.l2HotCoilId, ACID_LINE_ID).then(res => {
|
||||
const v = res.data
|
||||
if (v) {
|
||||
this.$set(this.updateForm, 'specId', v.specId)
|
||||
this.$set(this.updateForm, 'versionId', v.versionId)
|
||||
this.matchedSpec = v
|
||||
}
|
||||
}).catch(() => {})
|
||||
}
|
||||
},
|
||||
|
||||
// 处理材料类型变化
|
||||
|
||||
Reference in New Issue
Block a user