|
|
|
@ -47,6 +47,14 @@
|
|
|
|
|
show-overflow
|
|
|
|
|
: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>
|
|
|
|
|
</div>
|
|
|
|
|
<!--
|
|
|
|
@ -205,7 +213,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import router from "@/router";
|
|
|
|
|
import { VXETable } from 'vxe-table'
|
|
|
|
|
import {getCzxx, qfxqTJ} from '@/api/jhzx/qfxq'
|
|
|
|
|
import {getYdjh, ydjhxf, getCnsb,hz} from '@/api/jhzx/sygd'
|
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
@ -244,7 +252,9 @@ export default {
|
|
|
|
|
{ type: 'seq', width: 60, title: '序号'},
|
|
|
|
|
{ field: 'dcCh', title: '船号',width: 100,
|
|
|
|
|
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,
|
|
|
|
|
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
|
|
|
|
|
filterRender: { name: 'FilterCombination', }},//数据来源船,真实数据时,为空
|
|
|
|
@ -949,11 +959,43 @@ export default {
|
|
|
|
|
this.initBase()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
ydjhxf(){
|
|
|
|
|
if(this.checkedList.length<=0){
|
|
|
|
|
handlerTooTipContent(row){
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
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) {
|
|
|
|
|
this.initList()
|
|
|
|
|
}
|
|
|
|
@ -1069,6 +1111,21 @@ export default {
|
|
|
|
|
</script>
|
|
|
|
|
<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-input{
|
|
|
|
|
width: 140px;
|
|
|
|
|