diff --git a/src/pages/ProdCount.vue b/src/pages/ProdCount.vue
index 098bc02..3ead425 100644
--- a/src/pages/ProdCount.vue
+++ b/src/pages/ProdCount.vue
@@ -42,18 +42,31 @@
生产任务
- 设备物料编码计划数量/重量实际数量/重量合格数量/重量不合格数量/重量生产状态开始时间结束时间
+ 订单工序设备物料号生产物料厂家计划量生产量生产状态计划开始时间开始时间结束时间
-
- {{e.device_name}}{{e.material_code}}{{e.plan_qty}}{{e.real_qty}}{{e.qualified_qty}}{{e.unqualified_qty}}{{e.order_status_name}}{{e.realproducestart_date}}{{e.realproduceend_date}}
+ {{e.device_name}}{{e.material_code}}{{e.plan_qty}}{{e.real_qty}}{{e.qualified_qty}}{{e.unqualified_qty}}{{e.order_status_name}}{{e.realproducestart_date}}{{e.realproduceend_date}}
+
@@ -77,8 +90,8 @@ export default {
timer: null,
showNum1: '',
showNum2: '',
- showNum3: '',
- showNum4: '',
+ showNum3: '222',
+ showNum4: '333',
myCharts05: '',
materData: [],
deviceData: [],
@@ -107,6 +120,7 @@ export default {
}
},
mounted () {
+ // this.getEchart2()
this.initData()
this.refresh()
},
@@ -127,11 +141,135 @@ export default {
this.showNum3 = (res.result.finishedRes[2].real_qty + '').split('')
this.taskData = [...res.result.productionTask]
this.setEchart05()
+ // this.getEchart2()
this.realqty = res.result.materialTask[0].real_qty
this.planqty = res.result.materialTask[0].plan_qty
this.setEchart01()
// 五种状态:未成产、已下发、生产中、停止、完成
},
+ // getEchart2 () {
+ // // 基于准备好的dom,初始化echarts实例
+ // var lineData = [4, 9, 8, 6, 8, 7, 3, 8]
+ // var barData = [50002, 34120, 48370, 57370, 67582, 90892, 32321, 57370]
+ // var xData = ['1号机', '2号机', '3号机', '4号机', '5号机', '6号机', '7号机', '8号机']
+ // // var lineData = []
+ // // var barData = []
+ // // var xData = []
+ // // this.deviceData.map(el => {
+ // // console.log(el.produce_qty)
+ // // lineData.push(el.produce_qty)
+ // // barData.push(el.produce_num)
+ // // xData.push(el.device_name)
+ // // })
+ // var myChart = echarts.init(document.getElementById('echarts2'))
+ // var option = {
+ // legend: {
+ // top: 20,
+ // right: 10,
+ // textStyle: {
+ // color: '#ffffff',
+ // fontSize: 12,
+ // lineHeight: 20
+ // },
+ // itemGap: 20,
+ // itemHeight: 8,
+ // data: ['数量', '重量']
+ // },
+ // // tooltip: {
+ // // trigger: 'axis'
+ // // },
+ // xAxis: {
+ // // name: '设备',
+ // type: 'category',
+ // data: xData,
+ // nameGap: 60, // 坐标轴名称与轴线之间的距离。
+ // axisLine: {
+ // show: true,
+ // lineStyle: {
+ // color: '#fff'
+ // }
+ // },
+ // axisLabel: {
+ // color: '#fff'
+ // }
+ // },
+ // yAxis: [
+ // {
+ // // name: '交易额(亿元)',
+ // type: 'value',
+ // min: 0,
+ // // max: 100000,
+ // max: Math.max.apply(null, barData),
+ // splitNumber: 10,
+ // splitLine: {
+ // show: true,
+ // lineStyle: {
+ // color: ['#315070'],
+ // width: 1,
+ // type: 'dotted'
+ // }
+ // },
+ // axisLine: {
+ // show: false,
+ // lineStyle: {
+ // color: '#fff'
+ // }
+ // }
+ // },
+ // {
+ // // name: '增长率',
+ // type: 'value',
+ // min: 0,
+ // // max: 10,
+ // max: Math.max.apply(null, lineData),
+ // splitNumber: 10,
+ // // position: 'right',
+ // // formatter: '{value}',
+ // axisLine: {
+ // show: false,
+ // lineStyle: {
+ // color: '#fff'
+ // }
+ // },
+ // itemStyle: {
+ // color: '#F7B502'
+ // }
+ // }
+ // ],
+ // series: [
+ // {
+ // name: '数量',
+ // type: 'bar',
+ // data: barData,
+ // barWidth: 10,
+ // itemStyle: {
+ // color: '#32C5FF'
+ // }
+ // },
+ // {
+ // name: '重量',
+ // type: 'line',
+ // symbolSize: 12, // 拐点圆的大小
+ // symbol: 'circle',
+ // data: lineData,
+ // lineStyle: {
+ // color: '#F7B502'
+ // },
+ // itemStyle: {
+ // normal: {
+ // color: '#F7B502'
+ // }
+ // },
+ // yAxisIndex: 1
+ // }
+ // ]
+ // }
+ // // 使用刚指定的配置项和数据显示图表。
+ // myChart.setOption(option)
+ // window.addEventListener('resize', function () {
+ // myChart.resize()
+ // })
+ // },
setEchart01 () {
let data = [
{
@@ -670,16 +808,17 @@ export default {
height 100%
overflow hidden
position relative
- background center center / 100% 100% url(../assets/images/sctj_bg1.png) no-repeat
.title
- _wh(calc(100% - 34px), 22px)
+ _wh(calc(100% - 34px), 32px)
margin 17px
- _font(16px, 22px, #fff,,left)
+ padding-left 0.48rem
+ _font(16px, 32px, #fff,,left)
+ background center center / 100% 100% url(../assets/images/screen1/title_bg_d1.png) no-repeat
.desc
- _wh(100%, 22px)
+ _wh(100%, 32px)
_fj(row, center)
div
- _font(16px, 22px, #fff,,)
+ _font(16px, 32px, #fff,,)
span
font-size 16px
color #F7B502
@@ -692,11 +831,12 @@ export default {
height 100%
overflow hidden
position relative
- background center center / 100% 100% url(../assets/images/sctj_bg2.png) no-repeat
.title
- _wh(calc(100% - 34px), 22px)
+ _wh(calc(100% - 34px), 32px)
margin 17px
- _font(16px, 22px, #fff,,left)
+ padding-left 0.48rem
+ _font(16px, 32px, #fff,,left)
+ background center center / 100% 100% url(../assets/images/screen1/title_bg_d2.png) no-repeat
.item_content_1
_wh(calc(100% - 44px), calc(100% - 90px))
margin 17px auto
@@ -705,12 +845,13 @@ export default {
margin-top 16px
overflow hidden
position relative
- background center center / 100% 100% url(../assets/images/sctj_bg3.png) no-repeat
.block_h2
- _wh(calc(100% - 34px), 22px)
- margin 17px auto
+ _wh(calc(100% - 34px), 32px)
+ margin 17px 0 10px 0
+ padding-left 0.55rem
+ background center center / 100% 100% url(../assets/images/screen1/title_bg_d2.png) no-repeat
h2
- _font(16px, 22px, #fff,,left)
+ _font(16px, 32px, #fff,,left)
.list_scroll_title
_wh(calc(100% - 50px), 32px)
margin 0 auto
@@ -718,7 +859,7 @@ export default {
line-height 32px
span
display inline-block
- width 11%
+ width 8%
text-align center
line-height 32px
// float left
@@ -726,7 +867,7 @@ export default {
&:nth-child(1)
width 8%
&:nth-child(2)
- width 15%
+ width 12%
.content-block-scroll
_wh(calc(100% - 50px), calc(100% - 113px))
margin 0 auto 25px auto
@@ -741,7 +882,7 @@ export default {
background rgba(38,47,82,0.50)
span
display inline-block
- width 11%
+ width 8%
font-size 12px
// padding 0 .1rem
text-align center
@@ -751,5 +892,5 @@ export default {
&:nth-child(1)
width 8%
&:nth-child(2)
- width 15%
+ width 12%
diff --git a/src/pages/shunhe/LogisticsProcess.vue b/src/pages/shunhe/LogisticsProcess.vue
new file mode 100644
index 0000000..cec78a4
--- /dev/null
+++ b/src/pages/shunhe/LogisticsProcess.vue
@@ -0,0 +1,1306 @@
+
+
+
+ 海亮纯铜精密件智能车间设备监控中心
+
+
+
+
+
+
计划达成
+
+ 日计划达成/月计划达成
+
+
+
+
+
+
+
+
弯头工段
+
+
{{jo1.plan_qty === '' ? 0 : jo1.plan_qty}}
+
日计划量
+
+
+
{{jo1.real_qty === '' ? 0 : jo1.real_qty}}
+
日完成量
+
+
+
{{jo1.finish_rate === '' ? 0 : jo1.finish_rate}}
+
日完成率
+
+
+
+
综合工段
+
+
{{jo2.plan_qty === '' ? 0 : jo2.plan_qty}}
+
日计划量
+
+
+
{{jo2.real_qty === '' ? 0 : jo2.real_qty}}
+
日完成量
+
+
+
{{jo2.finish_rate === '' ? 0 : jo2.finish_rate}}
+
日完成率
+
+
+
+
成品工段
+
+
{{jo3.plan_qty === '' ? 0 : jo3.plan_qty}}
+
日计划量
+
+
+
{{jo3.real_qty === '' ? 0 : jo3.real_qty}}
+
日完成量
+
+
+
{{jo3.finish_rate === '' ? 0 : jo3.finish_rate}}
+
日完成率
+
+
+
+
+
+
+
弯头工段
+
+
{{joo1.plan_qty === '' ? 0 : joo1.plan_qty}}
+
月计划量
+
+
+
{{joo1.real_qty === '' ? 0 : joo1.real_qty}}
+
月完成量
+
+
+
{{joo1.finish_rate === '' ? 0 : joo1.finish_rate}}
+
月完成率
+
+
+
+
综合工段
+
+
{{joo2.plan_qty === '' ? 0 : joo2.plan_qty}}
+
月计划量
+
+
+
{{joo2.real_qty === '' ? 0 : joo2.real_qty}}
+
月完成量
+
+
+
{{joo2.finish_rate === '' ? 0 : joo2.finish_rate}}
+
月完成率
+
+
+
+
成品工段
+
+
{{joo3.plan_qty === '' ? 0 : joo3.plan_qty}}
+
月计划量
+
+
+
{{joo3.real_qty === '' ? 0 : joo3.real_qty}}
+
月完成量
+
+
+
{{joo3.finish_rate === '' ? 0 : joo3.finish_rate}}
+
月完成率
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
计划产量
+
{{objL1.plan_qty}}PCS
+
+
+
实际产量
+
{{objL1.real_qty}}PCS
+
+
+
+
+
+
工单总数:
+
{{objL1.sum_qty}}个
+
+
+
+
+
+
+ 正常工单
+
+
+ {{objL1.normal_qty}}
+ 个
+
+
+
+
+
+ 延期工单
+
+
+ {{objL1.delayed_qty}}
+ 个
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{e.material_spec}}
+
+
+ {{e.real_qty}}
+ 个
+
+
+
+
+
+
+
+
+ {{e.material_spec}}
+
+
+ {{e.real_qty}}
+ 个
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/index.js b/src/router/index.js
index 1d11fec..f7607f4 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -8,6 +8,7 @@ const WorkshopScreen = r => require.ensure([], () => r(require('@page/WorkshopSc
const HomeScreen = r => require.ensure([], () => r(require('@page/HomeScreen')), 'HomeScreen')
const ProdCount = r => require.ensure([], () => r(require('@page/ProdCount')), 'ProdCount')
+const LogisticsProcess = r => require.ensure([], () => r(require('@page/shunhe/LogisticsProcess')), 'LogisticsProcess')
Vue.use(Router)
@@ -41,6 +42,10 @@ export default new Router({
{
path: '/ProdCount',
component: ProdCount
+ },
+ {
+ path: '/LogisticsProcess',
+ component: LogisticsProcess
}
]
})