diff --git a/src/main/resources/views/platform/zhgh/welfare/mine/index.html b/src/main/resources/views/platform/zhgh/welfare/mine/index.html
index 59ab51b..24e2799 100644
--- a/src/main/resources/views/platform/zhgh/welfare/mine/index.html
+++ b/src/main/resources/views/platform/zhgh/welfare/mine/index.html
@@ -17,6 +17,9 @@ layout("/layouts/platform.html"){
value-format="yyyy"
>
+
+ 重置
+
@@ -115,6 +118,10 @@ layout("/layouts/platform.html"){
"select-view": selectView
},
methods: {
+ resetSearch() {
+ this.pageForm.year = moment().format("YYYY")
+ this.doSearch()
+ },
async openView(row) {
this.$refs.selectViewRef.onOpen(row.id)
}
diff --git a/src/main/resources/views/platform/zhgh/welfare/projectMange/filterUser.js b/src/main/resources/views/platform/zhgh/welfare/projectMange/filterUser.js
index 075c477..117bc56 100644
--- a/src/main/resources/views/platform/zhgh/welfare/projectMange/filterUser.js
+++ b/src/main/resources/views/platform/zhgh/welfare/projectMange/filterUser.js
@@ -117,6 +117,9 @@ const filterUser = {
+
+ 重置
+
@@ -200,6 +203,11 @@ const filterUser = {
this.pageData()
},
+ resetSearch() {
+ this.resetPageForm()
+ this.doSearch()
+ },
+
resetPageForm() {
this.$set(this.pageForm, "userName", null)
this.$set(this.pageForm, "loginName", null)
diff --git a/src/main/resources/views/platform/zhgh/welfare/projectMange/index.html b/src/main/resources/views/platform/zhgh/welfare/projectMange/index.html
index 99ddf41..917ba85 100644
--- a/src/main/resources/views/platform/zhgh/welfare/projectMange/index.html
+++ b/src/main/resources/views/platform/zhgh/welfare/projectMange/index.html
@@ -21,6 +21,9 @@ layout("/layouts/platform.html"){
+
+ 重置
+
@@ -294,6 +297,11 @@ layout("/layouts/platform.html"){
}
},
methods: {
+ resetSearch() {
+ this.pageForm.year = moment().format("YYYY")
+ this.$set(this.pageForm, "name", null)
+ this.doSearch()
+ },
dropdownCommand(command) {
const { type, data } = command
if (type === "edit") {
diff --git a/src/main/resources/views/platform/zhgh/welfare/select/index.html b/src/main/resources/views/platform/zhgh/welfare/select/index.html
index a6cae45..e8d543a 100644
--- a/src/main/resources/views/platform/zhgh/welfare/select/index.html
+++ b/src/main/resources/views/platform/zhgh/welfare/select/index.html
@@ -22,6 +22,7 @@ layout("/layouts/platform.html"){
搜索
+ 重置
@@ -120,6 +121,10 @@ layout("/layouts/platform.html"){
"option-select": optionSelect
},
methods: {
+ resetSearch() {
+ this.$set(this.pageForm, "year", null)
+ this.doSearch()
+ },
go_back() {
this.doSearch()
this.$refs.guava.index()
diff --git a/src/main/resources/views/platform/zhgh/welfare/select/optionSelect.js b/src/main/resources/views/platform/zhgh/welfare/select/optionSelect.js
index 0eda10a..3443528 100644
--- a/src/main/resources/views/platform/zhgh/welfare/select/optionSelect.js
+++ b/src/main/resources/views/platform/zhgh/welfare/select/optionSelect.js
@@ -34,7 +34,7 @@ const optionSelect = {
节日信息
-
{{ projectInfo.festival }} · {{ projectInfo.year }}年
+
{{ projectInfo.year }}年
选择时间
@@ -48,10 +48,12 @@ const optionSelect = {
projectInfo.provideTimeEnd) }}
+
@@ -143,8 +145,15 @@ const optionSelect = {
联系信息
+
+
+ 学校自提
+ 邮寄
+
+ 超出江浙沪不包邮,超出部分自理,具体金额联系供应商。
+
-
+
@@ -158,10 +167,10 @@ const optionSelect = {
-
+
添加地址
-
+
-
+
0 && this.userSelection[0].receiveAddress) {
- this.contactForm.receiveAddress = this.userSelection[0].receiveAddress
+ const receiveAddress = this.userSelection[0].receiveAddress
+ this.deliveryMethod = receiveAddress === "学校自提" ? "pickup" : "mail"
+ this.contactForm.receiveAddress = this.deliveryMethod === "mail" ? receiveAddress : ""
// this.contactForm.userName = this.userSelection[0].userName;
// this.contactForm.mobile = this.userSelection[0].mobile;
this.$set(this.contactForm, "userName", this.userSelection[0].userName)
@@ -526,6 +539,10 @@ const optionSelect = {
// 执行提交
doSubmit() {
+ if (this.projectInfo.provideMode === 3 && !this.deliveryMethod) {
+ this.$message.warning("请选择领取方式")
+ return
+ }
// 验证手机号
this.$refs.contactForm.validate((valid) => {
if (!valid) {
@@ -547,7 +564,7 @@ const optionSelect = {
mobile: this.contactForm.mobile,
userName: this.contactForm.userName,
userSign: this.contactForm.userSign,
- receiveAddress: this.contactForm.receiveAddress
+ receiveAddress: this.deliveryMethod === "pickup" ? "学校自提" : this.contactForm.receiveAddress
}
]
}
@@ -560,7 +577,7 @@ const optionSelect = {
mobile: this.contactForm.mobile,
userName: this.contactForm.userName,
userSign: this.contactForm.userSign,
- receiveAddress: this.contactForm.receiveAddress
+ receiveAddress: this.deliveryMethod === "pickup" ? "学校自提" : this.contactForm.receiveAddress
}))
}
diff --git a/src/main/resources/views/platform/zhgh/welfare/selectionSituation/index.html b/src/main/resources/views/platform/zhgh/welfare/selectionSituation/index.html
index ede80cb..1e5c54e 100644
--- a/src/main/resources/views/platform/zhgh/welfare/selectionSituation/index.html
+++ b/src/main/resources/views/platform/zhgh/welfare/selectionSituation/index.html
@@ -69,6 +69,9 @@ layout("/layouts/platform.html"){
+
+ 重置
+
@@ -173,6 +176,18 @@ layout("/layouts/platform.html"){
}
},
methods: {
+ resetSearch() {
+ this.pageForm.year = new Date().getFullYear().toString()
+ this.$set(this.pageForm, "welfareOptionId", null)
+ this.$set(this.pageForm, "userName", null)
+ this.$set(this.pageForm, "loginName", null)
+ this.$set(this.pageForm, "unionId", null)
+ this.$set(this.pageForm, "aidFundMemberUserType", null)
+ this.$set(this.pageForm, "userAttribute", null)
+ this.$set(this.pageForm, "isSelect", null)
+ this.$set(this.pageForm, "unitIds", [])
+ this.getWelfareList()
+ },
// 获取福利列表
getWelfareList() {
this.$axios.post("/platform/welfare/common/list", { year: this.pageForm.year }).then((res) => {
diff --git a/src/main/resources/views/platform/zhgh/welfare/statistics/index.html b/src/main/resources/views/platform/zhgh/welfare/statistics/index.html
index 0208572..58314f2 100644
--- a/src/main/resources/views/platform/zhgh/welfare/statistics/index.html
+++ b/src/main/resources/views/platform/zhgh/welfare/statistics/index.html
@@ -28,6 +28,9 @@ layout("/layouts/platform.html"){
+
+ 重置
+
@@ -110,6 +113,13 @@ layout("/layouts/platform.html"){
}
},
methods: {
+ resetSearch() {
+ this.pageForm.year = new Date().getFullYear().toString()
+ const isBranchChairman = !this.$auth.hasRoleOr(["SYSADMIN", "SCHOOL_UNION_ADMIN", "SCHOOL_UNION_WELFARE_ADMIN"]) &&
+ this.$auth.hasRoleOr(["BRANCH_UNION_CHAIRMAN"])
+ this.$set(this.pageForm, "unionId", isBranchChairman ? this.$store.state.user.union.id : null)
+ this.getWelfareProjectList()
+ },
remindUnSelectedPlaceholder() {
this.$message.info("提醒未选择人员功能待开发")
},
diff --git a/src/main/resources/views/platform/zhgh/welfare/userChoose/chooseWelfare.js b/src/main/resources/views/platform/zhgh/welfare/userChoose/chooseWelfare.js
index 2288d5d..bb15677 100644
--- a/src/main/resources/views/platform/zhgh/welfare/userChoose/chooseWelfare.js
+++ b/src/main/resources/views/platform/zhgh/welfare/userChoose/chooseWelfare.js
@@ -112,7 +112,15 @@ let CHOOSE_WELFARE = {
-
+
+
领取方式
+
+ 学校自提
+ 邮寄
+
+
超出江浙沪不包邮,超出部分自理,具体金额联系供应商。
+
+
@@ -202,6 +210,7 @@ let CHOOSE_WELFARE = {
data() {
return {
projectInfo: {},
+ deliveryMethod: "",
addressOptions: [],
welfareProvideMode: [],
welfareSignMode: [],
@@ -295,6 +304,10 @@ let CHOOSE_WELFARE = {
}
},
doChoose() {
+ if (this.projectInfo.provideMode === 3 && !this.deliveryMethod) {
+ this.$message.warning("请选择领取方式")
+ return
+ }
this.$refs["addForm"].validate(async (valid) => {
if (valid) {
const {
@@ -309,7 +322,7 @@ let CHOOSE_WELFARE = {
return
}
}
- if (this.formData.receiveAddress == null || this.formData.receiveAddress === "") {
+ if (this.projectInfo.provideMode === 3 && this.deliveryMethod === "mail" && !this.formData.receiveAddress) {
this.$message.warning("请填写收货地址")
return
}
@@ -322,7 +335,7 @@ let CHOOSE_WELFARE = {
welfareId: this.projectInfo.id,
subjectId: v.subjectId,
selectOptionId: v.id,
- receiveAddress: this.formData.receiveAddress,
+ receiveAddress: this.deliveryMethod === "pickup" ? "学校自提" : this.formData.receiveAddress,
userSign: this.formData.userSign,
selectNum: v.selectNum
}
@@ -397,12 +410,19 @@ let CHOOSE_WELFARE = {
},
async openChoose(row) {
await this.getProjectInfo(row.id)
+ this.deliveryMethod = ""
+ this.$set(this.formData, "receiveAddress", null)
+ this.$set(this.formData, "addressId", null)
this.$set(this.formData, "userName", this.$store.state.user.username)
this.$set(this.formData, "tel", this.$store.state.user.mobile)
//如果已选择
if (row.isChoose > 0) {
- this.$set(this.formData, "receiveAddress", this.userSelection[0].receiveAddress)
+ const receiveAddress = this.userSelection[0].receiveAddress
+ if (this.projectInfo.provideMode === 3 && receiveAddress) {
+ this.deliveryMethod = receiveAddress === "学校自提" ? "pickup" : "mail"
+ }
+ this.$set(this.formData, "receiveAddress", this.deliveryMethod === "pickup" && !this.is_view ? null : receiveAddress)
this.$set(this.formData, "addressId", null)
this.$set(this.formData, "userSign", this.userSelection[0].userSign)
} else {
diff --git a/src/main/resources/views/platform/zhgh/welfare/userChoose/index.html b/src/main/resources/views/platform/zhgh/welfare/userChoose/index.html
index c561109..cce3010 100644
--- a/src/main/resources/views/platform/zhgh/welfare/userChoose/index.html
+++ b/src/main/resources/views/platform/zhgh/welfare/userChoose/index.html
@@ -22,6 +22,7 @@ layout("/layouts/platform.html"){
搜索
+ 重置
@@ -120,6 +121,10 @@ layout("/layouts/platform.html"){
"choose-welfare": CHOOSE_WELFARE
},
methods: {
+ resetSearch() {
+ this.$set(this.pageForm, "year", null)
+ this.doSearch()
+ },
go_back() {
this.doSearch()
this.$refs.guava.index()
diff --git a/src/main/resources/views/platform/zhgh/welfare/welfareUser/index.html b/src/main/resources/views/platform/zhgh/welfare/welfareUser/index.html
index 7047496..3a85369 100644
--- a/src/main/resources/views/platform/zhgh/welfare/welfareUser/index.html
+++ b/src/main/resources/views/platform/zhgh/welfare/welfareUser/index.html
@@ -138,6 +138,9 @@ layout("/layouts/platform.html"){
+
+ 重置
+
@@ -311,6 +314,22 @@ layout("/layouts/platform.html"){
}
},
methods: {
+ resetSearch() {
+ this.pageForm.year = new Date().getFullYear().toString()
+ this.$set(this.pageForm, "userName", null)
+ this.$set(this.pageForm, "loginName", null)
+ this.$set(this.pageForm, "sex", null)
+ this.$set(this.pageForm, "birthday", null)
+ this.$set(this.pageForm, "unionId", null)
+ this.$set(this.pageForm, "aidFundMemberUserType", null)
+ this.$set(this.pageForm, "birthMonths", [])
+ this.$set(this.pageForm, "unitIds", [])
+ this.$set(this.pageForm, "personTypes", [])
+ this.$set(this.pageForm, "userStates", [])
+ this.$set(this.pageForm, "userAttributes", [])
+ this.unitIdsChange([])
+ this.getWelfareList()
+ },
// 导出名单
openExport() {
this.$downLoad("/platform/welfare/list/mange/exportXlsx", {
@@ -432,6 +451,9 @@ layout("/layouts/platform.html"){
}
try {
const responses = await Promise.all(unitIds.map((unitId) => this.$axios.post("/platform/sys/unit/child", { pid: unitId })))
+ if (unitIds !== this.pageForm.unitIds) {
+ return
+ }
const failedResponse = responses.find((res) => res.code !== 0)
if (failedResponse) {
this.$message.error(failedResponse.msg || "三级单位查询失败")
diff --git a/src/main/resources/views/platform/zhghh5/welfare/select/index.html b/src/main/resources/views/platform/zhghh5/welfare/select/index.html
index 3812c97..4b1b6ff 100644
--- a/src/main/resources/views/platform/zhghh5/welfare/select/index.html
+++ b/src/main/resources/views/platform/zhghh5/welfare/select/index.html
@@ -498,6 +498,88 @@ layout("/layouts/platform_h5.html"){
font-size: 20px;
}
+ .welfare-delivery-options {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 10px;
+ margin: 0 14px;
+ }
+
+ .welfare-delivery-options .van-radio {
+ box-sizing: border-box;
+ min-height: 52px;
+ padding: 0 10px;
+ border: 1px solid #e4edf7;
+ border-radius: 10px;
+ background: #fbfdff;
+ }
+
+ .welfare-delivery-options .welfare-delivery-selected {
+ border-color: #1989fa;
+ background: #eef6ff;
+ }
+
+ .welfare-delivery-options .van-radio__label {
+ display: flex;
+ flex: 1;
+ align-items: center;
+ justify-content: space-between;
+ gap: 4px;
+ margin-left: 6px;
+ color: var(--text-primary);
+ font-size: 14px;
+ font-weight: 600;
+ white-space: nowrap;
+ }
+
+ .welfare-delivery-option-icon {
+ padding: 4px;
+ border-radius: 6px;
+ background: #eaf3ff;
+ color: #3987db;
+ font-size: 19px;
+ }
+
+ .welfare-delivery-note {
+ display: flex;
+ align-items: flex-start;
+ gap: 6px;
+ margin: 10px 14px 14px;
+ padding: 8px 10px;
+ border-radius: 8px;
+ background: #fff3e8;
+ color: #9c451c;
+ font-size: 13px;
+ line-height: 1.5;
+ }
+
+ .welfare-pickup-summary {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ margin: 0 14px 14px;
+ padding: 10px 12px;
+ border-radius: 10px;
+ background: #f0f6ff;
+ color: var(--text-primary);
+ }
+
+ .welfare-pickup-summary img {
+ flex: none;
+ }
+
+ .welfare-pickup-title {
+ font-size: 15px;
+ font-weight: 600;
+ }
+
+ .welfare-pickup-note {
+ margin-top: 4px;
+ color: #66758a;
+ font-size: 12px;
+ line-height: 1.5;
+ }
+
.confirm-address-select {
margin: 0 14px 8px;
padding: 13px 12px;
@@ -589,7 +671,7 @@ layout("/layouts/platform_h5.html"){
.welfare-list-summary strong {
margin-left: 8px;
- padding: 3px 8px;
+ padding: 1px 12px;
border-radius: 12px;
background: var(--primary-color);
color: #fff;
@@ -1302,12 +1384,14 @@ layout("/layouts/platform_h5.html"){
+
{{ projectInfo.isCheckBox === 'radio' ? '单选' : '多选' }}
最多{{ selectionLimit }}份
@@ -1429,7 +1513,7 @@ layout("/layouts/platform_h5.html"){
@@ -1449,15 +1533,47 @@ layout("/layouts/platform_h5.html"){
+
+
+
+
+ 学校自提
+
+
+
+ 邮寄
+
+
+
+
+
+ 超出江浙沪不包邮,超出部分自理,具体金额联系供应商。
+
+
-
+
+
+
+

+
+
+
+
-
@@ -1496,6 +1612,7 @@ layout("/layouts/platform_h5.html"){