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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>资产订单</h5>
                    <div class="ibox-tools" style="top:10px;"></div>
                </div>
                <div class="ibox-content">
                    <div class="form-group row">
                        <label class="col-sm-1 col-form-label text-right">盘点名称</label>
                        <div class="col-sm-5 ">
                            <input v-model="assetInventoryInInfo.name" type="text" placeholder="必填,请填写盘点名称"
                                   class="form-control">
                        </div>
                        <label class="col-sm-1 col-form-label text-right">盘点人</label>
                        <div class="col-sm-5 ">
                            <input v-model="assetInventoryInInfo.staffName" type="text" placeholder="必填,请填写盘点人"
                                   class="form-control">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-1 col-form-label text-right">选择仓库</label>
                        <div class="col-sm-5 ">
                            <select class="custom-select" v-model="assetInventoryInInfo.shId"
                                    @change="selectResourceStores">
                                <option selected disabled value="">请选择仓库</option>
                                <option v-for="(item,index) in assetInventoryInInfo.storehouses" :value="item.shId">
                                    {{item.shName}}
                                </option>
                            </select>
                        </div>
                        <label class="col-sm-1 col-form-label text-right">盘点日期</label>
                        <div class="col-sm-5 ">
                            <input v-model="assetInventoryInInfo.invTime" type="text" placeholder="必填,请填写盘点日期"
                                   class="form-control invTime">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-1 col-form-label text-right">盘点说明</label>
                        <div class="col-sm-11 ">
                            <textarea v-model="assetInventoryInInfo.remark" placeholder="必填,请填写盘点说明" maxlength="250"
                                      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="assetInventoryInInfo"></vc:i18n></span>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" v-if="assetInventoryInInfo.index != 2" class="btn btn-primary btn-sm"
                                style="margin-right:10px;" v-on:click="_openSelectResourceStoreInfoModel()">
                            <i class="fa fa-search"></i>
                            <span><vc:i18n name="选择物品" namespace="assetInventoryInInfo"></vc:i18n></span>
                        </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="assetInventoryInInfo"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="物品名称" namespace="assetInventoryInInfo"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="物品规格" namespace="assetInventoryInInfo"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="物品编码" namespace="assetInventoryInInfo"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="是否是固定物品" namespace="assetInventoryInInfo"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="参考价格" namespace="assetInventoryInInfo"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="物品库存" namespace="assetInventoryInInfo"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="盘点后数量" namespace="assetInventoryInInfo"></vc:i18n></span>
                            </th>
                            <!--<th class="text-center" v-if="assetInventoryInInfo.resOrderType == '10000'">
                                <span><vc:i18n name="供应商" namespace="assetInventoryInInfo"></vc:i18n></span>
                            </th>-->
                            <th class="text-center">
                                <span><vc:i18n name="备注" namespace="assetInventoryInInfo"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="操作" namespace="assetInventoryInInfo"></vc:i18n></span>
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="resourceStore in assetInventoryInInfo.resourceStores">
                            <td class="text-center" style="vertical-align: inherit;">
                                {{resourceStore.parentRstName ? resourceStore.parentRstName : '-'}} >
                                {{resourceStore.rstName ? resourceStore.rstName : '-'}}
                            </td>
                            <td class="text-center" style="vertical-align: inherit;">{{resourceStore.resName}}</td>
                            <td class="text-center" style="vertical-align: inherit;">
                                {{resourceStore.rssName ? resourceStore.rssName : '-'}}
                            </td>
                            <td class="text-center" style="vertical-align: inherit;">{{resourceStore.resCode}}</td>
                            <td class="text-center" style="vertical-align: inherit;">{{resourceStore.isFixedName}}</td>
                            <!--<td class="text-center" style="vertical-align: inherit;">
                                {{resourceStore.price}}
                            </td>-->
                            <td class="text-center" style="vertical-align: inherit;">
                                <select class="form-control" v-model="resourceStore.timesId"
                                        @change="_changeTimesId($event, index)">
                                    <option value="" selected>{{vc.i18n('请选择价格','assetInventoryInInfo')}}</option>
                                    <option v-for="time in resourceStore.times" :value="time.timesId">
                                        {{time.price}}
                                    </option>
                                </select>
                            </td>
                            <td class="text-center" style="vertical-align: inherit;">
                                {{_getTimesStock(resourceStore)}}{{resourceStore.unitCodeName}}
                            </td>
                            <td class="text-center" style="vertical-align: inherit;">
                                <input v-model="resourceStore.quantity" type="number"
                                       :placeholder="vc.i18n('必填,请填盘点后数量','assetInventoryInInfo')"
                                       class="form-control" style="width: 70%;display:inline; margin: auto">&nbsp;&nbsp;{{resourceStore.unitCodeName}}
                            </td>
                            <!--<td class="text-center" v-if="assetInventoryInInfo.resOrderType == '10000'">
                                <select class="form-control" name="" id="" v-model="resourceStore.rsId">
                                    <option value="" selected>{{vc.i18n('请选择','assetInventoryInInfo')}}</option>
                                    <option v-for="supplier in assetInventoryInInfo.resourceSuppliers"
                                            :value="supplier.rsId">
                                        {{supplier.supplierName}}
                                    </option>
                                </select>
                            </td>-->
                            <td class="text-center" style="vertical-align: inherit;">
                                <input v-model="resourceStore.remark" type="text" class="form-control"
                                       :placeholder="vc.i18n('选填,请填写备注','assetInventoryInInfo')">
                            </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="_removeSelectResourceStoreItem(resourceStore.resId)">
                                    <i class="fa fa-times"></i>
                                    <span><vc:i18n name="移除" namespace="assetInventoryInInfo"></vc:i18n></span>
                                </button>
                            </td>
                        </tr>
                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="10">
                                <ul class="pagination float-right"></ul>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-10"></div>
        <div class="col-md-2">
            <button class="btn btn-primary float-right" type="button" v-on:click="_doAssetInventory()">
                <i class="fa fa-check"></i>&nbsp;提交
            </button>
            <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                    v-on:click="_goBack()">
                <i class="fa fa-close"></i>&nbsp;取消
            </button>
        </div>
    </div>
    <vc:create path="common/chooseResourceStore2" emitChooseResourceStore="viewResourceStoreInfo"
               emitLoadData="viewResourceStoreInfo">
    </vc:create>
    <!--<vc:create path="goods/chooseProductAndSpec" emitChooseProduct='assetInventoryIn' emitLoadData='assetInventoryIn'/>-->
</div>