'20240410'

This commit is contained in:
xd 2024-04-10 10:24:48 +08:00
parent a16a6398f0
commit 051bd5a55d
3 changed files with 373 additions and 102 deletions

View File

@ -119,7 +119,12 @@ public class QuotController extends BaseController
} }
/** /**
* 头像上传SysNoticeMapper *
* @param file 文件对象
* @param relation_id 关联业务表Id
* @param file_type 文件类别
* @return
* @throws Exception
*/ */
@PreAuthorize("@ss.hasAnyPermi('quot:quot:list,jsqr:jsqr:list')") @PreAuthorize("@ss.hasAnyPermi('quot:quot:list,jsqr:jsqr:list')")
@Log(title = "上传报价附件", businessType = BusinessType.INSERT) @Log(title = "上传报价附件", businessType = BusinessType.INSERT)
@ -134,10 +139,10 @@ public class QuotController extends BaseController
String url = FileUploadUtils.uploadMinio(file,"quot-manage", "quot/"+relation_id); String url = FileUploadUtils.uploadMinio(file,"quot-manage", "quot/"+relation_id);
int index = url.lastIndexOf("/")+1; int index = url.lastIndexOf("/")+1;
String fileName = url.substring(index); String fileName = url.substring(index);//获取文件名
int index2 = url.indexOf("/quot/"); int index2 = url.indexOf("/quot/");
String fileBucketName = url.substring(index2); String fileBucketName = url.substring(index2);//获取文件对应文件服务器中地址-供后面删除功能用
quotFile.setFileName(fileName); quotFile.setFileName(fileName);
quotFile.setFileBucketName(fileBucketName); quotFile.setFileBucketName(fileBucketName);
@ -175,8 +180,8 @@ public class QuotController extends BaseController
String fileId = quotFile.getFileId(); String fileId = quotFile.getFileId();
try { try {
QuotFile quotfile = quotFileService.selectQuotFileByFileId(fileId); QuotFile quotfile = quotFileService.selectQuotFileByFileId(fileId);
quotFileService.deleteQuotFileByFileId(fileId); quotFileService.deleteQuotFileByFileId(fileId);//删除文件记录
MinioUtil.removeObject("quot-manage", quotfile.getFileBucketName()); MinioUtil.removeObject("quot-manage", quotfile.getFileBucketName());//删除文件服务器对应文件
}catch(Exception e){ }catch(Exception e){
return error("系统异常!"); return error("系统异常!");
} }
@ -196,14 +201,14 @@ public class QuotController extends BaseController
quot.setQuotId(UUID.fastUUID().toString()); quot.setQuotId(UUID.fastUUID().toString());
quot.setQuotCode(IdUtils.createNo("BJD_",2)); quot.setQuotCode(IdUtils.createNo("BJD_",2));
quot.setCreateBy(getUsername()); quot.setCreateBy(getUsername());
quot.setQuotApprovalStatus("1");//提交报价组 quot.setQuotApprovalStatus("1");//报价单 状态设置为 协助中
quot.setQuotInquiryDate(DateUtils.getNowDate()); quot.setQuotInquiryDate(DateUtils.getNowDate());//报价单 询价日期设置为 当前日期
quotService.insertQuot(quot); quotService.insertQuot(quot);
return success(); return success();
}else{ }else{
quot.setUpdateBy(getUsername()); quot.setUpdateBy(getUsername());
quot.setQuotApprovalStatus("1");//提交报价组 quot.setQuotApprovalStatus("1");//报价单 状态设置为 协助中
quot.setQuotInquiryDate(DateUtils.getNowDate()); quot.setQuotInquiryDate(DateUtils.getNowDate());//报价单 询价日期设置为 当前日期
quotService.updateQuot(quot); quotService.updateQuot(quot);
return success(); return success();
} }
@ -228,38 +233,37 @@ public class QuotController extends BaseController
//特缆低压中压其他 协助状态设置 //特缆低压中压其他 协助状态设置
if(quotJsxzGroup.indexOf("TL")!=-1){ if(quotJsxzGroup.indexOf("TL")!=-1){
quotJsqr.setQuotJsqrTlApprovalStatus("1"); quotJsqr.setQuotJsqrTlApprovalStatus("1");//特缆 协助状态 设置为 协助中
quotJsqr.setQuotJsqrTlOperateState("0"); quotJsqr.setQuotJsqrTlOperateState("0");//特缆 操作人状态 设置为 待通过
quotJsqr.setQuotJsqrTlCheckState("0"); quotJsqr.setQuotJsqrTlCheckState("0");//特缆 审核人状态 设置为 待通过
quotJsqr.setQuotJsqrTlLeaderState("0"); quotJsqr.setQuotJsqrTlLeaderState("0");//特缆 组长状态 设置为 待通过
} }
if(quotJsxzGroup.indexOf("DY")!=-1){ if(quotJsxzGroup.indexOf("DY")!=-1){
quotJsqr.setQuotJsqrDyApprovalStatus("1"); quotJsqr.setQuotJsqrDyApprovalStatus("1");//低压 协助状态 设置为 协助中
quotJsqr.setQuotJsqrDyOperateState("0"); quotJsqr.setQuotJsqrDyOperateState("0");//低压 操作人状态 设置为 待通过
quotJsqr.setQuotJsqrDyCheckState("0"); quotJsqr.setQuotJsqrDyCheckState("0");//低压 审核人状态 设置为 待通过
quotJsqr.setQuotJsqrDyLeaderState("0"); quotJsqr.setQuotJsqrDyLeaderState("0");//低压 组长状态 设置为 待通过
} }
if(quotJsxzGroup.indexOf("ZY")!=-1){ if(quotJsxzGroup.indexOf("ZY")!=-1){
quotJsqr.setQuotJsqrZyApprovalStatus("1"); quotJsqr.setQuotJsqrZyApprovalStatus("1");//中压 协助状态 设置为 协助中
quotJsqr.setQuotJsqrZyOperateState("0"); quotJsqr.setQuotJsqrZyOperateState("0");//中压 操作人状态 设置为 待通过
quotJsqr.setQuotJsqrZyCheckState("0"); quotJsqr.setQuotJsqrZyCheckState("0");//中压 审核人状态 设置为 待通过
quotJsqr.setQuotJsqrZyLeaderState("0"); quotJsqr.setQuotJsqrZyLeaderState("0");//中压 组长状态 设置为 待通过
} }
if(quotJsxzGroup.indexOf("QT")!=-1){ if(quotJsxzGroup.indexOf("QT")!=-1){
quotJsqr.setQuotJsqrQtApprovalStatus("1"); quotJsqr.setQuotJsqrQtApprovalStatus("1");//其他 协助状态 设置为 协助中
quotJsqr.setQuotJsqrQtOperateState("0"); quotJsqr.setQuotJsqrQtOperateState("0");//其他 操作人状态 设置为 待通过
quotJsqr.setQuotJsqrQtCheckState("0"); quotJsqr.setQuotJsqrQtCheckState("0");//其他 审核人状态 设置为 待通过
quotJsqr.setQuotJsqrQtLeaderState("0"); quotJsqr.setQuotJsqrQtLeaderState("0");//其他 组长状态 设置为 待通过
} }
quotJsqr.setCreateBy(getUsername()); quotJsqr.setCreateBy(getUsername());
quotJsqrService.insertQuotJsqr(quotJsqr); quotJsqrService.insertQuotJsqr(quotJsqr);//生成报价单-技术确认单
quot.setQuotJsxzConfirmId(quotJsqrId); quot.setQuotJsxzConfirmId(quotJsqrId);
quot.setQuotJsxzApprovalStatus("1"); quot.setQuotJsxzApprovalStatus("1");//报价单-技术确认单 状态设置为 协助中
quotService.updateQuot(quot); quotService.updateQuot(quot);
} }
return success(); return success();
} }
} }

View File

@ -108,12 +108,12 @@ public class QuotJsqrController extends BaseController
String quotJsqrId = info.getQuotJsqrId(); String quotJsqrId = info.getQuotJsqrId();
quotJsqr.setQuotJsqrId(quotJsqrId); quotJsqr.setQuotJsqrId(quotJsqrId);
String quotJsxzGroup = info.getQuotJsxzGroup(); String quotJsxzGroup = info.getQuotJsxzGroup();//组名
String type = info.getType(); String type = info.getType();//操作人审核人组长
String state = info.getState(); String state = info.getState();//通过/驳回
if("TL".equals(quotJsxzGroup)){ if("TL".equals(quotJsxzGroup)){//特缆组 操作人审核人组长 对应按钮事件
if("operater".equals(type)){ if("operater".equals(type)){//操作人通过驳回
quotJsqr.setQuotJsqrTlOperateUserName(getLoginUser().getUser().getNickName()); quotJsqr.setQuotJsqrTlOperateUserName(getLoginUser().getUser().getNickName());
quotJsqr.setQuotJsqrTlOperateTime(DateUtils.getTime()); quotJsqr.setQuotJsqrTlOperateTime(DateUtils.getTime());
quotJsqr.setQuotJsqrTlOperateState(state); quotJsqr.setQuotJsqrTlOperateState(state);
@ -121,7 +121,7 @@ public class QuotJsqrController extends BaseController
quotJsqr.setQuotJsqrTlApprovalStatus("3");//特缆协助状态 设置为 驳回 quotJsqr.setQuotJsqrTlApprovalStatus("3");//特缆协助状态 设置为 驳回
} }
} }
if("checker".equals(type)){ if("checker".equals(type)){//审核人通过驳回
quotJsqr.setQuotJsqrTlCheckUserName(getLoginUser().getUser().getNickName()); quotJsqr.setQuotJsqrTlCheckUserName(getLoginUser().getUser().getNickName());
quotJsqr.setQuotJsqrTlCheckTime(DateUtils.getTime()); quotJsqr.setQuotJsqrTlCheckTime(DateUtils.getTime());
quotJsqr.setQuotJsqrTlCheckState(state); quotJsqr.setQuotJsqrTlCheckState(state);
@ -133,7 +133,7 @@ public class QuotJsqrController extends BaseController
quotJsqr.setQuotJsqrTlOperateState("0");//特缆操作状态 设置为 待通过 quotJsqr.setQuotJsqrTlOperateState("0");//特缆操作状态 设置为 待通过
} }
} }
if("leader".equals(type)){ if("leader".equals(type)){//组长通过驳回
quotJsqr.setQuotJsqrTlLeaderUserName(getLoginUser().getUser().getNickName()); quotJsqr.setQuotJsqrTlLeaderUserName(getLoginUser().getUser().getNickName());
quotJsqr.setQuotJsqrTlLeaderTime(DateUtils.getTime()); quotJsqr.setQuotJsqrTlLeaderTime(DateUtils.getTime());
quotJsqr.setQuotJsqrTlLeaderState(state); quotJsqr.setQuotJsqrTlLeaderState(state);
@ -144,10 +144,12 @@ public class QuotJsqrController extends BaseController
} }
quotJsqr.setQuotJsqrTlOperateState("0");//特缆操作状态 设置为 待通过 quotJsqr.setQuotJsqrTlOperateState("0");//特缆操作状态 设置为 待通过
quotJsqr.setQuotJsqrTlCheckState("0");//特缆审核状态 设置为 待通过 quotJsqr.setQuotJsqrTlCheckState("0");//特缆审核状态 设置为 待通过
}else{
quotJsqr.setQuotJsqrTlApprovalStatus("2");//特缆协助状态 设置为 已协助
} }
} }
}else if("DY".equals(quotJsxzGroup)){ }else if("DY".equals(quotJsxzGroup)){//低压组 操作人审核人组长 对应按钮事件
if("operater".equals(type)){ if("operater".equals(type)){//操作人通过驳回
quotJsqr.setQuotJsqrDyOperateUserName(getLoginUser().getUser().getNickName()); quotJsqr.setQuotJsqrDyOperateUserName(getLoginUser().getUser().getNickName());
quotJsqr.setQuotJsqrDyOperateTime(DateUtils.getTime()); quotJsqr.setQuotJsqrDyOperateTime(DateUtils.getTime());
quotJsqr.setQuotJsqrDyOperateState(state); quotJsqr.setQuotJsqrDyOperateState(state);
@ -155,7 +157,7 @@ public class QuotJsqrController extends BaseController
quotJsqr.setQuotJsqrDyApprovalStatus("3");//低压协助状态 设置为 驳回 quotJsqr.setQuotJsqrDyApprovalStatus("3");//低压协助状态 设置为 驳回
} }
} }
if("checker".equals(type)){ if("checker".equals(type)){//审核人通过驳回
quotJsqr.setQuotJsqrDyCheckUserName(getLoginUser().getUser().getNickName()); quotJsqr.setQuotJsqrDyCheckUserName(getLoginUser().getUser().getNickName());
quotJsqr.setQuotJsqrDyCheckTime(DateUtils.getTime()); quotJsqr.setQuotJsqrDyCheckTime(DateUtils.getTime());
quotJsqr.setQuotJsqrDyCheckState(state); quotJsqr.setQuotJsqrDyCheckState(state);
@ -167,7 +169,7 @@ public class QuotJsqrController extends BaseController
quotJsqr.setQuotJsqrDyOperateState("0");//低压操作状态 设置为 待通过 quotJsqr.setQuotJsqrDyOperateState("0");//低压操作状态 设置为 待通过
} }
} }
if("leader".equals(type)){ if("leader".equals(type)){//组长通过驳回
quotJsqr.setQuotJsqrDyLeaderUserName(getLoginUser().getUser().getNickName()); quotJsqr.setQuotJsqrDyLeaderUserName(getLoginUser().getUser().getNickName());
quotJsqr.setQuotJsqrDyLeaderTime(DateUtils.getTime()); quotJsqr.setQuotJsqrDyLeaderTime(DateUtils.getTime());
quotJsqr.setQuotJsqrDyLeaderState(state); quotJsqr.setQuotJsqrDyLeaderState(state);
@ -178,10 +180,12 @@ public class QuotJsqrController extends BaseController
} }
quotJsqr.setQuotJsqrDyOperateState("0");//低压操作状态 设置为 待通过 quotJsqr.setQuotJsqrDyOperateState("0");//低压操作状态 设置为 待通过
quotJsqr.setQuotJsqrDyCheckState("0");//低压审核状态 设置为 待通过 quotJsqr.setQuotJsqrDyCheckState("0");//低压审核状态 设置为 待通过
}else{
quotJsqr.setQuotJsqrDyApprovalStatus("2");//低压协助状态 设置为 已协助
} }
} }
}else if("ZY".equals(quotJsxzGroup)){ }else if("ZY".equals(quotJsxzGroup)){//中压组 操作人审核人组长 对应按钮事件
if("operater".equals(type)){ if("operater".equals(type)){//操作人通过驳回
quotJsqr.setQuotJsqrZyOperateUserName(getLoginUser().getUser().getNickName()); quotJsqr.setQuotJsqrZyOperateUserName(getLoginUser().getUser().getNickName());
quotJsqr.setQuotJsqrZyOperateTime(DateUtils.getTime()); quotJsqr.setQuotJsqrZyOperateTime(DateUtils.getTime());
quotJsqr.setQuotJsqrZyOperateState(state); quotJsqr.setQuotJsqrZyOperateState(state);
@ -189,7 +193,7 @@ public class QuotJsqrController extends BaseController
quotJsqr.setQuotJsqrZyApprovalStatus("3");//中压协助状态 设置为 驳回 quotJsqr.setQuotJsqrZyApprovalStatus("3");//中压协助状态 设置为 驳回
} }
} }
if("checker".equals(type)){ if("checker".equals(type)){//审核人通过驳回
quotJsqr.setQuotJsqrZyCheckUserName(getLoginUser().getUser().getNickName()); quotJsqr.setQuotJsqrZyCheckUserName(getLoginUser().getUser().getNickName());
quotJsqr.setQuotJsqrZyCheckTime(DateUtils.getTime()); quotJsqr.setQuotJsqrZyCheckTime(DateUtils.getTime());
quotJsqr.setQuotJsqrZyCheckState(state); quotJsqr.setQuotJsqrZyCheckState(state);
@ -201,7 +205,7 @@ public class QuotJsqrController extends BaseController
quotJsqr.setQuotJsqrZyOperateState("0");//中压操作状态 设置为 待通过 quotJsqr.setQuotJsqrZyOperateState("0");//中压操作状态 设置为 待通过
} }
} }
if("leader".equals(type)){ if("leader".equals(type)){//组长通过驳回
quotJsqr.setQuotJsqrZyLeaderUserName(getLoginUser().getUser().getNickName()); quotJsqr.setQuotJsqrZyLeaderUserName(getLoginUser().getUser().getNickName());
quotJsqr.setQuotJsqrZyLeaderTime(DateUtils.getTime()); quotJsqr.setQuotJsqrZyLeaderTime(DateUtils.getTime());
quotJsqr.setQuotJsqrZyLeaderState(state); quotJsqr.setQuotJsqrZyLeaderState(state);
@ -212,10 +216,12 @@ public class QuotJsqrController extends BaseController
} }
quotJsqr.setQuotJsqrZyOperateState("0");//中压操作状态 设置为 待通过 quotJsqr.setQuotJsqrZyOperateState("0");//中压操作状态 设置为 待通过
quotJsqr.setQuotJsqrZyCheckState("0");//中压审核状态 设置为 待通过 quotJsqr.setQuotJsqrZyCheckState("0");//中压审核状态 设置为 待通过
}else{
quotJsqr.setQuotJsqrZyApprovalStatus("2");//中压协助状态 设置为 已协助
} }
} }
}else if("QT".equals(quotJsxzGroup)){ }else if("QT".equals(quotJsxzGroup)){//其他组 操作人审核人组长 对应按钮事件
if("operater".equals(type)){ if("operater".equals(type)){//操作人通过驳回
quotJsqr.setQuotJsqrQtOperateUserName(getLoginUser().getUser().getNickName()); quotJsqr.setQuotJsqrQtOperateUserName(getLoginUser().getUser().getNickName());
quotJsqr.setQuotJsqrQtOperateTime(DateUtils.getTime()); quotJsqr.setQuotJsqrQtOperateTime(DateUtils.getTime());
quotJsqr.setQuotJsqrQtOperateState(state); quotJsqr.setQuotJsqrQtOperateState(state);
@ -223,7 +229,7 @@ public class QuotJsqrController extends BaseController
quotJsqr.setQuotJsqrQtApprovalStatus("3");//其他协助状态 设置为 驳回 quotJsqr.setQuotJsqrQtApprovalStatus("3");//其他协助状态 设置为 驳回
} }
} }
if("checker".equals(type)){ if("checker".equals(type)){//审核人通过驳回
quotJsqr.setQuotJsqrQtCheckUserName(getLoginUser().getUser().getNickName()); quotJsqr.setQuotJsqrQtCheckUserName(getLoginUser().getUser().getNickName());
quotJsqr.setQuotJsqrQtCheckTime(DateUtils.getTime()); quotJsqr.setQuotJsqrQtCheckTime(DateUtils.getTime());
quotJsqr.setQuotJsqrQtCheckState(state); quotJsqr.setQuotJsqrQtCheckState(state);
@ -235,7 +241,7 @@ public class QuotJsqrController extends BaseController
quotJsqr.setQuotJsqrQtOperateState("0");//其他操作状态 设置为 待通过 quotJsqr.setQuotJsqrQtOperateState("0");//其他操作状态 设置为 待通过
} }
} }
if("leader".equals(type)){ if("leader".equals(type)){//组长通过驳回
quotJsqr.setQuotJsqrQtLeaderUserName(getLoginUser().getUser().getNickName()); quotJsqr.setQuotJsqrQtLeaderUserName(getLoginUser().getUser().getNickName());
quotJsqr.setQuotJsqrQtLeaderTime(DateUtils.getTime()); quotJsqr.setQuotJsqrQtLeaderTime(DateUtils.getTime());
quotJsqr.setQuotJsqrQtLeaderState(state); quotJsqr.setQuotJsqrQtLeaderState(state);
@ -246,6 +252,8 @@ public class QuotJsqrController extends BaseController
} }
quotJsqr.setQuotJsqrQtOperateState("0");//其他操作状态 设置为 待通过 quotJsqr.setQuotJsqrQtOperateState("0");//其他操作状态 设置为 待通过
quotJsqr.setQuotJsqrQtCheckState("0");//其他审核状态 设置为 待通过 quotJsqr.setQuotJsqrQtCheckState("0");//其他审核状态 设置为 待通过
}else{
quotJsqr.setQuotJsqrQtApprovalStatus("2");//其他协助状态 设置为 已协助
} }
} }
} }

View File

@ -32,25 +32,29 @@
<dict-tag :options="dict.type.quot_jsxz_approval_status" :value="scope.row.quotJsxzApprovalStatus"/> <dict-tag :options="dict.type.quot_jsxz_approval_status" :value="scope.row.quotJsxzApprovalStatus"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="技术协助分组" align="center" prop="quotJsxzGroup" width="150px"/> <el-table-column label="技术协助分组" align="center" prop="quotJsxzGroup" width="150px">
<template slot-scope="scope">
<dict-tag :options="dict.type.quot_jsxz_group" :value="scope.row.quotJsxzGroup"/>
</template>
</el-table-column>
<el-table-column label="特缆协助状态" align="center" prop="quotJsqrTlApprovalStatus" width="150px"> <el-table-column label="特缆协助状态" align="center" prop="quotJsqrTlApprovalStatus" width="150px">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.quot_jsxz_approval_status" :value="scope.row.quotJsqrTlApprovalStatus"/> <dict-tag :options="dict.type.quot_jsxz_approval_status" :value="scope.row.quotJsqrTlApprovalStatus" v-if="scope.row.quotJsqrTlApprovalStatus!=0"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="低压协助状态" align="center" prop="quotJsqrDyApprovalStatus" width="150px"> <el-table-column label="低压协助状态" align="center" prop="quotJsqrDyApprovalStatus" width="150px">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.quot_jsxz_approval_status" :value="scope.row.quotJsqrDyApprovalStatus"/> <dict-tag :options="dict.type.quot_jsxz_approval_status" :value="scope.row.quotJsqrDyApprovalStatus" v-if="scope.row.quotJsqrDyApprovalStatus!=0"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="中压协助状态" align="center" prop="quotJsqrZyApprovalStatus" width="150px"> <el-table-column label="中压协助状态" align="center" prop="quotJsqrZyApprovalStatus" width="150px">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.quot_jsxz_approval_status" :value="scope.row.quotJsqrZyApprovalStatus"/> <dict-tag :options="dict.type.quot_jsxz_approval_status" :value="scope.row.quotJsqrZyApprovalStatus" v-if="scope.row.quotJsqrZyApprovalStatus!=0"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="其他协助状态" align="center" prop="quotJsqrQtApprovalStatus" width="150px"> <el-table-column label="其他协助状态" align="center" prop="quotJsqrQtApprovalStatus" width="150px">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.quot_jsxz_approval_status" :value="scope.row.quotJsqrQtApprovalStatus"/> <dict-tag :options="dict.type.quot_jsxz_approval_status" :value="scope.row.quotJsqrQtApprovalStatus" v-if="scope.row.quotJsqrQtApprovalStatus!=0"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建人" align="center" prop="createName" width="150px"/> <el-table-column label="创建人" align="center" prop="createName" width="150px"/>
@ -173,15 +177,15 @@
<div v-if="showTl"> <div v-if="showTl">
<el-divider content-position="center">特缆协助</el-divider> <el-divider content-position="center">特缆协助</el-divider>
<div style="margin-bottom: 10px;text-align:right"> <div style="margin-bottom: 10px;text-align:right">
<div v-if="this.form.quotJsqrTlOperateState == 0 && (this.form.quotJsqrTlCheckState == 0 || this.form.quotJsqrTlCheckState == 3) && this.form.quotJsqrTlLeaderState == 0"> <div v-if="this.form.quotJsqrTlOperateState == 0 && this.form.quotJsqrTlCheckState != 2 && this.form.quotJsqrTlLeaderState != 2">
<el-button size="mini" type="success" plain @click="doOperate('TL','operater','2')">操作人通过</el-button> <el-button size="mini" type="success" plain @click="doOperate('TL','operater','2')">操作人通过</el-button>
<el-button size="mini" type="danger" plain @click="doOperate('TL','operater','3')">操作人驳回</el-button> <el-button size="mini" type="danger" plain @click="doOperate('TL','operater','3')">操作人驳回</el-button>
</div> </div>
<div v-if="this.form.quotJsqrTlOperateState == 2 && (this.form.quotJsqrTlCheckState == 0 || this.form.quotJsqrTlCheckState == 3) && (this.form.quotJsqrTlLeaderState == 0 || this.form.quotJsqrTlLeaderState == 3)"> <div v-if="this.form.quotJsqrTlOperateState == 2 && this.form.quotJsqrTlCheckState != 2 && this.form.quotJsqrTlLeaderState != 2">
<el-button size="mini" type="success" plain @click="doOperate('TL','checker','2')">审核人通过</el-button> <el-button size="mini" type="success" plain @click="doOperate('TL','checker','2')">审核人通过</el-button>
<el-button size="mini" type="danger" plain @click="doOperate('TL','checker','3')">审核人驳回</el-button> <el-button size="mini" type="danger" plain @click="doOperate('TL','checker','3')">审核人驳回</el-button>
</div> </div>
<div v-if="this.form.quotJsqrTlOperateState == 2 && this.form.quotJsqrTlCheckState == 2 && this.form.quotJsqrTlLeaderState == 0"> <div v-if="this.form.quotJsqrTlOperateState == 2 && this.form.quotJsqrTlCheckState == 2 && this.form.quotJsqrTlLeaderState != 2">
<el-button size="mini" type="success" plain @click="doOperate('TL','leader','2')">组长通过</el-button> <el-button size="mini" type="success" plain @click="doOperate('TL','leader','2')">组长通过</el-button>
<el-button size="mini" type="danger" plain @click="doOperate('TL','leader','3')">组长驳回</el-button> <el-button size="mini" type="danger" plain @click="doOperate('TL','leader','3')">组长驳回</el-button>
</div> </div>
@ -203,7 +207,7 @@
<el-row :gutter="8"> <el-row :gutter="8">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="特缆反馈附件" prop="quotJsqrTlRemark"> <el-form-item label="特缆反馈附件" prop="quotJsqrTlRemark">
<el-button size="mini" type="primary" @click="handleAddFile('quotJsqrTl')" :disabled="this.form.quotJsqrTlOperateState == 2">上传文件 ({{this.quotJsqrTlFileNum}})</el-button> <el-button size="mini" type="primary" @click="handleAddFile('quotJsqrTl')">上传文件 ({{this.quotJsqrTlFileNum}})</el-button>
<!--已上传: {{this.quotJsqrTlFileNum}} --> <!--已上传: {{this.quotJsqrTlFileNum}} -->
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -264,7 +268,7 @@
<el-row :gutter="8"> <el-row :gutter="8">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="特缆审核意见" prop="quotJsqrTlCheckRemark"> <el-form-item label="特缆审核意见" prop="quotJsqrTlCheckRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrTlCheckRemark" placeholder="请输入特缆审核意见" /> <el-input type="textarea" autosize v-model="form.quotJsqrTlCheckRemark" placeholder="请输入特缆审核意见" :disabled="quotJsqrTlCheckRemarkDis"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -295,7 +299,7 @@
<el-row :gutter="8"> <el-row :gutter="8">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="特缆组长确认意见" prop="quotJsqrTlLeaderRemark"> <el-form-item label="特缆组长确认意见" prop="quotJsqrTlLeaderRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrTlLeaderRemark" placeholder="请输入特缆组长确认意见" /> <el-input type="textarea" autosize v-model="form.quotJsqrTlLeaderRemark" placeholder="请输入特缆组长确认意见" :disabled="quotJsqrTlLeaderRemarkDis"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -304,15 +308,15 @@
<div v-if="showDy"> <div v-if="showDy">
<el-divider content-position="center">低压协助</el-divider> <el-divider content-position="center">低压协助</el-divider>
<div style="margin-bottom: 10px;text-align:right"> <div style="margin-bottom: 10px;text-align:right">
<div v-if="this.form.quotJsqrDyOperateState == 0 && (this.form.quotJsqrDyCheckState == 0 || this.form.quotJsqrDyCheckState == 3) && this.form.quotJsqrDyLeaderState == 0"> <div v-if="this.form.quotJsqrDyOperateState == 0 && this.form.quotJsqrDyCheckState != 2 && this.form.quotJsqrDyLeaderState != 2">
<el-button size="mini" type="success" plain @click="doOperate('DY','operater','2')">操作人通过</el-button> <el-button size="mini" type="success" plain @click="doOperate('DY','operater','2')">操作人通过</el-button>
<el-button size="mini" type="danger" plain @click="doOperate('DY','operater','3')">操作人驳回</el-button> <el-button size="mini" type="danger" plain @click="doOperate('DY','operater','3')">操作人驳回</el-button>
</div> </div>
<div v-if="this.form.quotJsqrDyOperateState == 2 && (this.form.quotJsqrDyCheckState == 0 || this.form.quotJsqrDyCheckState == 3) && (this.form.quotJsqrDyLeaderState == 0 || this.form.quotJsqrDyLeaderState == 3)"> <div v-if="this.form.quotJsqrDyOperateState == 2 && this.form.quotJsqrDyCheckState != 2 && this.form.quotJsqrDyLeaderState != 2">
<el-button size="mini" type="success" plain @click="doOperate('DY','checker','2')">审核人通过</el-button> <el-button size="mini" type="success" plain @click="doOperate('DY','checker','2')">审核人通过</el-button>
<el-button size="mini" type="danger" plain @click="doOperate('DY','checker','3')">审核人驳回</el-button> <el-button size="mini" type="danger" plain @click="doOperate('DY','checker','3')">审核人驳回</el-button>
</div> </div>
<div v-if="this.form.quotJsqrDyOperateState == 2 && this.form.quotJsqrDyCheckState == 2 && this.form.quotJsqrDyLeaderState == 0"> <div v-if="this.form.quotJsqrDyOperateState == 2 && this.form.quotJsqrDyCheckState == 2 && this.form.quotJsqrDyLeaderState != 2">
<el-button size="mini" type="success" plain @click="doOperate('DY','leader','2')">组长通过</el-button> <el-button size="mini" type="success" plain @click="doOperate('DY','leader','2')">组长通过</el-button>
<el-button size="mini" type="danger" plain @click="doOperate('DY','leader','3')">组长驳回</el-button> <el-button size="mini" type="danger" plain @click="doOperate('DY','leader','3')">组长驳回</el-button>
</div> </div>
@ -340,7 +344,7 @@
</el-col> </el-col>
<el-col :span="16"> <el-col :span="16">
<el-form-item label="低压协助说明" prop="quotJsqrDyRemark"> <el-form-item label="低压协助说明" prop="quotJsqrDyRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrDyRemark" placeholder="请输入低压协助说明" /> <el-input type="textarea" autosize v-model="form.quotJsqrDyRemark" placeholder="请输入低压协助说明" :disabled="this.form.quotJsqrDyOperateState == 2"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -435,15 +439,15 @@
<div v-if="showZy"> <div v-if="showZy">
<el-divider content-position="center">中压协助</el-divider> <el-divider content-position="center">中压协助</el-divider>
<div style="margin-bottom: 10px;text-align:right"> <div style="margin-bottom: 10px;text-align:right">
<div v-if="this.form.quotJsqrZyOperateState == 0 && (this.form.quotJsqrZyCheckState == 0 || this.form.quotJsqrZyCheckState == 3) && this.form.quotJsqrZyLeaderState == 0"> <div v-if="this.form.quotJsqrZyOperateState == 0 && this.form.quotJsqrZyCheckState != 2 && this.form.quotJsqrZyLeaderState != 2">
<el-button size="mini" type="success" plain @click="doOperate('ZY','operater','2')">操作人通过</el-button> <el-button size="mini" type="success" plain @click="doOperate('ZY','operater','2')">操作人通过</el-button>
<el-button size="mini" type="danger" plain @click="doOperate('ZY','operater','3')">操作人驳回</el-button> <el-button size="mini" type="danger" plain @click="doOperate('ZY','operater','3')">操作人驳回</el-button>
</div> </div>
<div v-if="this.form.quotJsqrZyOperateState == 2 && (this.form.quotJsqrZyCheckState == 0 || this.form.quotJsqrZyCheckState == 3) && (this.form.quotJsqrZyLeaderState == 0 || this.form.quotJsqrZyLeaderState == 3)"> <div v-if="this.form.quotJsqrZyOperateState == 2 && this.form.quotJsqrZyCheckState != 2 && this.form.quotJsqrZyLeaderState != 2">
<el-button size="mini" type="success" plain @click="doOperate('ZY','checker','2')">审核人通过</el-button> <el-button size="mini" type="success" plain @click="doOperate('ZY','checker','2')">审核人通过</el-button>
<el-button size="mini" type="danger" plain @click="doOperate('ZY','checker','3')">审核人驳回</el-button> <el-button size="mini" type="danger" plain @click="doOperate('ZY','checker','3')">审核人驳回</el-button>
</div> </div>
<div v-if="this.form.quotJsqrZyOperateState == 2 && this.form.quotJsqrZyCheckState == 2 && this.form.quotJsqrZyLeaderState == 0"> <div v-if="this.form.quotJsqrZyOperateState == 2 && this.form.quotJsqrZyCheckState == 2 && this.form.quotJsqrZyLeaderState != 2">
<el-button size="mini" type="success" plain @click="doOperate('ZY','leader','2')">组长通过</el-button> <el-button size="mini" type="success" plain @click="doOperate('ZY','leader','2')">组长通过</el-button>
<el-button size="mini" type="danger" plain @click="doOperate('ZY','leader','3')">组长驳回</el-button> <el-button size="mini" type="danger" plain @click="doOperate('ZY','leader','3')">组长驳回</el-button>
</div> </div>
@ -471,7 +475,7 @@
</el-col> </el-col>
<el-col :span="16"> <el-col :span="16">
<el-form-item label="中压协助说明" prop="quotJsqrZyRemark"> <el-form-item label="中压协助说明" prop="quotJsqrZyRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrZyRemark" placeholder="请输入中压协助说明" /> <el-input type="textarea" autosize v-model="form.quotJsqrZyRemark" placeholder="请输入中压协助说明" :disabled="this.form.quotJsqrZyOperateState == 2"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -566,15 +570,15 @@
<div v-if="showQt"> <div v-if="showQt">
<el-divider content-position="center">其他协助</el-divider> <el-divider content-position="center">其他协助</el-divider>
<div style="margin-bottom: 10px;text-align:right"> <div style="margin-bottom: 10px;text-align:right">
<div v-if="this.form.quotJsqrQtOperateState == 0 && (this.form.quotJsqrQtCheckState == 0 || this.form.quotJsqrQtCheckState == 3) && this.form.quotJsqrQtLeaderState == 0"> <div v-if="this.form.quotJsqrQtOperateState == 0 && this.form.quotJsqrQtCheckState != 2 && this.form.quotJsqrQtLeaderState != 2">
<el-button size="mini" type="success" plain @click="doOperate('QT','operater','2')">操作人通过</el-button> <el-button size="mini" type="success" plain @click="doOperate('QT','operater','2')">操作人通过</el-button>
<el-button size="mini" type="danger" plain @click="doOperate('QT','operater','3')">操作人驳回</el-button> <el-button size="mini" type="danger" plain @click="doOperate('QT','operater','3')">操作人驳回</el-button>
</div> </div>
<div v-if="this.form.quotJsqrQtOperateState == 2 && (this.form.quotJsqrQtCheckState == 0 || this.form.quotJsqrQtCheckState == 3) && (this.form.quotJsqrQtLeaderState == 0 || this.form.quotJsqrQtLeaderState == 3)"> <div v-if="this.form.quotJsqrQtOperateState == 2 && this.form.quotJsqrQtCheckState != 2 && this.form.quotJsqrQtLeaderState != 2">
<el-button size="mini" type="success" plain @click="doOperate('QT','checker','2')">审核人通过</el-button> <el-button size="mini" type="success" plain @click="doOperate('QT','checker','2')">审核人通过</el-button>
<el-button size="mini" type="danger" plain @click="doOperate('QT','checker','3')">审核人驳回</el-button> <el-button size="mini" type="danger" plain @click="doOperate('QT','checker','3')">审核人驳回</el-button>
</div> </div>
<div v-if="this.form.quotJsqrQtOperateState == 2 && this.form.quotJsqrQtCheckState == 2 && this.form.quotJsqrQtLeaderState == 0"> <div v-if="this.form.quotJsqrQtOperateState == 2 && this.form.quotJsqrQtCheckState == 2 && this.form.quotJsqrQtLeaderState != 2">
<el-button size="mini" type="success" plain @click="doOperate('QT','leader','2')">组长通过</el-button> <el-button size="mini" type="success" plain @click="doOperate('QT','leader','2')">组长通过</el-button>
<el-button size="mini" type="danger" plain @click="doOperate('QT','leader','3')">组长驳回</el-button> <el-button size="mini" type="danger" plain @click="doOperate('QT','leader','3')">组长驳回</el-button>
</div> </div>
@ -602,7 +606,7 @@
</el-col> </el-col>
<el-col :span="16"> <el-col :span="16">
<el-form-item label="其他协助说明" prop="quotJsqrQtRemark"> <el-form-item label="其他协助说明" prop="quotJsqrQtRemark">
<el-input type="textarea" autosize v-model="form.quotJsqrQtRemark" placeholder="请输入其他协助说明" /> <el-input type="textarea" autosize v-model="form.quotJsqrQtRemark" placeholder="请输入其他协助说明" :disabled="this.form.quotJsqrQtOperateState == 2"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -704,7 +708,8 @@
:data="{ relation_id: this.form.quotJsqrId,file_type: fileType }" :data="{ relation_id: this.form.quotJsqrId,file_type: fileType }"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
:show-file-list="false" :show-file-list="false"
:limit="1"> :limit="1"
v-if="uploadDis">
<el-button slot="trigger" size="small" type="primary">上传文件</el-button> <el-button slot="trigger" size="small" type="primary">上传文件</el-button>
</el-upload> </el-upload>
<el-table class="down" :data="quotJsqrFileList" border stripe style="width: 100%;margin-top: 20px;" height="200px"> <el-table class="down" :data="quotJsqrFileList" border stripe style="width: 100%;margin-top: 20px;" height="200px">
@ -721,7 +726,7 @@
<el-button :key="Math.random()" size="small" type="text"> <el-button :key="Math.random()" size="small" type="text">
<a @click="downloadFile(scope.row.fileUrl)">下载</a> <a @click="downloadFile(scope.row.fileUrl)">下载</a>
</el-button> </el-button>
<el-button :key="Math.random()" size="small" type="text"> <el-button :key="Math.random()" size="small" type="text" v-if="uploadDis">
<a @click="deleteFile(scope.row.fileId)">删除</a> <a @click="deleteFile(scope.row.fileId)">删除</a>
</el-button> </el-button>
</template> </template>
@ -796,6 +801,8 @@ export default {
addFileOpen: false, addFileOpen: false,
// //
addFileTitle: "", addFileTitle: "",
//
uploadDis: false,
// //
quotJsqrFileList: [], quotJsqrFileList: [],
quotJsqrTlFileNum: 0, quotJsqrTlFileNum: 0,
@ -821,6 +828,26 @@ export default {
showDy: false, showDy: false,
showZy: false, showZy: false,
showQt: false, showQt: false,
//-
quotJsqrTlCheckRemarkDis: false,
//-
quotJsqrTlLeaderRemarkDis: false,
//-
quotJsqrDyCheckRemarkDis: false,
//-
quotJsqrDyLeaderRemarkDis: false,
//-
quotJsqrZyCheckRemarkDis: false,
//-
quotJsqrZyLeaderRemarkDis: false,
//-
quotJsqrQtCheckRemarkDis: false,
//-
quotJsqrQtLeaderRemarkDis: false,
}; };
}, },
created() { created() {
@ -874,7 +901,7 @@ export default {
} }
if(quotJsxzGroup.indexOf("ZY")!==-1){ if(quotJsxzGroup.indexOf("ZY")!==-1){
this.showZy = true; this.showZy = true;
this.getQuotJsqrFileList('quotJsqrZyFkFile'); //this.getQuotJsqrFileList('quotJsqrZyFkFile');
} }
if(quotJsxzGroup.indexOf("QT")!==-1){ if(quotJsxzGroup.indexOf("QT")!==-1){
this.showQt = true; this.showQt = true;
@ -884,6 +911,10 @@ export default {
this.open = true; this.open = true;
this.title = "报价单-技术确认单"; this.title = "报价单-技术确认单";
this.getQuotJsgfFileList(); this.getQuotJsgfFileList();
this.quotJsqrTlRemarkDisSet();//-/
this.quotJsqrDyRemarkDisSet();//-/
this.quotJsqrZyRemarkDisSet();//-/
this.quotJsqrQtRemarkDisSet();//-/
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -934,7 +965,7 @@ export default {
window.open(fileUrl, "_blank"); window.open(fileUrl, "_blank");
}, },
//-- //--
getQuotJsqrFileList(fileType){ getQuotJsqrFileList(fileType){
const param = {relationId:this.form.quotJsqrId,fileType:fileType} const param = {relationId:this.form.quotJsqrId,fileType:fileType}
quotFileList(param).then(response => { quotFileList(param).then(response => {
@ -958,15 +989,19 @@ export default {
if("quotJsqrTl"==group){ if("quotJsqrTl"==group){
this.addFileTitle = '特缆反馈附件' this.addFileTitle = '特缆反馈附件'
this.fileType = 'quotJsqrTlFkFile'; this.fileType = 'quotJsqrTlFkFile';
this.uploadDis = (this.form.quotJsqrTlOperateState = 0);
}else if('quotJsqrDy'==group){ }else if('quotJsqrDy'==group){
this.addFileTitle = '低压反馈附件' this.addFileTitle = '低压反馈附件'
this.fileType = 'quotJsqrDyFkFile'; this.fileType = 'quotJsqrDyFkFile';
this.uploadDis = (this.form.quotJsqrDyOperateState = 0);
}else if('quotJsqrZy'==group){ }else if('quotJsqrZy'==group){
this.addFileTitle = '中压反馈附件' this.addFileTitle = '中压反馈附件'
this.fileType = 'quotJsqrZyFkFile'; this.fileType = 'quotJsqrZyFkFile';
this.uploadDis = (this.form.quotJsqrZyOperateState = 0);
}else if('quotJsqrQt'==group){ }else if('quotJsqrQt'==group){
this.addFileTitle = '其他反馈附件' this.addFileTitle = '其他反馈附件'
this.fileType = 'quotJsqrQtFkFile'; this.fileType = 'quotJsqrQtFkFile';
this.uploadDis = (this.form.quotJsqrQtOperateState = 0);
} }
// //
this.getQuotJsqrFileList(this.fileType); this.getQuotJsqrFileList(this.fileType);
@ -993,9 +1028,9 @@ export default {
doOperate(quotJsxzGroup,type,state){ doOperate(quotJsxzGroup,type,state){
let param = {} let param = {}
param.quotJsqrId = this.form.quotJsqrId; param.quotJsqrId = this.form.quotJsqrId;
param.quotJsxzGroup = quotJsxzGroup; param.quotJsxzGroup = quotJsxzGroup;//
param.type = type; param.type = type;//
param.state = state; param.state = state;///
param.quotJsqrTlCheckRemark = this.form.quotJsqrTlCheckRemark; param.quotJsqrTlCheckRemark = this.form.quotJsqrTlCheckRemark;
param.quotJsqrTlLeaderRemark = this.form.quotJsqrTlLeaderRemark; param.quotJsqrTlLeaderRemark = this.form.quotJsqrTlLeaderRemark;
@ -1009,109 +1044,333 @@ export default {
param.quotJsqrQtLeaderRemark = this.form.quotJsqrQtLeaderRemark; param.quotJsqrQtLeaderRemark = this.form.quotJsqrQtLeaderRemark;
doOperate(param).then(response => { doOperate(param).then(response => {
if(quotJsxzGroup=='TL'){ if(quotJsxzGroup=='TL'){//
if(type=='operater'){ if(type=='operater'){//
this.form.quotJsqrTlOperateState = response.data.quotJsqrTlOperateState; this.form.quotJsqrTlOperateState = response.data.quotJsqrTlOperateState;
this.form.quotJsqrTlOperateTime = response.data.quotJsqrTlOperateTime; this.form.quotJsqrTlOperateTime = response.data.quotJsqrTlOperateTime;
this.form.quotJsqrTlOperateUserName = response.data.quotJsqrTlOperateUserName; this.form.quotJsqrTlOperateUserName = response.data.quotJsqrTlOperateUserName;
if(state=='3') {// if(state=='3') {//
this.form.quotJsqrTlApprovalStatus = response.data.quotJsqrTlApprovalStatus; this.form.quotJsqrTlApprovalStatus = response.data.quotJsqrTlApprovalStatus;//
} }
} }
if(type=='checker'){ if(type=='checker'){//
this.form.quotJsqrTlCheckState = response.data.quotJsqrTlCheckState; this.form.quotJsqrTlCheckState = response.data.quotJsqrTlCheckState;
this.form.quotJsqrTlCheckTime = response.data.quotJsqrTlCheckTime; this.form.quotJsqrTlCheckTime = response.data.quotJsqrTlCheckTime;
this.form.quotJsqrTlCheckUserName = response.data.quotJsqrTlCheckUserName; this.form.quotJsqrTlCheckUserName = response.data.quotJsqrTlCheckUserName;
if(state=='3') {// if(state=='3') {//
alert(response.data.quotJsqrTlOperateState) this.form.quotJsqrTlOperateState = response.data.quotJsqrTlOperateState;//
this.form.quotJsqrTlOperateState = response.data.quotJsqrTlOperateState;
} }
} }
if(type=='leader'){ if(type=='leader'){//
this.form.quotJsqrTlLeaderState = response.data.quotJsqrTlLeaderState; this.form.quotJsqrTlLeaderState = response.data.quotJsqrTlLeaderState;
this.form.quotJsqrTlLeaderTime = response.data.quotJsqrTlLeaderTime; this.form.quotJsqrTlLeaderTime = response.data.quotJsqrTlLeaderTime;
this.form.quotJsqrTlLeaderUserName = response.data.quotJsqrTlLeaderUserName; this.form.quotJsqrTlLeaderUserName = response.data.quotJsqrTlLeaderUserName;
if(state=='3') {//
this.form.quotJsqrTlOperateState = response.data.quotJsqrTlOperateState;//
this.form.quotJsqrTlCheckState = response.data.quotJsqrTlCheckState; //
}else{
this.form.quotJsqrTlApprovalStatus = response.data.quotJsqrTlApprovalStatus;//
} }
} }
if(quotJsxzGroup=='DY'){ this.quotJsqrTlRemarkDisSet();//-/
if(type=='operater'){ }
if(quotJsxzGroup=='DY'){//
if(type=='operater'){//
this.form.quotJsqrDyOperateState = response.data.quotJsqrDyOperateState; this.form.quotJsqrDyOperateState = response.data.quotJsqrDyOperateState;
this.form.quotJsqrDyOperateTime = response.data.quotJsqrDyOperateTime; this.form.quotJsqrDyOperateTime = response.data.quotJsqrDyOperateTime;
this.form.quotJsqrDyOperateUserName = response.data.quotJsqrDyOperateUserName; this.form.quotJsqrDyOperateUserName = response.data.quotJsqrDyOperateUserName;
if(state=='3') {// if(state=='3') {//
this.form.quotJsqrDyApprovalStatus = response.data.quotJsqrDyApprovalStatus; this.form.quotJsqrDyApprovalStatus = response.data.quotJsqrDyApprovalStatus;//
} }
} }
if(type=='checker'){ if(type=='checker'){//
this.form.quotJsqrDyCheckState = response.data.quotJsqrDyCheckState; this.form.quotJsqrDyCheckState = response.data.quotJsqrDyCheckState;
this.form.quotJsqrDyCheckTime = response.data.quotJsqrDyCheckTime; this.form.quotJsqrDyCheckTime = response.data.quotJsqrDyCheckTime;
this.form.quotJsqrDyCheckUserName = response.data.quotJsqrDyCheckUserName; this.form.quotJsqrDyCheckUserName = response.data.quotJsqrDyCheckUserName;
if(state=='3') {// if(state=='3') {//
this.form.quotJsqrDyOperateState = response.data.quotJsqrDyOperateState; this.form.quotJsqrDyOperateState = response.data.quotJsqrDyOperateState;//
} }
} }
if(type=='leader'){ if(type=='leader'){//
this.form.quotJsqrDyLeaderState = response.data.quotJsqrDyLeaderState; this.form.quotJsqrDyLeaderState = response.data.quotJsqrDyLeaderState;
this.form.quotJsqrDyLeaderTime = response.data.quotJsqrDyLeaderTime; this.form.quotJsqrDyLeaderTime = response.data.quotJsqrDyLeaderTime;
this.form.quotJsqrDyLeaderUserName = response.data.quotJsqrDyLeaderUserName; this.form.quotJsqrDyLeaderUserName = response.data.quotJsqrDyLeaderUserName;
if(state=='3') {//
this.form.quotJsqrDyOperateState = response.data.quotJsqrDyOperateState;//
this.form.quotJsqrDyCheckState = response.data.quotJsqrDyCheckState; //
}else{
this.form.quotJsqrDyApprovalStatus = response.data.quotJsqrDyApprovalStatus;//
} }
} }
if(quotJsxzGroup=='ZY'){ this.quotJsqrDyRemarkDisSet();//-/
if(type=='operater'){ }
if(quotJsxzGroup=='ZY'){//
if(type=='operater'){//
this.form.quotJsqrZyOperateState = response.data.quotJsqrZyOperateState; this.form.quotJsqrZyOperateState = response.data.quotJsqrZyOperateState;
this.form.quotJsqrZyOperateTime = response.data.quotJsqrZyOperateTime; this.form.quotJsqrZyOperateTime = response.data.quotJsqrZyOperateTime;
this.form.quotJsqrZyOperateUserName = response.data.quotJsqrZyOperateUserName; this.form.quotJsqrZyOperateUserName = response.data.quotJsqrZyOperateUserName;
if(state=='3') {// if(state=='3') {//
this.form.quotJsqrZyApprovalStatus = response.data.quotJsqrZyApprovalStatus; this.form.quotJsqrZyApprovalStatus = response.data.quotJsqrZyApprovalStatus;//
} }
} }
if(type=='checker'){ if(type=='checker'){//
this.form.quotJsqrZyCheckState = response.data.quotJsqrZyCheckState; this.form.quotJsqrZyCheckState = response.data.quotJsqrZyCheckState;
this.form.quotJsqrZyCheckTime = response.data.quotJsqrZyCheckTime; this.form.quotJsqrZyCheckTime = response.data.quotJsqrZyCheckTime;
this.form.quotJsqrZyCheckUserName = response.data.quotJsqrZyCheckUserName; this.form.quotJsqrZyCheckUserName = response.data.quotJsqrZyCheckUserName;
if(state=='3') {// if(state=='3') {//
this.form.quotJsqrZyOperateState = response.data.quotJsqrZyOperateState; this.form.quotJsqrZyOperateState = response.data.quotJsqrZyOperateState;//
} }
} }
if(type=='leader'){ if(type=='leader'){//
this.form.quotJsqrZyLeaderState = response.data.quotJsqrZyLeaderState; this.form.quotJsqrZyLeaderState = response.data.quotJsqrZyLeaderState;
this.form.quotJsqrZyLeaderTime = response.data.quotJsqrZyLeaderTime; this.form.quotJsqrZyLeaderTime = response.data.quotJsqrZyLeaderTime;
this.form.quotJsqrZyLeaderUserName = response.data.quotJsqrZyLeaderUserName; this.form.quotJsqrZyLeaderUserName = response.data.quotJsqrZyLeaderUserName;
if(state=='3') {//
this.form.quotJsqrZyOperateState = response.data.quotJsqrZyOperateState;//
this.form.quotJsqrZyCheckState = response.data.quotJsqrZyCheckState; //
}else{
this.form.quotJsqrZyApprovalStatus = response.data.quotJsqrZyApprovalStatus;//
} }
} }
if(quotJsxzGroup=='QT'){ this.quotJsqrZyRemarkDisSet();//-/
if(type=='operater'){ }
if(quotJsxzGroup=='QT'){//
if(type=='operater'){//
this.form.quotJsqrQtOperateState = response.data.quotJsqrQtOperateState; this.form.quotJsqrQtOperateState = response.data.quotJsqrQtOperateState;
this.form.quotJsqrQtOperateTime = response.data.quotJsqrQtOperateTime; this.form.quotJsqrQtOperateTime = response.data.quotJsqrQtOperateTime;
this.form.quotJsqrQtOperateUserName = response.data.quotJsqrQtOperateUserName; this.form.quotJsqrQtOperateUserName = response.data.quotJsqrQtOperateUserName;
if(state=='3') {// if(state=='3') {//
this.form.quotJsqrQtApprovalStatus = response.data.quotJsqrQtApprovalStatus; this.form.quotJsqrQtApprovalStatus = response.data.quotJsqrQtApprovalStatus;//
} }
} }
if(type=='checker'){ if(type=='checker'){//
this.form.quotJsqrQtCheckState = response.data.quotJsqrQtCheckState; this.form.quotJsqrQtCheckState = response.data.quotJsqrQtCheckState;
this.form.quotJsqrQtCheckTime = response.data.quotJsqrQtCheckTime; this.form.quotJsqrQtCheckTime = response.data.quotJsqrQtCheckTime;
this.form.quotJsqrQtCheckUserName = response.data.quotJsqrQtCheckUserName; this.form.quotJsqrQtCheckUserName = response.data.quotJsqrQtCheckUserName;
if(state=='3') {// if(state=='3') {//
this.form.quotJsqrQtOperateState = response.data.quotJsqrQtOperateState; this.form.quotJsqrQtOperateState = response.data.quotJsqrQtOperateState;//
} }
} }
if(type=='leader'){ if(type=='leader'){//
this.form.quotJsqrQtLeaderState = response.data.quotJsqrQtLeaderState; this.form.quotJsqrQtLeaderState = response.data.quotJsqrQtLeaderState;
this.form.quotJsqrQtLeaderTime = response.data.quotJsqrQtLeaderTime; this.form.quotJsqrQtLeaderTime = response.data.quotJsqrQtLeaderTime;
this.form.quotJsqrQtLeaderUserName = response.data.quotJsqrQtLeaderUserName; this.form.quotJsqrQtLeaderUserName = response.data.quotJsqrQtLeaderUserName;
if(state=='3') {//
this.form.quotJsqrQtOperateState = response.data.quotJsqrQtOperateState;//
this.form.quotJsqrQtCheckState = response.data.quotJsqrQtCheckState; //
}else{
this.form.quotJsqrQtApprovalStatus = response.data.quotJsqrQtApprovalStatus;//
} }
} }
this.quotJsqrQtRemarkDisSet();//-/
}
}); });
}, },
//-/
quotJsqrTlRemarkDisSet(){
var quotJsqrTlOperateState = this.form.quotJsqrTlOperateState;
var quotJsqrTlCheckState = this.form.quotJsqrTlCheckState;
var quotJsqrTlLeaderState = this.form.quotJsqrTlLeaderState;
//
//
//
//
//
//
//
if(quotJsqrTlOperateState == '0'&&quotJsqrTlCheckState == '0'&&quotJsqrTlLeaderState == '0'){
this.quotJsqrTlCheckRemarkDis=true;
}else if(quotJsqrTlOperateState == '0'&&quotJsqrTlCheckState == '3'&&quotJsqrTlLeaderState == '0'){
this.quotJsqrTlCheckRemarkDis=true;
}else if(quotJsqrTlOperateState == '0'&&quotJsqrTlCheckState == '0'&&quotJsqrTlLeaderState == '3'){
this.quotJsqrTlCheckRemarkDis=true;
}else if(quotJsqrTlOperateState == '2'&&quotJsqrTlCheckState == '2'&&quotJsqrTlLeaderState == '0'){
this.quotJsqrTlCheckRemarkDis=true;
}else if(quotJsqrTlOperateState == '2'&&quotJsqrTlCheckState == '2'&&quotJsqrTlLeaderState == '2'){
this.quotJsqrTlCheckRemarkDis=true;
}else if(quotJsqrTlOperateState == '2'&&quotJsqrTlCheckState == '2'&&quotJsqrTlLeaderState == '3'){
this.quotJsqrTlCheckRemarkDis=true;
}else{
this.quotJsqrTlCheckRemarkDis=false;
}
//
//
//
//
//
if(quotJsqrTlOperateState == '0'&&quotJsqrTlCheckState == '0'&&quotJsqrTlLeaderState == '0'){
this.quotJsqrTlLeaderRemarkDis=true;
}else if(quotJsqrTlOperateState == '0'&&quotJsqrTlCheckState == '3'&&quotJsqrTlLeaderState == '0'){
this.quotJsqrTlLeaderRemarkDis=true;
}else if(quotJsqrTlOperateState == '0'&&quotJsqrTlCheckState == '0'&&quotJsqrTlLeaderState == '3'){
this.quotJsqrTlLeaderRemarkDis=true;
}else if(quotJsqrTlOperateState == '2'&&quotJsqrTlCheckState == '2'&&quotJsqrTlLeaderState == '2'){
this.quotJsqrTlLeaderRemarkDis=true;
}else{
this.quotJsqrTlLeaderRemarkDis=false;
}
},
//-/
quotJsqrDyRemarkDisSet(){
var quotJsqrDyOperateState = this.form.quotJsqrDyOperateState;
var quotJsqrDyCheckState = this.form.quotJsqrDyCheckState;
var quotJsqrDyLeaderState = this.form.quotJsqrDyLeaderState;
//
//
//
//
//
//
//
if(quotJsqrDyOperateState == '0'&&quotJsqrDyCheckState == '0'&&quotJsqrDyLeaderState == '0'){
this.quotJsqrDyCheckRemarkDis=true;
}else if(quotJsqrDyOperateState == '0'&&quotJsqrDyCheckState == '3'&&quotJsqrDyLeaderState == '0'){
this.quotJsqrDyCheckRemarkDis=true;
}else if(quotJsqrDyOperateState == '0'&&quotJsqrDyCheckState == '0'&&quotJsqrDyLeaderState == '3'){
this.quotJsqrDyCheckRemarkDis=true;
}else if(quotJsqrDyOperateState == '2'&&quotJsqrDyCheckState == '2'&&quotJsqrDyLeaderState == '0'){
this.quotJsqrDyCheckRemarkDis=true;
}else if(quotJsqrDyOperateState == '2'&&quotJsqrDyCheckState == '2'&&quotJsqrDyLeaderState == '2'){
this.quotJsqrDyCheckRemarkDis=true;
}else if(quotJsqrDyOperateState == '2'&&quotJsqrDyCheckState == '2'&&quotJsqrDyLeaderState == '3'){
this.quotJsqrDyCheckRemarkDis=true;
}else{
this.quotJsqrDyCheckRemarkDis=false;
}
//
//
//
//
//
if(quotJsqrDyOperateState == '0'&&quotJsqrDyCheckState == '0'&&quotJsqrDyLeaderState == '0'){
this.quotJsqrDyLeaderRemarkDis=true;
}else if(quotJsqrDyOperateState == '0'&&quotJsqrDyCheckState == '3'&&quotJsqrDyLeaderState == '0'){
this.quotJsqrDyLeaderRemarkDis=true;
}else if(quotJsqrDyOperateState == '0'&&quotJsqrDyCheckState == '0'&&quotJsqrDyLeaderState == '3'){
this.quotJsqrDyLeaderRemarkDis=true;
}else if(quotJsqrDyOperateState == '2'&&quotJsqrDyCheckState == '2'&&quotJsqrDyLeaderState == '2'){
this.quotJsqrDyLeaderRemarkDis=true;
}else{
this.quotJsqrDyLeaderRemarkDis=false;
}
},
//-/
quotJsqrZyRemarkDisSet(){
var quotJsqrZyOperateState = this.form.quotJsqrZyOperateState;
var quotJsqrZyCheckState = this.form.quotJsqrZyCheckState;
var quotJsqrZyLeaderState = this.form.quotJsqrZyLeaderState;
//
//
//
//
//
//
//
if(quotJsqrZyOperateState == '0'&&quotJsqrZyCheckState == '0'&&quotJsqrZyLeaderState == '0'){
this.quotJsqrZyCheckRemarkDis=true;
}else if(quotJsqrZyOperateState == '0'&&quotJsqrZyCheckState == '3'&&quotJsqrZyLeaderState == '0'){
this.quotJsqrZyCheckRemarkDis=true;
}else if(quotJsqrZyOperateState == '0'&&quotJsqrZyCheckState == '0'&&quotJsqrZyLeaderState == '3'){
this.quotJsqrZyCheckRemarkDis=true;
}else if(quotJsqrZyOperateState == '2'&&quotJsqrZyCheckState == '2'&&quotJsqrZyLeaderState == '0'){
this.quotJsqrZyCheckRemarkDis=true;
}else if(quotJsqrZyOperateState == '2'&&quotJsqrZyCheckState == '2'&&quotJsqrZyLeaderState == '2'){
this.quotJsqrZyCheckRemarkDis=true;
}else if(quotJsqrZyOperateState == '2'&&quotJsqrZyCheckState == '2'&&quotJsqrZyLeaderState == '3'){
this.quotJsqrZyCheckRemarkDis=true;
}else{
this.quotJsqrZyCheckRemarkDis=false;
}
//
//
//
//
//
if(quotJsqrZyOperateState == '0'&&quotJsqrZyCheckState == '0'&&quotJsqrZyLeaderState == '0'){
this.quotJsqrZyLeaderRemarkDis=true;
}else if(quotJsqrZyOperateState == '0'&&quotJsqrZyCheckState == '3'&&quotJsqrZyLeaderState == '0'){
this.quotJsqrZyLeaderRemarkDis=true;
}else if(quotJsqrZyOperateState == '0'&&quotJsqrZyCheckState == '0'&&quotJsqrZyLeaderState == '3'){
this.quotJsqrZyLeaderRemarkDis=true;
}else if(quotJsqrZyOperateState == '2'&&quotJsqrZyCheckState == '2'&&quotJsqrZyLeaderState == '2'){
this.quotJsqrZyLeaderRemarkDis=true;
}else{
this.quotJsqrZyLeaderRemarkDis=false;
}
},
//-/
quotJsqrQtRemarkDisSet(){
var quotJsqrQtOperateState = this.form.quotJsqrQtOperateState;
var quotJsqrQtCheckState = this.form.quotJsqrQtCheckState;
var quotJsqrQtLeaderState = this.form.quotJsqrQtLeaderState;
//
//
//
//
//
//
//
if(quotJsqrQtOperateState == '0'&&quotJsqrQtCheckState == '0'&&quotJsqrQtLeaderState == '0'){
this.quotJsqrQtCheckRemarkDis=true;
}else if(quotJsqrQtOperateState == '0'&&quotJsqrQtCheckState == '3'&&quotJsqrQtLeaderState == '0'){
this.quotJsqrQtCheckRemarkDis=true;
}else if(quotJsqrQtOperateState == '0'&&quotJsqrQtCheckState == '0'&&quotJsqrQtLeaderState == '3'){
this.quotJsqrQtCheckRemarkDis=true;
}else if(quotJsqrQtOperateState == '2'&&quotJsqrQtCheckState == '2'&&quotJsqrQtLeaderState == '0'){
this.quotJsqrQtCheckRemarkDis=true;
}else if(quotJsqrQtOperateState == '2'&&quotJsqrQtCheckState == '2'&&quotJsqrQtLeaderState == '2'){
this.quotJsqrQtCheckRemarkDis=true;
}else if(quotJsqrQtOperateState == '2'&&quotJsqrQtCheckState == '2'&&quotJsqrQtLeaderState == '3'){
this.quotJsqrQtCheckRemarkDis=true;
}else{
this.quotJsqrQtCheckRemarkDis=false;
}
//
//
//
//
//
if(quotJsqrQtOperateState == '0'&&quotJsqrQtCheckState == '0'&&quotJsqrQtLeaderState == '0'){
this.quotJsqrQtLeaderRemarkDis=true;
}else if(quotJsqrQtOperateState == '0'&&quotJsqrQtCheckState == '3'&&quotJsqrQtLeaderState == '0'){
this.quotJsqrQtLeaderRemarkDis=true;
}else if(quotJsqrQtOperateState == '0'&&quotJsqrQtCheckState == '0'&&quotJsqrQtLeaderState == '3'){
this.quotJsqrQtLeaderRemarkDis=true;
}else if(quotJsqrQtOperateState == '2'&&quotJsqrQtCheckState == '2'&&quotJsqrQtLeaderState == '2'){
this.quotJsqrQtLeaderRemarkDis=true;
}else{
this.quotJsqrQtLeaderRemarkDis=false;
}
}
} }
}; };
</script> </script>