|
@@ -66,8 +66,8 @@
|
66
|
66
|
</el-select>
|
67
|
67
|
</div>
|
68
|
68
|
<div>
|
69
|
|
- <el-button type="primary" @click="query()">查询</el-button>
|
70
|
|
- <el-button type="primary" @click="stock()">盘存</el-button>
|
|
69
|
+ <el-button type="primary" @click="query()" >查询</el-button>
|
|
70
|
+ <el-button type="primary" v-loading="isloading" @click="stock()">盘存</el-button>
|
71
|
71
|
<el-button type="primary" @click="exportdata()">导出</el-button>
|
72
|
72
|
|
73
|
73
|
<!-- <el-button type="primary" @click="change()">变更</el-button>-->
|
|
@@ -106,14 +106,14 @@
|
106
|
106
|
</template>
|
107
|
107
|
</el-table-column>
|
108
|
108
|
|
109
|
|
- <el-table-column align="center" prop="total" label="开方日期">
|
|
109
|
+ <el-table-column align="center" prop="total" label="生产日期">
|
110
|
110
|
<template slot-scope="scope">
|
111
|
111
|
<div>{{scope.row.p_date}}</div>
|
112
|
112
|
</template>
|
113
|
113
|
</el-table-column>
|
114
|
114
|
|
115
|
115
|
|
116
|
|
- <el-table-column align="center" prop="total" label="结算日期">
|
|
116
|
+ <el-table-column align="center" prop="total" label="有效日期">
|
117
|
117
|
<template slot-scope="scope">
|
118
|
118
|
<div>{{scope.row.e_date}}</div>
|
119
|
119
|
</template>
|
|
@@ -141,7 +141,7 @@
|
141
|
141
|
<el-table-column label="操作" width="200">
|
142
|
142
|
<template slot-scope="scope">
|
143
|
143
|
<el-button v-if="!scope.row.is_pc || scope.row.is_pc == 0" type="primary" @click="sigle_stock(scope.row)">盘存</el-button>
|
144
|
|
- <el-button type="primary" @click="deleteStock(scope.row)">删除</el-button>
|
|
144
|
+ <el-button type="primary" @click="deleteStock(scope.row)">删除</el-button>
|
145
|
145
|
</template>
|
146
|
146
|
</el-table-column>
|
147
|
147
|
</el-table>
|
|
@@ -241,7 +241,9 @@ export default {
|
241
|
241
|
stock_type:"0",
|
242
|
242
|
change_type:"0",
|
243
|
243
|
selection:[],
|
|
244
|
+ isloading:false,
|
244
|
245
|
items: [
|
|
246
|
+
|
245
|
247
|
{ id: 1, name: '已盘存' },
|
246
|
248
|
{ id: 2, name: '未盘存' },
|
247
|
249
|
],
|
|
@@ -269,9 +271,11 @@ export default {
|
269
|
271
|
confirmButtonText: '确 定',
|
270
|
272
|
type: 'warning'
|
271
|
273
|
}).then(() => {
|
|
274
|
+
|
272
|
275
|
}).catch(() => {
|
273
|
276
|
})
|
274
|
277
|
}else{
|
|
278
|
+ that.GetDrugStock()
|
275
|
279
|
|
276
|
280
|
}
|
277
|
281
|
}
|
|
@@ -327,7 +331,6 @@ export default {
|
327
|
331
|
return jsonData.map(v => filterVal.map(j => v[j]))
|
328
|
332
|
},
|
329
|
333
|
stock(){
|
330
|
|
- console.log(this.selection)
|
331
|
334
|
let ids = ""
|
332
|
335
|
for (var i = 0; i < this.selection.length; i++){
|
333
|
336
|
if (ids.length == 0){
|
|
@@ -341,19 +344,26 @@ export default {
|
341
|
344
|
ids:ids,
|
342
|
345
|
admin_user_id:this.$store.getters.xt_user.user.id
|
343
|
346
|
};
|
|
347
|
+ this.isloading = true
|
344
|
348
|
axios.get('http://127.0.0.1:9532/api/pc_bg',{params:params}).then(function(response) {
|
345
|
349
|
if (response.data.state == 0) {
|
|
350
|
+ this.isloading = false
|
|
351
|
+
|
346
|
352
|
that.$message.error(response.data.data.msg);
|
347
|
353
|
return false
|
348
|
354
|
} else {
|
|
355
|
+ this.isloading = false
|
349
|
356
|
if(response.data.data.failed_code == -10){
|
350
|
357
|
that.$confirm(response.data.data.msg, '医保错误信息', {
|
351
|
358
|
confirmButtonText: '确 定',
|
352
|
359
|
type: 'warning'
|
353
|
360
|
}).then(() => {
|
|
361
|
+
|
354
|
362
|
}).catch(() => {
|
355
|
363
|
})
|
356
|
364
|
}else{
|
|
365
|
+ that.GetDrugStock()
|
|
366
|
+
|
357
|
367
|
|
358
|
368
|
}
|
359
|
369
|
}
|
|
@@ -420,7 +430,7 @@ export default {
|
420
|
430
|
p_date:this.getTime(response.data.data.info[i].product_date),
|
421
|
431
|
e_date:this.getTime(response.data.data.info[i].expiry_date),
|
422
|
432
|
is_pc:response.data.data.info[i].is_pc,
|
423
|
|
- pc_date:response.data.data.info[i].pc_date,
|
|
433
|
+ pc_date:this.getTime(response.data.data.info[i].pc_date),
|
424
|
434
|
is_bg:response.data.data.info[i].is_bg,
|
425
|
435
|
unit: response.data.data.info[i].max_unit,
|
426
|
436
|
}
|