This commit is contained in:
cun-nan 2024-07-27 14:52:13 +08:00
parent e498bcec62
commit 21b339c49b
9 changed files with 65 additions and 38 deletions

View File

@ -47,3 +47,11 @@ export function saveStore(data) {
data: data data: data
}) })
} }
// 保存店铺
export function getStoreListByDeptId(deptId) {
return request({
url: 'backendApi/store/getStoreByDeptId/'+deptId,
method: 'get',
})
}

View File

@ -109,8 +109,7 @@ export default {
done(); done();
}) })
.catch(_ => {}); .catch(_ => {});
} },
},
prsswrod(){ prsswrod(){
console.log('方法') console.log('方法')
this.dialogVisible = false this.dialogVisible = false
@ -130,6 +129,7 @@ export default {
}) })
}).catch(() => {}); }).catch(() => {});
} }
},
} }
</script> </script>

View File

@ -4,6 +4,15 @@
<div class="bai-box" style="margin-top: 20px" > <div class="bai-box" style="margin-top: 20px" >
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="" prop="orderNo">
<el-input
v-model="queryParams.orderNo"
placeholder="请输入订单号"
clearable
style="width: 240px;"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="" prop="type"> <el-form-item label="" prop="type">
<el-select <el-select
v-model="queryParams.type" v-model="queryParams.type"
@ -20,15 +29,6 @@
</el-select> </el-select>
</el-form-item>
<el-form-item label="" prop="orderNo">
<el-input
v-model="queryParams.orderNo"
placeholder="请输入订单号"
clearable
style="width: 240px;"
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item label="" prop="payChannel"> <el-form-item label="" prop="payChannel">
<el-select <el-select
@ -83,47 +83,59 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table ref="tables" border v-loading="loading" :data="list" @selection-change="handleSelectionChange" :default-sort="defaultSort" @sort-change="handleSortChange"> <el-table ref="tables" border v-loading="loading" :data="list" @selection-change="handleSelectionChange" :default-sort="defaultSort" @sort-change="handleSortChange">
<el-table-column label="序号" align="center" type="index" />
<el-table-column label="订单号" align="center" prop="orderNo" /> <el-table-column label="订单号" align="center" prop="orderNo" />
<el-table-column label="订单类型" align="center" prop="type" width="100"> <el-table-column label="订单类型" align="center" prop="type" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ getType(scope.row.type) }} {{ getType(scope.row.type) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="渠道订单号" align="center" prop="transactionId"/>
<el-table-column :label="sumPayMoney" align="center" prop="payMoney"> <el-table-column :label="sumPayMoney" align="center" prop="payMoney">
</el-table-column> </el-table-column>
<el-table-column label="支付时间" align="center" prop="payTime" width="150"> <el-table-column label="支付方式" align="center" prop="payType">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.payTime) }}</span>
</template>
</el-table-column>
<el-table-column label="付款方式" align="center" prop="payType">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.payment_type" :value="scope.row.payType"/> <dict-tag :options="dict.type.payment_type" :value="scope.row.payType"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="订单类型" align="center" prop="createTime" width="150">
<el-table-column label="创建时间" align="center" prop="createTime" width="150">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column label="支付渠道" align="center" prop="createTime" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.payChannel==='applet'?'小程序': '收银台'}}</span> <span>{{ scope.row.payChannel==='applet'?'小程序': '收银台'}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="付款用户手机号" align="center" prop="userMobile" width="150"> <el-table-column label="付款用户/手机号" align="center" prop="userMobile" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.userMobile?scope.row.userMobile: '散户'}}</span> <span>{{ scope.row.userMobile?scope.row.userMobile: '散户'}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="支付通道" align="center" prop="userMobile" width="150">
<template slot-scope="scope">
<span>{{ scope.row.userMobile?scope.row.userMobile: '散户'}}</span>
</template>
</el-table-column>
<el-table-column label="商户号编号" align="center" prop="userMobile" width="150">
<template slot-scope="scope">
<span>{{ scope.row.userMobile?scope.row.userMobile: '散户'}}</span>
</template>
</el-table-column>
<el-table-column label="订单创建时间" align="center" prop="createTime" width="150">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) || '--'}}</span>
</template>
</el-table-column>
<el-table-column label="订单完成时间" align="center" prop="payTime" width="150">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.payTime) || '--'}}</span>
</template>
</el-table-column>
</el-table> </el-table>

View File

@ -53,7 +53,7 @@
<span>{{ scope.row.dutyName || "--" }}</span> <span>{{ scope.row.dutyName || "--" }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="登录账号" align="center" prop="mobile"/> <el-table-column label="登录账号" align="center" prop="accountName"/>
<el-table-column label="员工状态" align="center" width="80" prop="status"> <el-table-column label="员工状态" align="center" width="80" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
@ -138,7 +138,7 @@
<el-input v-model="form.accountName" placeholder="请输入登录账号" maxlength="30" style="width: 270px"/> <el-input v-model="form.accountName" placeholder="请输入登录账号" maxlength="30" style="width: 270px"/>
</el-form-item> </el-form-item>
<el-form-item label="登录密码" prop="password"> <el-form-item label="登录密码" prop="password" v-if="!form.id">
<el-input v-model="form.password" placeholder="请输入登录密码" type="password" maxlength="30" style="width: 270px"/> <el-input v-model="form.password" placeholder="请输入登录密码" type="password" maxlength="30" style="width: 270px"/>
</el-form-item> </el-form-item>
@ -216,7 +216,6 @@
import {getName} from "../../../utils/fuint"; import {getName} from "../../../utils/fuint";
import {addStaff, delStaff, getStaff, listStaff, updateStaff} from "../../../api/staff/staff"; import {addStaff, delStaff, getStaff, listStaff, updateStaff} from "../../../api/staff/staff";
import {dutyList} from "@/api/duty/duty"; import {dutyList} from "@/api/duty/duty";
import {searchStore} from "@/api/store";
import {getStoreListByDeptId} from "../../../api/store"; import {getStoreListByDeptId} from "../../../api/store";
// import {getDuty, listDuty} from "@/api/staff/duty"; // import {getDuty, listDuty} from "@/api/staff/duty";

View File

@ -41,4 +41,5 @@ public interface LJStaffMapper extends BaseMapper<LJStaff> {
List<Map<String,String>> employeeSales(@Param("storeId") Integer storeId); List<Map<String,String>> employeeSales(@Param("storeId") Integer storeId);
List<Map<String,String>> employeeSalesMongth(@Param("storeId") Integer storeId); List<Map<String,String>> employeeSalesMongth(@Param("storeId") Integer storeId);
LJStaff selectStaffById(@Param("id") Integer id);
} }

View File

@ -6,8 +6,9 @@
</sql> </sql>
<!--根据条件分页查询用户信息--> <!--根据条件分页查询用户信息-->
<select id="selectLJStaffList" resultType="com.fuint.business.member.entity.LJStaff"> <select id="selectLJStaffList" resultType="com.fuint.business.member.entity.LJStaff">
SELECT ms.*,td.duty_name FROM mt_staff ms SELECT ms.*,td.duty_name,ta.account_name FROM mt_staff ms
left join t_duty td on ms.role_id = td.duty_id left join t_duty td on ms.role_id = td.duty_id
LEFT JOIN t_account ta on ms.id = ta.staff_id
<where> <where>
ms.store_id = #{staff.storeId} and ms.if_delete = 0 ms.store_id = #{staff.storeId} and ms.if_delete = 0
<if test="staff.realName != null and staff.realName != ''"> <if test="staff.realName != null and staff.realName != ''">
@ -104,4 +105,9 @@
ORDER BY ORDER BY
totalSum DESC totalSum DESC
</select> </select>
<select id="selectStaffById" resultType="com.fuint.business.member.entity.LJStaff">
SELECT ms.*,ta.account_name FROM mt_staff ms
LEFT JOIN t_account ta on ms.id = ta.staff_id
where ms.id = #{id}
</select>
</mapper> </mapper>

View File

@ -47,7 +47,7 @@ public interface ILJStaffService extends IService<LJStaff> {
* @param id * @param id
* @return * @return
*/ */
public LJStaff selectStaffById(int id); public LJStaff selectStaffById(Integer id);
/** /**
* 根据手机号查询员工信息 * 根据手机号查询员工信息

View File

@ -142,11 +142,12 @@ public class LJStaffServiceImpl extends ServiceImpl<LJStaffMapper, LJStaff> impl
* @return * @return
*/ */
@Override @Override
public LJStaff selectStaffById(int id) { public LJStaff selectStaffById(Integer id) {
QueryWrapper queryWrapper = new QueryWrapper<>(); // QueryWrapper queryWrapper = new QueryWrapper<>();
queryWrapper.eq("id",id); // queryWrapper.eq("id",id);
queryWrapper.eq("if_delete","0"); // queryWrapper.eq("if_delete","0");
return baseMapper.selectOne(queryWrapper); // return baseMapper.selectOne(queryWrapper);
return baseMapper.selectStaffById(id);
} }
/** /**

View File

@ -339,7 +339,7 @@ public class LJStoreServiceImpl extends ServiceImpl<LJStoreMapper, LJStore> impl
LocalDate currentDate = LocalDate.now(); LocalDate currentDate = LocalDate.now();
long daysBetween = ChronoUnit.DAYS.between(givenDate, currentDate); long daysBetween = ChronoUnit.DAYS.between(givenDate, currentDate);
record.setRemind("免费使用系统"+daysBetween+""); record.setRemind("免费使用系统"+daysBetween+"");
} else if (ObjectUtil.isNotEmpty(record.getTurnoverType()) && record.getTurnoverType().equals("2")) { } else if (ObjectUtil.isNotEmpty(record.getTurnoverType()) && record.getTurnoverType().equals("2")) {
// 时间限制 // 时间限制
LocalDate givenDate = record.getTurnoverEndTime().toInstant() LocalDate givenDate = record.getTurnoverEndTime().toInstant()