|
|
@ -480,7 +480,7 @@ |
|
|
<el-input class="inlineNumber numInput" v-model="componentData.lineSequence" type="number" style="width: 49px"></el-input> |
|
|
<el-input class="inlineNumber numInput" v-model="componentData.lineSequence" type="number" style="width: 49px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item prop="componentPart" :rules="componentRules.componentPart"> |
|
|
<el-form-item prop="componentPart" :rules="componentRules.componentPart"> |
|
|
<span v-if="!componentDisableFlag" slot="label" @click="queryComponentPartList"><a herf="#">子物料编码</a></span> |
|
|
|
|
|
|
|
|
<span v-if="!componentDisableFlag" slot="label" @click="queryComponentPartModal"><a herf="#">子物料编码</a></span> |
|
|
<span v-if="componentDisableFlag" slot="label">子物料编码</span> |
|
|
<span v-if="componentDisableFlag" slot="label">子物料编码</span> |
|
|
<el-input v-model="componentData.componentPart" :disabled="componentDisableFlag" @blur="componentPartBlur" style="width: 130px"></el-input> |
|
|
<el-input v-model="componentData.componentPart" :disabled="componentDisableFlag" @blur="componentPartBlur" style="width: 130px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -3204,7 +3204,8 @@ export default { |
|
|
/** |
|
|
/** |
|
|
* 物料列表 |
|
|
* 物料列表 |
|
|
*/ |
|
|
*/ |
|
|
queryComponentPartList () { |
|
|
|
|
|
|
|
|
queryComponentPartModal () { |
|
|
|
|
|
this.componentPartData.status = 'Y' |
|
|
// 查询所有物料 |
|
|
// 查询所有物料 |
|
|
queryPartList(this.componentPartData).then(({data}) => { |
|
|
queryPartList(this.componentPartData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
@ -3218,6 +3219,20 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 物料列表 |
|
|
|
|
|
*/ |
|
|
|
|
|
queryComponentPartList () { |
|
|
|
|
|
// 查询所有物料 |
|
|
|
|
|
queryPartList(this.componentPartData).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.componentPartList = data.rows |
|
|
|
|
|
} else { |
|
|
|
|
|
this.componentPartList = [] |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 子物料编码失焦事件 |
|
|
// 子物料编码失焦事件 |
|
|
componentPartBlur () { |
|
|
componentPartBlur () { |
|
|
this.componentPartData.partNo = this.componentData.componentPart |
|
|
this.componentPartData.partNo = this.componentData.componentPart |
|
|
|