receipt-storage3.vue
14.4 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
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<template>
<div class="container resource" style="min-height: 746px;">
<div class="pop-banner clearfix">{{dual}}
<div class="operate-btns">
<a href="javascript:void(0)" class="fbtn fb-add" @click="save" v-if="authoritySetting.threeSaveFlag">保存</a>
<a href="javascript:void(0)" class="fbtn fb-add" @click="save" v-if="authoritySetting.threeReviewedFlag">评价完成</a>
</div>
<h3 class="current-module">供应商评价</h3>
</div>
<!--start-->
<div class="purchase-storage clearfix">
<div class="evaluation-box">
<div class="evaluation-item">
<div class="evaluation-tit">供货质量评价:
<em>{{distributorReceptEvaluate.supplyQqualityEvaluation}}</em>
</div>
<div class="checkbox-control checkbox-block" >
<input type="checkbox" name="cb" id="cball" v-model="distributorReceptEvaluate.qualified" checked="checked1">
<label class="checkbox" for="cball">合格</label>
<input type="checkbox" name="cb" id="cbal2" v-model="distributorReceptEvaluate.appearanceDamage" checked="checked2">
<label class="checkbox" for="cbal2">外观破损</label>
<input type="checkbox" name="cb" id="cbal3" v-model="distributorReceptEvaluate.barCodeInforIsIncorrect" checked="checked3">
<label class="checkbox" for="cbal3">条形码信息有误</label>
<input type="checkbox" name="cb" id="cbal4" v-model="distributorReceptEvaluate.productionLotBatchNumberExpirationDateError" checked="checked4">
<label class="checkbox" for="cbal4">生产批号/灭菌批号/失效日期信息错误</label>
<input type="checkbox" name="cb" id="cbal5" v-model="distributorReceptEvaluate.productDamage" checked="checked5">
<label class="checkbox" for="cbal5">产品损毁</label>
<input type="checkbox" name="cb" id="cbal6" v-model="distributorReceptEvaluate.distributionNotInConformityWithTheGoods" checked="checked6">
<label class="checkbox" for="cbal6">配送单与货物不符</label>
</div>
</div>
<div class="evaluation-item">
<div class="evaluation-tit" >证照完整率:
<em>{{distributorReceptEvaluate.rateOfCompleteLicense}}%</em>
</div>
<div class="checkbox-control checkbox-block">
<label>企业资料完整率{{distributorReceptEvaluate.enterpriseDataIntegrityOnehandround}}%</label>
<label>商品资料完整率{{distributorReceptEvaluate.commodityDataIntegrityNinety}}%</label>
<label class="text-color-red">产品注册证资料完整率{{distributorReceptEvaluate.productRegistrationcard}}%</label>
<label class="text-color-red">生产厂商资料完整率{{distributorReceptEvaluate.manufacturerDataIntegrityThirty}}%</label>
<label>代理商资料完整率{{distributorReceptEvaluate.agentDataIntegrityNinety}}%</label>
<label>售后服务机构资料完整率{{distributorReceptEvaluate.serviceOrganizationDataIntegrityFifty}}%</label>
<label>经销授权书资料完整率{{distributorReceptEvaluate.distributionAuthorityDataIntegrityTwenty}}%</label>
<label>物价资料完整率{{distributorReceptEvaluate.priceDataIntegrityEighty}}%</label>
<label>产品说明书完整率{{distributorReceptEvaluate.productSpecificationCompleteRateOnehandround}}%</label>
<label>合规文件完整率{{distributorReceptEvaluate.complianceFileIntegrityOnehandround}}%</label>
</div>
</div>
<div class="evaluation-item">
<div class="evaluation-tit">供应及时率评价:
<em>{{distributorReceptEvaluate.supplyIimelyRateEvaluation}}</em>
</div>
<div class="checkbox-control checkbox-block">
<input type="checkbox" name="cb" id="cbal" v-model="distributorReceptEvaluate.withinTwentyfourHours" >
<label class="checkbox" for="cbal">24小时以内</label>
<input type="checkbox" name="cb" id="cba2" v-model="distributorReceptEvaluate.betweenTwentyfourToSeventytwoHours">
<label class="checkbox" for="cba2">24~72小时</label>
<input type="checkbox" name="cb" id="cba3" v-model="distributorReceptEvaluate.betweenSeventytwoToOnehandroundtwentyHours">
<label class="checkbox" for="cba3">72~120小时</label>
<input type="checkbox" name="cb" id="cba4" v-model="distributorReceptEvaluate.morethanOnehandroundtwentyHours">
<label class="checkbox" for="cba4">120小时以上</label>
</div>
</div>
<div class="evaluation-score clearfix">
<span>当前评价得分:
<em>{{distributorReceptEvaluate.comprehensiveEvaluationScore }}</em>
</span>
</div>
</div>
</div>
</div>
</template>
<script>
module.exports={
data: function(){
return {
billCategory:{},
distributorReceptEvaluate:{},
checked1:'',
checked2:'',
checked3:'',
checked4:'',
checked5:'',
checked6:'',
checked: [{
value: "1",
label: "合格"
}, {
value: "0",
label: "不合格"
}],
// distrbutorwarehouseGoodsList :[],
/*searchList: [],*/
search: {
pageSize: 5,
page: 1,
totalPages: 0,
search_EQ_distrbguid:'',
},
authoritySetting: {
threeSaveFlag:false,
threeReviewedFlag:false,
},
};
},
computed: {
dual: function () {
var self = this;
var curMenuRole = this.$store.state.user.curMenuRole;
self.search.search_EQ_distrbguid = this.$store.state.user.curUser.distrbguid;
if (self.search.search_EQ_distrbguid!=undefined && self.search.search_EQ_distrbguid!=null) {
self.getData();
if (curMenuRole!=undefined && curMenuRole!=null) {
for (var i=0;i<curMenuRole.length;i++) {
if(curMenuRole[i].menu != null) {
if (curMenuRole[i].menu.name.trim() == '入库收货') {
for (var j=0;j<curMenuRole[i].buttonList.length;j++) {
var name = curMenuRole[i].buttonList[j].name.trim();
var isValid = curMenuRole[i].buttonList[j].isvalid;
var level = curMenuRole[i].buttonList[j].level;
if (!self.authoritySetting.threeSaveFlag && level=='3' && name =='保存' && isValid=='y') {
self.authoritySetting.threeSaveFlag = true;
}
if (!self.authoritySetting.threeReviewedFlag && level=='3' && name =='评价完成' && isValid=='y') {
self.authoritySetting.threeReviewedFlag = true;
}
}
break;
}
}
}
}
}
return '';
}
},
methods: {
getData: function(){
var self = this;
if(this.$route.params.id != 0 ){
Ajax.get('/distrbutorwarehouse/evaluationList/'+this.$route.params.id)
.then(function (response){
var data = response.data.data;
self.$set('distributorReceptEvaluate',data);
})
}
},
save:function() {
var self = this;
Ajax.post('/distrbutorwarehouse/saveEvaluationList',this.distributorReceptEvaluate)
.then(function (response){
if(confirm("评价成功")){
}else{
self.$route.router.go('/receiptstorage3');
}
});
},
},
route:{
activate : function(){
//this.getData();
}
}
};
// // 合格
// if(self.distributorReceptEvaluate.qualified === false && self.distributorReceptEvaluate.qualified=='0'){
// self.distributorReceptEvaluate.qualified= '0';
// }else{
// self.distributorReceptEvaluate.qualified = '1';
// }
// // 外观破损
// if(self.distributorReceptEvaluate.appearanceDamage === false && self.distributorReceptEvaluate.appearanceDamage=='0'){
// self.distributorReceptEvaluate.appearanceDamage= '0';
// }else{
// self.distributorReceptEvaluate.appearanceDamage = '1';
// }
// // 条形码信息有误
// if(self.distributorReceptEvaluate.barCodeInforIsIncorrect === false && self.distributorReceptEvaluate.barCodeInforIsIncorrect=='0'){
// self.distributorReceptEvaluate.barCodeInforIsIncorrect= '0';
// }else{
// self.distributorReceptEvaluate.barCodeInforIsIncorrect = '1';
// }
// // 配送单与货物不符
// if(self.distributorReceptEvaluate.distributionNotInConformityWithTheGoods === false && self.distributorReceptEvaluate.distributionNotInConformityWithTheGoods=='0'){
// self.distributorReceptEvaluate.distributionNotInConformityWithTheGoods= '0';
// }else{
// self.distributorReceptEvaluate.distributionNotInConformityWithTheGoods = '1';
// }
// // 生产批号/灭菌批号/失效日期信息错误
// if(self.distributorReceptEvaluate.productionLotBatchNumberExpirationDateError === false && self.distributorReceptEvaluate.productionLotBatchNumberExpirationDateError=='0'){
// self.distributorReceptEvaluate.productionLotBatchNumberExpirationDateError= '0';
// }else{
// self.distributorReceptEvaluate.productionLotBatchNumberExpirationDateError = '1';
// }
// // 产品损毁
// if(self.distributorReceptEvaluate.productDamage === false && self.distributorReceptEvaluate.productDamage=='0'){
// self.distributorReceptEvaluate.productDamage= '0';
// }else{
// self.distributorReceptEvaluate.productDamage = '1';
// }
// // 未验货
// if(self.distributorReceptEvaluate.noInspection === false && self.distributorReceptEvaluate.noInspection=='0') {
// self.distributorReceptEvaluate.noInspection= '0';
// }else{
// self.distributorReceptEvaluate.noInspection = '1';
// }
// // 24小时以内
// if(self.distributorReceptEvaluate.withinTwentyfourHours === false && self.distributorReceptEvaluate.withinTwentyfourHours=='0'){
// self.distributorReceptEvaluate.withinTwentyfourHours= '0';
// }else{
// self.distributorReceptEvaluate.withinTwentyfourHours = '1';
// }
// // 24~72小时
// if(self.distributorReceptEvaluate.betweenTwentyfourToSeventytwoHours === false && self.distributorReceptEvaluate.betweenTwentyfourToSeventytwoHours=='0'){
// self.distributorReceptEvaluate.betweenTwentyfourToSeventytwoHours= '0';
// }else{
// self.distributorReceptEvaluate.betweenTwentyfourToSeventytwoHours = '1';
// }
// // 72~120小时
// if(self.distributorReceptEvaluate.betweenSeventytwoToOnehandroundtwentyHours === false && self.distributorReceptEvaluate.betweenSeventytwoToOnehandroundtwentyHours=='0'){
// self.distributorReceptEvaluate.betweenSeventytwoToOnehandroundtwentyHours= '0';
// }else{
// self.distributorReceptEvaluate.betweenSeventytwoToOnehandroundtwentyHours = '1';
// }
// // 120小时以上
// if(self.distributorReceptEvaluate.morethanOnehandroundtwentyHours === false && self.distributorReceptEvaluate.morethanOnehandroundtwentyHours=='0'){
// self.distributorReceptEvaluate.morethanOnehandroundtwentyHours= '0';
// }else{
// self.distributorReceptEvaluate.morethanOnehandroundtwentyHours = '1';
// }
// // 企业资料完整率
// if(self.distributorReceptEvaluate.enterpriseDataIntegrityOnehandround === false){
// self.distributorReceptEvaluate.enterpriseDataIntegrityOnehandround= '0';
// }else{
// self.distributorReceptEvaluate.enterpriseDataIntegrityOnehandround = '1';
// }
// // 商品资料完整率
// if(self.distributorReceptEvaluate.commodityDataIntegrityNinety === false){
// self.distributorReceptEvaluate.commodityDataIntegrityNinety= '0';
// }else{
// self.distributorReceptEvaluate.commodityDataIntegrityNinety = '1';
// }
// // 合格
// if(self.distributorReceptEvaluate.qualified === false){
// self.distributorReceptEvaluate.qualified= '0';
// }else{
// self.distributorReceptEvaluate.qualified = '1';
// }
// // 代理商资料完整率
// if(self.distributorReceptEvaluate.agentDataIntegrityNinety === false){
// self.distributorReceptEvaluate.agentDataIntegrityNinety= '0';
// }else{
// self.distributorReceptEvaluate.agentDataIntegrityNinety = '1';
// }
// // 生产厂商资料完整率
// if(self.distributorReceptEvaluate.manufacturerDataIntegrityThirty === false){
// self.distributorReceptEvaluate.manufacturerDataIntegrityThirty= '0';
// }else{
// self.distributorReceptEvaluate.manufacturerDataIntegrityThirty = '1';
// }
// // 售后服务机构资料完整率
// if(self.distributorReceptEvaluate.serviceOrganizationDataIntegrityFifty === false){
// self.distributorReceptEvaluate.serviceOrganizationDataIntegrityFifty= '0';
// }else{
// self.distributorReceptEvaluate.serviceOrganizationDataIntegrityFifty = '1';
// }
// // 物价资料完整率
// if(self.distributorReceptEvaluate.barCodeInforIsIncorrect === false){
// self.distributorReceptEvaluate.barCodeInforIsIncorrect= '0';
// }else{
// self.distributorReceptEvaluate.barCodeInforIsIncorrect = '1';
// }
// // 产品说明书完整率
// if(self.distributorReceptEvaluate.productSpecificationCompleteRateOnehandround === false){
// self.distributorReceptEvaluate.productSpecificationCompleteRateOnehandround= '0';
// }else{
// self.distributorReceptEvaluate.productSpecificationCompleteRateOnehandround = '1';
// }
// // 合规文件完整率
// if(self.distributorReceptEvaluate.complianceFileIntegrityOnehandround === false){
// self.distributorReceptEvaluate.complianceFileIntegrityOnehandround= '0';
// }else{
// self.distributorReceptEvaluate.complianceFileIntegrityOnehandround = '1';
// }
</script>