Commit 1b6b54f4 authored by jingnan's avatar jingnan 👀

胶漆调配记录修改

parent f82b8c75
...@@ -331,17 +331,18 @@ export default { ...@@ -331,17 +331,18 @@ export default {
] ]
this.setOptions('spec', params) this.setOptions('spec', params)
} }
if (this.itemObj.attrKey === 'realityMark' && this.basicData.spec) { if (this.itemObj.attrKey === 'realityMark') {
// && this.basicData.spec
const params = [ const params = [
{ {
'fieldName': 'modelNo', 'fieldName': 'modelNo',
'operator': 'LIKE', 'operator': 'LIKE',
'value': this.basicData.modelNo 'value': this.basicData.modelNo || ''
}, },
{ {
'fieldName': 'spec', 'fieldName': 'spec',
'operator': 'LIKE', 'operator': 'LIKE',
'value': this.basicData.spec 'value': this.basicData.spec || ''
}, },
{ {
'fieldName': 'realityMark', 'fieldName': 'realityMark',
......
<template> <template>
<div> <div>
<dee-as-com <dee-as-com
ref="table"
:lay-config="{ :lay-config="{
typeName: 'ExtSupportingItem', typeName: 'ExtSupportingItem',
layKey: 'lacquerList' layKey: 'lacquerList'
...@@ -133,6 +134,7 @@ export default { ...@@ -133,6 +134,7 @@ export default {
this.drawer = false this.drawer = false
if (!this.$route.path.includes('workflow')) { if (!this.$route.path.includes('workflow')) {
this.$bus.$emit('opertorSuccess') this.$bus.$emit('opertorSuccess')
this.$refs.table.$refs.asCom.getData()
} }
}) })
}, },
...@@ -228,6 +230,7 @@ export default { ...@@ -228,6 +230,7 @@ export default {
'subTypeName': this.subTypeName, 'subTypeName': this.subTypeName,
'operator': 'ADD', 'operator': 'ADD',
productArea: this.productArea, 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'), createTimeTo: this.$moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
assignCardDetails: this.setAttrs.assignCardDetails.map(item => { assignCardDetails: this.setAttrs.assignCardDetails.map(item => {
return { return {
...@@ -238,6 +241,9 @@ export default { ...@@ -238,6 +241,9 @@ export default {
} }
}) })
} }
if (this.subTypeName === 'AssignCardAlodine') {
params.baseModelNo = params.modelNo
}
post(`/AssignCard/recursion`, params).then(res => { post(`/AssignCard/recursion`, params).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.setAttrs.cardNo = res.items.cardNo 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