From 766572da5ebc8d14d17c030a119ee67415bec79b Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Wed, 30 Jul 2025 15:30:10 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B4=A8=E6=8E=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/config.js | 8 +-
common/http.api.js | 19 +-
package_sub/pages/addQuality/addQuality.vue | 602 +++++++++++++++++++
package_sub/pages/index/index.vue | 13 +-
package_sub/pages/quality/quality.vue | 508 ++++++++++++++++
package_sub/pages/quality/qualityDetail.vue | 362 +++++++++++
package_sub/pages/quality/qualityHistory.vue | 408 +++++++++++++
pages.json | 23 +
8 files changed, 1936 insertions(+), 7 deletions(-)
create mode 100644 package_sub/pages/addQuality/addQuality.vue
create mode 100644 package_sub/pages/quality/quality.vue
create mode 100644 package_sub/pages/quality/qualityDetail.vue
create mode 100644 package_sub/pages/quality/qualityHistory.vue
diff --git a/common/config.js b/common/config.js
index cc54479..ff0f09c 100644
--- a/common/config.js
+++ b/common/config.js
@@ -1,10 +1,10 @@
-const mode = process.env.NODE_ENV;
-//const mode = 'development';
+// const mode = process.env.NODE_ENV;
+const mode = 'development';
let ROOTPATH = ''; //域名
switch (mode) {
case 'development':
- // ROOTPATH = "http://sstt.ali251.langye.net"
- ROOTPATH = "https://sstt.115.langye.net"
+ ROOTPATH = "http://sstt.ali251.langye.net"
+ // ROOTPATH = "https://sstt.115.langye.net"
break;
case 'production':
ROOTPATH = "https://sstt.115.langye.net"
diff --git a/common/http.api.js b/common/http.api.js
index c9b4750..dedef51 100644
--- a/common/http.api.js
+++ b/common/http.api.js
@@ -35,6 +35,12 @@ let apiAdmin = {
saveLongInsurance: "/api/admin/long-insurance/save",
longInsuranceList: "/api/admin/long-insurance/get-list",
longInsuranceDetail: "/api/admin/long-insurance/get-form/",
+ qualityCustomer:"/api/admin/schedule/customer-list",
+ qualityList:"/api/admin/quality-callbacks/get-list",
+ qualityDetail:"/api/admin/quality-callbacks/get-form/",
+ saveQuality:"/api/admin/quality-callbacks/save",
+ qualityDel:'/api/admin/quality-callbacks/delete/'
+
}
// 此处第二个参数vm,就是我们在页面使用的this,你可以通过vm获取vuex等操作
const install = (Vue, vm) => {
@@ -71,6 +77,13 @@ const install = (Vue, vm) => {
let adminSaveLongInsurance = (data) => vm.$u.post(apiAdmin.saveLongInsurance, data);
let adminLongInsuranceList = (data) => vm.$u.get(apiAdmin.longInsuranceList, data);
let adminLongInsuranceDetail = (id) => vm.$u.get(apiAdmin.longInsuranceDetail + id);
+
+ let adminSaveQuality = (data) => vm.$u.post(apiAdmin.saveQuality, data);
+ let adminQualityList = (data) => vm.$u.get(apiAdmin.qualityList, data);
+ let adminQualityDetail = (id) => vm.$u.get(apiAdmin.qualityDetail + id);
+ let adminQualityCustomer = (data) => vm.$u.get(apiAdmin.qualityCustomer, data);
+
+
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
vm.$u.api = {
login,
@@ -102,7 +115,11 @@ const install = (Vue, vm) => {
adminProductTypeList,
adminSaveLongInsurance,
adminLongInsuranceList,
- adminLongInsuranceDetail
+ adminLongInsuranceDetail,
+ adminSaveQuality,
+ adminQualityList,
+ adminQualityDetail,
+ adminQualityCustomer
};
};
diff --git a/package_sub/pages/addQuality/addQuality.vue b/package_sub/pages/addQuality/addQuality.vue
new file mode 100644
index 0000000..80d98a1
--- /dev/null
+++ b/package_sub/pages/addQuality/addQuality.vue
@@ -0,0 +1,602 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ checkboxChange(e)">
+
+ {{ item1.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 点击签名
+
+
+
+
+
+ 点击签名
+
+
+
+
+
+
+ 获取位置
+
+ {{ `${(form.longitude || form.latitude) ? ('(' + form.longitude + ',' + form.latitude + ')') : ''}${form.address}` }}
+
+
+
+
+ 提交
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/package_sub/pages/index/index.vue b/package_sub/pages/index/index.vue
index b3760f9..324405f 100644
--- a/package_sub/pages/index/index.vue
+++ b/package_sub/pages/index/index.vue
@@ -44,6 +44,10 @@
{{ item.label }}
+
+
+ 质控列表
+
@@ -63,6 +67,7 @@ export default {
return {
marginTop: 96,
swiperIndex: 0,
+ isQuality:false,
grids: [
{
label: "护理列表",
@@ -87,7 +92,8 @@ export default {
{
label: "长护险回访",
url: "/package_sub/pages/longInsurance/longInsurance"
- }
+ },
+
]
}
},
@@ -121,7 +127,10 @@ export default {
}
},
async onShow() {
-
+ console.log("user",this.vuex_user)
+ if(this.vuex_user){
+ this.isQuality = this.vuex_user.role.some(item => item.name === '质控员');
+ }
},
created() {
const res = uni.getSystemInfoSync()
diff --git a/package_sub/pages/quality/quality.vue b/package_sub/pages/quality/quality.vue
new file mode 100644
index 0000000..cb53b0d
--- /dev/null
+++ b/package_sub/pages/quality/quality.vue
@@ -0,0 +1,508 @@
+
+
+
+
+
+
+ 刷新
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 回访次数 {{ item.customer.quality_callbacks_count }} 次
+ 回访次数 {{ 0 }} 次
+
+ {{ item.product.product_type.name }}
+
+
+
+
+
+
+
+
+ {{item.customer.name}}
+
+
+
+
+ {{item.customer.phone || '无'}}
+
+
+
+
+
+ {{defaultAddress(item.customer.customer_address).address || '无'}}
+
+
+
+
+
+ {{getAgeByIdcard(item.customer.idcard) || '-'}}岁
+
+
+
+
+
+ 失能等级{{ item.customer.level_type_detail ? item.customer.level_type_detail.value : '' }} {{ item.customer.level_detail ? item.customer.level_detail.value : '' }}
+
+
+
+
+
+ 联系人 {{ item.customer.contact_name }}
+
+
+
+
+ {{item.customer.sex || '无'}}
+
+
+
+
+
+ 质控回访
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/package_sub/pages/quality/qualityDetail.vue b/package_sub/pages/quality/qualityDetail.vue
new file mode 100644
index 0000000..e5b83fb
--- /dev/null
+++ b/package_sub/pages/quality/qualityDetail.vue
@@ -0,0 +1,362 @@
+
+
+
+
+
+
+
+
+ {{detail.date}}
+
+
+
+
+
+
+
+
+ 护理员
+ {{ detail.nurse_name?detail.nurse_name:'' }}
+
+
+
+ {{item.ask}}
+ {{ joinSelectedOptions(item.options) }}
+
+
+ {{item.ask}}
+ 分值:{{ item.score }}
+
+
+
+
+ 总分(得90分及以上为及格)
+ {{ detail.total_score }}
+
+
+ 对护理员哪些方面要求改进
+ {{ detail.tip?detail.tip:'' }}
+
+
+ 对护理员有哪些方面肯定
+ {{ detail.sure?detail.sure:''}}
+
+
+ 备注
+ {{ detail.remark?detail.remark:'' }}
+
+
+
+ 回访地址
+
+ {{ `${(detail.longitude || detail.latitude) ? ('(' + detail.longitude + ',' + detail.latitude + ')') : ''}${detail.address?detail.address:''}` }}
+
+
+
+ 回访图片
+
+
+
+
+
+ 服务对象/家属签名
+
+
+
+
+
+ 调查人员签名
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+
+
+
+
diff --git a/package_sub/pages/quality/qualityHistory.vue b/package_sub/pages/quality/qualityHistory.vue
new file mode 100644
index 0000000..24a4a0c
--- /dev/null
+++ b/package_sub/pages/quality/qualityHistory.vue
@@ -0,0 +1,408 @@
+
+
+
+
+
+
+ 刷新
+
+
+
+
+
+
+
+
+
+
+ 回访日期: {{ item.date }}
+
+
+
+
+ 护理员:{{item.nurse_name?item.nurse_name:''}}
+ 总分:{{item.total_score?item.total_score:0}}
+ 备注:
+ {{item.remark?item.remark:''}}
+ 回访地址:
+
+ {{ `${(item.longitude || item.latitude) ? ('(' + item.longitude + ',' + item.latitude + ')') : ''}${item.address?item.address:''}` }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages.json b/pages.json
index 69c553c..fb410ee 100644
--- a/pages.json
+++ b/pages.json
@@ -170,6 +170,29 @@
"style": {
"navigationStyle": "custom"
}
+ },{
+ "path": "pages/addQuality/addQuality",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/quality/quality",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/quality/qualityHistory",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/quality/qualityDetail",
+ "style": {
+ "navigationStyle": "custom"
+ }
}
]
}