diff --git a/.env.development b/.env.development
index 23dd6f3..61332c1 100644
--- a/.env.development
+++ b/.env.development
@@ -1,4 +1,5 @@
# VITE_API_BASE_URL = http://112.29.103.165:1616
-VITE_API_BASE_URL = /api
-# VITE_API_BASE_URL = http://192.168.0.14:1999/hd-real-name
+# VITE_API_BASE_URL = /api
+VITE_API_BASE_URL = http://192.168.0.14:1999/hd-real-name
+# VITE_API_BASE_URL = http://192.168.0.234:38080/hd-real-name
# VITE_API_BASE_URL = http://192.168.0.234:38080
diff --git a/src/components/ContractForm/index.vue b/src/components/ContractForm/index.vue
index c484fd7..6728e55 100644
--- a/src/components/ContractForm/index.vue
+++ b/src/components/ContractForm/index.vue
@@ -30,7 +30,7 @@
clearable
border="none"
placeholder="请输入合同编号"
- :disabled="isEditContractStatus"
+ :disabled="isEditContractStatus && contractInfoForm.contractCode"
v-model="contractInfoForm.contractCode"
/>
@@ -148,7 +148,8 @@
diff --git a/src/pages/attendance/index.vue b/src/pages/attendance/index.vue
index c358a54..387fde1 100644
--- a/src/pages/attendance/index.vue
+++ b/src/pages/attendance/index.vue
@@ -106,7 +106,11 @@ const onAttendanceHandle = () => {
url: '/bmw/appRecognition/getFaceRecognition',
files: files,
name: 'file',
- formData: {},
+ formData: {
+ params: JSON.stringify({
+ proId: commonStore?.activeProjectId,
+ }),
+ },
isUploadFile: true,
success: (res) => {
console.log('res人脸识别结果--', res)
@@ -134,12 +138,21 @@ const onAttendanceHandle = () => {
checkIntegrity,
},
success: (res) => {
+ console.log(
+ 'res打卡结果--',
+ res.data,
+ typeof res.data,
+ encryptResponse,
+ JSON.parse(res.data),
+ )
let result = null
- if (encryptResponse) {
+ if (encryptResponse && import.meta.env.MODE !== 'development') {
result = JSON.parse(decryptWithSM4(res.data))
} else {
result = JSON.parse(res.data)
}
+
+ console.log('result--', result)
if (result.code === 200) {
uni.$u.toast('打卡成功')
} else {
diff --git a/src/pages/home/child-pages/all-project/index.vue b/src/pages/home/child-pages/all-project/index.vue
index bae0920..89b6281 100644
--- a/src/pages/home/child-pages/all-project/index.vue
+++ b/src/pages/home/child-pages/all-project/index.vue
@@ -15,7 +15,8 @@
placeholder="输入工程名称"
>
-
+
+
@@ -63,6 +64,7 @@ import { useCommonStore } from '@/stores'
import Empty from '@/static/image/Empty.png'
import NavBarModal from '@/components/NavBarModal/index.vue'
+import searchIcon from '@/static/image/home/search.png'
const inputRef = ref(null) // 输入框
const allProjectList = ref([]) // 总工程列表
diff --git a/src/pages/home/child-pages/lot-project/index.vue b/src/pages/home/child-pages/lot-project/index.vue
index f0728df..a6957e1 100644
--- a/src/pages/home/child-pages/lot-project/index.vue
+++ b/src/pages/home/child-pages/lot-project/index.vue
@@ -16,7 +16,8 @@
placeholder="输入工程名称"
>
-
+
+
-
+
条件筛选
@@ -190,6 +191,7 @@ import {
import { onLoad } from '@dcloudio/uni-app'
import Empty from '@/static/image/Empty.png'
import NavBarModal from '@/components/NavBarModal/index.vue'
+import searchIcon from '@/static/image/home/search.png'
const { safeAreaInsets } = uni.getSystemInfoSync()
diff --git a/src/pages/home/child-pages/personInfo/index.vue b/src/pages/home/child-pages/personInfo/index.vue
index e1d94f7..bfa2544 100644
--- a/src/pages/home/child-pages/personInfo/index.vue
+++ b/src/pages/home/child-pages/personInfo/index.vue
@@ -134,7 +134,7 @@
-
+
条件筛选
diff --git a/src/pages/home/child-pages/useTeam/index.vue b/src/pages/home/child-pages/useTeam/index.vue
index 8ed0788..44492c6 100644
--- a/src/pages/home/child-pages/useTeam/index.vue
+++ b/src/pages/home/child-pages/useTeam/index.vue
@@ -16,11 +16,43 @@
placeholder="输入班组名称"
>
-
+
+
- 已查询 {{ total }} 条数据
+
+
+
+
+
+
+
+
+ 已查询 {{ total }} 条数据
+
+
+
@@ -81,13 +113,16 @@ import { getHomeIndexUseTeamMsgAPI } from '@/services/home-index.js'
import { onLoad } from '@dcloudio/uni-app'
import Empty from '@/static/image/Empty.png'
import NavBarModal from '@/components/NavBarModal/index.vue'
+import searchIcon from '@/static/image/home/search.png'
+import openIcon from '@/static/image/home/open.png'
+import closeIcon from '@/static/image/home/close.png'
const { safeAreaInsets } = uni.getSystemInfoSync()
const inputRef = ref(null) // 输入框
const projectList = ref([]) // 班组列表
const total = ref(0) // 总条数
const isLoading = ref(false) // 加载状态
const commonPath = '/pages/home/child-pages/'
-
+const isAdvancedOpen = ref(false) // 是否展开高级筛选
// 查询参数
const queryParams = ref({
pageNum: 1,
@@ -95,6 +130,10 @@ const queryParams = ref({
proId: '', //标段工程ID
subId: '', //分包工程ID
teamName: '', //班组名称
+ subCompanyName: '', //分公司名称
+ proName: '', //工程名称
+ subName: '', //分包名称
+ mainProId: '', //总工程ID
})
// 工程信息行列表
@@ -128,6 +167,7 @@ const rowList = ref([
label: '黄灯',
value: 'yellowNum',
class: 'orange',
+ path: `${commonPath}personInfo/index`,
},
],
},
@@ -140,6 +180,10 @@ const onSearchName = () => {
getAllProjectListFun()
}
+const toggleAdvanced = () => {
+ isAdvancedOpen.value = !isAdvancedOpen.value
+}
+
// 获取工程列表数据
const getAllProjectListFun = async (isRefresh = false) => {
const params = {}
@@ -149,6 +193,8 @@ const getAllProjectListFun = async (isRefresh = false) => {
params[key] = queryParams.value[key]
}
})
+
+ console.log('params--**----params', params)
isLoading.value = true
try {
const res = await getHomeIndexUseTeamMsgAPI(params)
@@ -181,23 +227,26 @@ const hasMore = computed(() => {
// 跳转页面
const onInfoGroupTap = (url, label) => {
+ let path = url
if (label === '绿灯') {
- url += `&lightStatus=2`
+ path += `&lightStatus=2`
}
if (label === '黄灯') {
- url += `&lightStatus=1`
+ console.log('path--**----path', path)
+ path += `&lightStatus=1`
}
if (label === '今日考勤人数') {
- url += `&isAtt=1`
+ path += `&isAtt=1`
}
uni.navigateTo({
- url,
+ url: path,
})
}
onLoad((options) => {
queryParams.value.proId = options?.proId
queryParams.value.subId = options?.subId
+ queryParams.value.mainProId = options?.mainProId
getAllProjectListFun()
})
@@ -241,10 +290,20 @@ const onHandleHome = () => {
}
}
+ .advanced-search {
+ margin-top: 20rpx;
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: 20rpx;
+ }
+
.data-summary {
margin-top: 20rpx;
font-size: 24rpx;
color: #4ca4fe;
+ display: flex;
+ align-items: center;
+ gap: 20rpx;
}
}
diff --git a/src/pages/machine-setting/components/bindSetting.vue b/src/pages/machine-setting/components/bindSetting.vue
index 7236d11..6e9b0a6 100644
--- a/src/pages/machine-setting/components/bindSetting.vue
+++ b/src/pages/machine-setting/components/bindSetting.vue
@@ -17,6 +17,10 @@
考勤机名称
{{ machineInfo.deviceName }}
+
+ 出场编号
+ {{ machineInfo.serialNumber }}
+
@@ -81,6 +85,7 @@
diff --git a/src/pages/select-project/index.vue b/src/pages/select-project/index.vue
index 6af81e9..af8ceb0 100644
--- a/src/pages/select-project/index.vue
+++ b/src/pages/select-project/index.vue
@@ -141,9 +141,9 @@ onMounted(() => {
.switch-project-content {
width: 86vw;
- max-width: 600rpx;
+ // max-width: 600rpx;
height: 80vh;
- max-height: 900rpx;
+ // max-height: 900rpx;
border-radius: 24rpx;
box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.15);
padding: 40rpx 30rpx;
diff --git a/src/pages/shProjectDetails/child-pages/addProject.vue b/src/pages/shProjectDetails/child-pages/addProject.vue
index 80de276..4d107e6 100644
--- a/src/pages/shProjectDetails/child-pages/addProject.vue
+++ b/src/pages/shProjectDetails/child-pages/addProject.vue
@@ -419,6 +419,9 @@ const onHandleSubmitAndContinue = async () => {
// 提交数据
const submitData = async (isContinue) => {
try {
+ const params = {
+ ...formData.value,
+ }
// 表单验证
const valid = await formRef.value.validate()
if (!valid) {
@@ -426,14 +429,12 @@ const submitData = async (isContinue) => {
}
const res = await personContractFormRef.value.validateContractForm()
if (res.isValid) {
- console.log(res, 'res校验通过')
- return
+ params.bmWorkerContract = res.data
}
- console.log(res, 'res校验失败')
showLoading.value = true
// TODO: 这里需要调用实际的API提交数据
- const result = await addShProjectEntryAPI(formData.value)
+ const result = await addShProjectEntryAPI(params)
showLoading.value = false
if (result.code === 200) {
diff --git a/src/services/common.js b/src/services/common.js
index 619969f..f3ff19c 100644
--- a/src/services/common.js
+++ b/src/services/common.js
@@ -90,6 +90,19 @@ export const getVoltageLevelSelectListAPI = () => {
})
}
+// 获取字典数据最低工资标准
+export const getMinimumWageStandardSelectListAPI = () => {
+ return http({
+ url: '/system/dict/data/list',
+ method: 'GET',
+ data: {
+ dictType: 'salary',
+ pageNum: 1,
+ pageSize: 100,
+ },
+ })
+}
+
// 获取分公司下拉选
export const getSubCompanySelectListAPI = () => {
return http({
diff --git a/src/services/machine-setting.js b/src/services/machine-setting.js
index 9596371..0ade9c1 100644
--- a/src/services/machine-setting.js
+++ b/src/services/machine-setting.js
@@ -4,7 +4,7 @@ import { http } from '@/utils/http'
export const getMachineListAPI = (data) => {
return http({
method: 'GET',
- url: `bmw/pmAttDevice/list`,
+ url: `/bmw/pmAttDevice/list`,
data,
})
}
@@ -29,7 +29,7 @@ export const confirmBindPmAttDeviceAPI = (data) => {
export const getSubcontractorListAPI = (data) => {
return http({
method: 'GET',
- url: 'bmw/pmSub/getSublistByProId',
+ url: '/bmw/pmSub/getSublistByProId',
data,
})
}
diff --git a/src/services/person-entry.js b/src/services/person-entry.js
index ee0050f..5173534 100644
--- a/src/services/person-entry.js
+++ b/src/services/person-entry.js
@@ -13,19 +13,17 @@ export const getPersonListAPI = (data) => {
export const getPersonInfoByIdAPI = (data) => {
return http({
method: 'POST',
- url: `/bmw/worker/select/${data?.id}/${data.proId}`,
+ url: `/bmw/worker/select`,
data,
})
}
// 更新人员红绿灯状态
-export const updatePersonLightStatusApi = (id) => {
+export const updatePersonLightStatusApi = (data) => {
return http({
- url: `/bmw/workerWageCard/light/${id}`,
+ url: `/bmw/workerWageCard/light`,
method: 'POST',
- data: {
- id,
- },
+ data,
})
}
diff --git a/src/services/shProjectSetting.js b/src/services/shProjectSetting.js
index 9e15123..c4ec186 100644
--- a/src/services/shProjectSetting.js
+++ b/src/services/shProjectSetting.js
@@ -22,7 +22,8 @@ export const getShProjectListByWorkerIdAPI = (data) => {
export const addShProjectEntryAPI = (data) => {
return http({
method: 'POST',
- url: `/bmw/worker/insertProEin`,
+ // url: `/bmw/worker/insertProEin`,
+ url: `/bmw/app/appInsertProEin`,
data,
})
}
diff --git a/src/stores/modules/common.js b/src/stores/modules/common.js
index 9297fdd..98422d3 100644
--- a/src/stores/modules/common.js
+++ b/src/stores/modules/common.js
@@ -12,6 +12,7 @@ export const useCommonStore = defineStore(
const voltageLevelList = ref([]) // 电压等级列表
const subCompanyList = ref([]) // 分公司列表
const postTypeList = ref([]) // 工种列表
+ const minSalaryTotal = ref(0) // 最低工资标准
const requestConfig = ref({
encryptRequest: false,
checkIntegrity: false,
@@ -69,6 +70,11 @@ export const useCommonStore = defineStore(
postTypeList.value = list
}
+ // 设置最低工资标准
+ const setMinSalaryTotal = (total) => {
+ minSalaryTotal.value = total
+ }
+
return {
activeProjectId,
activeProjectName,
@@ -78,6 +84,7 @@ export const useCommonStore = defineStore(
voltageLevelList,
subCompanyList,
postTypeList,
+ minSalaryTotal,
setActiveProjectIdAndName,
clearActiveProjectIdAndName,
setRequestConfig,
@@ -87,6 +94,7 @@ export const useCommonStore = defineStore(
setVoltageLevelList,
setSubCompanyList,
setPostTypeList,
+ setMinSalaryTotal,
}
},
diff --git a/src/utils/common.js b/src/utils/common.js
index 22169be..2f6bd4f 100644
--- a/src/utils/common.js
+++ b/src/utils/common.js
@@ -4,6 +4,7 @@ import {
getVoltageLevelSelectListAPI,
getSubCompanySelectListAPI,
getPostTypeListAPI,
+ getMinimumWageStandardSelectListAPI,
} from '@/services/common'
import { useCommonStore } from '@/stores'
@@ -61,3 +62,14 @@ export const getPostTypeList = async () => {
commonStore.setPostTypeList(res?.rows)
return res?.rows
}
+
+// 获取最低工资标准下拉列表
+export const getMinimumWageStandardSelectList = async () => {
+ const commonStore = useCommonStore()
+ if (commonStore.minSalaryTotal > 0) {
+ return commonStore.minSalaryTotal
+ }
+ const res = await getMinimumWageStandardSelectListAPI()
+ commonStore.minSalaryTotal = res.rows.find((item) => item.dictLabel == 'min')?.dictValue * 1
+ return commonStore.minSalaryTotal
+}
diff --git a/src/utils/http.js b/src/utils/http.js
index 9ecca95..3228f4c 100644
--- a/src/utils/http.js
+++ b/src/utils/http.js
@@ -82,6 +82,8 @@ const httpInterceptor = {
options.data = {}
options.url = url
+
+ console.log('url--**----请求url', url)
}
}
}
@@ -112,6 +114,8 @@ export const http = (options) => {
res.data = JSON.parse(decryptWithSM4(res.data))
}
+ console.log('res--**----返回数据', res)
+
// 1. 判断是否请求成功
if (res.statusCode >= 200 && res.statusCode < 300) {
if (res.data) {
diff --git a/vite.config.js b/vite.config.js
index 4d78d89..1875813 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -11,7 +11,7 @@ export default defineConfig({
// target: 'http://112.29.103.165:1616', // 测试环境
// target: 'http://192.168.0.133:58080', // 梁超
target: 'http://192.168.0.14:1999/hd-real-name', // 测试环境
- // target: 'http://192.168.0.234:38080', // 方亮
+ // target: 'http://192.168.0.234:38080/hd-real-name', // 方亮
changeOrigin: true,
rewrite: (path) => {
return path.replace(/\/api/, '')