Browse Source

2025-05-08

master
qiezi 8 months ago
parent
commit
3706ff377c
  1. 129
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_packageInfo.vue
  2. BIN
      static/img/packageInfo.png

129
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_packageInfo.vue

@ -2,84 +2,85 @@
<div class="mod-config">
<PackageInfo ref="PackageInfo"></PackageInfo>
<PackageInfo ref="PackageInfo"></PackageInfo>
<div style="margin-top: 5px;text-align: center">
<el-image src="../../../../../static/img/packageInfo.png"></el-image>
</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'">-->
<!-- <div class="rq-bmPic" v-if="searchData.buNo==='Flexo'||searchData.buNo==='SS'">-->
</el-form>
<Chooselist append-to-body ref="baseList" @getBaseData="getBaseData"></Chooselist>
<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
},
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)
})
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
},
data() {
return {
pageRole: '',
searchData: {
site: '',
username: this.$store.state.user.name,
codeNo: '',
buNo: '',
type: '',
fieldId: '',
},
/* 列表方法的回调 */
getBaseData (val) {
if (this.tagNo === 1013) {
if(this.tagNo1==1) {
this.dataForm.partType = val.Base_id
this.dataForm.partTypeDesc = val.Base_desc
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
}
}
},
//
init(inData) {
//
this.searchData = JSON.parse(JSON.stringify(inData));
if(this.searchData.ifDisableFlag){
this.ifDisableFlag=true
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
}
//
this.searchData.type='PackageInfo'
this.$refs.PackageInfo.init(JSON.parse(JSON.stringify(this.searchData)))
},
}
},
//
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)))
},
}
},
}
</script>
<style scoped>

BIN
static/img/packageInfo.png

After

Width: 712  |  Height: 117  |  Size: 85 KiB

Loading…
Cancel
Save