zhangjiaqing
8 天以前 1cef3adee31c6934c0da4b4f0b8a6f5ac03b364f
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <span><vc:i18n name="编辑放行" namespace="addStaff"></vc:i18n></span>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-white " v-on:click="vc.goBack()">
                            <vc:i18n name="返回"></vc:i18n>
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right">
                            <span><vc:i18n name='放行类型' namespace='editItemReleaseView'></vc:i18n></span>
                        </label>
                        <div class="col-sm-4">
                            <select class="custom-select" v-model="editItemReleaseViewInfo.typeId" disabled>
                                <option selected disabled value="">
                                    {{vc.i18n('必填,请选择放行类型','editItemReleaseView')}}
                                </option>
                                <option :value="item.typeId"
                                        v-for="(item,index) in editItemReleaseViewInfo.itemReleaseTypes"
                                        v-if="item.state =='C'">{{item.typeName}}
                                </option>
                            </select>
                        </div>
                        <label class="col-sm-2 col-form-label text-right">
                            <span><vc:i18n name='申请单位' namespace='editItemReleaseView'></vc:i18n></span>
                        </label>
                        <div class="col-sm-4">
                            <input v-model.trim="editItemReleaseViewInfo.applyCompany" type="text"
                                   :placeholder="vc.i18n('必填,请填写申请单位','editItemReleaseView')" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right">
                            <span><vc:i18n name='申请人' namespace='editItemReleaseView'></vc:i18n></span>
                        </label>
                        <div class="col-sm-4">
                            <input v-model.trim="editItemReleaseViewInfo.applyPerson" type="text"
                                   :placeholder="vc.i18n('必填,请填写申请人','editItemReleaseView')" class="form-control">
                        </div>
                        <label class="col-sm-2 col-form-label text-right">
                            <span><vc:i18n name='身份证' namespace='editItemReleaseView'></vc:i18n></span>
                        </label>
                        <div class="col-sm-4">
                            <input v-model.trim="editItemReleaseViewInfo.idCard" type="text"
                                   :placeholder="vc.i18n('必填,请填写身份证','editItemReleaseView')" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right">
                            <span><vc:i18n name='手机号' namespace='editItemReleaseView'></vc:i18n></span>
                        </label>
                        <div class="col-sm-4">
                            <input v-model.trim="editItemReleaseViewInfo.applyTel" type="text"
                                   :placeholder="vc.i18n('必填,请填写手机号','editItemReleaseView')" class="form-control">
                        </div>
                        <label class="col-sm-2 col-form-label text-right">
                            <span><vc:i18n name='通行时间' namespace='editItemReleaseView'></vc:i18n></span>
                        </label>
                        <div class="col-sm-4">
                            <input v-model.trim="editItemReleaseViewInfo.passTime" type="text"
                                   :placeholder="vc.i18n('必填,请填写通行时间','editItemReleaseView')"
                                   class="form-control editPassTime">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right">
                            <span><vc:i18n name='车牌号' namespace='editItemReleaseView'></vc:i18n></span>
                        </label>
                        <div class="col-sm-4">
                            <input v-model.trim="editItemReleaseViewInfo.carNum" type="text"
                                   :placeholder="vc.i18n('选填,请填写车牌号','editItemReleaseView')" class="form-control">
                        </div>
                        <label class="col-sm-2 col-form-label text-right">
                            <span><vc:i18n name='备注' namespace='editItemReleaseView'></vc:i18n></span>
                        </label>
                        <div class="col-sm-4">
                            <textarea v-model.trim="editItemReleaseViewInfo.remark"
                                      :placeholder="vc.i18n('选填,请填写备注','editItemReleaseView')"
                                      class="form-control"></textarea>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <span><vc:i18n name="放行物品" namespace="editItemReleaseView"></vc:i18n></span>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" style="margin-right:10px;"
                                v-on:click="_addResName()">
                            <i class="fa fa-plus"></i>
                            <vc:i18n name="添加物品" namespace="editItemReleaseView"></vc:i18n>
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                        <tr>
                            <th class="text-center">
                                <span><vc:i18n name="物品名称" namespace="editItemReleaseView"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="物品数量" namespace="editItemReleaseView"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="操作" namespace="editItemReleaseView"></vc:i18n></span>
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="res in editItemReleaseViewInfo.resNames">
                            <td class="text-center" style="vertical-align: inherit;">
                                <input v-model.trim="res.resName"
                                       :placeholder="vc.i18n('必填,请填写物品名称','editItemReleaseView')"
                                       class="form-control" style="width: 70%;display:inline; margin: auto">
                            </td>
                            <td class="text-center" style="vertical-align: inherit;">
                                <input v-model.trim="res.amount" type="number" class="form-control"
                                       :placeholder="vc.i18n('必填,请填写数量','editItemReleaseView')">
                            </td>
                            <td class="text-center" style="vertical-align: inherit;">
                                <button type="button" class="btn btn-danger btn-sm" style="margin-right:10px;"
                                        v-on:click="_removeResName(res.resName)">
                                    <vc:i18n name="移除" namespace="editItemReleaseView"></vc:i18n>
                                </button>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="margin-top">
        <button class="btn btn-primary float-right" type="button" v-on:click="_updateItemReleaseInfo()">
            <vc:i18n name="提交"></vc:i18n>
        </button>
        <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" v-on:click="vc.goBack()">
            <vc:i18n name="取消"></vc:i18n>
        </button>
    </div>
</div>