|
@@ -34,7 +34,9 @@
|
34
|
34
|
</div>
|
35
|
35
|
<div>
|
36
|
36
|
<el-button type="primary" @click="openForm(0)">新增</el-button>
|
37
|
|
- <el-button type="primary" @click="BatchDelete()">批量备案</el-button>
|
|
37
|
+ <el-button type="primary" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028">批量备案</el-button>
|
|
38
|
+ <el-button type="primary" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028" @click="GDYBBatchPutOnRecord">批量备案</el-button>
|
|
39
|
+
|
38
|
40
|
</div>
|
39
|
41
|
</div>
|
40
|
42
|
<el-table :data="tableData" border style="width: 100%" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}" @selection-change="handleSelectionChange">
|
|
@@ -42,7 +44,7 @@
|
42
|
44
|
align="center"
|
43
|
45
|
type="selection"
|
44
|
46
|
width="55">
|
45
|
|
- </el-table-column>
|
|
47
|
+ </el-table-column>
|
46
|
48
|
<el-table-column prop="date" label="序号" width="80" align="center">
|
47
|
49
|
<template slot-scope="scope">
|
48
|
50
|
{{scope.$index+1}}
|
|
@@ -89,10 +91,15 @@
|
89
|
91
|
<template slot-scope="scope">
|
90
|
92
|
<el-button @click="editHisProject(scope.row.id)" type="primary" size="small">编辑</el-button>
|
91
|
93
|
<el-button type="danger" size="small" @click="deleteProject(scope.row.id,scope.$index)">删除</el-button>
|
92
|
|
- <el-button type="primary" size="small" icon="el-icon-refresh-left" @click="toReturn(scope.row.id,scope.row.is_mark)">
|
|
94
|
+ <el-button type="primary" size="small" icon="el-icon-refresh-left" @click="toReturn(scope.row.id,scope.row.is_mark)" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028">
|
93
|
95
|
<span v-if="scope.row.is_mark ==0">备案</span>
|
94
|
96
|
<span v-if="scope.row.is_mark ==1">撤销</span>
|
95
|
97
|
</el-button>
|
|
98
|
+
|
|
99
|
+ <el-button type="primary" size="small" icon="el-icon-refresh-left" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028">
|
|
100
|
+ <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2" @click="putOnRecord(scope.row.id)" >目录对照</span>
|
|
101
|
+ <span v-if="scope.row.is_mark == 1" @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
|
|
102
|
+ </el-button>
|
96
|
103
|
</template>
|
97
|
104
|
</el-table-column>
|
98
|
105
|
</el-table>
|
|
@@ -164,7 +171,89 @@ export default {
|
164
|
171
|
}
|
165
|
172
|
},
|
166
|
173
|
methods:{
|
167
|
|
- changeStart(){
|
|
174
|
+ putOnUnRecord(id){
|
|
175
|
+ var that = this
|
|
176
|
+ let params = {
|
|
177
|
+ ids:id.toString(),
|
|
178
|
+ record_type: 3,
|
|
179
|
+ admin_user_id:this.$store.getters.xt_user.user.id
|
|
180
|
+ }
|
|
181
|
+ axios.get('http://127.0.0.1:9532/api/uncheckcode/get',{params:params}).then(function(response) {
|
|
182
|
+ if (response.data.state == 0) {
|
|
183
|
+ that.$message.error(response.data.data.msg)
|
|
184
|
+ return false
|
|
185
|
+ } else {
|
|
186
|
+ if(response.data.data.failed_code == -10){
|
|
187
|
+ that.$message.error(response.data.data.msg)
|
|
188
|
+ }else{
|
|
189
|
+ // for (let i = 0; i < that.tableData.length; i++) {
|
|
190
|
+ // if (that.tableData[i].id == that.currentObject.id) {
|
|
191
|
+ // that.tableData[i].record.is_cancel == 1
|
|
192
|
+ // }
|
|
193
|
+ // }
|
|
194
|
+ }
|
|
195
|
+
|
|
196
|
+ }
|
|
197
|
+ }).catch(function(error) {
|
|
198
|
+ })
|
|
199
|
+ },
|
|
200
|
+ putOnRecord(id){
|
|
201
|
+ var that = this
|
|
202
|
+
|
|
203
|
+ let params = {
|
|
204
|
+ ids:id.toString(),
|
|
205
|
+ record_type: 3,
|
|
206
|
+ admin_user_id:this.$store.getters.xt_user.user.id
|
|
207
|
+ }
|
|
208
|
+
|
|
209
|
+ axios.get('http://127.0.0.1:9532/api/checkcode/get',{params:params}).then(function(response) {
|
|
210
|
+ if (response.data.state == 0) {
|
|
211
|
+ that.$message.error(response.data.data.msg)
|
|
212
|
+ return false
|
|
213
|
+ } else {
|
|
214
|
+ if(response.data.data.failed_code == -10){
|
|
215
|
+ that.$message.error(response.data.data.msg)
|
|
216
|
+ }else{
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+ }
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+ }
|
|
224
|
+ }).catch(function(error) {
|
|
225
|
+ })
|
|
226
|
+ },
|
|
227
|
+ GDYBBatchPutOnRecord(){
|
|
228
|
+ var that = this
|
|
229
|
+ var ids = [];
|
|
230
|
+ var idMap = {};
|
|
231
|
+ for (const index in this.selectDrug) {
|
|
232
|
+ ids.push(this.selectDrug[index].id);
|
|
233
|
+ idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
|
|
234
|
+ }
|
|
235
|
+ let params = {
|
|
236
|
+ ids:ids.join(','),
|
|
237
|
+ record_type: 3,
|
|
238
|
+ admin_user_id:this.$store.getters.xt_user.user.id
|
|
239
|
+ }
|
|
240
|
+ axios.get('http://127.0.0.1:9532/api/checkcode/get',{params:params}).then(function(response) {
|
|
241
|
+ if (response.data.state == 0) {
|
|
242
|
+ that.$message.error(response.data.data.msg)
|
|
243
|
+ return false
|
|
244
|
+ } else {
|
|
245
|
+ if(response.data.data.failed_code == -10){
|
|
246
|
+ that.$message.error(response.data.data.msg)
|
|
247
|
+ }else{
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+ }
|
|
251
|
+ }
|
|
252
|
+ }).catch(function(error) {
|
|
253
|
+ })
|
|
254
|
+ },
|
|
255
|
+
|
|
256
|
+ changeStart(){
|
168
|
257
|
this.getlist()
|
169
|
258
|
},
|
170
|
259
|
handleSizeChange(val) {
|
|
@@ -176,7 +265,7 @@ export default {
|
176
|
265
|
this.getlist()
|
177
|
266
|
},
|
178
|
267
|
searchAction(){
|
179
|
|
- this.getlist()
|
|
268
|
+ this.getlist()
|
180
|
269
|
},
|
181
|
270
|
clickSelfPayment(){
|
182
|
271
|
this.$refs.selfPayment.show();
|
|
@@ -209,7 +298,7 @@ export default {
|
209
|
298
|
}
|
210
|
299
|
return name
|
211
|
300
|
},
|
212
|
|
-
|
|
301
|
+
|
213
|
302
|
getlist(){
|
214
|
303
|
var params = {
|
215
|
304
|
keyword:this.search_input,
|
|
@@ -229,7 +318,7 @@ export default {
|
229
|
318
|
console.log("total",total)
|
230
|
319
|
this.total = total
|
231
|
320
|
}
|
232
|
|
- })
|
|
321
|
+ })
|
233
|
322
|
},
|
234
|
323
|
deleteProject(id,index){
|
235
|
324
|
this.$confirm("确认删除此项目吗?", "删除", {
|
|
@@ -275,7 +364,7 @@ export default {
|
275
|
364
|
'admin_user_id':this.$store.getters.xt_user.user.id,
|
276
|
365
|
}
|
277
|
366
|
console.log("params22222222",params)
|
278
|
|
-
|
|
367
|
+
|
279
|
368
|
axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
|
280
|
369
|
if (response.data.state == 0) {
|
281
|
370
|
that.$message.error(response.data.data.msg)
|
|
@@ -295,11 +384,11 @@ export default {
|
295
|
384
|
},
|
296
|
385
|
handleSelectionChange(val) {
|
297
|
386
|
this.selectDrug = val;
|
298
|
|
- },
|
|
387
|
+ },
|
299
|
388
|
changeRecord(){
|
300
|
389
|
this.getlist()
|
301
|
390
|
},
|
302
|
|
-
|
|
391
|
+
|
303
|
392
|
BatchDelete() {
|
304
|
393
|
if (this.selectDrug.length == 0) {
|
305
|
394
|
this.$message.error("请选择要备案的信息");
|
|
@@ -321,7 +410,7 @@ export default {
|
321
|
410
|
ids.push(this.selectDrug[index].id);
|
322
|
411
|
idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
|
323
|
412
|
}
|
324
|
|
-
|
|
413
|
+
|
325
|
414
|
var idss = ids.join(',')
|
326
|
415
|
let params = {
|
327
|
416
|
ids:idss,
|
|
@@ -365,7 +454,7 @@ export default {
|
365
|
454
|
created(){
|
366
|
455
|
this.getlist()
|
367
|
456
|
this.getDartmentList()
|
368
|
|
-
|
|
457
|
+
|
369
|
458
|
}
|
370
|
459
|
}
|
371
|
460
|
</script>
|