|
|
@ -15,7 +15,7 @@ |
|
|
|
class="demo-form-inline" |
|
|
|
> |
|
|
|
<el-row> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="工艺" prop="OPCBasicComInfo-StepDesc"> |
|
|
|
<el-select |
|
|
|
:disabled="isAddOrEdit == 'edit'" |
|
|
@ -32,7 +32,8 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> </el-form-item |
|
|
|
></el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
|
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item |
|
|
|
:label="getColumnName('OPCBasicComInfo-StepNo')" |
|
|
|
prop="OPCBasicComInfo-StepNo" |
|
|
@ -43,7 +44,7 @@ |
|
|
|
placeholder="请输入" |
|
|
|
></el-input-number> </el-form-item |
|
|
|
></el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item |
|
|
|
:label="getColumnName('OPCBasicComInfo-PO')" |
|
|
|
prop="OPCBasicComInfo-PO" |
|
|
@ -54,7 +55,7 @@ |
|
|
|
placeholder="请输入" |
|
|
|
></el-input-number> </el-form-item |
|
|
|
></el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item |
|
|
|
:label="getColumnName('OPCBasicComInfo-ProjectId')" |
|
|
|
prop="OPCBasicComInfo-ProjectId" |
|
|
@ -65,7 +66,7 @@ |
|
|
|
placeholder="请输入" |
|
|
|
></el-input> </el-form-item |
|
|
|
></el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item |
|
|
|
:label="getColumnName('OPCBasicComInfo-OperationId')" |
|
|
|
prop="OPCBasicComInfo-OperationId" |
|
|
@ -76,7 +77,27 @@ |
|
|
|
placeholder="请输入" |
|
|
|
></el-input-number> </el-form-item |
|
|
|
></el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item |
|
|
|
:label="getColumnName('OPCBasicComInfo-WorkPlaceNr')" |
|
|
|
prop="OPCBasicComInfo-WorkPlaceNr" |
|
|
|
> |
|
|
|
<el-select |
|
|
|
:disabled="isAddOrEdit == 'edit'" |
|
|
|
v-model="formData['OPCBasicComInfo-WorkPlaceNr']" |
|
|
|
placeholder="请选择" |
|
|
|
@change="setStep" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in stationList" |
|
|
|
:key="item['WorkPlace-WorkPlaceNr']" |
|
|
|
:label="item['WorkPlace-Descr']" |
|
|
|
:value="item['WorkPlace-WorkPlaceNr']" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> </el-form-item |
|
|
|
></el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item |
|
|
|
:label="getColumnName('OPCBasicComInfo-BrandName')" |
|
|
|
prop="OPCBasicComInfo-BrandName" |
|
|
@ -86,7 +107,7 @@ |
|
|
|
placeholder="请输入" |
|
|
|
></el-input> </el-form-item |
|
|
|
></el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item |
|
|
|
:label="getColumnName('OPCBasicComInfo-MachineType')" |
|
|
|
prop="OPCBasicComInfo-MachineType" |
|
|
@ -96,7 +117,7 @@ |
|
|
|
placeholder="请输入" |
|
|
|
></el-input> </el-form-item |
|
|
|
></el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item |
|
|
|
:label="getColumnName('OPCBasicComInfo-IpAddress')" |
|
|
|
prop="OPCBasicComInfo-IpAddress" |
|
|
@ -278,7 +299,7 @@ |
|
|
|
</el-dialog> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import {add, edit, getOperationList, getDetails} from '@/api/plant/processData/basicCommunication' |
|
|
|
import {add, edit, getOperationList, getDetails, getStationList} from '@/api/plant/processData/basicCommunication' |
|
|
|
export default { |
|
|
|
props:{ |
|
|
|
item:{ |
|
|
@ -295,6 +316,9 @@ export default { |
|
|
|
'OPCBasicComInfo-PO': [ |
|
|
|
{ required: true, message: '请选择', trigger: 'blur' } |
|
|
|
], |
|
|
|
'OPCBasicComInfo-WorkPlaceNr': [ |
|
|
|
{ required: true, message: '请选择', trigger: 'blur' } |
|
|
|
], |
|
|
|
'OPCBasicComInfo-StepNo': [ |
|
|
|
{ required: true, message: '请选择', trigger: 'change' } |
|
|
|
], |
|
|
@ -332,6 +356,7 @@ export default { |
|
|
|
}, // OPCComDetailRule模板 |
|
|
|
actionTypeList:[], // 操作类型列表 |
|
|
|
DBlockList:[], //DB列表 |
|
|
|
stationList:[], // 工位列表 |
|
|
|
} |
|
|
|
}, |
|
|
|
methods:{ |
|
|
@ -431,12 +456,19 @@ export default { |
|
|
|
this.formData={...this.item,'OPCBasicComInfo-OPCComRuleLi':[]}; |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 获取工位列表 |
|
|
|
getStationList(){ |
|
|
|
getStationList().then(({data=[]})=>{ |
|
|
|
this.stationList = data; |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
created(){ |
|
|
|
this.getOperationList(); |
|
|
|
this.getActionTypeList(); |
|
|
|
this.getDBlockList(); |
|
|
|
this.getStationList(); |
|
|
|
if(this.item['OPCBasicComInfo-PO'] && this.item['OPCBasicComInfo-StepNo']){ |
|
|
|
this.getDetails(); |
|
|
|
}else{ |
|
|
|