前端样式调整

This commit is contained in:
Ledo 2025-06-06 12:21:59 +08:00
parent ef585eda43
commit b5bc9c2ca3
8 changed files with 84 additions and 37 deletions

View File

@ -188,17 +188,27 @@ const getDetailMsg = (row) =>{
if(row.isOverProcess){
//
if(row.twoDimDate != null && row.lastDate != null ){
const start = new Date(row.twoDimDate).getTime();
const starttemp = new Date(row.twoDimDate);
starttemp.setHours(23,59,59,999);
const start =starttemp.getTime()
const end = new Date(row.lastDate).getTime();
const diffTime = Math.abs(end - start);
var day = Math.floor(diffTime / (1000 * 60 * 60 * 24));
if(row.lastDate > row.twoDimDate){
if(day == 0){
if(row.isDelay == 1 && row.lastDate > row.blankDate){
return '延后' + (day+1) +'天';
}
return '按时完成'
}else{
if(row.lastDate > row.blankDate){
return '延后' + day +'天';
}else if (row.lastDate < row.twoDimDate){
}else if (row.lastDate < row.blankDate){
return '提前' + day +'天';
}else{
return '按时完成'
}
}
}else{
return '实施中';
}

View File

@ -238,17 +238,26 @@ const getDetailMsg = (row) =>{
if(row.isOverProcess){
//
if(row.threeDimDate != null && row.lastDate != null ){
const start = new Date(row.threeDimDate).getTime();
const starttemp = new Date(row.threeDimDate);
starttemp.setHours(23,59,59,999);
const start =starttemp.getTime()
const end = new Date(row.lastDate).getTime();
const diffTime = Math.abs(end - start);
var day = Math.floor(diffTime / (1000 * 60 * 60 * 24));
if(row.lastDate > row.threeDimDate){
if(day == 0){
if(row.isDelay == 1 && row.lastDate > row.blankDate){
return '延后' + (day+1) +'天';
}
return '按时完成'
}else{
if(row.lastDate > row.blankDate){
return '延后' + day +'天';
}else if (row.lastDate < row.threeDimDate){
}else if (row.lastDate < row.blankDate){
return '提前' + day +'天';
}else{
return '按时完成'
}
}
}else{
return '实施中';
}

View File

@ -206,10 +206,9 @@ v-for="dict in getIntDictOptions(DICT_TYPE.HELI_PROJECT_PLAN_STATUS)" :key="dict
<el-input
v-model="formData.delayReason"
:rows="2"
:disabled="!delayDialog"
@blur="(e) => delaySubmit(e)"
:disabled="!(formData.isOverProcess == null || formData.isOverProcess == 0)"
type="textarea"
placeholder="输入延期原因后,鼠标点击空白区域自动保存。"
/>
</el-form-item>
</el-col>
@ -515,7 +514,7 @@ const beginTimeChange = (e , row) =>{
}
}
}
const delaySubmit = async(event) =>{
const delaySubmit = async() =>{
if(formData.value.delayReason == null || formData.value.delayReason.replaceAll(' ','') == ''){
message.error("延期原因不得为空,请确认!")
return;
@ -524,11 +523,14 @@ const delaySubmit = async(event) =>{
formData.value.delayTime = (new Date()).getTime()
await submitForm('SAVE');
}
const openDelay = () =>{
const openDelay = async() =>{
var date = new Date();
if(processDesignType.value == 'BLUEPRINT_WORKBLANK'){
if(formData.value.blankDate != null ){
if(formData.value.blankDate > date.getTime()){
var dateT = new Date(formData.value.blankDate)
dateT.setHours(23,59,59,999)
if( dateT.getTime() > date.getTime()){
message.error("当前日期为正常生产周期,未达到延期条件,请确认!")
return
}
@ -539,7 +541,9 @@ const openDelay = () =>{
}
if(processDesignType.value == 'BLUEPRINT_2D'){
if(formData.value.twoDimDate != null ){
if(formData.value.twoDimDate > date.getTime()){
var dateT = new Date(formData.value.blankDate)
dateT.setHours(23,59,59,999)
if(dateT.getTime() > date.getTime()){
message.error("当前日期为正常生产周期,未达到延期条件,请确认!")
return
}
@ -550,7 +554,9 @@ const openDelay = () =>{
}
if(processDesignType.value == 'BLUEPRINT_3D'){
if(formData.value.threeDimDate != null ){
if(formData.value.threeDimDate > date.getTime()){
var dateT = new Date(formData.value.blankDate)
dateT.setHours(23,59,59,999)
if(dateT.getTime() > date.getTime()){
message.error("当前日期为正常生产周期,未达到延期条件,请确认!")
return
}
@ -562,7 +568,9 @@ const openDelay = () =>{
if(processDesignType.value == 'BLUEPRINT_FOUNDRY_TECHNOLOGY'){
if(formData.value.craftEndDate != null ){
if(formData.value.craftEndDate > date.getTime()){
var dateT = new Date(formData.value.blankDate)
dateT.setHours(23,59,59,999)
if(dateT.getTime() > date.getTime()){
message.error("当前日期为正常生产周期,未达到延期条件,请确认!")
return
}
@ -571,7 +579,7 @@ const openDelay = () =>{
return
}
}
delayDialog.value = true;
await delaySubmit()
}
const overRow = async( row :any) =>{

View File

@ -206,17 +206,26 @@ const getDetailMsg = (row) =>{
if(row.isOverProcess){
//
if(row.craftEndDate != null && row.lastDate != null ){
const start = new Date(row.craftEndDate).getTime();
const starttemp = new Date(row.craftEndDate);
starttemp.setHours(23,59,59,999);
const start =starttemp.getTime()
const end = new Date(row.lastDate).getTime();
const diffTime = Math.abs(end - start);
const diffTime = end - start
var day = Math.floor(diffTime / (1000 * 60 * 60 * 24));
if(row.lastDate > row.craftEndDate){
if(day == 0){
if(row.isDelay == 1 && row.lastDate > row.blankDate){
return '延后' + (day+1) +'天';
}
return '按时完成'
}else{
if(row.lastDate > row.blankDate){
return '延后' + day +'天';
}else if (row.lastDate < row.craftEndDate){
}else if (row.lastDate < row.blankDate){
return '提前' + day +'天';
}else{
return '按时完成'
}
}
}else{
// return '';
}

View File

@ -187,17 +187,26 @@ const getDetailMsg = (row) =>{
if(row.isOverProcess){
//
if(row.blankDate != null && row.lastDate != null ){
const start = new Date(row.blankDate).getTime();
const starttemp = new Date(row.blankDate);
starttemp.setHours(23,59,59,999);
const start =starttemp.getTime()
const end = new Date(row.lastDate).getTime();
const diffTime = Math.abs(end - start);
var day = Math.floor(diffTime / (1000 * 60 * 60 * 24));
if(row.lastDate > row.blankDate){
if(day == 0){
if(row.isDelay == 1 && row.lastDate > row.blankDate){
return '延后' + (day+1) +'天';
}
return '按时完成'
}else{
if(row.lastDate > row.blankDate){
return '延后' + day +'天';
}else if (row.lastDate < row.blankDate){
return '提前' + day +'天';
}else{
return '按时完成'
}
}
}else{
return '实施中';
}

View File

@ -218,7 +218,7 @@ class="!w-260px" v-model="formData.createTime" type="date" value-format="x"
v-loading="subFormLoading" label-width="0">
<el-table :data="formData.taskDispatchDetails" height="250" >
<el-table-column fixed label="外协" align="center" width="100">
<el-table-column fixed label="外协" align="center" width="60">
<template #default="{ row }">
<el-checkbox v-model="row.isOutsourcing" @change="handleOutsourcingChange(row)" :disabled="detailDisabled||row.beginProduce != 0 || row.procedureStatus != 0"/>
</template>
@ -262,16 +262,18 @@ class="!w-260px" v-model="formData.createTime" type="date" value-format="x"
<!-- </el-form-item> -->
</template>
</el-table-column>
<el-table-column fixed label="过程检" align="center" prop="testYn" width="120px" >
<el-table-column fixed label="过程检" align="center" prop="testYn" width="78px" >
<template #default="{ row, $index }">
<el-form-item :prop="`${$index}.testYns`" class="mb-0px!">
<el-checkbox v-model="row.checkYns" @change="changeChange(row)" :disabled="detailDisabled||row.beginProduce != 0 || row.procedureStatus != 0" />
<div
style=" display: flex;
justify-content: center;
align-items: center;
width: 100%;">
<el-checkbox v-model="row.checkYns" @change="changeChange(row)" :disabled="detailDisabled||row.beginProduce != 0 || row.procedureStatus != 0" />
<!-- <el-radio-group size="small" :disabled="detailDisabled||row.beginProduce != 0 || row.procedureStatus != 0" v-model="row.testYn" >
<el-radio-button label="N"></el-radio-button>
<el-radio-button label="Y"></el-radio-button>
</el-radio-group> -->
</el-form-item>
</div>
</el-form-item>
</template>
</el-table-column>
<el-table-column fixed label="派工类型" align="center" prop="dispatchType" width="145px">

View File

@ -550,11 +550,11 @@
<view class="product-item">子项目{{ item.projectSubCode || "" }}</view>
<view class="product-item">客户名称{{ item.customerName }}</view>
<view class="product-item" v-if="item.processDesignType == 'BLUEPRINT_2D'">
工艺起止日期{{item.startTwoDimDate}} {{item.twoDimDate}} </view>
工艺起止日期{{item.startTwoDimDate == null ? '':item.startTwoDimDate.substring(0,10)}} {{item.twoDimDate== null ? '':item.twoDimDate.substring(0,10)}} </view>
<view class="product-item" v-else-if="item.processDesignType == 'BLUEPRINT_3D'">
工艺起止日期{{item.startThreeDimDate}} {{item.threeDimDate}} </view>
工艺起止日期{{item.startThreeDimDate== null ? '':item.startThreeDimDate.substring(0,10)}} {{item.threeDimDate== null ? '':item.threeDimDate.substring(0,10)}} </view>
<view class="product-item" v-else-if="item.processDesignType == 'BLUEPRINT_WORKBLANK'">
工艺起止日期{{item.startBlankDate}} {{item.blankDate}} </view>
工艺起止日期{{item.startBlankDate== null ? '':item.startBlankDate.substring(0,10)}} {{item.blankDate== null ? '':item.blankDate.substring(0,10)}} </view>
<!-- <view class="product-item" v-else-if="item.processDesignType == 'BLUEPRINT_FOUNDRY_TECHNOLOGY'">工艺起止日期{{item.twoDimDate}} {{item.threeDimDate}} </view> -->

View File

@ -529,14 +529,14 @@
</view>
<view class="product-item">客户名称{{detailInfo.customerName}}</view>
<view class="product-item" v-if="detailInfo.processDesignType== 'BLUEPRINT_2D'">
工艺起止日期{{formatDate(detailInfo.startTwoDimDate)}} {{formatDate(detailInfo.twoDimDate)}}
工艺起止日期{{formatDate(detailInfo.startTwoDimDate) == ''?'':formatDate(detailInfo.startTwoDimDate).substring(0,10)}} {{formatDate(detailInfo.twoDimDate)== ''?'':formatDate(detailInfo.twoDimDate).substring(0,10)}}
</view>
<view class="product-item" v-else-if="detailInfo.processDesignType== 'BLUEPRINT_3D'">
工艺起止日期{{formatDate(detailInfo.startThreeDimDate)}}
{{formatDate(detailInfo.threeDimDate)}}
工艺起止日期{{formatDate(detailInfo.startThreeDimDate)== ''?'':formatDate(detailInfo.startThreeDimDate).substring(0,10)}}
{{formatDate(detailInfo.threeDimDate)== ''?'':formatDate(detailInfo.threeDimDate).substring(0,10)}}
</view>
<view class="product-item" v-else-if="detailInfo.processDesignType== 'BLUEPRINT_WORKBLANK'">
工艺起止日期{{formatDate(detailInfo.startBlankDate)}} {{formatDate(detailInfo.blankDate)}}
工艺起止日期{{formatDate(detailInfo.startBlankDate)== ''?'':formatDate(detailInfo.startBlankDate).substring(0,10)}} {{formatDate(detailInfo.blankDate)== ''?'':formatDate(detailInfo.blankDate).substring(0,10)}}
</view>
</view>
</view>