对接标准/译文获取申请
This commit is contained in:
+88
-13
@@ -12,28 +12,68 @@
|
||||
<el-form ref="addFormRef" :model="StandardApplyForEO" :rules="addFormRules" class="label-input-form">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="申请单位" prop="applyForUnitId" label-width="100px" class="add-form-item">
|
||||
<el-input v-model="StandardApplyForEO.applyForUnitId" readonly clearable />
|
||||
<el-form-item label="申请单位" prop="applyForUnitName" label-width="100px" class="add-form-item">
|
||||
<el-input disabled v-model="StandardApplyForEO.applyForUnitName" readonly clearable />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="申请人" prop="applyForUserId" label-width="100px" class="add-form-item">
|
||||
<el-input v-model="StandardApplyForEO.applyForUserId" readonly clearable />
|
||||
<el-form-item label="申请人" prop="applyForUserName" label-width="100px" class="add-form-item">
|
||||
<el-input disabled v-model="StandardApplyForEO.applyForUserName" readonly clearable />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="类型" prop="type" label-width="100px" class="add-form-item">
|
||||
<el-select v-model="StandardApplyForEO.type" placeholder="请选择类型" />
|
||||
<el-select
|
||||
v-model="StandardApplyForEO.type"
|
||||
:placeholder="'请选择类型'"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="opt in typeList"
|
||||
:key="opt.value"
|
||||
:value="opt.value === undefined ? '' :opt.value"
|
||||
:label="opt.label"
|
||||
>
|
||||
{{ opt.label }}
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="标准类型" prop="standType" label-width="100px" class="add-form-item">
|
||||
<el-select v-model="StandardApplyForEO.standType" placeholder="请选择标准类型" @change="selectStandType" />
|
||||
<el-select
|
||||
v-model="StandardApplyForEO.standType"
|
||||
:placeholder="'请选择标准类型'"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="opt in standTypeList"
|
||||
:key="opt.value"
|
||||
:value="opt.value === undefined ? '' :opt.value"
|
||||
:label="opt.label"
|
||||
>
|
||||
{{ opt.label }}
|
||||
</el-option>
|
||||
</el-select>
|
||||
<!-- <el-select v-model="StandardApplyForEO.standType" placeholder="请选择标准类型" @change="selectStandType" />-->
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="标准类别" prop="standLb" label-width="100px" class="add-form-item">
|
||||
<el-select v-model="StandardApplyForEO.standLb" placeholder="请选择标准类别" />
|
||||
<el-select
|
||||
v-model="StandardApplyForEO.standLb"
|
||||
:placeholder="'请选择标准类别'"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="opt in standLbList"
|
||||
:key="opt.value"
|
||||
:value="opt.value === undefined ? '' :opt.value"
|
||||
:label="opt.label"
|
||||
>
|
||||
{{ opt.label }}
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
@@ -91,11 +131,21 @@ export default {
|
||||
showLoading: false,
|
||||
id: '',
|
||||
StandardApplyForEO: {},
|
||||
typeList: [],
|
||||
standTypeList: [],
|
||||
standLb: [],
|
||||
standLbList: [
|
||||
{
|
||||
label: 'GB',
|
||||
value: 'GB',
|
||||
},
|
||||
{
|
||||
label: 'GB/T',
|
||||
value: 'GB/T',
|
||||
}
|
||||
],
|
||||
addFormRules: {
|
||||
applyForUnitId: [ { required: true, message: '申请单位不能为空', trigger: 'blur' } ],
|
||||
applyForUserId: [ { required: true, message: '申请人不能为空', trigger: 'blur' } ],
|
||||
applyForUnitName: [ { required: true, message: '申请单位不能为空', trigger: 'blur' } ],
|
||||
applyForUserName: [ { required: true, message: '申请人不能为空', trigger: 'blur' } ],
|
||||
type: [ { required: true, message: '类型不能为空', trigger: 'blur' } ],
|
||||
standType: [ { required: true, message: '标准类型类型不能为空', trigger: 'blur' } ],
|
||||
standLb: [ { required: true, message: '标准类型类别不能为空', trigger: 'blur' } ],
|
||||
@@ -113,16 +163,39 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.getDicTypeListCode()
|
||||
},
|
||||
methods: {
|
||||
getDicTypeListCode () {
|
||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.typeList = res.data.BZJYWTYPE // 标准类别
|
||||
this.standTypeList = res.data.BZJYWSTADNTYPE
|
||||
}, e => {
|
||||
})
|
||||
},
|
||||
handleClose () {
|
||||
this.visible = false
|
||||
},
|
||||
showModal (id) {
|
||||
addModel () {
|
||||
this.visible = true
|
||||
this.id = id
|
||||
this.StandardApplyForEO = {}
|
||||
this.StandardApplyForEO.applyForUserId = this.$store.getters.userInfo.userId
|
||||
this.StandardApplyForEO.applyForUserName = this.$store.getters.userInfo.userName
|
||||
this.StandardApplyForEO.applyForUnitId = this.$store.getters.userInfo.upDeptId
|
||||
this.StandardApplyForEO.applyForUnitName = this.$store.getters.userInfo.upDeptName
|
||||
this.StandardApplyForEO = { ...this.StandardApplyForEO }
|
||||
this.$nextTick(() => {
|
||||
this.$refs.addFormRef.clearValidate()
|
||||
})
|
||||
},
|
||||
showModal (item) {
|
||||
this.visible = true
|
||||
this.StandardApplyForEO = JSON.parse(JSON.stringify(item))
|
||||
this.$nextTick(() => {
|
||||
this.$refs.addFormRef.clearValidate()
|
||||
this.StandardApplyForEO = {}
|
||||
})
|
||||
},
|
||||
selectStandType () {
|
||||
@@ -136,6 +209,8 @@ export default {
|
||||
if (res.ok) {
|
||||
this.$emit('updateList')
|
||||
this.visible = false
|
||||
}else{
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user