Browse Source

2024-10-21

master
qiezi 1 year ago
parent
commit
9e8027b6d4
  1. 11
      src/views/modules/demoComponents/orderProperties.vue
  2. 505
      src/views/modules/proofing/requestForProofing.vue
  3. 4
      src/views/modules/test/requestForTest.vue

11
src/views/modules/demoComponents/orderProperties.vue

@ -1,9 +1,9 @@
<template>
<div>
<div style="margin-top: 5px">
<el-button type="primary" @click="clickSaveBtn" v-if="orderNo">新增</el-button>
<el-button type="primary" :loading="loading" v-if="orderNo" @click="clickSave">{{ attributeDialog?'编辑':'保存' }}</el-button>
<el-button type="primary" @click="refreshPropertiesModal" v-if="attributeDialog">刷新属性模板</el-button>
<el-button type="primary" @click="clickSaveBtn" v-if="orderNo" :disabled="disabled">新增</el-button>
<el-button type="primary" :loading="loading" v-if="orderNo" :disabled="disabled" @click="clickSave">{{ attributeDialog?'编辑':'保存' }}</el-button>
<el-button type="primary" @click="refreshPropertiesModal" :disabled="disabled" v-if="attributeDialog">刷新属性模板</el-button>
</div>
<div class="rq " v-if="attributeDialog">
<el-table
@ -114,7 +114,10 @@ export default {
functionType:{
type:String,
},
disabled:{
type:Boolean,
default:false,
}
},
data(){
return{

505
src/views/modules/proofing/requestForProofing.vue

@ -143,10 +143,15 @@
width="100"
label="操作">
<template slot-scope="scope">
<el-link style="cursor: pointer" @click="updateModal(scope.row)" v-if="scope.row.proofingStatus !== '已完成'">编辑</el-link>
<el-link style="cursor: pointer" v-if="scope.row.proofingResultStatus === 'B'"
<el-link style="cursor: pointer" @click="updateModal(scope.row)" v-if="scope.row.proofingStatus !== '已完成'">
编辑
</el-link>
<el-link style="cursor: pointer" v-if="scope.row.proofingStatus === '草稿'"
@click="updateModalStatus(scope.row,'C')">下达
</el-link>
<el-link style="cursor: pointer" v-if="scope.row.proofingStatus === '已完成'" @click="getDetailData(scope.row)">
详情
</el-link>
</template>
</el-table-column>
</el-table>
@ -165,8 +170,7 @@
</el-pagination>
<!-- 打样模态框 -->
<el-dialog :title="modalData.title" @close="closeModalDiaLog" @open="openModalDialog" :close-on-click-modal="false"
v-drag :visible.sync="modalFlag" top="10vh" width="1200px">
<el-dialog :title="modalData.title" @close="closeModalDiaLog" @open="openModalDialog" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" top="10vh" width="1200px">
<el-form label-position="top" ref="modalForm" :model="modalData" :rules="rules">
<el-row :gutter="15">
<el-col :span="8">
@ -175,7 +179,8 @@
<el-form-item prop="customerNo" label="客户编码" :show-message="false">
<span style="cursor: pointer" slot="label" v-if="modalData.flag === '1'"
@click="getBaseList(102,1)"><a herf="#">客户编码</a></span>
<el-input :disabled="modalData.flag !== '1' && columnFlagByHeader('customerNo')" v-model="modalData.customerNo" @blur="handleQueryCustomer"></el-input>
<el-input :disabled="modalData.flag !== '1' && columnFlagByHeader('customerNo')"
v-model="modalData.customerNo" @blur="handleQueryCustomer"></el-input>
</el-form-item>
</el-col>
<el-col :span="14">
@ -187,22 +192,21 @@
</el-col>
<el-col :span="4">
<el-form-item label="打样数量" prop="proofingNumber" :show-message="false">
<div class="right">
<el-input type="number" class="inlineNumber" :disabled="columnFlagByHeader('proofingNumber')" v-model="modalData.proofingNumber"
@input="modalData.proofingNumber = modalData.proofingNumber.replace(/^(0+)|[^\d]+/g, '')"></el-input>
</div>
<el-input-number :controls="false" :disabled="detailVisible" :min="0" v-model="modalData.proofingNumber" :step="0" style="width: 100%"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="优先等级" :show-message="false">
<dict-data-select v-if="modalFlag" :disabled="columnFlagByHeader('priorityLevel')" v-model="modalData.priorityLevel"
<dict-data-select v-if="modalFlag" :disabled="columnFlagByHeader('priorityLevel') || detailVisible"
v-model="modalData.priorityLevel"
dict-type="priority_Level"></dict-data-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="要求交付日期" prop="requiredDeliveryDate" :show-message="false">
<el-date-picker v-model="modalData.requiredDeliveryDate" style="width: 100%" type="date"
value-format="yyyy-MM-dd" placeholder="选择日期" :disabled="columnFlagByHeader('requiredDeliveryDate')"></el-date-picker>
value-format="yyyy-MM-dd" placeholder="选择日期"
:disabled="columnFlagByHeader('requiredDeliveryDate') || detailVisible"></el-date-picker>
</el-form-item>
</el-col>
</el-row>
@ -226,38 +230,38 @@
</el-col>
<el-col :span="4">
<el-form-item :show-message="false">
<label v-if="columnFlagByHeader('tracker')" slot="label">CS</label>
<label v-if="columnFlagByHeader('tracker') || detailVisible" slot="label">CS</label>
<span v-else style="cursor: pointer" slot="label" @click="getBaseList(2051)"><a herf="#">CS</a></span>
<el-input v-model="modalData.trackerName" :disabled="columnFlagByHeader('tracker')" readonly ></el-input>
<el-input v-model="modalData.trackerName" :disabled="columnFlagByHeader('tracker') || detailVisible" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :show-message="false">
<label v-if="columnFlagByHeader('engineer')" slot="label">NPI工程师</label>
<span v-else style="cursor: pointer" slot="label" @click="getBaseList(2052)"><a herf="#">NPI工程师</a></span>
<el-input v-model="modalData.engineerName" :disabled="columnFlagByHeader('engineer')" readonly ></el-input>
<label v-if="columnFlagByHeader('engineer') || detailVisible" slot="label">NPI工程师</label>
<span v-else style="cursor: pointer" slot="label" @click="getBaseList(2052)"><a>NPI工程师</a></span>
<el-input v-model="modalData.engineerName" :disabled="columnFlagByHeader('engineer') || detailVisible" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item>
<label v-if="columnFlagByHeader('approver')" slot="label">Approver</label>
<span v-else style="cursor: pointer" slot="label" @click="getBaseList(2053)"><a herf="#">Approver</a></span>
<el-input v-model="modalData.approverName" :disabled="columnFlagByHeader('approver')" readonly></el-input>
<label v-if="columnFlagByHeader('approver') || detailVisible" slot="label">Approver</label>
<span v-else style="cursor: pointer" slot="label" @click="getBaseList(2053)"><a
herf="#">Approver</a></span>
<el-input v-model="modalData.approverName" :disabled="columnFlagByHeader('approver') || detailVisible" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item>
<label v-if="columnFlagByDelegateAccess('delegateAccess')" slot="label">DelegateAccess</label>
<label v-if="columnFlagByDelegateAccess('delegateAccess') || detailVisible" slot="label">DelegateAccess</label>
<span v-else style="cursor: pointer" slot="label" @click="delegateAccessVisible = true"><a herf="#">DelegateAccess</a></span>
<el-input v-model="delegateAccessName" :disabled="columnFlagByDelegateAccess('delegateAccess')" readonly></el-input>
<el-input v-model="delegateAccessName" :disabled="columnFlagByDelegateAccess('delegateAccess') || detailVisible" readonly></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="15">
<el-col :span="24">
<el-form-item label="备注" style="height: 90px">
<el-input type="textarea" v-model="modalData.technicalConsiderations" :rows="3" resize='none'
show-word-limit></el-input>
<el-input type="textarea" v-model="modalData.technicalConsiderations" :disabled="detailVisible" :rows="3" resize='none' show-word-limit></el-input>
</el-form-item>
</el-col>
</el-row>
@ -313,7 +317,9 @@
<el-button type="primary" @click="saveData()">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
<el-button v-if="modalData.proofingStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.proofingStatus === '审批中' && modalData.isReject === 'Y'" @click="rejectVisible = true" type="primary">驳回</el-button>
<el-button v-if="modalData.proofingStatus === '审批中' && modalData.isReject === 'Y'"
@click="rejectVisible = true" type="primary">驳回
</el-button>
</el-footer>
</el-dialog>
@ -477,8 +483,8 @@
<!-- 页签 -->
<el-tabs v-model="activeTable" style="margin-top: 0px; width: 100%; min-height: 300px;" type="border-card"
@tab-click="tabClick" class="customer-tab">
<el-tab-pane label="基本信息" name="attribute" >
<proofing-attribute ref="dialogAttribute" :order-no="proofingCurrentRow.proofingNo" :code-no="'Proofing'" :function-type="'order'"></proofing-attribute>
<el-tab-pane label="基本信息" name="attribute">
<proofing-attribute ref="dialogAttribute" :disabled="proofingCurrentRow.proofingStatus === '已完成'" :order-no="proofingCurrentRow.proofingNo" :code-no="'Proofing'" :function-type="'order'"></proofing-attribute>
</el-tab-pane>
<!-- 项目信息页签 -->
<el-tab-pane label="项目信息" name="project_information">
@ -598,160 +604,11 @@
<!-- 客户信息页签 -->
<el-tab-pane label="客户信息" name="customer_information">
<customer-info :project="proofingCurrentRow"></customer-info>
<!-- <el-form label-position="top" :model="customerInformationData"-->
<!-- style="margin-left: 10px;margin-top: 5px;margin-right: 10px">-->
<!-- <el-row :gutter="20">-->
<!-- <el-col :span="8">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="客户代码">-->
<!-- <el-input v-model="customerInformationData.customerNo" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="客户名称">-->
<!-- <el-input v-model="customerInformationData.customerDesc" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="重要程度">-->
<!-- <el-input v-model="customerInformationData.importantCustomer" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row :gutter="20">-->
<!-- <el-col :span="8">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="客户币种">-->
<!-- <el-input v-model="customerInformationData.customerCurrency" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="年营业额">-->
<!-- <el-input v-model="customerInformationData.turnoverOfYear" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="年潜在投入">-->
<!-- <el-input v-model="customerInformationData.potentialRevenueOfYear" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row :gutter="20">-->
<!-- <el-col :span="8">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="客户状态">-->
<!-- <el-input v-model="customerInformationData.customerStatus" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="行业">-->
<!-- <el-input v-model="customerInformationData.customerIndustry" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="公司名称">-->
<!-- <el-input v-model="customerInformationData.companyName" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row :gutter="20">-->
<!-- <el-col :span="8">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="客户联系人">-->
<!-- <el-input v-model="customerInformationData.contactName" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="联系人电话">-->
<!-- <el-input v-model="customerInformationData.contactPhoneNumber1" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="联系人职务">-->
<!-- <el-input v-model="customerInformationData.position" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row :gutter="20">-->
<!-- <el-col :span="12">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="客户描述">-->
<!-- <el-input v-model="customerInformationData.customerDescription" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row :gutter="20">-->
<!-- <el-col :span="12">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="客户联系地址">-->
<!-- <el-input v-model="customerInformationData.addressName" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="12">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="地址类型">-->
<!-- <el-input v-model="customerInformationData.addressType" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row :gutter="20">-->
<!-- <el-col :span="6">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="创建时间">-->
<!-- <el-input v-model="customerInformationData.createDate" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="创建人">-->
<!-- <el-input v-model="customerInformationData.createBy" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="更新时间">-->
<!-- <el-input v-model="customerInformationData.updateDate" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <div class="grid-content bg-purple">-->
<!-- <el-form-item label="更新人">-->
<!-- <el-input v-model="customerInformationData.updateBy" readonly></el-input>-->
<!-- </el-form-item>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- </el-form>-->
</el-tab-pane>
<el-tab-pane label="附件信息" name="proofing_file">
<!-- <profing-file ref="profingFile" :test-no="proofingCurrentRow.proofingNo" ></profing-file>-->
<oss-components label="打样单号" style="margin-top: 5px" height="28vh" :columns="ossColumns" :order-ref2="proofingCurrentRow.proofingNo" :order-ref1="proofingCurrentRow.site"></oss-components>
<oss-components label="打样单号" style="margin-top: 5px" height="28vh" :columns="ossColumns"
:order-ref2="proofingCurrentRow.proofingNo"
:order-ref1="proofingCurrentRow.site" :disabled="proofingCurrentRow.proofingStatus === '已完成'"></oss-components>
</el-tab-pane>
<!-- 审批信息 -->
<el-tab-pane label="审批信息" name="approvalInformation">
@ -858,7 +715,7 @@
</el-footer>
</el-dialog>
<el-dialog title="驳回" top="30vh" :close-on-click-modal="false" v-drag :visible.sync="rejectVisible" width="500px">
<el-form label-position="top">
<el-form label-position="top">
<el-form-item label="驳回意见" class="auto">
<el-input type="textarea" v-model="rejectOpinion" :rows="3"></el-input>
</el-form-item>
@ -925,11 +782,11 @@ export default {
OssComponents,
ApprovalInformation,
ProjectInfo
,DictDataSelect
,Chooselist
,proofingUploadFile
,profingFile
,proofingAttribute
, DictDataSelect
, Chooselist
, proofingUploadFile
, profingFile
, proofingAttribute
},
watch: {
searchData: {
@ -973,13 +830,18 @@ export default {
this.$refs.projectPartTable.clearSelection();
}
},
rejectVisible(newVal,oldVal){
if (newVal === false){
rejectVisible(newVal, oldVal) {
if (newVal === false) {
this.rejectOpinion = ''
}
},
"searchData.proofingNo"(newVal,oldVal){
"searchData.proofingNo"(newVal, oldVal) {
this.searchData.proofingNo = newVal.toUpperCase()
},
'modalFlag'(newVal, oldVal){
if (newVal === false){
this.detailVisible = false
}
}
},
computed: {
@ -993,10 +855,10 @@ export default {
},
columnFlagByHeader() {
return (value) => {
if (this.modalData.flag === '1'){
if (this.modalData.flag === '1') {
return false
}
if (!this.columnFieldList1){
if (!this.columnFieldList1) {
return true
}
let arr = this.columnFieldList1.filter(a => a.fieldId === value)
@ -1008,10 +870,10 @@ export default {
},
columnFlagByDelegateAccess() {
return (value) => {
if (this.modalData.flag === '1'){
if (this.modalData.flag === '1') {
return false
}
if (!this.columnFieldList2){
if (!this.columnFieldList2) {
return true
}
let arr = this.columnFieldList2.filter(a => a.fieldId === value)
@ -1068,7 +930,7 @@ export default {
page: 1,
limit: 10,
menuId: this.$route.meta.menuId,
buNo:'',
buNo: '',
},
//
dataListLoading: false,
@ -2047,7 +1909,7 @@ export default {
columnFieldList1: [],
columnFieldList2: [],
ossColumns:[
ossColumns: [
{
userId: this.$store.state.user.name,
functionId: 103001,
@ -2141,6 +2003,7 @@ export default {
],
rejectVisible: false,
rejectOpinion: '',
detailVisible:false,
}
},
mounted() {
@ -2157,14 +2020,14 @@ export default {
this.handleRouteQuery();
},
methods: {
handleRouteQuery(){
if (this.$route.params.type === 'tokenLogin'){
handleRouteQuery() {
if (this.$route.params.type === 'tokenLogin') {
let params = {
site: this.$route.params.site,
proofingNo: this.$route.params.docNo,
limit: this.pageSize,
createBy: this.$store.state.user.name,
page : 1,
page: 1,
}
this.dataListLoading = true
proofingInformationSearch(params).then(({data}) => {
@ -2190,13 +2053,13 @@ export default {
}
this.dataListLoading = false
})
}else if (this.$route.params.proofingNo){
} else if (this.$route.params.proofingNo) {
this.searchData.proofingNo = this.$route.params.proofingNo
this.getDataList();
setTimeout(()=>{
setTimeout(() => {
this.searchData.proofingNo = ''
},200)
}else {
}, 200)
} else {
this.getDataList();
}
},
@ -2302,7 +2165,7 @@ export default {
getDataList() {
if (localStorage.getItem('proofingData') !== undefined) {
let data = JSON.parse(localStorage.getItem('proofingData'));
if (data){
if (data) {
this.searchData.proofingNo = data.proofingNo
}
localStorage.removeItem('proofingData');
@ -2392,72 +2255,126 @@ export default {
})
},
// ======== / ========
/**
* 报价信息新增模态框
*/
addModal () {
this.searchDelegateAccessByUser();
this.modalDisableFlag = false
this.modalFlag = true
},
/**
* 报价信息编辑模态框
* @param row
*/
async updateModal (row) {
await this.getNodeAuthority(row)
this.modalData = {
flag: '2',
title: '打样编辑-'+row.proofingNo,
site: row.site,
proofingNo: row.proofingNo,
customerNo: row.customerNo,
customerDesc: row.customerDesc,
projectId: row.projectId,
projectName: row.projectName,
tracker: row.tracker,
trackerName: row.trackerName,
testPartNo: row.testPartNo,
partName: row.partName,
engineer: row.engineer,
engineerName: row.engineerName,
approver: row.approver,
approverName: row.approverName,
priorityLevel: row.priorityLevel,
proofingNumber: row.proofingNumber,
requiredDeliveryDate: row.requiredDeliveryDate,
remark: row.remark,
technicalConsiderations: row.technicalConsiderations,
isNeedToSendSamples: row.isNeedToSendSamples,
sendSamplesAddress: row.sendSamplesAddress,
consignee: row.consignee,
consigneeContact: row.consigneeContact,
actualityDeliveryDate: row.actualityDeliveryDate,
proofingResultInformation: row.proofingResultInformation,
actualitySendSamplesDate: row.actualitySendSamplesDate,
sendSamplesMethod: row.sendSamplesMethod,
deliverGoodsInformation: row.deliverGoodsInformation,
deliverGoodsRemark: row.deliverGoodsRemark,
actualityReplyDate: row.actualityReplyDate,
confirmResults: row.confirmResults,
confirmBy: row.confirmBy,
confirmInformation: row.confirmInformation,
proofingStatus: row.proofingStatus,
proofingResultStatus: row.proofingResultStatus,
nextToDo: row.nextToDo,
updateBy: this.$store.state.user.name,
nodeConclusion: '',
stepId: row.stepId,
rejectFlag: row.rejectFlag,
rejectStepId: row.rejectStepId,
isReject: row.isReject,
nodeId: row.nodeId
}
this.searchDelegateAccessByUser();
this.modalDisableFlag = true
this.modalFlag = true
},
// ======== / ========
/**
* 报价信息新增模态框
*/
addModal() {
this.searchDelegateAccessByUser();
this.modalDisableFlag = false
this.modalFlag = true
},
/**
* 报价信息编辑模态框
* @param row
*/
async updateModal(row) {
await this.getNodeAuthority(row)
this.modalData = {
flag: '2',
title: '打样编辑-' + row.proofingNo,
site: row.site,
proofingNo: row.proofingNo,
customerNo: row.customerNo,
customerDesc: row.customerDesc,
projectId: row.projectId,
projectName: row.projectName,
tracker: row.tracker,
trackerName: row.trackerName,
testPartNo: row.testPartNo,
partName: row.partName,
engineer: row.engineer,
engineerName: row.engineerName,
approver: row.approver,
approverName: row.approverName,
priorityLevel: row.priorityLevel,
proofingNumber: row.proofingNumber,
requiredDeliveryDate: row.requiredDeliveryDate,
remark: row.remark,
technicalConsiderations: row.technicalConsiderations,
isNeedToSendSamples: row.isNeedToSendSamples,
sendSamplesAddress: row.sendSamplesAddress,
consignee: row.consignee,
consigneeContact: row.consigneeContact,
actualityDeliveryDate: row.actualityDeliveryDate,
proofingResultInformation: row.proofingResultInformation,
actualitySendSamplesDate: row.actualitySendSamplesDate,
sendSamplesMethod: row.sendSamplesMethod,
deliverGoodsInformation: row.deliverGoodsInformation,
deliverGoodsRemark: row.deliverGoodsRemark,
actualityReplyDate: row.actualityReplyDate,
confirmResults: row.confirmResults,
confirmBy: row.confirmBy,
confirmInformation: row.confirmInformation,
proofingStatus: row.proofingStatus,
proofingResultStatus: row.proofingResultStatus,
nextToDo: row.nextToDo,
updateBy: this.$store.state.user.name,
nodeConclusion: '',
stepId: row.stepId,
rejectFlag: row.rejectFlag,
rejectStepId: row.rejectStepId,
isReject: row.isReject,
nodeId: row.nodeId
}
this.searchDelegateAccessByUser();
this.modalDisableFlag = true
this.modalFlag = true
},
async getDetailData(row) {
this.detailVisible = true
await this.getNodeAuthority(row)
this.modalData = {
flag: '2',
title: '打样编辑-' + row.proofingNo,
site: row.site,
proofingNo: row.proofingNo,
customerNo: row.customerNo,
customerDesc: row.customerDesc,
projectId: row.projectId,
projectName: row.projectName,
tracker: row.tracker,
trackerName: row.trackerName,
testPartNo: row.testPartNo,
partName: row.partName,
engineer: row.engineer,
engineerName: row.engineerName,
approver: row.approver,
approverName: row.approverName,
priorityLevel: row.priorityLevel,
proofingNumber: row.proofingNumber,
requiredDeliveryDate: row.requiredDeliveryDate,
remark: row.remark,
technicalConsiderations: row.technicalConsiderations,
isNeedToSendSamples: row.isNeedToSendSamples,
sendSamplesAddress: row.sendSamplesAddress,
consignee: row.consignee,
consigneeContact: row.consigneeContact,
actualityDeliveryDate: row.actualityDeliveryDate,
proofingResultInformation: row.proofingResultInformation,
actualitySendSamplesDate: row.actualitySendSamplesDate,
sendSamplesMethod: row.sendSamplesMethod,
deliverGoodsInformation: row.deliverGoodsInformation,
deliverGoodsRemark: row.deliverGoodsRemark,
actualityReplyDate: row.actualityReplyDate,
confirmResults: row.confirmResults,
confirmBy: row.confirmBy,
confirmInformation: row.confirmInformation,
proofingStatus: row.proofingStatus,
proofingResultStatus: row.proofingResultStatus,
nextToDo: row.nextToDo,
updateBy: this.$store.state.user.name,
nodeConclusion: '',
stepId: row.stepId,
rejectFlag: row.rejectFlag,
rejectStepId: row.rejectStepId,
isReject: row.isReject,
nodeId: row.nodeId
}
this.searchDelegateAccessByUser();
this.modalDisableFlag = true
this.modalFlag = true
},
// ======== // ========
/**
@ -2516,7 +2433,7 @@ export default {
*/
saveData() {
this.$refs.modalForm.validate((valid,obj) => {
this.$refs.modalForm.validate((valid, obj) => {
if (!valid) {
Object.keys(obj).forEach(val => {
this.$message.warning(obj[val][0].message)
@ -2634,8 +2551,8 @@ export default {
}
for (let i = 0; i < this.proofingSelections.length; i++) {
let row = this.proofingSelections[i]
if (row.proofingStatus !== '草稿'){
this.$message.warning(row.proofingNo+"不是草稿状态,不能删除!")
if (row.proofingStatus !== '草稿') {
this.$message.warning(row.proofingNo + "不是草稿状态,不能删除!")
return
}
}
@ -3515,16 +3432,16 @@ export default {
//
submitData() {
if (this.columnFieldList1 ){
if (this.columnFieldList1) {
for (let i = 0; i < this.columnFieldList1.length; i++) {
let row = this.columnFieldList1[i]
if (!this.modalData[row.fieldId] && row.required === 'Y'){
if (!this.modalData[row.fieldId] && row.required === 'Y') {
this.$message.error(row.fieldName + '不能为空')
return
}
}
}
if (this.columnFieldList2 ){
if (this.columnFieldList2) {
if (!this.delegateAccessName) {
this.$message.error('Delegate Access不能为空')
return;
@ -3533,7 +3450,7 @@ export default {
let tempData = {
...this.modalData,
userName:this.$store.state.user.name,
userName: this.$store.state.user.name,
menuId: this.$route.meta.menuId,
}
submitChange(tempData).then(({data}) => {
@ -3565,47 +3482,47 @@ export default {
}
})
},
handleQueryCustomer(){
handleQueryCustomer() {
let params = {
site:this.$store.state.user.site,
customerNo:this.modalData.customerNo
site: this.$store.state.user.site,
customerNo: this.modalData.customerNo
}
queryCustomer(params).then(({data})=>{
if (data && data.code === 0 ) {
if (data.rows && data.rows.length === 1){
queryCustomer(params).then(({data}) => {
if (data && data.code === 0) {
if (data.rows && data.rows.length === 1) {
this.modalData.customerDesc = data.rows[0].customerDesc
}else {
} else {
this.modalData.customerDesc = ''
}
}else {
} else {
this.$message.warning(data.msg)
}
}).catch((error)=>{
}).catch((error) => {
this.$message.error(error)
})
},
handleQueryProjectByCustomer(){
handleQueryProjectByCustomer() {
let params = {
site:this.$store.state.user.site,
customerId:this.modalData.customerNo,
projectId:this.modalData.projectId
site: this.$store.state.user.site,
customerId: this.modalData.customerNo,
projectId: this.modalData.projectId
}
queryProjectByCustomer(params).then(({data})=>{
if (data && data.code === 0 ){
if (data.rows && data.rows.length === 1){
queryProjectByCustomer(params).then(({data}) => {
if (data && data.code === 0) {
if (data.rows && data.rows.length === 1) {
this.modalData.projectName = data.rows[0].projectName
}else {
} else {
this.modalData.projectName = ''
}
}else {
} else {
this.$message.warning(data.msg)
}
}).catch((error)=>{
}).catch((error) => {
this.$message.error(error)
})
},
//
getApprovalList () {
getApprovalList() {
let tempData = {
site: this.$store.state.user.site,
menuId: this.$route.meta.menuId,

4
src/views/modules/test/requestForTest.vue

@ -133,7 +133,7 @@
fixed="right"
header-align="center"
align="center"
width="100"
width="120"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" style="cursor:pointer;" v-if="scope.row.testStatus !== '已完成'" @click="updateModal(scope.row)">编辑</a>
@ -527,7 +527,7 @@
<!-- 页签 -->
<el-tabs v-model="activeTable" style="margin-top: 0px; width: 100%; min-height: 500px;" type="border-card" @tab-click="tabClick" class="customer-tab">
<el-tab-pane label="基本信息" name="attribute">
<test-properties ref="tabProperties" v-model:data-list="testPropertiesList" :test-no="testCurrentRow.testNo" :disabled="testCurrentRow.testStatus === '已完成'" height="45vh"></test-properties>
<test-properties ref="tabProperties" v-model:data-list="testPropertiesList" :test-no="testCurrentRow.testNo" :disabled="testCurrentRow.testStatus === '已完成'" height="45vh"></test-properties>
</el-tab-pane>
<el-tab-pane label="物料属性" name="test_attribute" style="padding: 5px">
<el-table

Loading…
Cancel
Save