Browse Source

修改成多选框

master
赵宏斌 4 days ago
parent
commit
3e1c6e5435
  1. 20
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue

20
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue

@ -117,12 +117,12 @@
<div class="grid-content bg-purple">
<el-form-item label="认证类型/Certificates Type">
<!-- <el-input :readonly="readonly" v-model="dataForm.certification" :disabled="plmTechnicalSpecificationSheetFlag('certification') === 'N'"></el-input>-->
<el-radio-group :readonly="readonly" v-model="dataForm.certification" :disabled="plmTechnicalSpecificationSheetFlag('certification') === 'N'">
<el-radio label="RoHs" value="RoHs">RoHs</el-radio>
<el-radio label="HF" value="HF">HF</el-radio>
<el-radio label="UL" value="UL">UL</el-radio>
<el-radio label="GP" value="GP">GP</el-radio>
</el-radio-group>
<el-checkbox-group v-model="selectedOptions" :disabled="plmTechnicalSpecificationSheetFlag('certification') === 'N'" @change="handleSelectionChange">
<el-checkbox label="RoHs">RoHs</el-checkbox>
<el-checkbox label="HF">HF</el-checkbox>
<el-checkbox label="UL">UL</el-checkbox>
<el-checkbox label="GP">GP</el-checkbox>
</el-checkbox-group>
</el-form-item>
</div>
</el-col>
@ -1137,6 +1137,7 @@
sp: '',
nodeName: '',
},
selectedOptions: [],
dataForm: {
materialType: '',
site: '',
@ -1308,6 +1309,9 @@
//
this.searchTable()
},
handleSelectionChange(){
this.dataForm.certification = this.selectedOptions.join(',')
},
refresh () {
if (this.searchData.codeNo === '' || this.searchData.codeNo === null) {
@ -1328,6 +1332,8 @@
searchBMcustomerInfo(this.searchData).then(({data}) => {
if (data.rows.length > 0) {
this.dataForm = data.rows[0]
//
this.selectedOptions = this.dataForm.certification ? this.dataForm.certification.split(',') : []
this.$message.success( '操作成功')
} else {
this.dataForm.site = this.searchData.site
@ -1348,6 +1354,8 @@
searchBMcustomerInfo(this.searchData).then(({data}) => {
if (data.rows.length > 0) {
this.dataForm = data.rows[0]
//
this.selectedOptions = this.dataForm.certification ? this.dataForm.certification.split(',') : []
} else {
this.dataForm.site = this.searchData.site
this.dataForm.codeNo = this.searchData.codeNo

Loading…
Cancel
Save