@liuqiongqiong/vue-pages 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liuqiongqiong/vue-pages",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "type": "module",
5
5
  "description": "长护险管理系统业务页面组件库 - 包含结算管理、客户管理、护理管理等完整业务模块",
6
6
  "main": "dist/index.js",
@@ -31,18 +31,13 @@
31
31
  <el-table-column label="证件号码" prop="idcode" align="center" show-overflow-tooltip min-width="160" />
32
32
  <el-table-column label="参保地区划" prop="insuAdmdvs" align="center" show-overflow-tooltip min-width="100" />
33
33
  <el-table-column label="安装日期" prop="instDate" align="center" show-overflow-tooltip min-width="100" />
34
+ <el-table-column label="总金额" prop="totalPric" align="center" width="90"></el-table-column>
34
35
  <el-table-column label="结算状态" prop="status" align="center" width="90">
35
36
  <template slot-scope="{ row }">
36
37
  <el-tag :type="row.status === '1' ? 'success' : 'info'">{{ row.status === '1' ? '已结算' : '未结算' }}</el-tag>
37
38
  </template>
38
39
  </el-table-column>
39
- <el-table-column label="结算时间" prop="settleTime" align="center" show-overflow-tooltip min-width="140" />
40
- <el-table-column label="申报状态" prop="declareStatus" align="center" width="90">
41
- <template slot-scope="{ row }">
42
- <el-tag :type="row.declareStatus === '已申报' ? 'success' : 'info'">{{ row.declareStatus }}</el-tag>
43
- </template>
44
- </el-table-column>
45
- <el-table-column label="申报时间" prop="declareTime" align="center" show-overflow-tooltip min-width="140" />
40
+ <el-table-column label="结算时间" prop="setlTime" align="center" show-overflow-tooltip min-width="140" />
46
41
  <el-table-column label="操作" align="center" width="280" fixed="right">
47
42
  <template slot-scope="{ row }">
48
43
  <div v-if="row.status !== '1'">
@@ -95,12 +90,7 @@
95
90
  <el-input value="浙江省" disabled style="width: 120px; margin-right: 10px;" />
96
91
  <el-input value="温州市" disabled style="width: 120px; margin-right: 10px;" />
97
92
  <el-select v-model="temp.insuAdmdvs" placeholder="请选择区县" style="width: 200px">
98
- <el-option
99
- v-for="item in areaOptions"
100
- :key="item.code"
101
- :label="item.name"
102
- :value="item.code"
103
- />
93
+ <el-option v-for="item in areaOptions" :key="item.code" :label="item.name" :value="item.code" />
104
94
  </el-select>
105
95
  </div>
106
96
  </el-form-item>
@@ -116,13 +106,13 @@
116
106
  </el-form-item>
117
107
  </el-col>
118
108
  <el-col :span="12">
119
- <el-form-item label="安装医生工号" prop="instDrCodg">
109
+ <el-form-item label="安装医生工号">
120
110
  <el-input v-if="!isReadOnly" v-model="temp.instDrCodg" placeholder="请输入安装医生工号" />
121
111
  <span v-else>{{ temp.instDrCodg }}</span>
122
112
  </el-form-item>
123
113
  </el-col>
124
114
  <el-col :span="12">
125
- <el-form-item label="医生姓名" prop="instDrName">
115
+ <el-form-item label="医生姓名">
126
116
  <el-input v-if="!isReadOnly" v-model="temp.instDrName" placeholder="请输入医生姓名" />
127
117
  <span v-else>{{ temp.instDrName }}</span>
128
118
  </el-form-item>
@@ -131,17 +121,20 @@
131
121
  <el-row :gutter="20">
132
122
  <el-col :span="24">
133
123
  <el-form-item label="费用明细" prop="feeList">
134
- <el-button v-if="!isReadOnly" type="primary" size="mini" icon="el-icon-plus" @click="addFeeItem" style="margin-bottom: 10px;">添加费用</el-button>
124
+ <el-button v-if="!isReadOnly" type="primary" size="mini" icon="el-icon-plus" @click="addFeeItem"
125
+ style="margin-bottom: 10px;">添加费用</el-button>
135
126
  <el-table :data="temp.feeList" border style="width: 100%">
136
- <el-table-column label="项目单价" >
127
+ <el-table-column label="项目单价">
137
128
  <template slot-scope="{ row }">
138
- <el-input-number v-if="!isReadOnly" v-model="row.pric" :min="0" :precision="2" size="small" style="width: 100%" />
129
+ <el-input-number v-if="!isReadOnly" v-model="row.pric" :min="0" :precision="2" size="small"
130
+ style="width: 100%" />
139
131
  <span v-else>{{ row.pric }}</span>
140
132
  </template>
141
133
  </el-table-column>
142
- <el-table-column label="项目数量" >
134
+ <el-table-column label="项目数量">
143
135
  <template slot-scope="{ row }">
144
- <el-input-number v-if="!isReadOnly" v-model="row.cnt" :min="1" :precision="0" size="small" style="width: 100%" />
136
+ <el-input-number v-if="!isReadOnly" v-model="row.cnt" :min="1" :precision="0" size="small"
137
+ style="width: 100%" />
145
138
  <span v-else>{{ row.cnt }}</span>
146
139
  </template>
147
140
  </el-table-column>
@@ -161,46 +154,32 @@
161
154
  </div>
162
155
  </el-dialog>
163
156
  <!-- 待申报结算查询抽屉 -->
164
- <el-drawer
165
- title="待申报结算查询"
166
- :visible.sync="drawerVisible"
167
- direction="rtl"
168
- size="60%"
169
- >
157
+ <el-drawer title="待申报结算查询" :visible.sync="drawerVisible" direction="rtl" size="60%">
170
158
  <div style="padding: 20px;">
171
159
  <el-form :inline="true" :model="drawerQuery">
172
160
  <el-form-item label="结算月份">
173
- <el-date-picker
174
- v-model="drawerQuery.setlMon"
175
- type="month"
176
- placeholder="选择月份"
177
- value-format="yyyy-MM"
178
- size="small"
179
- />
161
+ <el-date-picker v-model="drawerQuery.setlMon" type="month" placeholder="选择月份" value-format="yyyy-MM"
162
+ size="small" />
180
163
  </el-form-item>
181
164
  <el-form-item>
182
165
  <el-button type="primary" size="small" @click="handleDrawerQuery">查询</el-button>
183
166
  </el-form-item>
184
167
  </el-form>
185
168
 
186
- <el-table
187
- v-loading="drawerLoading"
188
- :data="drawerList"
189
- border
190
- style="width: 100%"
191
- >
192
- <el-table-column label="长护辅助器具结算ID" prop="longtermAidsSetlId" align="center" show-overflow-tooltip min-width="160" />
193
- <el-table-column label="护理机构ID" prop="nursCareOrgId" align="center" show-overflow-tooltip min-width="120" />
169
+ <el-table v-loading="drawerLoading" :data="drawerList" border style="width: 100%">
170
+ <el-table-column label="长护辅助器具结算ID" prop="longtermAidsSetlId" align="center" show-overflow-tooltip
171
+ min-width="160" />
172
+ <el-table-column label="护理机构ID" prop="nurscareOrgNo" align="center" show-overflow-tooltip min-width="120" />
194
173
  <el-table-column label="护理机构名称" prop="nursCareOrgName" align="center" show-overflow-tooltip min-width="150" />
195
174
  <el-table-column label="人员姓名" prop="psnName" align="center" show-overflow-tooltip min-width="100" />
196
175
  <el-table-column label="人员编码" prop="psnNo" align="center" show-overflow-tooltip min-width="120" />
197
- <el-table-column label="证件号码" prop="certNo" align="center" show-overflow-tooltip min-width="160" />
176
+ <el-table-column label="证件号码" prop="certno" align="center" show-overflow-tooltip min-width="160" />
198
177
  <el-table-column label="安装日期" prop="instDate" align="center" show-overflow-tooltip min-width="120" />
199
178
  <el-table-column label="安装医生工号" prop="instDrCodg" align="center" show-overflow-tooltip min-width="120" />
200
179
  <el-table-column label="安装医生姓名" prop="instDrName" align="center" show-overflow-tooltip min-width="120" />
201
180
  <el-table-column label="费用总额" prop="feeSumamt" align="center" show-overflow-tooltip min-width="100" />
202
181
  <el-table-column label="基金支付" prop="fundPay" align="center" show-overflow-tooltip min-width="100" />
203
- <el-table-column label="待遇类型ID" prop="mdtRtId" align="center" show-overflow-tooltip min-width="120" />
182
+ <el-table-column label="待遇类型ID" prop="mdtrtId" align="center" show-overflow-tooltip min-width="120" />
204
183
  <el-table-column label="操作" align="center" width="120" fixed="right">
205
184
  <template slot-scope="{ row }">
206
185
  <el-button size="mini" type="primary" @click="handleViewDetail(row)">查看明细</el-button>
@@ -208,13 +187,8 @@
208
187
  </el-table-column>
209
188
  </el-table>
210
189
 
211
- <pagination
212
- v-show="drawerTotal > 0"
213
- :total="drawerTotal"
214
- :page.sync="drawerQuery.pageNo"
215
- :limit.sync="drawerQuery.size"
216
- @pagination="getDrawerList"
217
- />
190
+ <pagination v-show="drawerTotal > 0" :total="drawerTotal" :page.sync="drawerQuery.pageNo"
191
+ :limit.sync="drawerQuery.size" @pagination="getDrawerList" />
218
192
  </div>
219
193
  </el-drawer>
220
194
 
@@ -227,13 +201,8 @@
227
201
  <el-table-column label="项目数量" prop="cnt" align="center" />
228
202
  <el-table-column label="项目单价" prop="pric" align="center" />
229
203
  </el-table>
230
- <pagination
231
- v-show="detailTotal > 0"
232
- :total="detailTotal"
233
- :page.sync="detailQuery.pageNo"
234
- :limit.sync="detailQuery.size"
235
- @pagination="getDetailList"
236
- />
204
+ <pagination v-show="detailTotal > 0" :total="detailTotal" :page.sync="detailQuery.pageNo"
205
+ :limit.sync="detailQuery.size" @pagination="getDetailList" />
237
206
  <div slot="footer" class="dialog-footer">
238
207
  <el-button @click="detailDialogVisible = false">关闭</el-button>
239
208
  </div>
@@ -248,7 +217,8 @@ import {
248
217
  ProsthesisSettlementSave,
249
218
  ProsthesisSettlementDetail,
250
219
  ProsthesisSettlementDeclare,
251
- ProsthesisSettlementRevoke
220
+ ProsthesisSettlementRevoke,
221
+ queryNoSettlement
252
222
  } from "@/api/ProsthesisSettlement";
253
223
  import pcaData from "@/utils/pca222.json";
254
224
 
@@ -298,7 +268,8 @@ export default {
298
268
  drawerQuery: {
299
269
  pageNo: 1,
300
270
  size: 10,
301
- setlMon: ""
271
+ setlMon: "",
272
+ longtermDclaRea: ""
302
273
  },
303
274
  // 明细弹窗相关数据
304
275
  detailDialogVisible: false,
@@ -388,9 +359,19 @@ export default {
388
359
  });
389
360
  },
390
361
  handleQueryPending() {
391
- this.drawerVisible = true;
392
- this.drawerQuery.pageNo = 1;
393
- this.getDrawerList();
362
+ this.$prompt('请输入长期护理申报原因', '提示', {
363
+ confirmButtonText: '确定',
364
+ cancelButtonText: '取消',
365
+ inputPattern: /\S/,
366
+ inputErrorMessage: '原因不能为空'
367
+ }).then(({ value }) => {
368
+ this.drawerQuery.longtermDclaRea = value;
369
+ this.drawerVisible = true;
370
+ this.drawerQuery.pageNo = 1;
371
+ this.getDrawerList();
372
+ }).catch(() => {
373
+ // 取消输入
374
+ });
394
375
  },
395
376
  handleDrawerQuery() {
396
377
  this.drawerQuery.pageNo = 1;
@@ -398,10 +379,16 @@ export default {
398
379
  },
399
380
  getDrawerList() {
400
381
  this.drawerLoading = true;
401
- ProsthesisSettlementPage(this.drawerQuery).then(response => {
382
+ const params = {
383
+ longtermDclaRea: this.drawerQuery.longtermDclaRea,
384
+ setlMon: this.drawerQuery.setlMon,
385
+ pageNum: this.drawerQuery.pageNo,
386
+ pageSize: this.drawerQuery.size
387
+ };
388
+ queryNoSettlement(params).then(response => {
402
389
  console.log(response)
403
- this.drawerList = response.data.list;
404
- this.drawerTotal = response.data.total;
390
+ this.drawerList = response.result.data;
391
+ this.drawerTotal = response.result.count;
405
392
  this.drawerLoading = false;
406
393
  }).catch(() => {
407
394
  this.drawerLoading = false;
@@ -416,13 +403,20 @@ export default {
416
403
  },
417
404
  getDetailList() {
418
405
  this.detailLoading = true;
419
- ProsthesisSettlementDetail(this.detailQuery.longtermAidsSetlId).then(response => {
406
+ const params = {
407
+ longtermDclaRea: this.drawerQuery.longtermDclaRea,
408
+ longtermAidsSetlId: this.detailQuery.longtermAidsSetlId,
409
+ pageNum: this.detailQuery.pageNo,
410
+ pageSize: this.detailQuery.size
411
+ };
412
+ queryNoSettlement(params).then(response => {
413
+ console.log(response)
420
414
  // 假设返回的数据直接是列表,或者是包含列表的对象
421
415
  // 根据通常习惯,如果是分页查询,可能是 response.data.list
422
416
  // 如果是详情,可能是 response.data.feeList
423
417
  // 这里暂时假设 response.data 就是列表
424
- this.detailList = Array.isArray(response.data) ? response.data : (response.data.list || []);
425
- this.detailTotal = response.data.total || (this.detailList.length);
418
+ this.detailList = Array.isArray(response.result) ? response.result : (response.result.data || []);
419
+ this.detailTotal = response.result.total || (this.detailList.length);
426
420
  this.detailLoading = false;
427
421
  }).catch(() => {
428
422
  this.detailLoading = false;
@@ -435,11 +429,11 @@ export default {
435
429
  this.dialogVisible = true;
436
430
  ProsthesisSettlementDetail(row.id).then(response => {
437
431
  if (response.result) {
438
- this.temp = Object.assign({}, response.result);
439
- // 确保 feeList 是数组,如果没有返回则为空数组
440
- if (!this.temp.feeList) {
441
- this.$set(this.temp, 'feeList', []);
442
- }
432
+ this.temp = Object.assign({}, response.result);
433
+ // 确保 feeList 是数组,如果没有返回则为空数组
434
+ if (!this.temp.feeList) {
435
+ this.$set(this.temp, 'feeList', []);
436
+ }
443
437
  }
444
438
  });
445
439
  this.$nextTick(() => {
@@ -486,10 +480,10 @@ export default {
486
480
  this.dialogVisible = true;
487
481
  ProsthesisSettlementDetail(row.id).then(response => {
488
482
  if (response.result) {
489
- this.temp = Object.assign({}, response.result);
490
- if (!this.temp.feeList) {
491
- this.$set(this.temp, 'feeList', []);
492
- }
483
+ this.temp = Object.assign({}, response.result);
484
+ if (!this.temp.feeList) {
485
+ this.$set(this.temp, 'feeList', []);
486
+ }
493
487
  }
494
488
  });
495
489
  this.$nextTick(() => {