fjF100.vue
2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!--
* @Description :附件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 13:37:37
-->
<template>
<div class="unstructuredDoc itemForm">
<el-form :model="ruleForm" :rules="rules" ref="formList" label-width="100px" :key="key">
<el-row>
<el-col :span="8">
<el-form-item prop="FJMC">
<span slot="label">
附件名称: <br />
<p class="label-detail">(FJMC)</p>
</span>
<el-input :disabled="$store.state.business.Edit" v-model="ruleForm.FJMC"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="FJLX">
<span slot="label">
附件类型: <br />
<p class="label-detail">(FJLX)</p>
</span>
<el-input :disabled="$store.state.business.Edit" v-model="ruleForm.FJLX"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="FJNR">
<span slot="label">
附件内容: <br />
<p class="label-detail">(FJNR)</p>
</span>
<el-input :disabled="$store.state.business.Edit" v-model="ruleForm.FJNR"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<message-tips ref="msg" />
</div>
</template>
<script>
// 非结构化文档
import fjF100 from '@/api/fjF100'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
props: {
bsmSjsb: {
type: String,
default: ''
},
bsmYwsjb: {
type: String,
default: ''
}
},
data () {
return {
ruleForm: {
FJMC: '',
FJLX: '',
FJNR: ''
}
}
},
methods: {
async featchData () {
try {
let { result: res } = await fjF100.getFjF100ById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
this.$refs.msg.messageShow()
}
},
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await fjF100.updateFjF100(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
this.$refs.msg.messageShow()
}
})
},
}
}
</script>
<style scoped lang="scss">
@import "./css/itemForm.scss";
</style>