Commit 1b6b54f4 authored by jingnan's avatar jingnan 👀

胶漆调配记录修改

parent f82b8c75
......@@ -331,17 +331,18 @@ export default {
]
this.setOptions('spec', params)
}
if (this.itemObj.attrKey === 'realityMark' && this.basicData.spec) {
if (this.itemObj.attrKey === 'realityMark') {
// && this.basicData.spec
const params = [
{
'fieldName': 'modelNo',
'operator': 'LIKE',
'value': this.basicData.modelNo
'value': this.basicData.modelNo || ''
},
{
'fieldName': 'spec',
'operator': 'LIKE',
'value': this.basicData.spec
'value': this.basicData.spec || ''
},
{
'fieldName': 'realityMark',
......
<template>
<div>
<dee-as-com
ref="table"
:lay-config="{
typeName: 'ExtSupportingItem',
layKey: 'lacquerList'
......@@ -133,6 +134,7 @@ export default {
this.drawer = false
if (!this.$route.path.includes('workflow')) {
this.$bus.$emit('opertorSuccess')
this.$refs.table.$refs.asCom.getData()
}
})
},
......@@ -228,6 +230,7 @@ export default {
'subTypeName': this.subTypeName,
'operator': 'ADD',
productArea: this.productArea,
modelNo: this.setAttrs.assignCardDetails && this.setAttrs.assignCardDetails.length && this.setAttrs.assignCardDetails[0].extMaterial && this.setAttrs.assignCardDetails[0].extMaterial.modelNo || '',
createTimeTo: this.$moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
assignCardDetails: this.setAttrs.assignCardDetails.map(item => {
return {
......@@ -238,6 +241,9 @@ export default {
}
})
}
if (this.subTypeName === 'AssignCardAlodine') {
params.baseModelNo = params.modelNo
}
post(`/AssignCard/recursion`, params).then(res => {
if (res.code === 0) {
this.setAttrs.cardNo = res.items.cardNo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment