3 changed files with 159 additions and 3 deletions
-
4src/views/modules/demoComponents/orderProperties.vue
-
129src/views/modules/tooling/components/com_tool_property_show.vue
-
29src/views/modules/tooling/manuf_tool.vue
@ -0,0 +1,129 @@ |
|||
<template> |
|||
<div class="customer-css"> |
|||
<el-dialog :title="titleCon" v-drag :visible.sync="visible" :close-on-click-modal="false" |
|||
width="690px" style="height: 650px;" class="customer-dialog"> |
|||
<el-container style="height: 465px;"> |
|||
<el-form :inline="true" label-position="top" label-width="80px"> |
|||
<!-- 第一行 --> |
|||
<el-row class="customer-row"> |
|||
<el-col :span="8"> |
|||
<el-form-item label="域"> |
|||
<el-input v-model="pageData.site" disabled></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item label="工具标识号"> |
|||
<el-input v-model="pageData.toolId" disabled></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8" > |
|||
<el-form-item label="工具实例"> |
|||
<el-input v-model="pageData.toolInstance" disabled></el-input> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<!--工具属性的使用记录--> |
|||
<fieldset class="customer-fieldset" style="width: 650px;"> |
|||
<legend>生命周期维护</legend> |
|||
<propertyTable ref="propertyTable" v-if="visible" :order-no="dataNo" :code-no="propertyNo" :function-type="propertyType"></propertyTable> |
|||
</fieldset> |
|||
</el-form> |
|||
</el-container> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
|
|||
import propertyTable from "@/views/modules/demoComponents/orderProperties" |
|||
|
|||
var functionId = 'C106003005'; |
|||
export default { |
|||
components: { |
|||
propertyTable,/*属性的修改和修改组件*/ |
|||
}, |
|||
data() { |
|||
return { |
|||
titleCon: '工具新增', |
|||
propertyType: 'TL', |
|||
propertyNo: 'TL01', |
|||
dataNo: '1001',//数据编码 |
|||
visible: false, |
|||
showFlag: false, |
|||
pageData: { |
|||
site: this.$store.state.user.site, |
|||
username: this.$store.state.user.name, |
|||
toolId: '', |
|||
toolInstance: '', |
|||
}, |
|||
dataListLoading: false, |
|||
} |
|||
}, |
|||
methods: { |
|||
|
|||
//初始化组件的参数 |
|||
init(toolInfo, dataType) { |
|||
//区分工具和工具实例 |
|||
if(dataType === 'TL'){ |
|||
this.showFlag = false; |
|||
this.dataNo = toolInfo.toolId; |
|||
this.propertyNo = toolInfo.propertyNo; |
|||
this.propertyType = 'TL'; |
|||
this.titleCon = '工具属性维护'; |
|||
this.pageData.site = toolInfo.site; |
|||
this.pageData.toolId = toolInfo.toolId; |
|||
this.pageData.toolInstance = ''; |
|||
}else if(dataType === 'TLI'){ |
|||
this.showFlag = false; |
|||
this.dataNo = toolInfo.toolId+"#"+toolInfo.toolInstance; |
|||
this.propertyNo = toolInfo.propertyNo; |
|||
this.propertyType = 'TLI'; |
|||
this.titleCon = '工具实例属性维护'; |
|||
this.pageData.site = toolInfo.site; |
|||
this.pageData.toolId = toolInfo.toolId; |
|||
this.pageData.toolInstance = toolInfo.toolInstance; |
|||
} |
|||
this.visible = true; |
|||
}, |
|||
|
|||
/*关闭modal*/ |
|||
closeDialog(){ |
|||
//关闭当前的页面 |
|||
this.visible = false; |
|||
//this.$emit('update:visible', false); |
|||
}, |
|||
|
|||
}, |
|||
created() { |
|||
// this.factoryList() |
|||
// this.getLanguageList() |
|||
} |
|||
} |
|||
|
|||
</script> |
|||
|
|||
<style scoped lang="scss"> |
|||
|
|||
/*table中input 修改样式*/ |
|||
/deep/ div.table-el-date { |
|||
padding: 0px 0px; |
|||
height: 25px !important; |
|||
} |
|||
|
|||
/*table中input*/ |
|||
div.table-el-date /deep/ input.el-input__inner{ |
|||
padding: 0px 0px; |
|||
height: 23px !important; |
|||
text-align: right; |
|||
} |
|||
|
|||
/* 特殊的样式*/ |
|||
/deep/ .el-table div.cell:has(.table-el-date) { |
|||
/* 直接作用于 <td> 元素 */ |
|||
padding: 0px; |
|||
height: 25px; |
|||
} |
|||
|
|||
|
|||
|
|||
</style> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue