From cb3c799e1bd6a7cf5dd5c7e3cadee238bf67b729 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 10 十月 2025 14:26:10 +0800
Subject: [PATCH] 随访详情本人所属功能及服务形式补偿流程组件维护
---
src/views/followvisit/complaint/index.vue | 5 +-
src/views/followvisit/again/index.vue | 1
src/views/followvisit/mzsatisfaction/index.vue | 5 +-
vue.config.js | 4 +-
src/components/SortCheckbox/index.vue | 30 ++++++++++++---
src/views/patient/propaganda/particty.vue | 24 ++++++++----
src/views/followvisit/zysatisfaction/index.vue | 26 +++++-------
src/views/followvisit/discharge/index.vue | 2
8 files changed, 58 insertions(+), 39 deletions(-)
diff --git a/src/components/SortCheckbox/index.vue b/src/components/SortCheckbox/index.vue
index d302d22..4ae95f1 100644
--- a/src/components/SortCheckbox/index.vue
+++ b/src/components/SortCheckbox/index.vue
@@ -55,10 +55,10 @@
type: Array,
default: () => [],
},
- // selectedOrder: {
- // type: Array,
- // default: () => [],
- // },
+ initialselectedOrder: {
+ type: Array,
+ default: () => [],
+ },
valueKey: {
type: String,
default: "value",
@@ -88,6 +88,8 @@
newVal.length > 0 &&
typeof newVal[0] === "object"
) {
+ console.log(this.selectedOrder, "111");
+
// 1. 浼犲叆鐨勬槸瀵硅薄鏁扮粍 [{ sort, preachform, compensateTime }]
this.checkedValues = newVal.map((item) => item.preachform); // 鎻愬彇 preachform 缁勬垚閫変腑鍊兼暟缁�
// 鏋勫缓 selectedOrder锛屼紭鍏堜娇鐢ㄤ紶鍏ョ殑 compensateTime锛屽惁鍒欑敤榛樿鍊�
@@ -101,6 +103,8 @@
// 2. 浼犲叆鐨勬槸瀛楃涓叉暟缁� (濡� ["1", "3", "4"]锛屽吋瀹逛箣鍓嶇殑鐢ㄦ硶)
if (JSON.stringify(newVal) !== JSON.stringify(this.checkedValues)) {
this.checkedValues = [...newVal];
+ console.log(this.selectedOrder, "222");
+ console.log(this.newVal, "22");
// 鏋勫缓鎴栨洿鏂� selectedOrder锛屼繚鐣欏凡鏈夌殑 compensateTime
const newOrder = [];
newVal.forEach((value) => {
@@ -112,7 +116,9 @@
} else {
newOrder.push({
value,
- compensateTime: this.defaultCompensateTime,
+ compensateTime: this.hasOwnProperty(value)
+ ? this.hasOwnProperty(value)
+ : this.defaultCompensateTime,
});
}
});
@@ -120,9 +126,10 @@
}
}
},
- deep: true // 寤鸿娣诲姞 deep: true 浠ョ‘淇濆璞℃暟缁勫唴鐨勫彉鍖栬兘琚崟鑾�
+ deep: true, // 寤鸿娣诲姞 deep: true 浠ョ‘淇濆璞℃暟缁勫唴鐨勫彉鍖栬兘琚崟鑾�
},
checkedValues(newVal, oldVal) {
+ console.log(this.selectedOrder, "333");
// 澶勭悊閫変腑椤圭殑鍙樺寲
const added = newVal.filter((item) => !oldVal.includes(item));
const removed = oldVal.filter((item) => !newVal.includes(item));
@@ -178,6 +185,17 @@
this.emitChangeEvent();
}
},
+ hasOwnProperty(patfrom) {
+ console.log(patfrom);
+ console.log(this.initialselectedOrder);
+ // 浣跨敤find鏂规硶鏌ユ壘鍖归厤鐨勫璞�
+ const foundObject = this.initialselectedOrder.find(
+ (item) => item.preachform === patfrom
+ );
+
+ // 濡傛灉鎵惧埌瀵硅薄锛岃繑鍥炲叾compensateTime锛涘惁鍒欒繑鍥瀎alse
+ return foundObject ? foundObject.compensateTime : false;
+ },
// 鍙戝皠鍙樺寲浜嬩欢
emitChangeEvent() {
// 杞崲鏁版嵁鏍煎紡涓虹埗缁勪欢闇�瑕佺殑鏍煎紡
diff --git a/src/views/followvisit/again/index.vue b/src/views/followvisit/again/index.vue
index dfbfd6c..d43ef48 100644
--- a/src/views/followvisit/again/index.vue
+++ b/src/views/followvisit/again/index.vue
@@ -1196,7 +1196,6 @@
});
},
affiliation() {
-
this.topqueryParams.managementDoctorCode= store.getters.hisUserId;
this.getList(1);
diff --git a/src/views/followvisit/complaint/index.vue b/src/views/followvisit/complaint/index.vue
index 7b90130..dead345 100644
--- a/src/views/followvisit/complaint/index.vue
+++ b/src/views/followvisit/complaint/index.vue
@@ -1294,9 +1294,8 @@
});
},
affiliation() {
- this.topqueryParams.drcode = store.getters.hisUserId;
- this.topqueryParams.nurseId = store.getters.hisUserId;
- this.topqueryParams.managementDoctor = store.getters.name;
+ this.topqueryParams.managementDoctorCode= store.getters.hisUserId;
+
this.getList(1);
},
onthatday() {
diff --git a/src/views/followvisit/discharge/index.vue b/src/views/followvisit/discharge/index.vue
index cf10bf3..73cc68c 100644
--- a/src/views/followvisit/discharge/index.vue
+++ b/src/views/followvisit/discharge/index.vue
@@ -1402,7 +1402,7 @@
});
},
affiliation() {
- this.topqueryParams.managementDoctor = store.getters.hisUserId;
+ this.topqueryParams.managementDoctorCode= store.getters.hisUserId;
this.getList(1);
},
onthatday() {
diff --git a/src/views/followvisit/mzsatisfaction/index.vue b/src/views/followvisit/mzsatisfaction/index.vue
index 2946961..94a04e3 100644
--- a/src/views/followvisit/mzsatisfaction/index.vue
+++ b/src/views/followvisit/mzsatisfaction/index.vue
@@ -1330,9 +1330,8 @@
});
},
affiliation() {
- this.topqueryParams.drcode = store.getters.hisUserId;
- this.topqueryParams.nurseId = store.getters.hisUserId;
- this.topqueryParams.managementDoctor = store.getters.name;
+ this.topqueryParams.managementDoctorCode= store.getters.hisUserId;
+
this.getList(1);
},
onthatday() {
diff --git a/src/views/followvisit/zysatisfaction/index.vue b/src/views/followvisit/zysatisfaction/index.vue
index c981005..3bff3f2 100644
--- a/src/views/followvisit/zysatisfaction/index.vue
+++ b/src/views/followvisit/zysatisfaction/index.vue
@@ -91,7 +91,6 @@
></el-date-picker>
</el-form-item>
-
<el-form-item label="鎮h�呭鍚�" prop="sendname">
<el-input
v-model="topqueryParams.sendname"
@@ -188,7 +187,7 @@
<el-col :span="1.5">
<el-button
type="primary"
- icon="el-icon-plus"
+ icon="el-icon-plus"
size="medium"
@click="handleAdd"
>鏂板</el-button
@@ -258,7 +257,6 @@
</div>
</div>
</el-col>
-
</el-row>
<el-table
v-loading="loading"
@@ -816,7 +814,7 @@
</el-form-item>
</el-col>
</el-row>
- <el-row >
+ <el-row>
<el-col :span="8">
<el-form-item label="杩囨护鍖荤敓" width="100" prop="filterDrname">
<el-input
@@ -920,7 +918,6 @@
</span>
</el-dialog>
<!-- 鍐嶆闅忚 -->
-
</div>
</template>
@@ -1294,9 +1291,8 @@
});
},
affiliation() {
- this.topqueryParams.drcode = store.getters.hisUserId;
- this.topqueryParams.nurseId = store.getters.hisUserId;
- this.topqueryParams.managementDoctor = store.getters.name;
+ this.topqueryParams.managementDoctorCode = store.getters.hisUserId;
+
this.getList(1);
},
onthatday() {
@@ -1522,13 +1518,13 @@
if (res.code == 200) {
this.$message.success("璇勫垎淇濆瓨鎴愬姛");
this.scoreDialogVisible = false;
- this.selectedRows=[];
- this.$refs.userform.clearSelection()
+ this.selectedRows = [];
+ this.$refs.userform.clearSelection();
} else {
this.$modal.msgWarning("璇勫垎淇濆瓨澶辫触");
this.scoreDialogVisible = false;
- this.selectedRows=[];
- this.$refs.userform.clearSelection()
+ this.selectedRows = [];
+ this.$refs.userform.clearSelection();
}
});
// 杩欓噷鍙互娣诲姞淇濆瓨閫昏緫锛屽璋冪敤API淇濆瓨璇勫垎
@@ -1876,11 +1872,11 @@
}
}
::v-deep.leftvlue .el-card__body {
- background: #F2F8FF;
- color: #324A9B;
+ background: #f2f8ff;
+ color: #324a9b;
}
::v-deep.leftvlue .el-card__body:hover {
- background: #3664D9;
+ background: #3664d9;
color: #fff;
cursor: pointer; /* 榧犳爣鎮诞鏃跺彉涓烘墜褰� */
}
diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index 1f99c93..d67c424 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -87,7 +87,7 @@
<SortCheckbox
v-model="checkList"
:options="checkboxlist"
- :selectedOrder="selectedOrder"
+ :initialselectedOrder="selectedOrder"
value-key="value"
label-key="label"
@change="checkSelectionChange"
@@ -1686,8 +1686,8 @@
if (this.patientqueryParams.allhosp == 1) {
this.patientqueryParams.cry = 1;
} else if (this.patientqueryParams.allhosp == 4) {
- // this.patientqueryParams.cry = 0;
- // this.patientqueryParams.allhosp = "1";
+ // this.patientqueryParams.cry = 0;
+ // this.patientqueryParams.allhosp = "1";
}
// 鏉ユ簮鍒ゆ柇
@@ -1797,15 +1797,20 @@
},
getList() {},
handleQuery() {
- console.log("this.patientqueryParams.allhosp",this.patientqueryParams.allhosp);
+ console.log(
+ "this.patientqueryParams.allhosp",
+ this.patientqueryParams.allhosp
+ );
if (this.patientqueryParams.topica == 0) {
- this.patientqueryParams.leavehospitaldistrictcodes = store.getters.leavehospitaldistrictcodes;
+ this.patientqueryParams.leavehospitaldistrictcodes =
+ store.getters.leavehospitaldistrictcodes;
this.patientqueryParams.leaveldeptcodes = store.getters.leaveldeptcodes;
} else if (this.patientqueryParams.topica == 1) {
this.patientqueryParams.leavehospitaldistrictcodes = null;
this.patientqueryParams.leaveldeptcodes = store.getters.leaveldeptcodes;
} else if (this.patientqueryParams.topica == 2) {
- this.patientqueryParams.leavehospitaldistrictcodes = store.getters.leavehospitaldistrictcodes;
+ this.patientqueryParams.leavehospitaldistrictcodes =
+ store.getters.leavehospitaldistrictcodes;
this.patientqueryParams.leaveldeptcodes = null;
}
if (
@@ -1819,8 +1824,11 @@
)
this.patientqueryParams.leaveldeptcodes = null;
this.handleAddpatient();
-
- console.log("this.patientqueryParams.allhosp",this.patientqueryParams.allhosp);
+
+ console.log(
+ "this.patientqueryParams.allhosp",
+ this.patientqueryParams.allhosp
+ );
},
resetQuerymb() {
diff --git a/vue.config.js b/vue.config.js
index fb7bf89..f1a809f 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -37,8 +37,8 @@
[process.env.VUE_APP_BASE_API]: {
// target: `https://www.health-y.cn/lssf`,
// target: `http://192.168.100.129:8095`,
- target: `http://192.168.100.10:8096`,
- // target:`http://localhost:8095`,
+ // target: `http://192.168.100.10:8096`,
+ target:`http://localhost:8095`,
// target:`http://35z1t16164.qicp.vip`,
// target: `http://192.168.100.193:8095`,
// target: `http://192.168.101.166:8093`,
--
Gitblit v1.9.3