diff --git a/jsconfig.json b/jsconfig.json index 86b1741..288cafc 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -1,4 +1,3 @@ -/* 主要作用是vscode导入使用别名时可以自动化提示文件路径 */ { "compilerOptions": { "experimentalDecorators": true, diff --git a/package.json b/package.json index ffc8e62..384604f 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@vueuse/core": "^10.7.0", "@wangeditor/editor": "^5.1.1", "@wangeditor/editor-for-vue": "^5.1.11", + "@xpyjs/gantt": "^2.1.14", "axios": "^1.6.2", "crypto-js": "^4.1.1", "dayjs": "^1.11.13", @@ -27,6 +28,7 @@ "element-plus": "^2.8.5", "file-saver": "2.0.5", "fuse.js": "6.4.6", + "gantt-elastic": "^1.0.12", "highlight.js": "^11.5.1", "js-cookie": "3.0.1", "jsencrypt": "3.2.1", diff --git a/src/api/reportFlow/index.js b/src/api/reportFlow/index.js index f38ac81..72364e7 100644 --- a/src/api/reportFlow/index.js +++ b/src/api/reportFlow/index.js @@ -1,4 +1,14 @@ import request from '@/utils/request' + +// 获取工单列表 +export function GetWorkOrdersByDate(params) { + return request({ + url: '/mobile/reportflow/get_workorders_by_date', + method: 'get', + params + }) +} + // 获取工单信息 export function GetWorkOrderDetail(params) { return request({ diff --git a/src/main.js b/src/main.js index 46bef90..c9dbba2 100644 --- a/src/main.js +++ b/src/main.js @@ -33,6 +33,11 @@ const vuetify = createVuetify({ directives }) +/// ============= 甘特图 ================= +import Gantt from '@xpyjs/gantt' +import '@xpyjs/gantt/index.css' +/// ==================================== + import App from './App' import router from './router' import directive from './directive' // directive @@ -105,4 +110,4 @@ app.component('MyTable', MyTable) directive(app) vxetb(app) -app.use(pinia).use(router).use(plugins).use(ElementPlus, {}).use(elementIcons).use(vueI18n).use(vuetify).mount('#app') +app.use(pinia).use(router).use(plugins).use(ElementPlus, {}).use(elementIcons).use(vueI18n).use(vuetify).use(Gantt).mount('#app') diff --git a/src/views/productManagement/WorkGantt/components/gantt.vue b/src/views/productManagement/WorkGantt/components/gantt.vue new file mode 100644 index 0000000..3d21e23 --- /dev/null +++ b/src/views/productManagement/WorkGantt/components/gantt.vue @@ -0,0 +1,22 @@ + + + \ No newline at end of file diff --git a/src/views/productManagement/WorkGantt/index.vue b/src/views/productManagement/WorkGantt/index.vue new file mode 100644 index 0000000..1af92ca --- /dev/null +++ b/src/views/productManagement/WorkGantt/index.vue @@ -0,0 +1,104 @@ + + + + + + diff --git a/src/views/touchScreen/components/scanInput.vue b/src/views/touchScreen/components/scanInput.vue index 76de8ef..405cfb3 100644 --- a/src/views/touchScreen/components/scanInput.vue +++ b/src/views/touchScreen/components/scanInput.vue @@ -3,13 +3,18 @@ - + @@ -21,6 +26,7 @@ import { getCurrentInstance, onMounted, onUnmounted, ref } from 'vue' const { proxy } = getCurrentInstance() const inputRef = ref(null) +const passwordShow = ref(true) const input = ref('') // 自动重新聚焦 function autoInputFocus() { diff --git a/src/views/touchScreen/report/components/TheDayAllProcessRecord.vue b/src/views/touchScreen/report/components/TheDayAllProcessRecord.vue new file mode 100644 index 0000000..6456d51 --- /dev/null +++ b/src/views/touchScreen/report/components/TheDayAllProcessRecord.vue @@ -0,0 +1,64 @@ + + + + + diff --git a/src/views/touchScreen/report/components/ThePersonReportRecord.vue b/src/views/touchScreen/report/components/ThePersonReportRecord.vue new file mode 100644 index 0000000..5a9bab2 --- /dev/null +++ b/src/views/touchScreen/report/components/ThePersonReportRecord.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/src/views/touchScreen/report/components/TheWorkOrderList.vue b/src/views/touchScreen/report/components/TheWorkOrderList.vue new file mode 100644 index 0000000..bd585ea --- /dev/null +++ b/src/views/touchScreen/report/components/TheWorkOrderList.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/src/views/touchScreen/report/components/TheWorkOrderProcessRecord.vue b/src/views/touchScreen/report/components/TheWorkOrderProcessRecord.vue new file mode 100644 index 0000000..3020d16 --- /dev/null +++ b/src/views/touchScreen/report/components/TheWorkOrderProcessRecord.vue @@ -0,0 +1,53 @@ + + + + + diff --git a/src/views/touchScreen/report/index.vue b/src/views/touchScreen/report/index.vue index 602aedc..33296db 100644 --- a/src/views/touchScreen/report/index.vue +++ b/src/views/touchScreen/report/index.vue @@ -8,6 +8,7 @@ 此工单工序记录 此工序今日记录 员工报工记录 + 工单查看 @@ -33,57 +34,29 @@ - - - - - - - - + + - - 搜索 - - - - - - - - - - + + -
- - - -
- - - - - - - - - - + + +
+
+ + + + @@ -154,9 +127,15 @@