Compare commits

32 Commits

Author SHA1 Message Date
ebef126a9e Merge pull request 'zjl' (#30) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #30
2023-08-11 16:03:06 +08:00
2304fe94ae Merge pull request 'zjl' (#29) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #29
2023-07-19 15:47:03 +08:00
8ceb47038d Merge pull request '工单进度' (#28) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #28
2023-07-05 16:46:16 +08:00
ea9fad130c Merge pull request '7.4修改bug' (#27) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #27
2023-07-04 09:26:12 +08:00
4956f4e0cd Merge pull request 'zjl' (#26) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #26
2023-06-30 14:01:45 +08:00
42ce5fb67c Merge pull request '6.28' (#25) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #25
2023-06-28 17:06:15 +08:00
b054cd476a Merge pull request '报表样式修改' (#24) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #24
2023-06-26 16:04:13 +08:00
dc4e1fd389 Merge pull request 'zjl' (#23) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #23
2023-06-16 16:25:06 +08:00
6d64016d57 Merge pull request '增加报表管理模块' (#22) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #22
2023-05-30 09:05:20 +08:00
1e06c04ddd Merge pull request '5.25' (#21) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #21
2023-05-25 15:16:56 +08:00
37188fe760 Merge pull request '5.24' (#20) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #20
2023-05-24 10:37:31 +08:00
dead1e5a40 Merge pull request '5.22' (#19) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #19
2023-05-22 14:21:50 +08:00
9c6bf70008 Merge pull request '5.18' (#18) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #18
2023-05-18 11:14:36 +08:00
194b2f0e0d Merge pull request '修bug' (#17) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #17
2023-05-16 16:14:28 +08:00
34d7b8682d Merge pull request '修改bug' (#16) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #16
2023-05-15 17:25:59 +08:00
6f8f692852 Merge pull request 'zjl' (#15) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #15
2023-05-04 16:20:39 +08:00
c75999ea93 Merge pull request '报表模块小问题' (#14) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #14
2023-03-23 15:50:36 +08:00
76b88ed75a Merge pull request '报表模块' (#13) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #13
2023-03-23 15:40:58 +08:00
a7b39f3ce1 Merge pull request 'fix: 🐛 修正构建脚本' (#12) from cicd into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #12
2023-03-14 14:39:39 +08:00
8dc73bd098 fix: 🐛 修正构建脚本 2023-03-14 14:38:01 +08:00
523a9d9767 Merge pull request 'zjl' (#11) from zjl into master
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #11
2023-03-14 14:15:38 +08:00
4aad193bb0 Merge pull request '工艺&设备' (#10) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #10
2023-02-23 16:56:56 +08:00
64f4251159 Merge pull request '上传dist文件' (#9) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #9
2023-02-22 13:59:57 +08:00
8810012a03 Merge pull request 'zjl' (#8) from zjl into master
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #8
2023-02-22 11:06:10 +08:00
c74f27cbf3 Merge pull request '构建失败,修改package-lock.json' (#7) from zjl into master
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #7
2023-02-22 09:24:37 +08:00
a9c6dfeb0b Merge pull request '修bug&更改散点图样式' (#6) from zjl into master
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #6
2023-02-21 16:36:44 +08:00
d775dc7371 Merge pull request '修复bug' (#5) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #5
2023-02-14 15:35:34 +08:00
d3de840af1 Merge pull request '颗粒折线图' (#4) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #4
2023-02-14 11:03:07 +08:00
6237b3a8f3 Merge pull request 'zjl' (#3) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #3
2023-02-13 17:25:34 +08:00
df8c022982 Merge pull request '基础报表管理样式' (#2) from zjl into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #2
2023-02-08 17:23:35 +08:00
781877fca5 Merge pull request 'feat: 👷 添加自动构建功能' (#1) from cicd4tftfe into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #1
2023-02-08 08:56:40 +08:00
be198b6046 feat: 👷 添加自动构建功能 2023-02-08 08:54:17 +08:00
19 changed files with 111 additions and 144 deletions

7
.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
.vscode/
.idea/
node_modules/
**/*.log
LICENSE
README.md
README.en.md

41
.drone.yml Normal file
View File

@@ -0,0 +1,41 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: docker:dind
volumes:
- name: dockersock
path: /var/run/docker.sock
- name: dockerconfig
path: /root/.docker
commands:
- docker build -t harbor.picaiba.com/kszny/mes-ui:1.0.0-tft ./ && docker push harbor.picaiba.com/kszny/mes-ui:1.0.0-tft
- name: deploy
image: harbor.picaiba.com/tools/kubectl:1.19.8
commands:
- echo "172.27.0.20 lb.kubesphere.local" >> /etc/hosts
#- echo "52.74.223.119 github.com" >> /etc/hosts
- sleep 1
- kubectl scale --replicas=0 deployment/mes-ui -n mes-tft
- sleep 3
- kubectl scale --replicas=1 deployment/mes-ui -n mes-tft
depends_on:
- build
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
- name: dockerconfig
host:
path: /root/.docker
trigger:
branch:
- master
event:
- push

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
#FROM node:12 AS builder
#WORKDIR /app
#ADD package.json /app/
#RUN npm config set registry https://registry.npmmirror.com && npm install
#ADD . /app
#RUN npm run build
#
#FROM busybox
#LABEL maintainer thomas.hairong@gmail.com
#COPY --from=builder /app/dist /html
FROM busybox
LABEL maintainer thomas.hairong@gmail.com
COPY dist/ /html

2
dist/index.html vendored
View File

@@ -1 +1 @@
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>tft-mes</title><script defer="defer" src="/js/chunk-vendors.60a1a666.js"></script><script defer="defer" src="/js/app.7970aba0.js"></script><link href="/css/chunk-vendors.330963ff.css" rel="stylesheet"><link href="/css/app.82c5423c.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but tft-mes doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>tft-mes</title><script defer="defer" src="/js/chunk-vendors.60a1a666.js"></script><script defer="defer" src="/js/app.41e2ca26.js"></script><link href="/css/chunk-vendors.330963ff.css" rel="stylesheet"><link href="/css/app.82c5423c.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but tft-mes doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/4954.5ae1ce52.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/8674.7395549d.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/app.41e2ca26.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -127,14 +127,6 @@ export function unloadPalletUpdate(data) {
})
}
export function unloadPalletDelete(data) {
return request({
url: '/order/unloadPallet/delete',
method: 'post',
data
})
}
// 验证玻璃架id
export function unloadPalletVerify(data) {
return request({

View File

@@ -120,6 +120,15 @@ export const routes = [
},
component: () => import('../views/productionScheduling/productionData')
},
{
path: 'offShelfPackaging',
name: 'offShelfPackaging',
meta: {
title: '下架包装'
},
component: () =>
import('../views/productionScheduling/offShelfPackaging')
},
{
path: 'reLaunching',
name: 'reLaunching',
@@ -472,16 +481,6 @@ export const routes = [
},
component: () =>
import('../views/qualityManagement/productTraceability')
},
// 2023、8/23要求将下架包装从生成管理换到质量管理
{
path: 'offShelfPackaging',
name: 'offShelfPackaging',
meta: {
title: '下架包装'
},
component: () =>
import('../views/productionScheduling/offShelfPackaging')
}
]
},

View File

@@ -1,45 +0,0 @@
<template>
<div>
<span :style="'color: ' + showColor">{{ injectData.glassRackId }}</span>
</div>
</template>
<script>
export default {
name: 'innerSpan',
props: {
injectData: {
type: Object,
default: () => ({})
}
},
data() {
return {
showColor: 'green'
}
},
mounted() {
this.init()
},
methods: {
init() {
switch (this.injectData.status) {
case 3:
this.showColor = '#37D97F'
break
case 1:
this.showColor = '#FF4E4ED9'
break
default:
this.showColor = '#606266'
}
}
},
watch: {
injectData(newVal, oldVal) {
if (oldVal.enabled !== newVal.enabled) {
this.init()
}
}
}
}
</script>

View File

@@ -78,7 +78,6 @@
<script>
import { tableHeight, timeFormatter } from '@/utils/index'
import { getDetail, glassIdTrace } from '@/api/productionScheduling'
import InnerSpan from './InnerSpan'
const tableProps = [
{
prop: 'proLineName',
@@ -98,8 +97,7 @@ const tableProps = [
{
prop: 'glassId',
label: '玻璃ID',
minWidth: 160,
subcomponent: InnerSpan
minWidth: 160
},
{
prop: 'loadTime',

View File

@@ -15,7 +15,7 @@
<method-btn
v-if="tableBtn.length"
slot="handleBtn"
:width="260"
:width="220"
label="操作"
fixed="right"
:method-list="tableBtn"
@@ -68,8 +68,7 @@ import OffShelfPackagingDetail from './components/OffShelfPackagingDetail.vue'
import OffShelfPackagingContinue from './components/OffShelfPackagingContinue.vue'
import {
unloadPalletPage,
unloadPalletFinish,
unloadPalletDelete
unloadPalletFinish
} from '@/api/productionScheduling'
const tableProps = [
{
@@ -151,11 +150,6 @@ const tableBtn = [
type: 'equal',
name: 'status',
value: 2
},
{
type: 'unequal',
name: 'num',
value: 0
}
]
}
@@ -177,25 +171,6 @@ const tableBtn = [
}
]
}
},
{
type: 'clean',
btnName: '清空',
showParam: {
type: '&',
data: [
{
type: 'equal',
name: 'status',
value: 2
},
{
type: 'unequal',
name: 'num',
value: 0
}
]
}
}
]
export default {
@@ -334,52 +309,39 @@ export default {
},
handleClick(val) {
console.log(val)
switch (val.type) {
case 'edit':
this.centervisible = true
this.addOrEditTitle = '编辑'
this.$nextTick(() => {
this.$refs.offShelfPackagingAdd.init(val.data.id)
})
break
case 'end':
this.$confirm(
'确认结束包装玻璃架ID" ' + val.data.glassRackId + ' "吗?',
{
type: 'warning'
}
)
.then(() => {
unloadPalletFinish({ id: val.data.id }).then(() => {
this.$message({
message: '结束包装成功',
type: 'success'
})
this.getList()
if (val.type === 'edit') {
this.centervisible = true
this.addOrEditTitle = '编辑'
this.$nextTick(() => {
this.$refs.offShelfPackagingAdd.init(val.data.id)
})
} else if (val.type === 'end') {
this.$confirm(
'确认结束包装玻璃架ID" ' + val.data.glassRackId + ' "吗?',
{
type: 'warning'
}
)
.then(() => {
unloadPalletFinish({ id: val.data.id }).then(() => {
this.$message({
message: '结束包装成功',
type: 'success'
})
this.getList()
})
.catch(() => {})
break
case 'continue':
this.centervisible2 = true
this.$nextTick(() => {
this.$refs.offShelfPackagingContinue.init(val.data.id)
})
break
case 'detail':
this.detailVisible = true
this.$nextTick(() => {
this.$refs.packagingDetail.init(val.data.id)
})
break
default:
unloadPalletDelete({ id: val.data.id }).then(() => {
this.$message({
message: '操作成功',
type: 'success'
})
this.getList()
})
.catch(() => {})
} else if (val.type === 'continue') {
this.centervisible2 = true
this.$nextTick(() => {
this.$refs.offShelfPackagingContinue.init(val.data.id)
})
} else if (val.type === 'detail') {
this.detailVisible = true
this.$nextTick(() => {
this.$refs.packagingDetail.init(val.data.id)
})
}
},
handleCancel() {