Merge branch 'dev-scheduling' of http://42.192.7.176:3000/suojin/jonhon-mes-web into dev-scheduling

dev-scheduling
zhangdi 3 weeks ago
commit 55a6fab221
  1. 2
      src/views/basicData/warehouseMaintenance.vue
  2. 2
      src/views/orderManagement/components/exception/dataMissing.vue
  3. 3
      src/views/orderManagement/components/exception/deliveryDate.vue
  4. 56
      src/views/orderManagement/components/exception/processMissing.vue
  5. 22
      src/views/orderManagement/components/exception/resourceMissing.vue
  6. 4
      src/views/productionSchedulingPlan/basic/qualityGrade.vue
  7. 2
      src/views/qualityManagement/tankSolutionSystem/info.vue
  8. 151
      src/views/qualityManagement/tankSolutionSystem/workTankLine.vue

@ -529,6 +529,8 @@ export default {
this.option.column = warehouseMain[this.tabPosition]; this.option.column = warehouseMain[this.tabPosition];
this.getLocation() this.getLocation()
}else if(this.tabPosition == "inventorySetup"){ }else if(this.tabPosition == "inventorySetup"){
this.chooseWare = []
this.noChooseWare = []
this.checkUser = '' this.checkUser = ''
getUserByRoleAlias({ getUserByRoleAlias({
roleAlias:"保管员", roleAlias:"保管员",

@ -46,7 +46,7 @@
}}</el-tag> }}</el-tag>
</template> </template>
<template #menu="{ row }"> <template #menu="{ row }">
<el-button text @click="editData(row)">修改</el-button> <el-button type="primary" text @click="editData(row)">修改</el-button>
<el-button text @click="editData1(row)">修改1</el-button> <el-button text @click="editData1(row)">修改1</el-button>
<!-- <el-button type="primary" text plain style="border: 0; background-color: transparent !important" <!-- <el-button type="primary" text plain style="border: 0; background-color: transparent !important"
@click="lookProcessRoute(row)">查看工艺路线 @click="lookProcessRoute(row)">查看工艺路线

@ -99,7 +99,7 @@ export default {
viewBtn: false, viewBtn: false,
delBtn: false, delBtn: false,
addBtn: false, addBtn: false,
editBtn: true, editBtn: false,
editBtnText: '修改', editBtnText: '修改',
labelWidth: 120, labelWidth: 120,
// searchLabelWidth: 120, // searchLabelWidth: 120,
@ -117,6 +117,7 @@ export default {
delBtnIcon: ' ', delBtnIcon: ' ',
editBtnIcon: ' ', editBtnIcon: ' ',
menuAlign: 'center', menuAlign: 'center',
menu:false,
gridBtn: false, gridBtn: false,
searchLabelPosition: 'left', searchLabelPosition: 'left',
searchLabelPosition: 'left', searchLabelPosition: 'left',

@ -100,7 +100,7 @@ export default {
viewBtn: false, viewBtn: false,
delBtn: false, delBtn: false,
addBtn: false, addBtn: false,
editBtn: true, editBtn: false,
editBtnText: '修改', editBtnText: '修改',
labelWidth: 120, labelWidth: 120,
// searchLabelWidth: 120, // searchLabelWidth: 120,
@ -117,12 +117,12 @@ export default {
viewBtnIcon: ' ', viewBtnIcon: ' ',
delBtnIcon: ' ', delBtnIcon: ' ',
editBtnIcon: ' ', editBtnIcon: ' ',
menuAlign: 'left',
gridBtn: false, gridBtn: false,
searchLabelPosition: 'left', searchLabelPosition: 'left',
searchLabelPosition: 'left', searchLabelPosition: 'left',
searchGutter: 24, searchGutter: 24,
searchSpan: 6, searchSpan: 6,
menu:false,
menuAlign: 'center', menuAlign: 'center',
gridBtn: false, gridBtn: false,
searchMenuPosition: 'right', searchMenuPosition: 'right',
@ -339,7 +339,57 @@ export default {
}, },
], ],
}, },
{
label: '工艺异常原因',
prop: 'ypQty',
search: false,
sortable: true,
width: 120,
span: 12,
headerAlign: 'center',
align: 'center',
rules: [
{
required: true,
message: '请输入工艺异常原因',
trigger: 'blur',
},
],
},
{
label: '工艺任务编号',
prop: 'ypQty',
search: false,
sortable: true,
width: 120,
span: 12,
headerAlign: 'center',
align: 'center',
rules: [
{
required: true,
message: '请输入工艺任务编号',
trigger: 'blur',
},
],
},
{
label: '工艺任务状态',
prop: 'ypQty',
search: false,
sortable: true,
width: 120,
span: 12,
headerAlign: 'center',
align: 'center',
rules: [
{
required: true,
message: '请输入工艺任务状态',
trigger: 'blur',
},
],
},
{ {
label: '需求交期', label: '需求交期',
prop: 'demandDate', prop: 'demandDate',

@ -109,11 +109,11 @@ export default {
viewBtn: false, viewBtn: false,
delBtn: false, delBtn: false,
addBtn: false, addBtn: false,
editBtn: true, editBtn: false,
editBtnText: '修改', editBtnText: '修改',
labelWidth: 120, labelWidth: 120,
// searchLabelWidth: 120, // searchLabelWidth: 120,
menuWidth: 140, menuWidth: 100,
dialogWidth: 900, dialogWidth: 900,
dialogClickModal: false, dialogClickModal: false,
searchEnter: true, searchEnter: true,
@ -348,7 +348,23 @@ export default {
}, },
], ],
}, },
{
label: '缺失资源',
prop: 'ypQty',
search: false,
sortable: true,
width: 120,
span: 12,
headerAlign: 'center',
align: 'center',
rules: [
{
required: true,
message: '请输入缺失资源',
trigger: 'blur',
},
],
},
{ {
label: '需求交期', label: '需求交期',
prop: 'demandDate', prop: 'demandDate',

@ -60,7 +60,7 @@ export default {
calcHeight: 32, calcHeight: 32,
simplePage: false, simplePage: false,
searchShow: true, searchShow: true,
searchMenuSpan: 18, searchMenuSpan: 12,
searchIcon: true, searchIcon: true,
searchIndex: 3, searchIndex: 3,
tree: false, tree: false,
@ -98,7 +98,7 @@ export default {
{ {
label: '质量等级', label: '质量等级',
prop: 'qualityGrade', prop: 'qualityGrade',
search: false, search: true,
sortable: true, sortable: true,
span: 12, span: 12,
rules: [ rules: [

@ -203,7 +203,7 @@ export default {
], ],
dicUrl: '/blade-desk/BA/WorkTank/listForSelect', dicUrl: '/blade-desk/BA/WorkTank/listForSelect',
props: { props: {
label: 'name', label: 'workTankCode',
value: 'id', value: 'id',
}, },
}, },

@ -85,7 +85,7 @@
检测曲线 检测曲线
</div> </div>
<div id="chartsContainer1" style=""> <div id="chartsContainer1" style="">
<div style="width: 100%;height: 240px;margin-top:30px;" v-for="(item,index) in lineData" :key="item.id" :id="`chart-${item.id || index}`"></div> <div style="width: 100%;height: 240px;margin-top:30px;" v-for="(item,index) in lineData" :key="item.id" :id="`chartview-${item.id || index}`"></div>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -279,9 +279,152 @@ export default {
const chartDom = document.getElementById(chartId); const chartDom = document.getElementById(chartId);
console.log('chartDom----------',chartDom) console.log('chartDom----------',chartDom)
if (!chartDom) return; if (!chartDom) return;
let chart = this.$echarts.getInstanceByDom(chartDom);
if(chart){
chart.dispose();
}
// ECharts
chart = this.$echarts.init(chartDom);
console.log('chart----------',chart)
if(chart){
chart.clear();
}
const option = {
title: {
text: item.workTankName + item.testElement,
left: "center",
},
legend: {
show: true,
orient: "horizontal",
right: '0'
},
grid: {
containLabel: true,
left: 20,
right: 20,
bottom: '1%',
top: '15%'
},
tooltip: {
//
trigger: 'axis', //
axisPointer: { type: 'shadow' } //
},
xAxis: {
axisLabel: {
color: '#000',
fontSize: 14,
interval: 0
},
axisTick: {
show: false
},
splitLine: {
show: false
},
axisLine: {
show: true
},
data: item.testDateList,
type: 'category'
},
yAxis: {
axisLabel: {
color: '#000',
fontSize: 14
},
// max: globalMax + 10,
axisTick: {
show: false
},
splitLine: {
show: true
},
axisLine: {
show: true
},
name: ''
},
series: [
{
name: '上限', //
data: item.maxList,
type: 'line',
itemStyle: {
color: '#6480e1'
},
label: {
show: false,
position: 'top',
color: '#000'
}
},
{
name: '下限', //
data: item.minList,
type: 'line',
smooth: true,
itemStyle: {
color: '#c0db50'
},
label: {
show: false,
color: '#fff'
}
},
{
name: '检测值', //
data: item.targetList,
type: 'line',
itemStyle: {
color: '#6a6d87'
},
label: {
show: false,
color: '#fff'
}
}
]
};
chart.setOption(option);
})
},
createChart1(){
console.log('this.lineData',this.lineData)
let globalMax = -Infinity; //
this.lineData.forEach((item, index) => {
if (item.maxList && item.maxList.length > 0) {
// max
const currentMax = Math.max(...item.maxList);
//
if (currentMax > globalMax) {
globalMax = currentMax;
}
}
console.log('item-----------',item)
const chartId = `chartview-${item.id || index}`;
const chartDom = document.getElementById(chartId);
console.log('chartDom----------',chartDom)
if (!chartDom) return;
let chart = this.$echarts.getInstanceByDom(chartDom);
if(chart){
chart.dispose();
}
// ECharts // ECharts
const chart = this.$echarts.init(chartDom); chart = this.$echarts.init(chartDom);
console.log('chart----------',chart) console.log('chart----------',chart)
if(chart){
chart.clear();
}
const option = { const option = {
title: { title: {
@ -381,7 +524,7 @@ export default {
} }
] ]
}; };
chart.clear();
chart.setOption(option); chart.setOption(option);
}) })
}, },
@ -492,7 +635,7 @@ export default {
this.lineData = res.data.data.taskCopys this.lineData = res.data.data.taskCopys
this.detailBox = true this.detailBox = true
this.$nextTick(() =>{ this.$nextTick(() =>{
this.createChart() this.createChart1()
}) })
}) })
// this.detailForm = { // this.detailForm = {

Loading…
Cancel
Save