|
|
|
@ -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> |
|
|
|
|