1.增加月度计划下发前校验套料图下发情况、物料情况是否满足施工进度要求,不满足时进行提醒,并且在下发时进行二次确认才可下发

master
董哲奇 1 year ago
parent 89ce2f33bf
commit 45d4d55254

@ -82,6 +82,7 @@
highlight-hover-row highlight-hover-row
show-overflow show-overflow
show-header-overflow show-header-overflow
:scroll-y="{enabled: true}"
> >
</vxe-grid> </vxe-grid>
</div> </div>

@ -47,6 +47,14 @@
show-overflow show-overflow
:scroll-y="{enabled: true}" :scroll-y="{enabled: true}"
> >
<template #ng="{ row }">
<div>
<el-tooltip v-if="!!handlerTooTipContent(row)" class="item" effect="dark" :content="handlerTooTipContent(row)" placement="top-start">
<i class="el-icon-warning icon-style"/>
</el-tooltip>
{{row.dcCh}}
</div>
</template>
</vxe-grid> </vxe-grid>
</div> </div>
<!-- <!--
@ -205,7 +213,7 @@
</template> </template>
<script> <script>
import router from "@/router"; import { VXETable } from 'vxe-table'
import {getCzxx, qfxqTJ} from '@/api/jhzx/qfxq' import {getCzxx, qfxqTJ} from '@/api/jhzx/qfxq'
import {getYdjh, ydjhxf, getCnsb,hz} from '@/api/jhzx/sygd' import {getYdjh, ydjhxf, getCnsb,hz} from '@/api/jhzx/sygd'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
@ -244,7 +252,9 @@ export default {
{ type: 'seq', width: 60, title: '序号'}, { type: 'seq', width: 60, title: '序号'},
{ field: 'dcCh', title: '船号',width: 100, { field: 'dcCh', title: '船号',width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }}, filterRender: { name: 'FilterCombination', },
slots:{default:'ng'}
},
{ field: 'dcCh1', title: '目标船号',width: 90, { field: 'dcCh1', title: '目标船号',width: 90,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination', }},// filterRender: { name: 'FilterCombination', }},//
@ -949,11 +959,43 @@ export default {
this.initBase() this.initBase()
}, },
methods: { methods: {
ydjhxf(){ handlerTooTipContent(row){
if(this.checkedList.length<=0){ let str=''
if(!row.czplpNew){
str+='缺少图纸计划;';
}else {
//
if(row.czplpNew.tltxfrq>row.qgrq){
str+='套料图下发日期('+row.czplpNew.tltxfrq+')不满足切割计划('+row.qgrq+');';
}
}
if(!row.kc){
str+='缺少库存;'
}
//
row._ngMsg=str;
return str;
},
async ydjhxf() {
if (this.checkedList.length <= 0) {
return return
} }
ydjhxf(this.checkedList).then(res=> { let tipsFlag = false
let tipsMsg=''
for (const item of this.checkedList) {
if (item._ngMsg) {
tipsFlag = true
tipsMsg=item.dcCh+","+item.dcPl+","+item.dcFd+':'+item._ngMsg+'!是否继续下发'
break;
}
}
if (tipsFlag) {
const type = await VXETable.modal.confirm(tipsMsg)
if(type==='cancel'){
return;
}
}
ydjhxf(this.checkedList).then(res => {
if (res.success) { if (res.success) {
this.initList() this.initList()
} }
@ -1069,6 +1111,21 @@ export default {
</script> </script>
<style lang="scss" scoped > <style lang="scss" scoped >
.icon-wrapper {
background-color: #f00; /* 红色背景 */
border-radius: 50%; /* 如果你想要圆形图标容器 */
display: inline-flex;
justify-content: center;
align-items: center;
width: 50px; /* 或者你想要的任何尺寸 */
height: 50px; /* 或者你想要的任何尺寸 */
}
.icon-style {
color: #fd2222; /* 图标颜色 */
/* 其他图标样式 */
}
.el-header{margin:0;padding: 5px;height:auto; .el-header{margin:0;padding: 5px;height:auto;
.el-input{ .el-input{
width: 140px; width: 140px;

Loading…
Cancel
Save