Commit c08afedf authored by jingnan's avatar jingnan 👀

Merge branch 'online'

parents b4a9d83e f7516e03
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -199,7 +199,7 @@ export default { ...@@ -199,7 +199,7 @@ export default {
this.$api.searchApi('ExtProcessSkillUser', params).then(res => { this.$api.searchApi('ExtProcessSkillUser', params).then(res => {
if (res.items.content.length) { if (res.items.content.length) {
const arr = [] const arr = []
this.basicData.prodTask.forEach(element => { this.basicData.prodTask && this.basicData.prodTask.forEach(element => {
arr.push(element.extProcessSkillUserId) arr.push(element.extProcessSkillUserId)
}) })
res.items.content.forEach(item => { res.items.content.forEach(item => {
......
...@@ -239,7 +239,7 @@ export default { ...@@ -239,7 +239,7 @@ export default {
this.$api.searchApi('ExtProcessSkillUser', params).then(res => { this.$api.searchApi('ExtProcessSkillUser', params).then(res => {
if (res.items.content.length) { if (res.items.content.length) {
const arr = [] const arr = []
this.basicData.prodTask.forEach(element => { this.basicData.prodTask && this.basicData.prodTask.forEach(element => {
arr.push(element.extProcessSkillUserId) arr.push(element.extProcessSkillUserId)
}) })
res.items.content.forEach(item => { res.items.content.forEach(item => {
......
...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
type="textarea" type="textarea"
:rows="3" :rows="3"
placeholder="请输入备注" placeholder="请输入备注"
@blur="rmark(item)"
/> />
</div> </div>
<i slot="reference" class="el-icon-info" /> <i slot="reference" class="el-icon-info" />
...@@ -275,12 +276,24 @@ export default { ...@@ -275,12 +276,24 @@ export default {
default: () => null default: () => null
}, },
year: { year: {
type: String, type: [String, Number],
default: () => null
},
unitNo: {
type: [String, Number],
default: () => null default: () => null
}, },
activeName: { activeName: {
type: String, type: String,
default: () => null default: () => null
},
sqcdpParams: {
type: Object,
default: () => {
return {
query: {}
}
}
} }
}, },
data() { data() {
...@@ -306,8 +319,8 @@ export default { ...@@ -306,8 +319,8 @@ export default {
], ],
C: [ C: [
// { id: 1, dictKey: 'Yellow', dictValue: '13243' }, // { id: 1, dictKey: 'Yellow', dictValue: '13243' },
{ id: 2, dictKey: 'Red', dictValue: '无成本损失' }, { id: 3, dictKey: 'Red', dictValue: '产生报废单' },
{ id: 3, dictKey: 'null', dictValue: '产生报废单' } { id: 2, dictKey: 'null', dictValue: '无成本损失' }
], ],
D: [ D: [
// { id: 1, dictKey: 'Yellow', dictValue: '13243' }, // { id: 1, dictKey: 'Yellow', dictValue: '13243' },
...@@ -319,8 +332,8 @@ export default { ...@@ -319,8 +332,8 @@ export default {
{ id: 2, dictKey: 'Red', dictValue: '出勤率小于90%' }, { id: 2, dictKey: 'Red', dictValue: '出勤率小于90%' },
{ id: 3, dictKey: 'null', dictValue: '出勤率大于90%' } { id: 3, dictKey: 'null', dictValue: '出勤率大于90%' }
] ]
}, }
unitNo: null // unitNo: null
} }
}, },
computed: { }, computed: { },
...@@ -337,7 +350,7 @@ export default { ...@@ -337,7 +350,7 @@ export default {
// 创建确认调用 // 创建确认调用
init() { init() {
this.$nextTick(() => { this.$nextTick(() => {
this.getData(this.year, this.month) // this.getData(this.year, this.month)
}) })
}, },
// 初始化日历 // 初始化日历
...@@ -346,11 +359,11 @@ export default { ...@@ -346,11 +359,11 @@ export default {
this.day = [] this.day = []
this.enull = 0 this.enull = 0
if (year === null || month === null || year === undefined) return if (year === null || month === null || year === undefined) return
var date = null let date = null
date = new Date(`${year}-${month}-1`).getDay() date = new Date(`${year}-${month}-1`).getDay()
var month1 = null let month1 = null
var month2 = null let month2 = null
var year2 = year let year2 = year
if (month <= 9) { if (month <= 9) {
month1 = '0' + month month1 = '0' + month
month2 = '0' + (month + 1) month2 = '0' + (month + 1)
...@@ -366,15 +379,11 @@ export default { ...@@ -366,15 +379,11 @@ export default {
month2 = month + 1 month2 = month + 1
} }
this.loading = true this.loading = true
var data = [] let data = []
var sorties = '' let sorties = ''
try { try {
data = data = this.sqcdpParams.query.data
this.$parent.$parent.$parent.$parent.$parent.$parent.sqcdpParams.query sorties = this.sqcdpParams.query.sorties
.data
sorties =
this.$parent.$parent.$parent.$parent.$parent.$parent.sqcdpParams.query
.sorties
} catch (err) { } catch (err) {
console.info(err) console.info(err)
} }
...@@ -388,7 +397,7 @@ export default { ...@@ -388,7 +397,7 @@ export default {
this.enull = date - 1 this.enull = date - 1
} }
this.loading = false this.loading = false
this.$parent.$parent.$parent.$parent.sqcdpParams.query.sorties = false // this.sqcdpParams.query.sorties = false
} else { } else {
const params = { const params = {
searchItems: { searchItems: {
...@@ -418,11 +427,11 @@ export default { ...@@ -418,11 +427,11 @@ export default {
} }
] ]
} }
if (unitNo && unitNo !== '工厂') { if (this.unitNo && this.unitNo !== '工厂') {
params.searchItems.items.push({ params.searchItems.items.push({
fieldName: 'unitNo', fieldName: 'unitNo',
operator: 'EQ', operator: 'EQ',
value: unitNo value: this.unitNo
}) })
} else { } else {
params.searchItems.items.push({ params.searchItems.items.push({
...@@ -475,7 +484,7 @@ export default { ...@@ -475,7 +484,7 @@ export default {
}, },
// /风险颜色修改 // /风险颜色修改
selectClasses(item, index) { selectClasses(item, index) {
var params = {} let params = {}
switch (this.activeName) { switch (this.activeName) {
case 'S': case 'S':
params = { params = {
...@@ -529,7 +538,7 @@ export default { ...@@ -529,7 +538,7 @@ export default {
}, },
// 备注 // 备注
rmark(item, index) { rmark(item, index) {
var params = {} let params = {}
switch (this.activeName) { switch (this.activeName) {
case 'S': case 'S':
params = { params = {
......
...@@ -57,8 +57,16 @@ export default { ...@@ -57,8 +57,16 @@ export default {
default: () => [] default: () => []
}, },
year: { year: {
type: String, type: [String, Number],
default: () => null default: () => null
},
sqcdpParams: {
type: Object,
default: () => {
return {
query: {}
}
}
} }
}, },
data() { data() {
...@@ -144,18 +152,18 @@ export default { ...@@ -144,18 +152,18 @@ export default {
}) })
}).catch(err => console.log(err)).finally(() => { }).catch(err => console.log(err)).finally(() => {
}).finally(() => { }).finally(() => {
this.stance = '工厂' // this.stance = '工厂'
// var serialNumber = false let serialNumber = false
// try { try {
// serialNumber = this.$parent.$parent.$parent.$parent.sqcdpParams.query.serialNumber serialNumber = this.sqcdpParams.query.serialNumber || '工厂'
// } catch (err) { } catch (err) {
// console.info(err) console.info(err)
// } }
// if (serialNumber) { if (serialNumber) {
// this.stance = serialNumber this.stance = serialNumber
// } else { } else {
// this.stance = '工厂' this.stance = '工厂'
// } }
}) })
}, },
// 返回站位名称 // 返回站位名称
......
<!-- <!--
* @Author: ljm * @Author: ljm
* @Date: 2021-06-22 * @Date: 2021-06-22
* @LastEditTime: * @LastEditTime: 2024-08-07 16:23:30
* @Description: sqcdp维护 * @Description: sqcdp维护
* @FilePath: applications/dee-mes/src/views/mes/baseData/sqcdp/index.vue * @FilePath: applications/dee-mes/src/views/mes/baseData/sqcdp/index.vue
--> -->
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<section class="wordCalendar"> <section class="wordCalendar">
<Header <Header
ref="header" ref="header"
:sqcdp-params="sqcdpParams"
:year-data="yearData" :year-data="yearData"
:year="year" :year="year"
@getMonth="handleMonth" @getMonth="handleMonth"
...@@ -17,19 +18,19 @@ ...@@ -17,19 +18,19 @@
/> />
<el-tabs v-model="activeName" type="card" @tab-click="tabClick"> <el-tabs v-model="activeName" type="card" @tab-click="tabClick">
<el-tab-pane label="S(安全)" name="S"> <el-tab-pane label="S(安全)" name="S">
<Calender ref="calenderS" :active-name="activeName" :month="month" :year="year" /> <Calender ref="calenderS" :sqcdp-params="sqcdpParams" :unit-no="unitNo" :active-name="activeName" :month="month" :year="year" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="Q(质量)" name="Q"> <el-tab-pane label="Q(质量)" name="Q">
<Calender ref="calenderQ" :active-name="activeName" :month="month" :year="year" /> <Calender ref="calenderQ" :sqcdp-params="sqcdpParams" :unit-no="unitNo" :active-name="activeName" :month="month" :year="year" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="C(成本)" name="C"> <el-tab-pane label="C(成本)" name="C">
<Calender ref="calenderC" :active-name="activeName" :month="month" :year="year" /> <Calender ref="calenderC" :sqcdp-params="sqcdpParams" :unit-no="unitNo" :active-name="activeName" :month="month" :year="year" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="D(进度)" name="D"> <el-tab-pane label="D(进度)" name="D">
<Calender ref="calenderD" :active-name="activeName" :month="month" :year="year" /> <Calender ref="calenderD" :sqcdp-params="sqcdpParams" :unit-no="unitNo" :active-name="activeName" :month="month" :year="year" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="P(人员)" name="P"> <el-tab-pane label="P(人员)" name="P">
<Calender ref="calenderP" :active-name="activeName" :month="month" :year="year" /> <Calender ref="calenderP" :sqcdp-params="sqcdpParams" :unit-no="unitNo" :active-name="activeName" :month="month" :year="year" />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<!-- <Calender ref="calender" :unit-no="unitNo" :month="month" :year="year" /> --> <!-- <Calender ref="calender" :unit-no="unitNo" :month="month" :year="year" /> -->
...@@ -49,6 +50,16 @@ export default { ...@@ -49,6 +50,16 @@ export default {
Header, Header,
Calender Calender
}, },
props: {
sqcdpParams: {
type: Object,
default: () => {
return {
query: {}
}
}
}
},
data() { data() {
return { return {
activeName: 'S', activeName: 'S',
...@@ -59,7 +70,9 @@ export default { ...@@ -59,7 +70,9 @@ export default {
} }
}, },
mounted() { mounted() {
this.initYear() if (!this.sqcdpParams.name) {
this.initYear()
}
}, },
created() {}, created() {},
methods: { methods: {
...@@ -72,7 +85,9 @@ export default { ...@@ -72,7 +85,9 @@ export default {
this.selectTab($event.name) this.selectTab($event.name)
}, },
selectTab(activeName) { selectTab(activeName) {
this.$refs['calender' + activeName].getData(this.year, this.month, this.unitNo) this.$nextTick(() => {
this.$refs['calender' + activeName].getData(this.year, this.month, this.unitNo)
})
}, },
// 年份下拉框触发 // 年份下拉框触发
handleYear(year) { handleYear(year) {
...@@ -94,26 +109,25 @@ export default { ...@@ -94,26 +109,25 @@ export default {
post('/FactoryCalendar/getAllFactoryYear') post('/FactoryCalendar/getAllFactoryYear')
.then((res) => { .then((res) => {
this.yearData = res.items.sort() this.yearData = res.items.sort()
this.year = res.items[0] this.year = new Date().getFullYear()
this.month = new Date().getMonth() + 1 this.month = new Date().getMonth() + 1
}) })
.catch((err) => console.log(err)) .catch((err) => console.log(err))
.finally(() => { .finally(() => {
this.$refs['calender' + this.activeName].getData(this.year, this.month, this.unitNo) let name = ''
let serialNumber = ''
// var name = '' try {
// var serialNumber = '' name = this.sqcdpParams.query.name
// try { serialNumber = this.sqcdpParams.query.serialNumber
// name = this.$parent.$parent.$parent.sqcdpParams.query.name } catch (err) {
// serialNumber = this.$parent.$parent.$parent.sqcdpParams.query.serialNumber console.info(err)
// } catch (err) { }
// console.info(err) if (name) {
// } this.activeName = name
// if (name) { this.handleStance(serialNumber)
// this.activeName = name } else {
// this.handleStance(serialNumber) this.$refs['calender' + this.activeName].getData(this.year, this.month, this.unitNo)
// } else { }
// }
}) })
} }
......
...@@ -62,9 +62,9 @@ export default { ...@@ -62,9 +62,9 @@ export default {
immediate: true, immediate: true,
deep: true, deep: true,
handler: function(val) { handler: function(val) {
// 粘度里的杯根据理论粘度截取(从第一个“,“截取到第一个”杯“,有杯没有逗号的截取杯前的所有字符串) // this.cup没有值得时候粘度里的杯根据理论粘度截取(从第一个“,“截取到第一个”杯“,有杯没有逗号的截取杯前的所有字符串)
const splitFromBei = val && val.includes('杯') ? val.split('杯')[0] + '杯' : '' const splitFromBei = val && val.includes('杯') ? val.split('杯')[0] + '杯' : ''
if (splitFromBei) { if (splitFromBei && !this.cup) {
const str = splitFromBei.includes(',') || splitFromBei.includes(',') ? splitFromBei : (',' + splitFromBei) const str = splitFromBei.includes(',') || splitFromBei.includes(',') ? splitFromBei : (',' + splitFromBei)
const formatVal = str.replace(/,/g, ',') const formatVal = str.replace(/,/g, ',')
const regex = new RegExp(`,(.*?)杯`) const regex = new RegExp(`,(.*?)杯`)
......
...@@ -1901,15 +1901,16 @@ ...@@ -1901,15 +1901,16 @@
@click="isFullClick" @click="isFullClick"
> >
</div> </div>
<SQCDPDialog ref="SQCDPDialog" /> <SQCDPDialog ref="SQCDPDialog" :sqcdp-params="sqcdpParams" />
<ExpireWarningDialog ref="ExpireWarningDialog" /> <ExpireWarningDialog ref="ExpireWarningDialog" />
<SummaryOfStationMissingPartsDialog <SummaryOfStationMissingPartsDialog
ref="SummaryOfStationMissingPartsDialog" ref="SummaryOfStationMissingPartsDialog"
/> />
<SiteProblemManagementSummaryDialog <SiteProblemManagementSummaryDialog
ref="SiteProblemManagementSummaryDialog" ref="SiteProblemManagementSummaryDialog"
:site-problem-management-summary-params="siteProblemManagementSummaryParams"
/> />
<ActionitemsDialog ref="ActionitemsDialog" /> <ActionitemsDialog ref="ActionitemsDialog" :action-items-params="actionItemsParams" />
</div> </div>
</template> </template>
...@@ -2484,7 +2485,8 @@ export default { ...@@ -2484,7 +2485,8 @@ export default {
storageExpireWarningParams: {}, storageExpireWarningParams: {},
summaryOfStationMissingPartsParams: {}, summaryOfStationMissingPartsParams: {},
siteProblemManagementSummaryParams: {}, siteProblemManagementSummaryParams: {},
actionitemsParams: {} actionItemsParams: {},
sqcdpParams: {}
} }
}, },
computed: { computed: {
...@@ -2778,6 +2780,7 @@ export default { ...@@ -2778,6 +2780,7 @@ export default {
* 现场督办 * 现场督办
*/ */
initSupervise() { initSupervise() {
this.resetSuperviseOptionData()
const superviseOption = this.superviseOption const superviseOption = this.superviseOption
const params = { const params = {
aircraftType: this.$route.query.model, aircraftType: this.$route.query.model,
...@@ -2798,10 +2801,6 @@ export default { ...@@ -2798,10 +2801,6 @@ export default {
const chartDom = document.getElementById('superviseEchart') const chartDom = document.getElementById('superviseEchart')
const myChart = echarts.init(chartDom) const myChart = echarts.init(chartDom)
myChart.on('click', function(params) { myChart.on('click', function(params) {
if (params) {
console.log('跳转暂时未做,需要做的时候删除这段代码!')
return
}
that.routerSiteProblemManagementSummary(params.name) that.routerSiteProblemManagementSummary(params.name)
}) })
myChart.setOption(superviseOption) myChart.setOption(superviseOption)
...@@ -2811,6 +2810,7 @@ export default { ...@@ -2811,6 +2810,7 @@ export default {
* 行动项 * 行动项
*/ */
initActionitems() { initActionitems() {
this.resetSuperviseOptionData()
const superviseOption = this.superviseOption const superviseOption = this.superviseOption
const params = { const params = {
aircraftType: this.$route.query.model, aircraftType: this.$route.query.model,
...@@ -2831,15 +2831,17 @@ export default { ...@@ -2831,15 +2831,17 @@ export default {
const chartDom = document.getElementById('superviseEchart') const chartDom = document.getElementById('superviseEchart')
const myChart = echarts.init(chartDom) const myChart = echarts.init(chartDom)
myChart.on('click', function(params) { myChart.on('click', function(params) {
if (params) {
console.log('跳转暂时未做,需要做的时候删除这段代码!')
return
}
that.routerActionitems(params.name) that.routerActionitems(params.name)
}) })
myChart.setOption(superviseOption) myChart.setOption(superviseOption)
}) })
}, },
resetSuperviseOptionData() {
this.superviseOption.series[0].data.map(item => {
item.value = 0
return item
})
},
selectSuperviseTabs(key) { selectSuperviseTabs(key) {
// 销毁echart // 销毁echart
const chartDom = document.getElementById('superviseEchart') const chartDom = document.getElementById('superviseEchart')
...@@ -2861,6 +2863,7 @@ export default { ...@@ -2861,6 +2863,7 @@ export default {
query: { query: {
title: '站位看板', title: '站位看板',
planId: item.id, planId: item.id,
serialNumber: item.serialNumber,
model: this.$route.query.model, model: this.$route.query.model,
sorties: this.$route.query.sorties, sorties: this.$route.query.sorties,
data: JSON.stringify(item) data: JSON.stringify(item)
...@@ -2891,10 +2894,6 @@ export default { ...@@ -2891,10 +2894,6 @@ export default {
}) })
}, },
routerWordCalendar(name) { routerWordCalendar(name) {
if (name) {
console.log('跳转暂时未做,需要做的时候删除这段代码!')
return
}
let data = [] let data = []
switch (name) { switch (name) {
case 'S': case 'S':
...@@ -2943,6 +2942,7 @@ export default { ...@@ -2943,6 +2942,7 @@ export default {
query: { query: {
name: name, name: name,
sorties: this.info.aircraftSorties.defCode, sorties: this.info.aircraftSorties.defCode,
// serialNumber: this.$route.query.serialNumber,
data: data data: data
} }
} }
...@@ -2955,8 +2955,11 @@ export default { ...@@ -2955,8 +2955,11 @@ export default {
this.siteProblemManagementSummaryParams = { this.siteProblemManagementSummaryParams = {
name: 'siteProblemManagementSummary', name: 'siteProblemManagementSummary',
query: { query: {
// serialNumber: this.$route.query.serialNumber,
name: name, name: name,
planId: null, rootPage: 'AssembleKanban',
planId: this.$route.query.planId,
model: this.$route.query.model,
sorties: this.$route.query.sorties sorties: this.$route.query.sorties
} }
} }
...@@ -2966,11 +2969,11 @@ export default { ...@@ -2966,11 +2969,11 @@ export default {
* 行动项 * 行动项
*/ */
routerActionitems(name) { routerActionitems(name) {
this.actionitemsParams = { this.actionItemsParams = {
name: 'actionitemsParams', name: 'actionItemsParams',
query: { query: {
name: name, name: name,
planId: this.info.airModel.resName, model: this.$route.query.model,
sorties: this.$route.query.sorties sorties: this.$route.query.sorties
} }
} }
...@@ -3344,7 +3347,7 @@ export default { ...@@ -3344,7 +3347,7 @@ export default {
} }
&.s52 { &.s52 {
top: 332px; top: 332px;
left: 110px; left: 90px;
width: 111px; width: 111px;
height: 65px; height: 65px;
z-index: 9; z-index: 9;
...@@ -3399,8 +3402,8 @@ export default { ...@@ -3399,8 +3402,8 @@ export default {
} }
} }
&.s51 { &.s51 {
top: 369px; top: 359px;
left: 249px; left: 189px;
width: 181px; width: 181px;
height: 89px; height: 89px;
> .model { > .model {
...@@ -3454,10 +3457,10 @@ export default { ...@@ -3454,10 +3457,10 @@ export default {
} }
} }
&.s41 { &.s41 {
top: 415px; top: 405px;
left: 453px; left: 330px;
width: 209px; width: 199px;
height: 102px; height: 92px;
> .model { > .model {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -3484,7 +3487,7 @@ export default { ...@@ -3484,7 +3487,7 @@ export default {
> .stage { > .stage {
width: 215px; width: 215px;
height: 50px; height: 50px;
top: 89px; top: 79px;
left: 11px; left: 11px;
position: absolute; position: absolute;
background-image: url("../../../assets/看板2/站台/41底座.png"); background-image: url("../../../assets/看板2/站台/41底座.png");
...@@ -3494,7 +3497,7 @@ export default { ...@@ -3494,7 +3497,7 @@ export default {
> .tai { > .tai {
width: 157px; width: 157px;
height: 23px; height: 23px;
top: 92px; top: 82px;
left: 41px; left: 41px;
position: absolute; position: absolute;
background-repeat: no-repeat; //不重复 background-repeat: no-repeat; //不重复
...@@ -3508,10 +3511,10 @@ export default { ...@@ -3508,10 +3511,10 @@ export default {
} }
} }
&.s31 { &.s31 {
top: 476px; top: 450px;
left: 714px; left: 524px;
width: 220px; width: 200px;
height: 115px; height: 105px;
> .model { > .model {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -3529,6 +3532,60 @@ export default { ...@@ -3529,6 +3532,60 @@ export default {
background-image: url("../../../assets/看板2/31灰.png"); background-image: url("../../../assets/看板2/31灰.png");
} }
} }
> .stage {
width: 260px;
height: 75px;
top: 77px;
left: -15px;
position: absolute;
background-image: url("../../../assets/看板2/站台/31底座.png");
background-repeat: no-repeat; //不重复
background-size: 100% 100%; // 满屏
}
> .tai {
width: 196px;
height: 36px;
top: 84px;
left: 25px;
position: absolute;
background-repeat: no-repeat; //不重复
background-size: 100% 100%; // 满屏
&.stage-dong {
background-image: url("../../../assets/看板2/站台/动台.gif");
}
&.stage-jing {
background-image: url("../../../assets/看板2/站台/静台.png");
}
}
> p {
top: -18px;
left: 96px;
width: 62px;
text-align: center;
}
}
&.s21 {
top: 506px;
left: 734px;
width: 220px;
height: 115px;
> .model {
width: 100%;
height: 100%;
z-index: 9;
position: absolute;
background-repeat: no-repeat; //不重复
background-size: 100% 100%; // 满屏
&.New {
background-image: url("../../../assets/看板2/21线.png");
}
&.Run {
background-image: url("../../../assets/看板2/21黄.png");
}
&.Finish {
background-image: url("../../../assets/看板2/21灰.png");
}
}
> .stage { > .stage {
width: 277px; width: 277px;
height: 85px; height: 85px;
...@@ -3561,6 +3618,7 @@ export default { ...@@ -3561,6 +3618,7 @@ export default {
text-align: center; text-align: center;
} }
} }
} }
} }
> footer { > footer {
......
...@@ -10,20 +10,28 @@ ...@@ -10,20 +10,28 @@
@close="close" @close="close"
@opened="opened" @opened="opened"
> >
<!-- <Actionitems /> -->Actionitems <dee-as-com
ref="table"
class="list-table"
:lay-config="cmpOptions"
/>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
// import Actionitems from '@/views/mes/actionItemManagement/actionItemManagementSearch/index'
export default { export default {
name: 'ActionitemsDialog', name: 'ActionitemsDialog',
components: { components: {
// Actionitems
}, },
props: { }, props: {
actionItemsParams: {
type: Object,
default: () => {}
}
},
data() { data() {
return { return {
visible: false visible: false,
cmpOptions: { typeName: 'ActionItem', layKey: 'ActionItemTable_onlyReadCopy' }
} }
}, },
computed: { computed: {
...@@ -31,11 +39,36 @@ export default { ...@@ -31,11 +39,36 @@ export default {
created() {}, created() {},
methods: { methods: {
opened() { opened() {
this.$children[0].$children[0].getAirModelList() const queryData = this.actionItemsParams.query
const extraParams = [
{
'fieldName': 'state',
'operator': 'EQ',
'value': 'TF_WWC'
},
{
'fieldName': 'airModel',
'operator': 'EQ',
'value': queryData.model
},
{
'fieldName': 'serialNo',
'operator': 'EQ',
'value': queryData.sorties
},
{
'fieldName': 'categoryCode',
'operator': 'EQ',
'value': queryData.name
}
]
setTimeout(() => {
this.$refs.table.$refs.asCom.getData(extraParams)
}, 500)
}, },
close() { close() {
this.visible = false this.visible = false
this.$parent.actionitemsParams = {}
} }
} }
} }
......
...@@ -10,28 +10,70 @@ ...@@ -10,28 +10,70 @@
@close="close" @close="close"
@opened="opened" @opened="opened"
> >
JobPlanExecutionQuery <!-- <JobPlanExecutionQuery /> --> <dee-as-com
ref="table"
class="list-table"
:lay-config="cmpOptions"
/>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
// import JobPlanExecutionQuery from '@/views/mes/physicalQualityAndConfiguratioCnontrol/jobPlanExecutionSummary'
export default { export default {
name: 'JobPlanExecutionQueryDialog', name: 'JobPlanExecutionQueryDialog',
components: { components: {
// JobPlanExecutionQuery
}, },
props: {}, props: {
jobPlanExecutionQueryParams: {
type: Object,
default: () => {}
}
},
data() { data() {
return { return {
visible: false visible: false,
cmpOptions: { typeName: 'JoExecutePlan', layKey: 'JoExecutePlanTable' }
} }
}, },
computed: {}, computed: {},
created() {}, created() {},
methods: { methods: {
opened() { opened() {
this.$children[0].$children[0].getAirModelList() const queryData = this.jobPlanExecutionQueryParams.query
// this.$parent.JobPlanExecutionQueryParams = {} const extraParams = [
{
'fieldName': 'planeType',
'operator': 'EQ',
'value': queryData.model
},
{
'fieldName': 'sorties',
'operator': 'EQ',
'value': queryData.sorties
},
{
'fieldName': 'positionNumber',
'operator': 'LIKE',
'value': queryData.serialNumber
}
]
if (queryData.rootPage === 'ProductionKanban') {
extraParams.push({
'fieldName': 'joExecutePlan.planState',
'operator': 'IN',
'value': queryData.planStateCode
})
} else {
extraParams.push({
'fieldName': 'joExecutePlan.scheduledEnd',
'operator': 'BTWN',
'value': queryData.date && queryData.date.value,
'value1': queryData.date && queryData.date.value1
})
}
setTimeout(() => {
this.$refs.table.$refs.asCom.getData(extraParams)
}, 500)
}, },
close() { close() {
this.visible = false this.visible = false
......
...@@ -11,17 +11,22 @@ ...@@ -11,17 +11,22 @@
@close="close" @close="close"
@opened="opened" @opened="opened"
> >
<!-- <SQCDP /> -->SQCDP <SQCDP ref="SQCDP" :sqcdp-params="sqcdpParams" />
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
// import SQCDP from '@/views/mes/baseData/sqcdp/index.vue' import SQCDP from '../../Sqcdp'
export default { export default {
name: 'SQCDPDialog', name: 'SQCDPDialog',
components: { components: {
// SQCDP SQCDP
},
props: {
sqcdpParams: {
type: Object,
default: () => {}
}
}, },
props: { },
data() { data() {
return { return {
visible: false visible: false
...@@ -32,10 +37,10 @@ export default { ...@@ -32,10 +37,10 @@ export default {
created() {}, created() {},
methods: { methods: {
opened() { opened() {
this.$children[0].$children[0].initYear() this.$refs.SQCDP.initYear()
}, },
close() { close() {
this.$parent.sqcdpParams = {} // this.$parent.sqcdpParams = {}
this.visible = false this.visible = false
} }
} }
...@@ -46,6 +51,7 @@ export default { ...@@ -46,6 +51,7 @@ export default {
position: absolute; position: absolute;
.el-dialog__header{ .el-dialog__header{
text-align: center; text-align: center;
// background: linear-gradient(90deg, #2F70A4 0%, #4E85A3 64%, #55A781 100%);
} }
.el-dialog { .el-dialog {
max-height:100%; max-height:100%;
......
...@@ -11,20 +11,28 @@ ...@@ -11,20 +11,28 @@
@close="close" @close="close"
@opened="opened" @opened="opened"
> >
SiteProblemManagementSummary<!-- <SiteProblemManagementSummary /> --> <dee-as-com
ref="table"
class="list-table"
:lay-config="cmpOptions"
/>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
// import SiteProblemManagementSummary from '@/views/mes/physicalQualityAndConfiguratioCnontrol/siteProblemManagementSummary/index.vue'
export default { export default {
name: 'SQCDPDialog', name: 'SiteProblemManagementSummary',
components: { components: {
// SiteProblemManagementSummary
}, },
props: { }, props: {
siteProblemManagementSummaryParams: {
type: Object,
default: () => {}
}
},
data() { data() {
return { return {
visible: false visible: false,
cmpOptions: { typeName: 'SpotProblem', layKey: 'defaultResultCopy' }
} }
}, },
computed: { computed: {
...@@ -32,11 +40,36 @@ export default { ...@@ -32,11 +40,36 @@ export default {
created() {}, created() {},
methods: { methods: {
opened() { opened() {
this.$children[0].$children[0].init() const queryData = this.siteProblemManagementSummaryParams.query
this.$parent.siteProblemManagementSummaryParams = {} const extraParams = [
{
'fieldName': 'sptype',
'operator': 'LIKE',
'value': queryData.name
},
{
'fieldName': 'airModel',
'operator': 'EQ',
'value': queryData.model
},
{
'fieldName': 'sorties',
'operator': 'EQ',
'value': queryData.sorties
}
]
if (queryData.rootPage === 'ExperimentKanban') {
extraParams.push({
'fieldName': 'standPosition',
'operator': 'EQ',
'value': queryData.serialNumber
})
}
setTimeout(() => {
this.$refs.table.$refs.asCom.getData(extraParams)
}, 500)
}, },
close() { close() {
this.$parent.siteProblemManagementSummaryParams = {}
this.visible = false this.visible = false
} }
} }
......
...@@ -1977,10 +1977,10 @@ ...@@ -1977,10 +1977,10 @@
@click="isFullClick" @click="isFullClick"
> >
</div> </div>
<JobPlanExecutionQueryDialog ref="JobPlanExecutionQueryDialog" /> <JobPlanExecutionQueryDialog ref="JobPlanExecutionQueryDialog" :job-plan-execution-query-params="JobPlanExecutionQueryParams" />
<SQCDPDialog ref="SQCDPDialog" /> <SQCDPDialog ref="SQCDPDialog" :sqcdp-params="sqcdpParams" />
<SummaryOfStationMissingPartsDialog ref="SummaryOfStationMissingPartsDialog" /> <SummaryOfStationMissingPartsDialog ref="SummaryOfStationMissingPartsDialog" />
<SiteProblemManagementSummaryDialog ref="SiteProblemManagementSummaryDialog" /> <SiteProblemManagementSummaryDialog ref="SiteProblemManagementSummaryDialog" :site-problem-management-summary-params="siteProblemManagementSummaryParams" />
</div> </div>
</template> </template>
...@@ -1988,7 +1988,6 @@ ...@@ -1988,7 +1988,6 @@
import * as echarts from 'echarts' import * as echarts from 'echarts'
import $ from 'jquery' import $ from 'jquery'
import elementResizeDetectorMaker from 'element-resize-detector' import elementResizeDetectorMaker from 'element-resize-detector'
import JobPlanExecutionQueryDialog from './Dialog/JobPlanExecutionQueryDialog.vue' import JobPlanExecutionQueryDialog from './Dialog/JobPlanExecutionQueryDialog.vue'
import SQCDPDialog from './Dialog/SQCDPDialog.vue' import SQCDPDialog from './Dialog/SQCDPDialog.vue'
import SummaryOfStationMissingPartsDialog from './Dialog/SummaryOfStationMissingPartsDialog.vue' import SummaryOfStationMissingPartsDialog from './Dialog/SummaryOfStationMissingPartsDialog.vue'
...@@ -2565,10 +2564,6 @@ export default { ...@@ -2565,10 +2564,6 @@ export default {
const chartDom = document.getElementById('experimentKanbanEchart') const chartDom = document.getElementById('experimentKanbanEchart')
const myChart = echarts.init(chartDom) const myChart = echarts.init(chartDom)
myChart.on('click', function(params) { myChart.on('click', function(params) {
if (params) {
console.log('跳转暂时未做,需要做的时候删除这段代码!')
return
}
that.routerJobPlanExecutionSummary(params) that.routerJobPlanExecutionSummary(params)
}) })
myChart.setOption(optionTrend) myChart.setOption(optionTrend)
...@@ -2630,10 +2625,6 @@ export default { ...@@ -2630,10 +2625,6 @@ export default {
const chartDom = document.getElementById('superviseEchart') const chartDom = document.getElementById('superviseEchart')
const myChart = echarts.init(chartDom) const myChart = echarts.init(chartDom)
myChart.on('click', function(params) { myChart.on('click', function(params) {
if (params) {
console.log('跳转暂时未做,需要做的时候删除这段代码!')
return
}
that.routerSiteProblemManagementSummary(params.name) that.routerSiteProblemManagementSummary(params.name)
}) })
myChart.setOption(superviseOption) myChart.setOption(superviseOption)
...@@ -2723,29 +2714,59 @@ export default { ...@@ -2723,29 +2714,59 @@ export default {
* sqcdp维护 * sqcdp维护
*/ */
routerWordCalendar(name) { routerWordCalendar(name) {
if (name) { let data = []
console.log('跳转暂时未做,需要做的时候删除这段代码!') switch (name) {
return case 'S':
data = this.sqcdpData.S.map((p) => {
return {
calendar: p.date.substr(5, 5),
srisk: p.color === 'Green' ? 'null' : p.color
}
})
break
case 'Q':
data = this.sqcdpData.Q.map((p) => {
return {
calendar: p.date.substr(5, 5),
qrisk: p.color === 'Green' ? 'null' : p.color
}
})
break
case 'C':
data = this.sqcdpData.C.map((p) => {
return {
calendar: p.date.substr(5, 5),
crisk: p.color === 'Green' ? 'null' : p.color
}
})
break
case 'D':
data = this.sqcdpData.D.map((p) => {
return {
calendar: p.date.substr(5, 5),
drisk: p.color === 'Green' ? 'null' : p.color
}
})
break
case 'P':
data = this.sqcdpData.P.map((p) => {
return {
calendar: p.date.substr(5, 5),
prisk: p.color === 'Green' ? 'null' : p.color
}
})
break
} }
this.sqcdpParams = { this.sqcdpParams = {
name: 'sqcdpMaintain', name: 'sqcdpMaintain',
query: { query: {
name: name, name: name,
sorties: false, sorties: false,
serialNumber: this.info.serialNumber, serialNumber: this.$route.query.serialNumber,
data: [] data: data
} }
} }
this.$refs.SQCDPDialog.visible = true this.$refs.SQCDPDialog.visible = true
// this.$router.push({
// name: 'sqcdpMaintain',
// query: {
// name: name,
// sorties: false,
// serialNumber: this.info.serialNumber,
// data: []
// }
// })
}, },
/** /**
* 路由跳转作业计划执行查询 * 路由跳转作业计划执行查询
...@@ -2754,12 +2775,11 @@ export default { ...@@ -2754,12 +2775,11 @@ export default {
this.JobPlanExecutionQueryParams = { this.JobPlanExecutionQueryParams = {
name: 'jobPlanExecutionSummary', name: 'jobPlanExecutionSummary',
query: { query: {
serialNumber: this.$route.query.planId, serialNumber: this.$route.query.serialNumber,
// planId: this.$route.query.planId, rootPage: 'ExperimentKanban',
model: this.$route.query.model, model: this.$route.query.model,
sorties: this.$route.query.sorties, sorties: this.$route.query.sorties,
date: params.name, date: { value: params.name + ' 00:00:00', value1: params.name + ' 23:59:59' }
isOk: params.seriesName === '计划完工' ? 'Y' : 'N'
} }
} }
this.$refs.JobPlanExecutionQueryDialog.visible = true this.$refs.JobPlanExecutionQueryDialog.visible = true
...@@ -2771,9 +2791,12 @@ export default { ...@@ -2771,9 +2791,12 @@ export default {
this.siteProblemManagementSummaryParams = { this.siteProblemManagementSummaryParams = {
name: 'siteProblemManagementSummary', name: 'siteProblemManagementSummary',
query: { query: {
serialNumber: this.$route.query.serialNumber,
name: name, name: name,
rootPage: 'ExperimentKanban',
planId: this.$route.query.planId, planId: this.$route.query.planId,
sorties: null// this.$route.query.sorties model: this.$route.query.model,
sorties: this.$route.query.sorties
} }
} }
this.$refs.SiteProblemManagementSummaryDialog.visible = true this.$refs.SiteProblemManagementSummaryDialog.visible = true
...@@ -3131,6 +3154,23 @@ export default { ...@@ -3131,6 +3154,23 @@ export default {
background-image: url("../../../assets/看板/内页飞机切图/31灰内.png"); background-image: url("../../../assets/看板/内页飞机切图/31灰内.png");
} }
} }
&.s21 {
top: 180px;
left: 105px;
width: 570px;
height: 245px;
background-repeat: no-repeat; //不重复
background-size: 100% 100%; // 满屏
&.New {
background-image: url("../../../assets/看板/内页飞机切图/31线内.png");
}
&.Run {
background-image: url("../../../assets/看板/内页飞机切图/31黄内.png");
}
&.Finish {
background-image: url("../../../assets/看板/内页飞机切图/31灰内.png");
}
}
} }
> .stage { > .stage {
width: 651px; width: 651px;
......
...@@ -625,6 +625,10 @@ export default { ...@@ -625,6 +625,10 @@ export default {
{ {
'fieldName': 'initials', 'fieldName': 'initials',
'sortOrder': 'asc' 'sortOrder': 'asc'
},
{
'fieldName': 'createTime',
'sortOrder': 'desc'
} }
], ],
'toValidateKeys': '' 'toValidateKeys': ''
......
...@@ -709,6 +709,10 @@ export default { ...@@ -709,6 +709,10 @@ export default {
{ {
'fieldName': 'initials', 'fieldName': 'initials',
'sortOrder': 'asc' 'sortOrder': 'asc'
},
{
'fieldName': 'createTime',
'sortOrder': 'desc'
} }
], ],
'toValidateKeys': '' 'toValidateKeys': ''
......
...@@ -192,7 +192,10 @@ export default { ...@@ -192,7 +192,10 @@ export default {
// 发送请求 // 发送请求
post('/ExtScanCodeRecord/search', params) post('/ExtScanCodeRecord/search', params)
.then((res) => { .then((res) => {
this.tableData = res.items.content || [] this.tableData = res.items.content.map(item => {
item.amount = Number(item.amount).toFixed(20).replace(/\.0+$/, '').replace(/(\.\d+[1-9])0+$/, '$1')
return item
}) || []
this.tablePagination.total = res.items.totalElements this.tablePagination.total = res.items.totalElements
}) })
.catch((err) => console.log(err)) .catch((err) => console.log(err))
......
...@@ -81,7 +81,10 @@ export default { ...@@ -81,7 +81,10 @@ export default {
basicData: { selectData: _that.selectData, selectionRows: [] }, basicData: { selectData: _that.selectData, selectionRows: [] },
loadingMaterial: false, loadingMaterial: false,
loadingAirEquipment: false, loadingAirEquipment: false,
loadingOutSource: false loadingOutSource: false,
firstMaterialClick: true,
firstOutSourceClick: false,
firstAirEquipmentClick: false
} }
}, },
computed: { computed: {
...@@ -135,6 +138,16 @@ export default { ...@@ -135,6 +138,16 @@ export default {
}, },
tabClick() { tabClick() {
this.$set(this.basicData, 'selectionRows', []) this.$set(this.basicData, 'selectionRows', [])
if (this['first' + this.active + 'Click']) return
this['first' + this.active + 'Click'] = true
if (['AirEquipment', 'OutSource'].includes(this.active)) {
this.$nextTick(() => {
const com = this.$utils._get(this.$refs[this.active + 'Table'], '$refs.asCom')
if (com && com.showData) {
com.showData = [...com.showData]
}
})
}
} }
} }
} }
......
<!--
* @Author: gjn
* @Date: 2023-08-04 10:29:39
* @Description:批量签审_理化实验入库响应
-->
<template>
<div class="jobResponseInExperiment">
<dee-as-com
ref="applyTable"
class="list-table"
:basic-data=" { selectData,selectionRows }"
:lay-config="{ typeName: 'JobResponseInStorage', layKey: 'batchSign_jobResponseInExperiment'}"
@selectionChange="selectionChange"
/>
</div>
</template>
<script>
export default {
name: 'JobResponseInExperiment',
components: {},
props: {
selectData: {
type: Object,
default: () => {}
}
},
data() {
return {
selectionRows: []
}
},
computed: {},
watch: {},
created() {},
mounted() {},
// 组件方法
methods: {
selectionChange(val) {
this.selectionRows = val
}
}
}
</script>
<style lang='scss'>
.jobResponseInExperiment{
width: 100%;
height: 100%;
box-sizing: border-box;
padding:0 4px;
}
</style>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
@searchEvent="searchEvent" @searchEvent="searchEvent"
/> />
<!-- tab页签 --> <!-- tab页签 -->
<el-tabs v-model="active" type="border-card" class="detailTabs"> <el-tabs v-model="active" type="border-card" class="detailTabs" @tab-click="tabClick">
<el-tab-pane :label="'器材验收单(' + totals.MaterialTotal + ')'" name="Material"> <el-tab-pane :label="'器材验收单(' + totals.MaterialTotal + ')'" name="Material">
<dee-as-com <dee-as-com
ref="MaterialTable" ref="MaterialTable"
...@@ -75,7 +75,10 @@ export default { ...@@ -75,7 +75,10 @@ export default {
], ],
loadingMaterial: false, loadingMaterial: false,
loadingAirEquipment: false, loadingAirEquipment: false,
loadingOutSource: false loadingOutSource: false,
firstMaterialClick: true,
firstOutSourceClick: false,
firstAirEquipmentClick: false
} }
}, },
computed: { computed: {
...@@ -122,6 +125,18 @@ export default { ...@@ -122,6 +125,18 @@ export default {
el.$refs.asCom.getData(this.searchItems) el.$refs.asCom.getData(this.searchItems)
} }
}) })
},
tabClick(val) {
if (this['first' + this.active + 'Click']) return
this['first' + this.active + 'Click'] = true
if (['AirEquipment', 'OutSource'].includes(this.active)) {
this.$nextTick(() => {
const com = this.$utils._get(this.$refs[this.active + 'Table'], '$refs.asCom')
if (com && com.showData) {
com.showData = [...com.showData]
}
})
}
} }
} }
} }
......
...@@ -81,7 +81,10 @@ export default { ...@@ -81,7 +81,10 @@ export default {
basicData: { selectData: _that.selectData, selectionRows: [] }, basicData: { selectData: _that.selectData, selectionRows: [] },
loadingMaterial: false, loadingMaterial: false,
loadingAirEquipment: false, loadingAirEquipment: false,
loadingOutSource: false loadingOutSource: false,
firstMaterialClick: true,
firstOutSourceClick: false,
firstAirEquipmentClick: false
} }
}, },
computed: { computed: {
...@@ -127,6 +130,16 @@ export default { ...@@ -127,6 +130,16 @@ export default {
}, },
tabClick() { tabClick() {
this.$set(this.basicData, 'selectionRows', []) this.$set(this.basicData, 'selectionRows', [])
if (this['first' + this.active + 'Click']) return
this['first' + this.active + 'Click'] = true
if (['AirEquipment', 'OutSource'].includes(this.active)) {
this.$nextTick(() => {
const com = this.$utils._get(this.$refs[this.active + 'Table'], '$refs.asCom')
if (com && com.showData) {
com.showData = [...com.showData]
}
})
}
} }
} }
} }
......
...@@ -81,7 +81,10 @@ export default { ...@@ -81,7 +81,10 @@ export default {
basicData: { selectData: _that.selectData, selectionRows: [] }, basicData: { selectData: _that.selectData, selectionRows: [] },
loadingMaterial: false, loadingMaterial: false,
loadingAirEquipment: false, loadingAirEquipment: false,
loadingOutSource: false loadingOutSource: false,
firstMaterialClick: true,
firstOutSourceClick: false,
firstAirEquipmentClick: false
} }
}, },
computed: { computed: {
...@@ -135,6 +138,16 @@ export default { ...@@ -135,6 +138,16 @@ export default {
}, },
tabClick() { tabClick() {
this.$set(this.basicData, 'selectionRows', []) this.$set(this.basicData, 'selectionRows', [])
if (this['first' + this.active + 'Click']) return
this['first' + this.active + 'Click'] = true
if (['AirEquipment', 'OutSource'].includes(this.active)) {
this.$nextTick(() => {
const com = this.$utils._get(this.$refs[this.active + 'Table'], '$refs.asCom')
if (com && com.showData) {
com.showData = [...com.showData]
}
})
}
} }
} }
} }
......
<!--
* @Author: gjn
* @Date: 2023-11-10 10:29:39
* @Description:批量签审_检验入库响应
-->
<template>
<div class="warehouseInTest">
<dee-as-com
:key="refreshKey"
ref="applyTable"
class="list-table"
:basic-data=" { selectData,selectionRows }"
:lay-config="{ typeName: 'JobResponseInStorage', layKey: 'batchSign_jobResponseInTest'}"
@selectionChange="selectionChange"
/>
</div>
</template>
<script>
export default {
name: 'WarehouseInTest',
components: {},
props: {
selectData: {
type: Object,
default: () => {}
}
},
data() {
return {
selectionRows: [],
refreshKey: 1
}
},
computed: {},
watch: {},
created() {},
mounted() {
this.$bus.$on('refreshBackItem', () => {
this.$nextTick(() => {
this.refreshKey++
})
})
},
// 组件方法
methods: {
selectionChange(val) {
this.selectionRows = val
}
}
}
</script>
<style lang='scss'>
.warehouseInTest{
width: 100%;
height: 100%;
box-sizing: border-box;
padding:0 4px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment