+
+
+
+
+
+
+
+
+
+
+ 数量
+
+ 单件工时
+
+
+
+
+
+
+
+
+
+ 保存
+ 编辑
+ 删除
+
+ 查询
+
+
+
+
+
+ {{ scope.row.加工日期 ? scope.row.加工日期.split(' ')[0] : '-' }}
+
+
+
+
+ {{ scope.row.操作工姓名 }}
+
+
+
+
+ {{ scope.row.零件图号 }}
+
+
+
+
+ {{ scope.row.名称 }}
+
+
+
+
+ {{ scope.row.工序 }}
+
+
+
+
+ {{ scope.row.数量 }}
+
+
+
+
+ {{ scope.row.单件工时 }}
+
+
+
+
+ {{ scope.row.责任人姓名 }}
+
+
+
+
+ {{ scope.row.确认人姓名 }}
+
+
+
+
+ {{ scope.row.录入人姓名 }}
+
+
+
+
+
+
+
diff --git a/src/views/ManufacturingCenter/EquipmentMonitoring/index.vue b/src/views/ManufacturingCenter/EquipmentMonitoring/index.vue
index e0d450cc..71a1f1b3 100644
--- a/src/views/ManufacturingCenter/EquipmentMonitoring/index.vue
+++ b/src/views/ManufacturingCenter/EquipmentMonitoring/index.vue
@@ -643,12 +643,7 @@ export default {
getOP_state() {
getOP_state().then(response => {
for (let i = 0; i < response.data.length; i++) {
- if (response.data[i].状态代码 === '1') {
- $('#' + response.data[i].工位号 + '_circle').removeClass('circle3')
- $('#' + response.data[i].工位号 + '_circle').removeClass('circle1')
- $('#' + response.data[i].工位号 + '_circle').removeClass('circle')
- $('#' + response.data[i].工位号 + '_circle').addClass('circle2')
- } else if (response.data[i].状态代码 === '2') {
+ if (response.data[i].状态代码 === '2') {
$('#' + response.data[i].工位号 + '_circle').removeClass('circle')
$('#' + response.data[i].工位号 + '_circle').removeClass('circle3')
$('#' + response.data[i].工位号 + '_circle').removeClass('circle2')
@@ -663,6 +658,11 @@ export default {
$('#' + response.data[i].工位号 + '_circle').removeClass('circle1')
$('#' + response.data[i].工位号 + '_circle').removeClass('circle2')
$('#' + response.data[i].工位号 + '_circle').addClass('circle3')
+ } else {
+ $('#' + response.data[i].工位号 + '_circle').removeClass('circle3')
+ $('#' + response.data[i].工位号 + '_circle').removeClass('circle1')
+ $('#' + response.data[i].工位号 + '_circle').removeClass('circle')
+ $('#' + response.data[i].工位号 + '_circle').addClass('circle2')
}
}
})
diff --git a/src/views/ManufacturingCenter/InitialProduction/index.vue b/src/views/ManufacturingCenter/InitialProduction/index.vue
index 46c70e4d..ac84aea2 100644
--- a/src/views/ManufacturingCenter/InitialProduction/index.vue
+++ b/src/views/ManufacturingCenter/InitialProduction/index.vue
@@ -422,14 +422,22 @@ export default {
},
watch: {
// 如果路由有变化,会再次执行该方法
- '$route': {
- handler(route) {
- const _this = this
- if (route.name === 'InitialProduction') {
- _this.typeChange()
- }
+ '$route'(to) {
+ const _this = this
+ console.log(to, 2222)
+ if (to.name === 'InitialProduction') {
+ _this.typeChange()
}
}
+ // '$route': {
+ // handler(route) {
+ // const _this = this
+ // console.log(route.name)
+ // if (route.name === 'InitialProduction') {
+ // _this.typeChange()
+ // }
+ // }
+ // }
},
created() {
// this.typeChange()
@@ -503,10 +511,12 @@ export default {
})
},
typeChange() {
+ console.log(Cookie.get('machineValue'), 1111111)
+ this.toolNumValue = ''
+ this.toolNum = []
+ this.NumValue = ''
+ this.Num = []
if (Cookie.get('machineValue') !== undefined) {
- this.toolNumValue = ''
- this.NumValue = ''
- this.Num = []
getToolNum().then(response => {
for (let i = 0; i < response.data.length; i++) {
this.toolNum.push({
@@ -524,9 +534,6 @@ export default {
Cookie.remove('group')
})
} else {
- this.toolNumValue = ''
- this.NumValue = ''
- this.Num = []
getToolNum().then(response => {
for (let i = 0; i < response.data.length; i++) {
this.toolNum.push({
diff --git a/src/views/ManufacturingCenter/ManHourStatistics/index.vue b/src/views/ManufacturingCenter/ManHourStatistics/index.vue
index b7384daa..debedd5e 100644
--- a/src/views/ManufacturingCenter/ManHourStatistics/index.vue
+++ b/src/views/ManufacturingCenter/ManHourStatistics/index.vue
@@ -33,9 +33,9 @@
{{ scope.row.理论加工时间段 }}