|
@@ -9,7 +9,7 @@
|
|
|
|
|
|
<template slot="yangpinKeyId" slot-scope="text, record,index">
|
|
<template slot="yangpinKeyId" slot-scope="text, record,index">
|
|
<a-form-model-item :prop="'list.'+index+'.yangpinKeyId'" :rules="validatorRules.yangpinKeyId">
|
|
<a-form-model-item :prop="'list.'+index+'.yangpinKeyId'" :rules="validatorRules.yangpinKeyId">
|
|
- <a-select :disabled="formDisabled" v-model="record.yangpinKeyId">
|
|
|
|
|
|
+ <a-select :disabled="formDisabled" v-model="record.yangpinKeyId" allowClear :dropdownMatchSelectWidth="false">
|
|
<a-select-option v-for="d in yangpins" :key="d.sampleName">
|
|
<a-select-option v-for="d in yangpins" :key="d.sampleName">
|
|
{{ d.sampleName }}
|
|
{{ d.sampleName }}
|
|
</a-select-option>
|
|
</a-select-option>
|
|
@@ -26,8 +26,13 @@
|
|
|
|
|
|
<template slot="standardRequirement" slot-scope="text, record,index">
|
|
<template slot="standardRequirement" slot-scope="text, record,index">
|
|
<a-form-model-item :prop="'list.'+index+'.standardRequirement'" :rules="validatorRules.standardRequirement">
|
|
<a-form-model-item :prop="'list.'+index+'.standardRequirement'" :rules="validatorRules.standardRequirement">
|
|
- <j-multi-select-tag :disabled="formDisabled" v-model="record.standardRequirement"
|
|
|
|
- dictCode="itdm_weituo_yiju,name,name" />
|
|
|
|
|
|
+ <!-- <j-multi-select-tag :disabled="formDisabled" v-model="record.standardRequirement" :dropdownMatchSelectWidth="false" dictCode="itdm_weituo_yiju,name,name" /> -->
|
|
|
|
+ <!-- 为了解决下拉框显示不全的问题,原来的没有对应参数配置 -->
|
|
|
|
+ <a-select :disabled="formDisabled" v-model="record.standardRequirement" allowClear :dropdownMatchSelectWidth="false">
|
|
|
|
+ <a-select-option v-for="(item, index) in yijuLists" :key="index">
|
|
|
|
+ {{ item.name }}
|
|
|
|
+ </a-select-option>
|
|
|
|
+ </a-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -85,7 +90,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
|
-
|
|
|
|
|
|
+import {getAction} from '@/api/manage'
|
|
export default {
|
|
export default {
|
|
name: 'step3',
|
|
name: 'step3',
|
|
|
|
|
|
@@ -115,6 +120,7 @@ export default {
|
|
]
|
|
]
|
|
|
|
|
|
},
|
|
},
|
|
|
|
+ yijuLists: [],
|
|
// table
|
|
// table
|
|
columns: [
|
|
columns: [
|
|
{
|
|
{
|
|
@@ -126,7 +132,7 @@ export default {
|
|
scopedSlots: { customRender: 'yangpinKeyId' }
|
|
scopedSlots: { customRender: 'yangpinKeyId' }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: '检测标准',
|
|
|
|
|
|
+ title: '检测项目',
|
|
dataIndex: 'testItems',
|
|
dataIndex: 'testItems',
|
|
key: 'testItems',
|
|
key: 'testItems',
|
|
align: 'center',
|
|
align: 'center',
|
|
@@ -182,6 +188,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
|
|
+ this.getYijuLists()
|
|
const data = JSON.parse(sessionStorage.getItem('yangpinkz'))
|
|
const data = JSON.parse(sessionStorage.getItem('yangpinkz'))
|
|
if (data != null) {
|
|
if (data != null) {
|
|
this.model.list=data
|
|
this.model.list=data
|
|
@@ -201,6 +208,13 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 获取所有依据列表
|
|
|
|
+ getYijuLists(){
|
|
|
|
+ getAction('/weituoyiju/itdmWeituoYiju/getAllList').then((res) => {
|
|
|
|
+ // console.log(res)
|
|
|
|
+ this.yijuLists = res.result
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
|
|
newMember() {
|
|
newMember() {
|
|
this.model.list.push({
|
|
this.model.list.push({
|