feat(wms): 新增钢卷合同号自动填充功能
1. 在钢卷合并、分卷、打钢印、计划拆分、退火计划页面添加合同号自动拉取逻辑 2. 优化合同选择组件,补全不存在于列表的已选合同 3. 移除split.vue中冗余的注释代码
This commit is contained in:
@@ -378,6 +378,7 @@
|
||||
|
||||
<script>
|
||||
import { getMaterialCoil, listMaterialCoil, createSpecialChild, completeSpecialSplit, updateMaterialCoilSimple, delMaterialCoil, getFirstHeatCoilMaterial } from '@/api/wms/coil'
|
||||
import { listCoilContractRel } from '@/api/wms/coilContractRel'
|
||||
import { listCoilAbnormal } from '@/api/wms/coilAbnormal'
|
||||
import { getPendingAction, updatePendingAction } from '@/api/wms/pendingAction'
|
||||
import { saveCoilCache, getCoilCacheByCoilId, delCoilCache } from '@/api/wms/coilCache'
|
||||
@@ -735,6 +736,13 @@ export default {
|
||||
if (this.isGrindAction && this.coilInfo.enterCoilNo) {
|
||||
this.splitForm.chromePlateCoilNo = this.coilInfo.enterCoilNo.split(',')[0].trim()
|
||||
}
|
||||
// 获取原料卷绑定的合同号作为默认值
|
||||
listCoilContractRel({ coilId: this.coilId }).then(res => {
|
||||
const rows = res.rows || []
|
||||
if (rows.length > 0 && rows[0].contractId) {
|
||||
this.$set(this.splitForm, 'contractId', rows[0].contractId)
|
||||
}
|
||||
})
|
||||
// 查询是否有缓存
|
||||
try {
|
||||
const res = await getCoilCacheByCoilId(this.coilId)
|
||||
|
||||
Reference in New Issue
Block a user