Commit c9475286 authored by zhangyichen's avatar zhangyichen

bug修改

parent 05ff6b30
<template> <template>
<div class="model_details"> <div class="model_details">
<div class="detailsSearch" style="border-bottom: 14px solid #f4f4f4"> <div class="detailsSearch" style="border-bottom: 14px solid #f4f4f4">
<el-form ref="form" :model="form" :rules="rules" style="padding: 0 0 0 20px" class="formClass" :inline="true" label-width="auto"> <el-form ref="form" :model="form" :rules="rules" style="padding: 0 0 0 20px" class="formClass" :inline="true">
<el-form-item class="labelHeight" label="模型类型" prop="modelType"> <el-form-item class="labelHeight" label="模型类型" prop="modelType">
<div slot="label" class="labelClassRequired"> <div slot="label" class="labelClassRequired">
<div class="labelName">模型类型</div> <div class="labelName">模型类型</div>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
</el-row> </el-row>
<!-- 添加工站--> <!-- 添加工站-->
<el-dialog :close-on-click-modal="false" class="modelDialog" :title="title" :visible.sync="openPosition" width="70%" :append-to-body="false"> <el-dialog :close-on-click-modal="false" class="modelDialog" :title="title" :visible.sync="openPosition" width="70%" :append-to-body="false">
<el-form ref="form1" :model="queryParams" label-width="auto" :inline="true"> <el-form ref="form1" :model="queryParams" :inline="true">
<el-form-item label="工站名称" prop="staName"> <el-form-item label="工站名称" prop="staName">
<div slot="label"> <div slot="label">
<div class="labelName">工站名称</div> <div class="labelName">工站名称</div>
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
</el-dialog> </el-dialog>
<!-- 选择成品料号 物料料号--> <!-- 选择成品料号 物料料号-->
<el-dialog :close-on-click-modal="false" class="modelDialog" :title="title" :visible.sync="openPartNo" width="70%" :append-to-body="false"> <el-dialog :close-on-click-modal="false" class="modelDialog" :title="title" :visible.sync="openPartNo" width="70%" :append-to-body="false">
<el-form ref="form2" :model="queryParams" label-width="auto" :inline="true"> <el-form ref="form2" :model="queryParams" :inline="true">
<el-form-item label="成品料号" prop="materCode"> <el-form-item label="成品料号" prop="materCode">
<div slot="label"> <div slot="label">
<div class="labelName">成品料号</div> <div class="labelName">成品料号</div>
...@@ -457,7 +457,7 @@ export default { ...@@ -457,7 +457,7 @@ export default {
// 替换物料时 禁用自己的id判断 // 替换物料时 禁用自己的id判断
disabledId: '', disabledId: '',
// 物料已被选中但是可编辑多选且提前查的id组 用于回显替换物料 状态1的时候传值 // 物料已被选中但是可编辑多选且提前查的id组 用于回显替换物料 状态1的时候传值
selectMaterIdStr: '' selectMaterIList: []
} }
}, },
watch: { watch: {
...@@ -594,7 +594,7 @@ export default { ...@@ -594,7 +594,7 @@ export default {
this.queryParams.materCode = '' this.queryParams.materCode = ''
this.queryParams.page = 1 this.queryParams.page = 1
this.queryParams.rows = 10 this.queryParams.rows = 10
this.selectMaterIdStr = '' this.selectMaterIList = []
this.openPartNo = true this.openPartNo = true
this.title = '选择成品料号' this.title = '选择成品料号'
this.type = '3' this.type = '3'
...@@ -607,7 +607,7 @@ export default { ...@@ -607,7 +607,7 @@ export default {
this.queryParams.page = 1 this.queryParams.page = 1
this.queryParams.rows = 10 this.queryParams.rows = 10
this.materQueryType = '' this.materQueryType = ''
this.selectMaterIdStr = '' this.selectMaterIList = []
if (row) { if (row) {
this.type = '1' this.type = '1'
this.materQueryType = (row.configureOrNot === null || row.configureOrNot === undefined || row.configureOrNot === '') ? '0' : '1' this.materQueryType = (row.configureOrNot === null || row.configureOrNot === undefined || row.configureOrNot === '') ? '0' : '1'
...@@ -625,7 +625,7 @@ export default { ...@@ -625,7 +625,7 @@ export default {
this.disabledId = row.businessId this.disabledId = row.businessId
this.replaceMaterialList.forEach(item => { this.replaceMaterialList.forEach(item => {
this.materIdList.push(item.businessId) this.materIdList.push(item.businessId)
this.selectMaterIdStr += item.businessId this.selectMaterIList.push(item.businessId)
}) })
} else { } else {
this.materIdList = [] this.materIdList = []
...@@ -665,7 +665,7 @@ export default { ...@@ -665,7 +665,7 @@ export default {
businessIdList: str, businessIdList: str,
totalType: this.materQueryType, totalType: this.materQueryType,
type: '', type: '',
selectMaterIdStr: this.selectMaterIdStr selectMaterIdStr: this.selectMaterIList.join(',')
} }
if (this.type === '3') { if (this.type === '3') {
params.type = '3' params.type = '3'
......
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