You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
2.3 KiB
97 lines
2.3 KiB
<template>
|
|
<div class="mod-config">
|
|
|
|
<PackageInfo :readonly="readonly" ref="PackageInfo" :default-value="true"></PackageInfo>
|
|
<div style="margin-top: 5px;text-align: center">
|
|
<img src="~@/assets/img/packageInfo.png"/>
|
|
</div>
|
|
|
|
<el-form label-position="top" style="margin-top: 10px; margin-left: 0px;text-align:center">
|
|
<!-- <div class="rq-bmPic" v-if="searchData.buNo==='Flexo'||searchData.buNo==='SS'">-->
|
|
</el-form>
|
|
|
|
<Chooselist append-to-body ref="baseList" @getBaseData="getBaseData"></Chooselist>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import {
|
|
searchBMPackageInfo,
|
|
updateBMPackageInfo,
|
|
} from "@/api/sampleManagement/technicalSpecificationList.js"
|
|
import Chooselist from '@/views/modules/common/Chooselist'
|
|
import PackageInfo from "./com_bm_demoSlot";/*组件*/
|
|
export default {
|
|
components: {
|
|
Chooselist, PackageInfo
|
|
},
|
|
props: {
|
|
readonly:{
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
pageRole: '',
|
|
searchData: {
|
|
site: '',
|
|
username: this.$store.state.user.name,
|
|
codeNo: '',
|
|
buNo: '',
|
|
type: '',
|
|
fieldId: '',
|
|
},
|
|
ifDisableFlag: false,
|
|
picUrl: this.$store.state.user.bmPicUrl + 'defaultPaperOrientation.png',
|
|
|
|
}
|
|
},
|
|
methods: {
|
|
// 获取基础数据列表S
|
|
getBaseList(val, type) {
|
|
this.tagNo = val
|
|
this.tagNo1 = type
|
|
this.$nextTick(() => {
|
|
let strVal = ''
|
|
if (val === 1013) {
|
|
if (type == 1) {
|
|
strVal = this.dataForm.partType
|
|
}
|
|
}
|
|
this.$refs.baseList.init(val, strVal)
|
|
})
|
|
},
|
|
/* 列表方法的回调 */
|
|
getBaseData(val) {
|
|
if (this.tagNo === 1013) {
|
|
if (this.tagNo1 == 1) {
|
|
this.dataForm.partType = val.Base_id
|
|
this.dataForm.partTypeDesc = val.Base_desc
|
|
}
|
|
}
|
|
},
|
|
|
|
// 初始化组件的参数
|
|
init (inData) {
|
|
//初始化参数
|
|
this.searchData = JSON.parse(JSON.stringify(inData))
|
|
if (this.searchData.ifDisableFlag) {
|
|
this.ifDisableFlag = true
|
|
}
|
|
// 刷新表格
|
|
this.searchData.type = 'PackageInfo'
|
|
this.$refs.PackageInfo.init(JSON.parse(JSON.stringify(this.searchData)))
|
|
},
|
|
|
|
saveData() {
|
|
this.$refs.PackageInfo.saveTable()
|
|
}
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|