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
| <template>
| <el-dialog append-to-body :visible.sync="isShow" :before-close="resetCancel">
| <el-form :model="form">
| <el-form-item label="物品名称" :label-width="formLabelWidth">
| <el-input v-model="form.name" autocomplete="off"></el-input>
| </el-form-item>
| <el-form-item label=" 数量" :label-width="formLabelWidth">
| <el-input type="text" v-model="form.exhibitNum"></el-input>
| </el-form-item>
| <el-form-item label=" 规格(型号)" :label-width="formLabelWidth">
| <el-input v-model="form.exhibitSize" autocomplete="off"></el-input>
| </el-form-item>
| <el-form-item label=" 基数" :label-width="formLabelWidth">
| <el-input v-model="form.number" autocomplete="off"></el-input>
| </el-form-item>
| <el-form-item label=" 备注" :label-width="formLabelWidth">
| <el-input v-model="form.remark" autocomplete="off"></el-input>
| </el-form-item>
| </el-form>
| <div slot="footer" class="dialog-footer">
| <el-button @click="resetCancel">取 消</el-button>
| <el-button type="primary" @click="cancell()">确 定</el-button>
| </div>
| </el-dialog>
| </template>
|
| <script>
| export default {
| name: "samplingEvidenceForm",
| props:['isShow'],
| data() {
| return {
| form: {
| exhibitName:"",
| brand:"",
| origin:"",
| exhibitSize:"",
| productionDate:"",
| exhibitNum:"",
| handlingSituation:"",
| },
| formLabelWidth: '120px'
| };
| },
| methods:{
| reset(){
| this.form = {
| exhibitName:"",
| brand:"",
| origin:"",
| exhibitSize:"",
| productionDate:"",
| exhibitNum:"",
| handlingSituation:"",
| }
| },
| resetCancel(){
| this.$emit('cancell',false);
| this.reset();
| },
| cancell(){
| this.$emit('cancell',false,this.form);
| this.reset();
| }
| },
| }
| </script>
|
| <style scoped>
|
| </style>
|
|