Blame view

src/components/contract/ContractChangeMainBody.vue 3.42 KB
bc37d685   wuxw   开发完成合同功能
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
  <template>
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span>{{ $t('contractChangeMainBody.title') }}</span>
      </div>
      <el-form label-width="120px">
        <el-row :gutter="20">
          <el-col :span="24">
            <el-form-item :label="$t('contractChangeMainBody.contractName')" required>
              <el-input v-model="contractChangeMainBodyInfo.contractName"
                :placeholder="$t('contractChangeMainBody.contractNamePlaceholder')"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
  
        <el-row :gutter="20">
          <el-col :span="24">
            <el-form-item :label="$t('contractChangeMainBody.partyA')" required>
              <el-input v-model="contractChangeMainBodyInfo.partyA"
                :placeholder="$t('contractChangeMainBody.partyAPlaceholder')"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
  
        <el-row :gutter="20">
          <el-col :span="24">
            <el-form-item :label="$t('contractChangeMainBody.aContacts')" required>
              <el-input v-model="contractChangeMainBodyInfo.aContacts"
                :placeholder="$t('contractChangeMainBody.aContactsPlaceholder')"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
  
        <el-row :gutter="20">
          <el-col :span="24">
            <el-form-item :label="$t('contractChangeMainBody.aLink')" required>
              <el-input v-model="contractChangeMainBodyInfo.aLink"
                :placeholder="$t('contractChangeMainBody.aLinkPlaceholder')"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
  
        <el-row :gutter="20">
          <el-col :span="24">
            <el-form-item :label="$t('contractChangeMainBody.partyB')" required>
              <el-input v-model="contractChangeMainBodyInfo.partyB"
                :placeholder="$t('contractChangeMainBody.partyBPlaceholder')"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
  
        <el-row :gutter="20">
          <el-col :span="24">
            <el-form-item :label="$t('contractChangeMainBody.bContacts')" required>
              <el-input v-model="contractChangeMainBodyInfo.bContacts"
                :placeholder="$t('contractChangeMainBody.bContactsPlaceholder')"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
  
        <el-row :gutter="20">
          <el-col :span="24">
            <el-form-item :label="$t('contractChangeMainBody.bLink')" required>
              <el-input v-model="contractChangeMainBodyInfo.bLink"
                :placeholder="$t('contractChangeMainBody.bLinkPlaceholder')"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </el-card>
  </template>
  
  <script>
  export default {
    name: 'ContractChangeMainBody',
  
    data() {
      return {
        contractChangeMainBodyInfo: {
          contractName: '',
          partyA: '',
          aContacts: '',
          aLink: '',
          partyB: '',
          bContacts: '',
          bLink: '',
          planType: '1001'
        }
      }
    },
    watch: {
      contractChangeMainBodyInfo: {
        deep: true,
        handler(newVal) {
          this.$emit('changeMainBody', newVal)
        }
      }
    },
    methods: {
      clear() {
        this.contractChangeMainBodyInfo = {
          contractName: '',
          partyA: '',
          aContacts: '',
          aLink: '',
          partyB: '',
          bContacts: '',
          bLink: '',
          planType: '1001'
        }
      }
    }
  }
  </script>
  
  <style scoped>
  .box-card {
    margin-bottom: 20px;
  }
  </style>