市场认证清单详情-查看
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-drawer
|
<a-drawer
|
||||||
:title="$t('edit')"
|
:title="title"
|
||||||
:maskClosable="false"
|
:maskClosable="false"
|
||||||
:width="900"
|
:width="900"
|
||||||
placement="right"
|
placement="right"
|
||||||
@@ -20,6 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="serialNumber">
|
<a-form-model-item class="itemModel" prop="serialNumber">
|
||||||
<a-input @click.native="serialNumberClick"
|
<a-input @click.native="serialNumberClick"
|
||||||
|
:disabled="disabled"
|
||||||
class="box-input"
|
class="box-input"
|
||||||
:placeholder="$t('PleaseSelect')+$t('regulationNo')"
|
:placeholder="$t('PleaseSelect')+$t('regulationNo')"
|
||||||
v-model="formInline.serialNumber"></a-input>
|
v-model="formInline.serialNumber"></a-input>
|
||||||
@@ -99,7 +100,9 @@
|
|||||||
<a-form-model-item class="itemModel" prop="configItem">
|
<a-form-model-item class="itemModel" prop="configItem">
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
v-model="formInline.configItem"
|
v-model="formInline.configItem"
|
||||||
:placeholder="$t('PleaseEnter')+$t('configurationItem')"/>
|
:placeholder="$t('PleaseEnter')+$t('configurationItem')"
|
||||||
|
:disabled="disabled"
|
||||||
|
/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -112,7 +115,7 @@
|
|||||||
<a-form-model-item class="itemModel"
|
<a-form-model-item class="itemModel"
|
||||||
prop="deliverableType"
|
prop="deliverableType"
|
||||||
:rules="[{ required: true, message: $t('typeOfDeliverables') + $t('cannotEmpty'), trigger: 'change'},]"
|
:rules="[{ required: true, message: $t('typeOfDeliverables') + $t('cannotEmpty'), trigger: 'change'},]"
|
||||||
>
|
>
|
||||||
<a-tree-select
|
<a-tree-select
|
||||||
tree-node-filter-prop="title"
|
tree-node-filter-prop="title"
|
||||||
v-model="formInline.deliverableType"
|
v-model="formInline.deliverableType"
|
||||||
@@ -122,6 +125,7 @@
|
|||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:tree-data="DeliverableTreeList"
|
:tree-data="DeliverableTreeList"
|
||||||
:placeholder="$t('PleaseSelect')+$t('typeOfDeliverables')"
|
:placeholder="$t('PleaseSelect')+$t('typeOfDeliverables')"
|
||||||
|
:disabled="disabled"
|
||||||
/>
|
/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -136,7 +140,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="deliverableTemplate">
|
<a-form-model-item class="itemModel" prop="deliverableTemplate">
|
||||||
<a-button type="primary" class="button-text"
|
<a-button type="primary" class="button-text"
|
||||||
@click="clickButtonToUpload('deliverableTemplate')">
|
@click="clickButtonToUpload('deliverableTemplate')"
|
||||||
|
>
|
||||||
{{ (formInline.deliverableTemplate === 'null' || formInline.deliverableTemplate === ''
|
{{ (formInline.deliverableTemplate === 'null' || formInline.deliverableTemplate === ''
|
||||||
||
|
||
|
||||||
formInline.deliverableTemplate == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
formInline.deliverableTemplate == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||||
@@ -148,13 +153,13 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<div class="drawer-bootom-button">
|
<div class="drawer-bootom-button" v-if="button">
|
||||||
<a-button style="margin-right: .8rem" @click="handleCancel">{{$t('cancel')}}</a-button>
|
<a-button style="margin-right: .8rem" @click="handleCancel">{{$t('cancel')}}</a-button>
|
||||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
<codeNumber ref="codeNumber" @regulation="regulation" />
|
<codeNumber ref="codeNumber" @regulation="regulation" />
|
||||||
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
|
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess" :disabled="disabled"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -172,7 +177,9 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
title: '',
|
||||||
visible: false,
|
visible: false,
|
||||||
|
button: true,
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
formInline: {},
|
formInline: {},
|
||||||
disabled: false,
|
disabled: false,
|
||||||
@@ -245,8 +252,9 @@ export default {
|
|||||||
serialNumberClick(){
|
serialNumberClick(){
|
||||||
this.$refs.codeNumber.add()
|
this.$refs.codeNumber.add()
|
||||||
},
|
},
|
||||||
editModel(item) {
|
editModel(item,data) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
this.title = this.$t('edit')
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.formInline = item || {}
|
this.formInline = item || {}
|
||||||
if (this.formInline.deliverableType) {
|
if (this.formInline.deliverableType) {
|
||||||
@@ -254,6 +262,11 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$refs.ruleForm.clearValidate()
|
this.$refs.ruleForm.clearValidate()
|
||||||
})
|
})
|
||||||
|
if(data=1) {
|
||||||
|
this.title = this.$t('view')
|
||||||
|
this.disabled = true,
|
||||||
|
this.button = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
|
|||||||
+3
@@ -540,6 +540,9 @@
|
|||||||
edit(item) {
|
edit(item) {
|
||||||
this.$refs.editModelRef.editModel(JSON.parse(JSON.stringify(item)))
|
this.$refs.editModelRef.editModel(JSON.parse(JSON.stringify(item)))
|
||||||
},
|
},
|
||||||
|
view(item) {
|
||||||
|
this.$refs.editModelRef.editModel(JSON.parse(JSON.stringify(item)),1)
|
||||||
|
},
|
||||||
deleteLib(val) {
|
deleteLib(val) {
|
||||||
let _this = this
|
let _this = this
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
|
|||||||
Reference in New Issue
Block a user