Browse Source

2024-07-23

master
qiezi 1 year ago
parent
commit
7c8264c37a
  1. 29
      src/views/modules/quotation/requestForQuote.vue

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

@ -243,13 +243,6 @@
<el-input v-model="modalData.customerResponsiblePersonPhone"></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item prop="trackerName">
<span v-if="quotationInformationFlag('tracker') === 'N' && modalData.flag === '2'" slot="label">采购专员</span>
<span v-else style="cursor: pointer" slot="label" @click="getBaseList(2000)"><a herf="#">采购专员</a></span>
<el-input :disabled="quotationInformationFlag('tracker') === 'N' && modalData.flag === '2'" v-model="modalData.trackerName" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item prop="quoterName">
<span v-if="quotationInformationFlag('quoter') === 'N' && modalData.flag === '2'" slot="label">报价专员</span>
@ -257,6 +250,15 @@
<el-input :disabled="quotationInformationFlag('quoter') === 'N' && modalData.flag === '2'" v-model="modalData.quoterName" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item prop="trackerName" v-if="modalData.sourcing === 'Y'">
<span style="cursor: pointer" slot="label" @click="getBaseList(2000)"><a herf="#">采购专员</a></span>
<el-input v-model="modalData.trackerName" readonly></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>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10">
<el-col :span="12">
@ -299,7 +301,7 @@
</el-row>
<el-row :gutter="10">
<el-col :span="24">
<el-form-item label="技术注意事项" style="display: block;min-height: 90px">
<el-form-item label="备注" style="display: block;min-height: 90px">
<el-input
type="textarea"
:disabled="quotationInformationFlag('technicalConsiderations') === 'N' && modalData.flag === '2'"
@ -569,7 +571,7 @@
<el-tab-pane label="询价详细信息" name="quotation_detail_information" style="" v-if="false">
<el-form :inline="true" label-position="top" :model="quotationDetailData"
style="margin-left: 10px;margin-top: 10px;">
<el-form-item label="技术注意事项">
<el-form-item label="备注">
<el-input
type="textarea"
v-model="quotationDetailData.technicalConsiderations"
@ -984,6 +986,10 @@
</el-row>
</el-form>
</el-tab-pane>
<el-tab-pane label="报价明细" name="quote_detail" >
</el-tab-pane>
</el-tabs>
<!-- chooseList模态框 -->
@ -1107,6 +1113,7 @@ export default {
this.$refs.projectPartTable.clearSelection();
}
},
},
data() {
return {
@ -2486,11 +2493,11 @@ export default {
this.$message.warning('请选择客户名称!')
return
}
if (this.modalData.tracker === '' || this.modalData.tracker == null) {
if ((this.modalData.tracker === '' || this.modalData.tracker == null) && this.modalData.sourcing === 'Y') {
this.$message.warning('请选择采购专员编码!')
return
}
if (this.modalData.trackerName === '' || this.modalData.trackerName == null) {
if ((this.modalData.trackerName === '' || this.modalData.trackerName == null) && this.modalData.sourcing !== 'Y') {
this.$message.warning('请选择采购专员名称!')
return
}

Loading…
Cancel
Save