|
@@ -64,7 +64,11 @@
|
64
|
64
|
</el-table-column>
|
65
|
65
|
<el-table-column prop="BookBarcode" label="条形码"></el-table-column>
|
66
|
66
|
<el-table-column prop="BookName" label="书名"></el-table-column>
|
67
|
|
- <el-table-column prop="BookTypeName" label="分类"></el-table-column>
|
|
67
|
+ <el-table-column label="分类">
|
|
68
|
+ <template slot-scope="scope">
|
|
69
|
+ <span>{{ getTypeName(scope.row.BookTypeId) }}</span>
|
|
70
|
+ </template>
|
|
71
|
+ </el-table-column>
|
68
|
72
|
<el-table-column prop="LeftNum" label="可借数量"></el-table-column>
|
69
|
73
|
<el-table-column prop="BorrowDays" label="规定借阅天数"></el-table-column>
|
70
|
74
|
</el-table>
|
|
@@ -104,6 +108,7 @@ export default {
|
104
|
108
|
}),
|
105
|
109
|
...mapLibSate({
|
106
|
110
|
list: s => s.list,
|
|
111
|
+ types: s => s.type.list,
|
107
|
112
|
borrowHistory: s => s.borrow.history,
|
108
|
113
|
}),
|
109
|
114
|
caseId: {
|
|
@@ -126,6 +131,7 @@ export default {
|
126
|
131
|
...mapActions({
|
127
|
132
|
getBorrowHistory: 'getBorrowHistory',
|
128
|
133
|
getList: 'getBookList',
|
|
134
|
+ getTypeList: 'getTypeList',
|
129
|
135
|
borrowBooks: 'borrowBooks'
|
130
|
136
|
}),
|
131
|
137
|
|
|
@@ -177,6 +183,8 @@ export default {
|
177
|
183
|
return
|
178
|
184
|
}
|
179
|
185
|
|
|
186
|
+ this.getTypeList({ page: 0, pagesize: 1000, caseid: this.formData.caseid })
|
|
187
|
+
|
180
|
188
|
this.getList({
|
181
|
189
|
...this.formData,
|
182
|
190
|
// customerphone: this.borrowHistory.Phone,
|
|
@@ -226,6 +234,10 @@ export default {
|
226
|
234
|
})
|
227
|
235
|
.catch(x => x)
|
228
|
236
|
},
|
|
237
|
+
|
|
238
|
+ getTypeName(id) {
|
|
239
|
+ return (this.types.filter(x => x.BookTypeId === id)[0] || {}).BookTypeName
|
|
240
|
+ },
|
229
|
241
|
}
|
230
|
242
|
}
|
231
|
243
|
</script>
|