提交 62050bd8 authored 作者: lidongxu's avatar lidongxu

Merge branch 'user' into dev

...@@ -2,7 +2,6 @@ import request from '@/utils/request' ...@@ -2,7 +2,6 @@ import request from '@/utils/request'
// 查询物流轨迹 // 查询物流轨迹
export function getLogisticsListAPI(queryParams) { export function getLogisticsListAPI(queryParams) {
console.log(queryParams)
return request({ return request({
url: '/schedule/sent/query_p', // 不会走 token 校验后台 url: '/schedule/sent/query_p', // 不会走 token 校验后台
params: queryParams params: queryParams
......
...@@ -203,6 +203,15 @@ const getPageList = () => { ...@@ -203,6 +203,15 @@ const getPageList = () => {
const handleClick = () => { const handleClick = () => {
hideSideBar.value = !hideSideBar.value hideSideBar.value = !hideSideBar.value
} }
// 重置选中 key
const setCurrentKey = (key) => {
treeRef.value.setCurrentKey(key)
queryParams.searchKey = ''
}
defineExpose({
setCurrentKey
})
</script> </script>
<style scoped <style scoped
......
...@@ -14,7 +14,6 @@ export function useDict(...args) { ...@@ -14,7 +14,6 @@ export function useDict(...args) {
res.value[dictType] = dicts; res.value[dictType] = dicts;
} else { } else {
getDicts(dictType).then(resp => { getDicts(dictType).then(resp => {
console.log('字典数据', resp.data)
res.value[dictType] = resp.data.map(p => ({ label: p.dictLabel, value: p.dictValue, elTagType: p.listClass, elTagClass: p.cssClass })) res.value[dictType] = resp.data.map(p => ({ label: p.dictLabel, value: p.dictValue, elTagType: p.listClass, elTagClass: p.cssClass }))
useDictStore().setDict(dictType, res.value[dictType]); useDictStore().setDict(dictType, res.value[dictType]);
}) })
......
...@@ -18,7 +18,6 @@ if (route.fullPath.includes(reportViewURL.substring(1)) || route.fullPath.includ ...@@ -18,7 +18,6 @@ if (route.fullPath.includes(reportViewURL.substring(1)) || route.fullPath.includ
} else { } else {
openUrl += `?${queryStr}` openUrl += `?${queryStr}`
} }
console.log(openUrl)
</script> </script>
<style scoped <style scoped
......
...@@ -294,7 +294,6 @@ ...@@ -294,7 +294,6 @@
reportId: obj.id, reportId: obj.id,
pageSize: 100 pageSize: 100
}) })
console.log('查询到', res)
selUserList.value = res.data || [] selUserList.value = res.data || []
showSelUser.value = true showSelUser.value = true
if (obj.id) { if (obj.id) {
...@@ -341,8 +340,6 @@ ...@@ -341,8 +340,6 @@
selUserList.value.splice(index, 1) selUserList.value.splice(index, 1)
} }
} }
console.log(selUserList.value.map(o => o.userId), '当前')
} }
// 全选反选用户 // 全选反选用户
const handleSelectAll = (selection) => { const handleSelectAll = (selection) => {
...@@ -364,7 +361,6 @@ ...@@ -364,7 +361,6 @@
}) })
} }
console.log(selUserList.value, '当前')
} }
// 确定分配给用户 // 确定分配给用户
......
...@@ -297,7 +297,6 @@ const submitForm = async () => { ...@@ -297,7 +297,6 @@ const submitForm = async () => {
formData.fileList = [] formData.fileList = []
proxy.$refs.formRef.resetFields() proxy.$refs.formRef.resetFields()
} else { } else {
console.log('校验失败')
} }
}) })
} }
......
...@@ -176,7 +176,6 @@ async function loginByType(type, data) { ...@@ -176,7 +176,6 @@ async function loginByType(type, data) {
router.push({ path: redirect.value || "/", query: param2Obj(redirect.value) }); router.push({ path: redirect.value || "/", query: param2Obj(redirect.value) });
} }
}).catch((err) => { }).catch((err) => {
console.log(err)
accountPassLoading.value = false; accountPassLoading.value = false;
autoLoginLoading.value = false; autoLoginLoading.value = false;
}) })
......
...@@ -114,7 +114,6 @@ const supportedTypes = computed(() => { ...@@ -114,7 +114,6 @@ const supportedTypes = computed(() => {
if (getMobileType() === 'ios') { if (getMobileType() === 'ios') {
return 'image/*,video/*' return 'image/*,video/*'
} else { } else {
console.log('anzhuo2')
if (selectedMediaType.value === 'image') { if (selectedMediaType.value === 'image') {
return 'image/*' return 'image/*'
} else { } else {
...@@ -136,7 +135,6 @@ const customUploadClick = () => { ...@@ -136,7 +135,6 @@ const customUploadClick = () => {
}) })
} else { } else {
// 安卓设备:显示拍照/录像方式确认菜单 // 安卓设备:显示拍照/录像方式确认菜单
console.log('anzhuo1')
show.value = true show.value = true
} }
} }
......
...@@ -325,7 +325,6 @@ const handlePriceChange = async () => { ...@@ -325,7 +325,6 @@ const handlePriceChange = async () => {
} }
// 口味生产日期设置 // 口味生产日期设置
const handleTasteChange = async (index) => { const handleTasteChange = async (index) => {
console.log(selectedTypeObj.value)
const prop = typeMap[selectedTypeObj.value.label].tasteDateKey const prop = typeMap[selectedTypeObj.value.label].tasteDateKey
await createInspectionTaskDetailAPI({ await createInspectionTaskDetailAPI({
taskDetail: { taskDetail: {
......
...@@ -97,7 +97,6 @@ const finished = ref(true); ...@@ -97,7 +97,6 @@ const finished = ref(true);
const refreshLoading = ref(false) const refreshLoading = ref(false)
const getInspectionTaskListFn = async () => { const getInspectionTaskListFn = async () => {
const res = await getInspectionTaskListAPI(query) const res = await getInspectionTaskListAPI(query)
console.log(res, 'res')
resultList.value = [...resultList.value, ...res.data.rows] resultList.value = [...resultList.value, ...res.data.rows]
finished.value = res.data.total <= resultList.value.length finished.value = res.data.total <= resultList.value.length
} }
...@@ -154,13 +153,11 @@ const handleClickStore = (item) => { ...@@ -154,13 +153,11 @@ const handleClickStore = (item) => {
const search = () => { const search = () => {
query.pageNum = 1 query.pageNum = 1
resultList.value = [] resultList.value = []
console.log('zoulema')
getInspectionTaskListFn() getInspectionTaskListFn()
} }
// 删除任务 // 删除任务
const deleteFn = async (item, index) => { const deleteFn = async (item, index) => {
// console.log(item)
// await deleteInspectionTaskAPI({ // await deleteInspectionTaskAPI({
// rstdId: item.rstId // rstdId: item.rstId
// }) // })
......
...@@ -283,7 +283,6 @@ const errorTemWlSctMessage = ref('') ...@@ -283,7 +283,6 @@ const errorTemWlSctMessage = ref('')
const errorPrdClassMessage = ref('') const errorPrdClassMessage = ref('')
// 校验午休结束时间 // 校验午休结束时间
const validatorNoonInTime = (value, obj) => { const validatorNoonInTime = (value, obj) => {
console.log(form.noonOutTime.length > 0, '午休结束判断该')
if (form.noonOutTime.length > 0) { if (form.noonOutTime.length > 0) {
if (!value) { if (!value) {
errorNoonInTimeMessage.value = '请选择午休结束时间' errorNoonInTimeMessage.value = '请选择午休结束时间'
......
...@@ -106,7 +106,6 @@ const showSearch = ref(false) ...@@ -106,7 +106,6 @@ const showSearch = ref(false)
// 从新增页面跳转回来需要刷新列表 // 从新增页面跳转回来需要刷新列表
watch(() => route.path, (newPath, oldPath) => { watch(() => route.path, (newPath, oldPath) => {
if (oldPath.includes('/promotion_plan_editing') && newPath === '/promotion_plan') { if (oldPath.includes('/promotion_plan_editing') && newPath === '/promotion_plan') {
console.log('刷新页面?')
planSearch.value.resetFn() planSearch.value.resetFn()
} }
}); });
......
...@@ -1054,7 +1054,6 @@ ...@@ -1054,7 +1054,6 @@
// 关联的公式计算列,需要特殊处理 // 关联的公式计算列,需要特殊处理
for (const str of col.requestKey) { for (const str of col.requestKey) {
const obj = tableColumns.value.find(item => item.prop == str) const obj = tableColumns.value.find(item => item.prop == str)
console.log(obj, str, 'y')
if (obj.type === 'formula') { if (obj.type === 'formula') {
obj.func(row) obj.func(row)
} }
......
...@@ -762,7 +762,6 @@ ...@@ -762,7 +762,6 @@
// 关联的公式计算列,需要特殊处理 // 关联的公式计算列,需要特殊处理
for (const str of col.requestKey) { for (const str of col.requestKey) {
const obj = tableColumns.value.find(item => item.prop === str) const obj = tableColumns.value.find(item => item.prop === str)
console.log('obj', obj)
if (obj.type === 'formula') { if (obj.type === 'formula') {
obj.func(row) obj.func(row)
} }
......
...@@ -498,7 +498,6 @@ ...@@ -498,7 +498,6 @@
// 关联的公式计算列,需要特殊处理 // 关联的公式计算列,需要特殊处理
for (const str of col.requestKey) { for (const str of col.requestKey) {
const obj = tableColumns.value.find(item => item.prop === str) const obj = tableColumns.value.find(item => item.prop === str)
console.log('obj', obj)
if (obj.type === 'formula') { if (obj.type === 'formula') {
obj.func(row) obj.func(row)
} }
......
...@@ -254,7 +254,6 @@ const columns = ref([ ...@@ -254,7 +254,6 @@ const columns = ref([
// return 0 // return 0
// } // }
// })) // }))
// console.log(maxPhotos, 'maxphotos')
// // 计算需要的列数,每列最多2张图片 // // 计算需要的列数,每列最多2张图片
// const columns = Math.ceil(maxPhotos / 2) // const columns = Math.ceil(maxPhotos / 2)
// if (columns === 0) return 200 // if (columns === 0) return 200
...@@ -359,7 +358,6 @@ getLogisticsReceiptList() ...@@ -359,7 +358,6 @@ getLogisticsReceiptList()
// 查看物流轨迹 // 查看物流轨迹
const handleLogisticsTrack = (row) => { const handleLogisticsTrack = (row) => {
const obj = logisticsTrack.value.find(item => item.code.includes(row.transport * 1)) const obj = logisticsTrack.value.find(item => item.code.includes(row.transport * 1))
console.log(obj)
if (isExternal(obj?.url)) { if (isExternal(obj?.url)) {
window.open(obj.url + row[obj.dataKey], '_blank') window.open(obj.url + row[obj.dataKey], '_blank')
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论