Browse Source

2024-11-08

master
qiezi 1 year ago
parent
commit
7cb7fc7cd4
  1. 43
      src/views/modules/proofing/requestForProofing.vue
  2. 26
      src/views/modules/quotation/requestForQuote.vue
  3. 23
      src/views/modules/quotation/sellForQuotation.vue
  4. 39
      src/views/modules/test/requestForTest.vue

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

@ -232,14 +232,18 @@
<el-form-item :show-message="false">
<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') || detailVisible" readonly></el-input>
<el-input v-model="modalData.trackerName" :disabled="columnFlagByHeader('tracker') || detailVisible" readonly>
<span slot="suffix" v-show="modalData.trackerName" @click="clearModalData('tracker')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
</el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :show-message="false">
<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-input v-model="modalData.engineerName" :disabled="columnFlagByHeader('engineer') || detailVisible" readonly>
<span slot="suffix" v-show="modalData.engineerName" @click="clearModalData('engineer')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
</el-input>
</el-form-item>
</el-col>
<el-col :span="4">
@ -247,14 +251,25 @@
<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-input v-model="modalData.approverName" :disabled="columnFlagByHeader('approver') || detailVisible" readonly>
<span slot="suffix" v-show="modalData.approverName" @click="clearModalData('approver')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
</el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item>
<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') || detailVisible" readonly></el-input>
<el-input v-model="delegateAccessName" :disabled="columnFlagByDelegateAccess('delegateAccess') || detailVisible" readonly>
<span slot="suffix" v-show="delegateAccessName" @click="selectionDelegateAccess = []"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
</el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="15">
<el-col :span="24">
<el-form-item label="样品寄送地址" class="auto">
<el-input type="textarea" v-model="modalData.sendSamplesAddress" :disabled="detailVisible" :rows="3" resize='none' show-word-limit></el-input>
</el-form-item>
</el-col>
</el-row>
@ -847,7 +862,22 @@ export default {
if (newVal === false){
this.detailVisible = false
}
}
},
'modalData.tracker'(newVal,oldVal){
if (!newVal){
this.modalData.trackerName = ''
}
},
'modalData.engineer'(newVal,oldVal){
if (!newVal){
this.modalData.engineerName = ''
}
},
'modalData.approver'(newVal,oldVal){
if (!newVal){
this.modalData.approverName = ''
}
},
},
computed: {
delegateAccessName: {
@ -3538,6 +3568,9 @@ export default {
} else {
this.$router.push({name:`part-partInformation`,params:{partNo:row.testPartNo},})
}
},
clearModalData(filed){
this.modalData[filed] = ''
}
}
}

26
src/views/modules/quotation/requestForQuote.vue

@ -266,13 +266,17 @@
<el-form-item prop="quoterName">
<span v-if="(quotationInformationFlag('quoter') === 'N' && modalData.flag === '2') || detailVisible" slot="label">报价专员</span>
<span v-else style="cursor: pointer" slot="label" @click="getBaseList(2002)"><a herf="#">报价专员</a></span>
<el-input :disabled="(quotationInformationFlag('quoter') === 'N' && modalData.flag === '2') || detailVisible" v-model="modalData.quoterName" readonly></el-input>
<el-input :disabled="(quotationInformationFlag('quoter') === 'N' && modalData.flag === '2') || detailVisible" v-model="modalData.quoterName" readonly>
<span slot="suffix" v-show="modalData.quoterName" @click="clearModalData('quoter')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
</el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item prop="trackerName" v-if="(modalData.sourcing === 'Y' || modalData.sourcing === '0' || modalData.sourcing === 0) && !detailVisible">
<span style="cursor: pointer" slot="label" @click="getBaseList(2000)"><a>采购专员</a></span>
<el-input v-model="modalData.trackerName" :disabled="detailVisible" readonly></el-input>
<el-input v-model="modalData.trackerName" :disabled="detailVisible" readonly>
<span slot="suffix" v-show="modalData.trackerName" @click="clearModalData('tracker')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
</el-input>
</el-form-item>
<el-form-item label="采购专员" v-else>
<el-input :disabled="quotationInformationFlag('tracker') === 'N' && modalData.flag === '2'" v-model="modalData.trackerName" readonly></el-input>
@ -566,7 +570,7 @@
@tab-click="tabClick" class="customer-tab">
<el-tab-pane label="基本信息" name="priceCheck">
<price-check-properties :disabled="quotationCurrentRow.quotationStatus === '已完成'" ref="tabProperties" v-model:data-list="priceCheckPropertiesList"
:quotation-no="quotationCurrentRow.quotationNo" height="45vh"></price-check-properties>
:quotation-no="quotationCurrentRow.quotationBatchNo" height="45vh"></price-check-properties>
</el-tab-pane>
<el-tab-pane label="采购详细信息" name="tabMaterialSourcing">
<price-check-detail :disabled="quotationCurrentRow.quotationStatus === '已完成'" :quote="quotationCurrentRow" :data-list="priceCheckDetailList" @refresh="getPriceCheckDetailList" :height="500"></price-check-detail>
@ -695,7 +699,7 @@
<inquiry-quote-detail :quotation="quotationCurrentRow"></inquiry-quote-detail>
</el-tab-pane>
<el-tab-pane label="附件信息" name="oss_file" >
<oss-components label="申请单号" style="margin-top: 5px" height="44vh" :disabled="quotationCurrentRow.quotationStatus === '已完成'" :columns="ossColumns" :order-ref1="quotationCurrentRow.site" :order-ref2="quotationCurrentRow.quotationNo"></oss-components>
<oss-components label="申请单号" style="margin-top: 5px" height="44vh" :disabled="quotationCurrentRow.quotationStatus === '已完成'" :columns="ossColumns" :order-ref1="quotationCurrentRow.site" :order-ref2="quotationCurrentRow.quotationBatchNo"></oss-components>
</el-tab-pane>
<!-- 审批信息 -->
@ -854,6 +858,11 @@ export default {
this.modalData.trackerName = ''
}
},
"modalData.quoter"(newVal,oldVal){
if (newVal === '' || newVal === null || newVal === undefined){
this.modalData.quoterName = ''
}
},
"searchData.quotationNo"(newVal,oldVal){
this.searchData.quotationNo = newVal.toUpperCase()
},
@ -864,7 +873,7 @@ export default {
if (newVal === false){
this.detailVisible = false
}
}
},
},
data() {
return {
@ -2509,7 +2518,7 @@ export default {
getPriceCheckProperties() {
let params = {
site: this.quotationCurrentRow.site,
quotationNo: this.quotationCurrentRow.quotationNo
quotationNo: this.quotationCurrentRow.quotationBatchNo
}
getPriceCheckPropertiesList(params).then(({data}) => {
if (data && data.code === 0) {
@ -3385,7 +3394,10 @@ export default {
updateDetailModal(row){
this.detailVisible = true
this.updateModal(row)
}
},
clearModalData(field){
this.modalData[field] = ''
},
}
}
</script>

23
src/views/modules/quotation/sellForQuotation.vue

@ -277,7 +277,9 @@
<el-col :span="8">
<el-form-item label="报价专员" prop="quoterName">
<span slot="label" @click="getBaseList(2002)" v-if="!detailDialogVisible"><a>报价专员</a></span>
<el-input v-model="insertData.quoterName" @clear="clearQuoter" readonly :disabled="detailDialogVisible" clearable/>
<el-input v-model="insertData.quoterName" @clear="clearQuoter" readonly :disabled="detailDialogVisible" clearable>
<span slot="suffix" v-show="insertData.quoterName" @click="clearInsertData('quoter')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
@ -285,7 +287,9 @@
<span slot="label" v-if="!detailDialogVisible" @click="getBaseList(2000)">
<a>采购专员</a>
</span>
<el-input v-model="insertData.trackerName" :disabled="detailDialogVisible" @clear="clearTracker" readonly clearable/>
<el-input v-model="insertData.trackerName" :disabled="detailDialogVisible" @clear="clearTracker" readonly clearable>
<span slot="suffix" v-show="insertData.trackerName" @click="clearInsertData('tracker')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
</el-input>
</el-form-item>
</el-col>
</el-row>
@ -1546,7 +1550,10 @@ export default {
}
})
}
}
},
clearInsertData(field){
this.insertData[field] = ''
},
},
computed: {},
watch: {
@ -1588,6 +1595,16 @@ export default {
"searchData.projectId"(newVal,oldVal){
this.searchData.projectId = newVal.toUpperCase()
},
'insertData.quoter'(newVal,oldVal){
if (!newVal){
this.insertData.quoterName = ''
}
},
'insertData.tracker'(newVal,oldVal){
if (!newVal){
this.insertData.trackerName = ''
}
},
},
mounted() {
},

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

@ -248,28 +248,36 @@
<el-form-item prop="trackerName">
<span v-if="(testInformationFlag('tracker') === 'N' && modalData.flag === '2') || detailFlag" slot="label">Artwork</span>
<span v-else style="cursor: pointer" slot="label" @click="getBaseList(2041)"><a herf="#">Artwork</a></span>
<el-input :disabled="(testInformationFlag('tracker') === 'N' && modalData.flag === '2') || detailFlag" v-model="modalData.trackerName" readonly></el-input>
<el-input :disabled="(testInformationFlag('tracker') === 'N' && modalData.flag === '2') || detailFlag" v-model="modalData.trackerName" readonly>
<span slot="suffix" v-show="modalData.trackerName" @click="clearModalData('tracker')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
</el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item prop="engineerName">
<span v-if="(testInformationFlag('engineer') === 'N' && modalData.flag === '2') || detailFlag" slot="label">TP工程师</span>
<span v-else slot="label" @click="getBaseList(2042)"><a herf="#">TP工程师</a></span>
<el-input :disabled="(testInformationFlag('engineer') === 'N' && modalData.flag === '2') || detailFlag" v-model="modalData.engineerName" readonly></el-input>
<el-input :disabled="(testInformationFlag('engineer') === 'N' && modalData.flag === '2') || detailFlag" v-model="modalData.engineerName" readonly>
<span slot="suffix" v-show="modalData.engineerName" @click="clearModalData('engineer')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
</el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="CQC">
<span v-if="(testInformationFlag('artwork') === 'N' && modalData.flag === '2') || detailFlag" slot="label">CQC</span>
<span v-else slot="label"><a herf="#" @click="getBaseList(2007)">CQC</a></span>
<el-input :disabled="(testInformationFlag('artwork') === 'N' && modalData.flag === '2') || detailFlag" v-model="modalData.artworkName"></el-input>
<el-input :disabled="(testInformationFlag('artwork') === 'N' && modalData.flag === '2') || detailFlag" v-model="modalData.artworkName">
<span slot="suffix" v-show="modalData.artworkName" @click="clearModalData('artwork')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
</el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="FAI">
<span v-if="(testInformationFlag('planner') === 'N' && modalData.flag === '2') || detailFlag" slot="label">FAI</span>
<span v-else slot="label"><a herf="#" @click="getBaseList(2008)">FAI</a></span>
<el-input :disabled="(testInformationFlag('planner') === 'N' && modalData.flag === '2') || detailFlag" v-model="modalData.plannerName"></el-input>
<el-input :disabled="(testInformationFlag('planner') === 'N' && modalData.flag === '2') || detailFlag" v-model="modalData.plannerName">\
<span slot="suffix" v-show="modalData.plannerName" @click="clearModalData('planner')"><i class="el-icon-circle-close" style="margin-left: 5px;cursor: pointer;"></i></span>
</el-input>
</el-form-item>
</el-col>
</el-row>
@ -895,6 +903,26 @@
}
}
},
'modalData.tracker'(newV, oldV){
if (newV === '' || newV === undefined || newV === null){
this.modalData.trackerName = ''
}
},
'modalData.engineer'(newV, oldV){
if (newV === '' || newV === undefined || newV === null){
this.modalData.engineerName = ''
}
},
'modalData.artwork'(newV, oldV){
if (newV === '' || newV === undefined || newV === null){
this.modalData.artworkName = ''
}
},
'modalData.planner'(newV, oldV){
if (newV === '' || newV === undefined || newV === null){
this.modalData.plannerName = ''
}
},
modalFlag(newVal, oldVal){
if (newVal === false){
this.detailFlag = false
@ -3408,6 +3436,9 @@
}
})
},
clearModalData(field){
this.modalData[field] = ''
}
},
}
</script>

Loading…
Cancel
Save