commit
This commit is contained in:
@@ -698,7 +698,6 @@
|
||||
:disabled="formdisableflag"
|
||||
></custom-textarea>
|
||||
</template>
|
||||
<!-- 起草单位-->
|
||||
<template v-else-if="field.attrType === 'SEL_OPTION'">
|
||||
<template>
|
||||
<custom-select
|
||||
@@ -717,7 +716,6 @@
|
||||
class="add-form-item"
|
||||
>
|
||||
<template slot="label">责任部门</template>
|
||||
|
||||
<el-input
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
@@ -766,6 +764,34 @@
|
||||
<!-- </el-input>-->
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'QCDW'">
|
||||
<el-form-item
|
||||
prop="QCDW"
|
||||
label-width="150px"
|
||||
class="add-form-item"
|
||||
>
|
||||
<template slot="label">起草单位</template>
|
||||
<div style="display: flex;justify-content: space-between;align-items: center;">
|
||||
<el-tooltip class="item" effect="dark" :content="sarStandardsInfoEO['QCDW']" placement="top-start">
|
||||
<el-input
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
clearable
|
||||
v-model="sarStandardsInfoEO['QCDW']"
|
||||
:disabled="formdisableflag" placeholder="选择或输入起草单位">
|
||||
</el-input>
|
||||
</el-tooltip>
|
||||
<div>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
@click="QCDWClick(field.options)"
|
||||
class="common-button-primary">手动查找</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- @click.native="choiceZRBM('QCDWId', '起草单位', sarStandardsInfoEO.QCDWId)">-->
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else>
|
||||
<custom-select-array
|
||||
:key="field.attrField"
|
||||
@@ -1891,6 +1917,27 @@
|
||||
</div>
|
||||
</div>
|
||||
</el-drawer>
|
||||
<el-dialog
|
||||
:visible.sync="QCDWmodal"
|
||||
width="500px"
|
||||
title="选择起草部门"
|
||||
destroy-on-close
|
||||
:close-on-click-modal="false"
|
||||
@closed="QCDWmodal = false">
|
||||
<el-select v-model="QCDWValue" multiple filterable placeholder="请选择" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in QCDWList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.label">
|
||||
</el-option>
|
||||
</el-select>
|
||||
<div slot="footer" class="demo-drawer-footer">
|
||||
<el-button size="mini" type="primary" class="common-button-default" icon="el-icon-check"
|
||||
@click="QCDWOK">确认
|
||||
</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1947,6 +1994,9 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
QCDWValue: [],
|
||||
QCDWmodal: false,
|
||||
QCDWList: [],
|
||||
OCRSubmitLoading: false,
|
||||
OCRSubmitButton: '',
|
||||
OCRType: '',
|
||||
@@ -2651,6 +2701,21 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
QCDWOK() {
|
||||
let arr1 = []
|
||||
if (this.sarStandardsInfoEO['QCDW']) {
|
||||
let str = this.sarStandardsInfoEO['QCDW'].replace(/,/g, ',')
|
||||
arr1 = str.split(',')
|
||||
}
|
||||
let arr2 = arr1.concat(this.QCDWValue)
|
||||
this.sarStandardsInfoEO['QCDW'] = Array.from(new Set(arr2)).join(',')
|
||||
this.QCDWmodal = false
|
||||
},
|
||||
QCDWClick(row) {
|
||||
this.QCDWValue = []
|
||||
this.QCDWmodal = true
|
||||
this.QCDWList = row
|
||||
},
|
||||
setWBType(type) {
|
||||
let text = ''
|
||||
for (let a = 0; a < this.OCRoptions.length; a++) {
|
||||
@@ -3248,6 +3313,7 @@ export default {
|
||||
})
|
||||
})
|
||||
this.dynamicFormField = displayLocation
|
||||
console.log(this.dynamicFormField);
|
||||
this.loading = false
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user