From a4e3e68a44137e7c9b0f8a5093e1b81b8b086dd6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=91=A3=E5=93=B2=E5=A5=87?= <13840175730@139.com>
Date: Fri, 2 Aug 2024 09:09:02 +0800
Subject: [PATCH] =?UTF-8?q?1.=E4=BD=9C=E4=B8=9A=E8=AE=A1=E5=88=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 1 -
pnpm-lock.yaml | 11 ---
src/components/ProjectSelect/index.vue | 81 ++++++++++++++++++
src/main.js | 4 +-
src/permission.js | 2 +-
src/router/index.js | 10 +--
src/views/hbao/comps/Hgd.vue | 4 +-
src/views/jhzxgl/zyjh/comps/head.vue | 77 +++++------------
src/views/jhzxgl/zyjh/index.js | 15 +++-
src/views/jhzxgl/zyjh/index.vue | 109 ++++++++++++++++++++++---
src/views/sliao/index.vue | 40 ---------
11 files changed, 223 insertions(+), 131 deletions(-)
create mode 100644 src/components/ProjectSelect/index.vue
diff --git a/package.json b/package.json
index 7dac52d..e44eccb 100644
--- a/package.json
+++ b/package.json
@@ -69,7 +69,6 @@
"@vue/cli-plugin-eslint": "4.4.4",
"@vue/cli-plugin-unit-jest": "4.4.4",
"@vue/cli-service": "4.4.4",
- "@vue/composition-api": "^1.7.2",
"@vue/test-utils": "1.0.0-beta.29",
"autoprefixer": "9.5.1",
"babel-eslint": "10.1.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index fcc1b3b..435577f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -148,9 +148,6 @@ devDependencies:
'@vue/cli-service':
specifier: 4.4.4
version: 4.4.4(babel-core@7.0.0-bridge.0)(less-loader@5.0.0)(sass-loader@8.0.2)(vue-template-compiler@2.6.10)
- '@vue/composition-api':
- specifier: ^1.7.2
- version: 1.7.2(vue@2.6.10)
'@vue/test-utils':
specifier: 1.0.0-beta.29
version: 1.0.0-beta.29(vue-template-compiler@2.6.10)(vue@2.6.10)
@@ -2483,14 +2480,6 @@ packages:
- whiskers
dev: true
- /@vue/composition-api@1.7.2(vue@2.6.10):
- resolution: {integrity: sha512-M8jm9J/laYrYT02665HkZ5l2fWTK4dcVg3BsDHm/pfz+MjDYwX+9FUaZyGwEyXEDonQYRCo0H7aLgdklcIELjw==}
- peerDependencies:
- vue: '>= 2.5 < 2.7'
- dependencies:
- vue: 2.6.10
- dev: true
-
/@vue/preload-webpack-plugin@1.1.2(html-webpack-plugin@3.2.0)(webpack@4.46.0):
resolution: {integrity: sha512-LIZMuJk38pk9U9Ur4YzHjlIyMuxPlACdBIHH9/nGYVTsaGKOSnSuELiE8vS9wa+dJpIYspYUOqk+L1Q4pgHQHQ==}
engines: {node: '>=6.0.0'}
diff --git a/src/components/ProjectSelect/index.vue b/src/components/ProjectSelect/index.vue
new file mode 100644
index 0000000..8df683a
--- /dev/null
+++ b/src/components/ProjectSelect/index.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main.js b/src/main.js
index 7e2803f..164239a 100644
--- a/src/main.js
+++ b/src/main.js
@@ -89,8 +89,8 @@ import VueWorker from 'vue-worker' // Web worker插件
Vue.use(VueWorker)
//引入composition-api
-import VueCompositionAPI from '@vue/composition-api'
-Vue.use(VueCompositionAPI)
+// import VueCompositionAPI from '@vue/composition-api'
+// Vue.use(VueCompositionAPI)
// register global utility filters
Object.keys(filters).forEach(key => {
diff --git a/src/permission.js b/src/permission.js
index 860d610..cd162c1 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -8,7 +8,7 @@ import getPageTitle from '@/utils/get-page-title'
NProgress.configure({ showSpinner: false }) // NProgress Configuration
-const whiteList = ['/menu','/login', '/auth-redirect','/kban','/hbao','/sliao','/sczyjh','/zyjh'] // no redirect whitelist
+const whiteList = ['/menu','/login', '/auth-redirect','/kban','/hbao','/sliao','/sczyjh',] // no redirect whitelist
export function flatRoutes(routes) {
let ret = [];
routes.forEach(it => {
diff --git a/src/router/index.js b/src/router/index.js
index 89ab62c..214a5fe 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -43,11 +43,11 @@ export const constantRoutes = [
}
]
},
- {
- path: '/zyjh',
- component: () => import('@/views/jhzxgl/zyjh/index.vue'),
- hidden: true
- },
+ // {
+ // path: '/zyjh',
+ // component: () => import('@/views/jhzxgl/zyjh/index.vue'),
+ // hidden: true
+ // },
{
path: '/hbao',
component: () => import('@/views/hbao/index'),
diff --git a/src/views/hbao/comps/Hgd.vue b/src/views/hbao/comps/Hgd.vue
index 5694998..1bdbd83 100644
--- a/src/views/hbao/comps/Hgd.vue
+++ b/src/views/hbao/comps/Hgd.vue
@@ -47,7 +47,7 @@ export default {
this.layer.destroyChildren();
this.containerGroup=new Konva.Group({
- x:15,
+ x:0,
y:20,
})
this.layer.add(this.containerGroup)
@@ -502,7 +502,7 @@ export default {
imageObj.onload = function () {
const imgSize=118
const shape = new Konva.Image({
- x: 255,
+ x: 205,
y: 1,
width: imgSize,
height: imgSize,
diff --git a/src/views/jhzxgl/zyjh/comps/head.vue b/src/views/jhzxgl/zyjh/comps/head.vue
index 7a79217..d70a4c8 100644
--- a/src/views/jhzxgl/zyjh/comps/head.vue
+++ b/src/views/jhzxgl/zyjh/comps/head.vue
@@ -3,35 +3,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -54,59 +26,50 @@
-
+
+
+
+ 修正切割日期
+
+
+
查询
+ 保存
diff --git a/src/views/jhzxgl/zyjh/index.js b/src/views/jhzxgl/zyjh/index.js
index a217b4c..d0950f6 100644
--- a/src/views/jhzxgl/zyjh/index.js
+++ b/src/views/jhzxgl/zyjh/index.js
@@ -1,14 +1,23 @@
export default function () {
+ const activeRowMethod=({ row, rowIndex })=>{
+ console.log(row)
+ return true
+ }
const options={
- height:700,
+ height:780,
align:'center',
border: true,
resizable: true,
+ keepSource:true,
+ size:'mini',
showOverflow: true,
+ scrollY:{enable:true},
+ editConfig:{trigger: 'click', mode: 'row', showStatus: true,activeMethod: activeRowMethod},
data:[]
}
const columns = [
+ { type: 'checkbox', width: 40 },
{ type: 'seq',title:'序号', width: 60 },
{field: 'dcCh', title: '船号', width: 120},
{field: 'dcPl', title: '批量', width: 120},
@@ -23,6 +32,8 @@ export default function () {
{field: '', title: '大组需求期', width: 120},
{field: '', title: '上料计划日期', width: 120},
+ {field: '', title: '库存垛位', width: 120},
+ {field: '', title: '层数', width: 120},
{field: '', title: '预处理垛位', width: 120},
{field: '', title: '层数', width: 120},
{field: '', title: '派工人', width: 120},
@@ -60,7 +71,7 @@ export default function () {
{field: '', title: '借用跨位', width: 120},
{field: '', title: '借用套料图号', width: 120},
- {field: '', title: '切割计划日期', width: 120},
+ {field: 'qgjhrq', title: '切割计划日期', width: 120,editRender:{name:'$input',props:{type:'date',labelFormat:'yyyy/MM/dd',valueFormat:'yyyy/MM/dd'}}},
{field: '', title: '取自理料垛位', width: 120},
{field: '', title: '取自层数', width: 120},
{field: '', title: '派工人', width: 120},
diff --git a/src/views/jhzxgl/zyjh/index.vue b/src/views/jhzxgl/zyjh/index.vue
index 680d8f0..d431d75 100644
--- a/src/views/jhzxgl/zyjh/index.vue
+++ b/src/views/jhzxgl/zyjh/index.vue
@@ -1,23 +1,26 @@
-
+
-
-
-
+
+
+
+
+
+
+
diff --git a/src/views/sliao/index.vue b/src/views/sliao/index.vue
index caa0691..bad23d9 100644
--- a/src/views/sliao/index.vue
+++ b/src/views/sliao/index.vue
@@ -5,46 +5,6 @@