|
@@ -138,6 +138,10 @@
|
138
|
138
|
v-if="scope.row.order_status == 2&& scope.row.result.id == 0">
|
139
|
139
|
上传结算清单
|
140
|
140
|
</el-button>
|
|
141
|
+ <el-button size="mini" type="primary" @click="cancelUpload(scope.row)"
|
|
142
|
+ v-if="scope.row.order_status == 2&& scope.row.result.id > 0">
|
|
143
|
+ 撤销结算清单
|
|
144
|
+ </el-button>
|
141
|
145
|
<el-button size="mini" type="primary"
|
142
|
146
|
v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106"
|
143
|
147
|
@click="settlementPrint(scope.row)">结算单
|
|
@@ -300,6 +304,38 @@
|
300
|
304
|
return '普通住院'
|
301
|
305
|
break
|
302
|
306
|
}
|
|
307
|
+ },cancelUpload(row){
|
|
308
|
+ var that = this
|
|
309
|
+ axios.get('http://127.0.0.1:9532/zh/api/clearsettle', {
|
|
310
|
+ params: {
|
|
311
|
+ order_id: row.id,
|
|
312
|
+ admin_user_id: this.$store.getters.xt_user.user.id
|
|
313
|
+ }
|
|
314
|
+ }).then(function(response) {
|
|
315
|
+ if (response.data.state == 0) {
|
|
316
|
+ that.$message.error(response.data.msg)
|
|
317
|
+ return false
|
|
318
|
+ } else {
|
|
319
|
+
|
|
320
|
+ if (response.data.data.failed_code == -10) {
|
|
321
|
+ // that.$message.error(response.data.data.msg)
|
|
322
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
323
|
+ confirmButtonText: '确 定',
|
|
324
|
+ type: 'warning'
|
|
325
|
+ }).then(() => {
|
|
326
|
+
|
|
327
|
+ }).catch(() => {
|
|
328
|
+ })
|
|
329
|
+
|
|
330
|
+ } else {
|
|
331
|
+ that.$message.success('撤销成功')
|
|
332
|
+ row.result.id = 0
|
|
333
|
+ }
|
|
334
|
+
|
|
335
|
+ }
|
|
336
|
+ }).catch(function(error) {
|
|
337
|
+ })
|
|
338
|
+
|
303
|
339
|
},
|
304
|
340
|
uploadInfo(row) {
|
305
|
341
|
var that = this
|