|
|
|
@ -97,7 +97,7 @@ |
|
|
|
|
|
|
|
<!-- 询价列表 --> |
|
|
|
<el-table |
|
|
|
:height="this.height - 30" |
|
|
|
:height="this.height - 300" |
|
|
|
:data="dataList" |
|
|
|
border |
|
|
|
:row-style="rowStyle" |
|
|
|
@ -106,7 +106,7 @@ |
|
|
|
@selection-change="selectionQuotation" |
|
|
|
@current-change="changeCurrentRow" |
|
|
|
v-loading="dataListLoading" |
|
|
|
style="width: 100%;"> |
|
|
|
style="width: 100%;margin-top: 5px"> |
|
|
|
<el-table-column |
|
|
|
type="selection" |
|
|
|
header-align="center" |
|
|
|
@ -181,7 +181,7 @@ |
|
|
|
<span style="cursor: pointer" slot="label" v-if="modalData.flag === '1'" @click="getBaseList(509,1)"><a herf="#">客户编码</a></span> |
|
|
|
<el-row :gutter="10"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-input :disabled="modalData.flag !== '1'" v-model="modalData.customerNo"></el-input> |
|
|
|
<el-input :disabled="modalData.flag !== '1'" v-model="modalData.customerNo" @blur="customerNoBlur"></el-input> |
|
|
|
</el-col> |
|
|
|
<el-col :span="16"> |
|
|
|
<el-input disabled v-model="modalData.customerDesc"></el-input> |
|
|
|
@ -219,7 +219,7 @@ |
|
|
|
<el-row :gutter="10"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-input :disabled="!modalData.customerNo || modalData.flag !== '1'" |
|
|
|
v-model="modalData.projectNo"></el-input> |
|
|
|
v-model="modalData.projectNo" @blur="projectNoBlur"></el-input> |
|
|
|
</el-col> |
|
|
|
<el-col :span="16"> |
|
|
|
<el-input disabled v-model="modalData.projectDesc"></el-input> |
|
|
|
@ -623,7 +623,7 @@ |
|
|
|
:quotation-no="quotationCurrentRow.quotationNo"></price-check-properties> |
|
|
|
</el-tab-pane> |
|
|
|
<!-- 项目信息页签 --> |
|
|
|
<el-tab-pane label="项目信息" name="project_information" style="height: 166px"> |
|
|
|
<el-tab-pane label="项目信息" name="project_information" style="height: 272px"> |
|
|
|
<el-form label-position="top" :model="projectInformationData" |
|
|
|
style="margin-left: 10px;margin-top: 5px;margin-right: 10px;"> |
|
|
|
<el-row :gutter="20"> |
|
|
|
@ -941,6 +941,8 @@ import {getPriceCheckPropertiesList} from "../../../api/quote/priceCheckProperti |
|
|
|
import * as XLSX from 'xlsx'; |
|
|
|
import priceCheckProperties from "./priceCheckProperties.vue"; |
|
|
|
import quotationUpload from "../quote/quotation_upload.vue"; |
|
|
|
import {queryCustomerList} from "../../../api/customer/customer"; |
|
|
|
import {queryProjectList} from "../../../api/project/project"; |
|
|
|
|
|
|
|
export default { |
|
|
|
computed: { |
|
|
|
@ -1147,6 +1149,8 @@ export default { |
|
|
|
rejectFlag: '', |
|
|
|
rejectStepId: '', |
|
|
|
isReject: '', |
|
|
|
projectManager: '', |
|
|
|
projectOwner: '', |
|
|
|
projectPartIds: [] |
|
|
|
}, |
|
|
|
quotationDetailData: { |
|
|
|
@ -2251,7 +2255,7 @@ export default { |
|
|
|
mounted() { |
|
|
|
this.$nextTick(() => { |
|
|
|
/*第二个表格高度的动态调整*/ |
|
|
|
this.secondHeight = window.innerHeight -this.height; |
|
|
|
this.height = window.innerHeight - 210; |
|
|
|
}) |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -3188,6 +3192,57 @@ export default { |
|
|
|
// } |
|
|
|
}, |
|
|
|
|
|
|
|
customerNoBlur(){ |
|
|
|
let params = { |
|
|
|
customerNo: this.modalData.customerNo, |
|
|
|
createBy: this.$store.state.user.name, |
|
|
|
} |
|
|
|
queryCustomerList(params).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
if (data.rows.length === 1){ |
|
|
|
this.modalData.customerDesc = data.rows[0].customerDesc |
|
|
|
}else { |
|
|
|
this.modalData.projectNo = '' |
|
|
|
this.modalData.projectDesc = '' |
|
|
|
this.modalData.customerDesc = '' |
|
|
|
} |
|
|
|
}else { |
|
|
|
this.$message.warning(data.message) |
|
|
|
} |
|
|
|
}).catch((error) => { |
|
|
|
this.$message.error(error) |
|
|
|
}) |
|
|
|
}, |
|
|
|
projectNoBlur(){ |
|
|
|
let params = { |
|
|
|
projectNo: this.modalData.projectNo, |
|
|
|
customerNo: this.modalData.customerNo, |
|
|
|
createBy: this.$store.state.user.name, |
|
|
|
buId: this.modalData.buId, |
|
|
|
} |
|
|
|
queryProjectList(params).then(({data})=>{ |
|
|
|
if (data && data.code === 0) { |
|
|
|
if (data.rows.length === 1) { |
|
|
|
this.modalData.projectDesc = data.rows[0].projectDesc |
|
|
|
this.modalData.projectId = data.rows[0].projectId |
|
|
|
this.modalData.finalCustomerId = data.rows[0].finalCustomerId |
|
|
|
this.modalData.finalCustomerName = data.rows[0].finalCustomerName |
|
|
|
this.modalData.projectManagerName = data.rows[0].projectManager.split('-')[1] |
|
|
|
this.modalData.projectOwnerName = data.rows[0].projectOwner.split('-')[1] |
|
|
|
this.getProjectPartList() |
|
|
|
}else { |
|
|
|
this.modalData.projectDesc = '' |
|
|
|
this.modalData.finalCustomerId = '' |
|
|
|
this.modalData.finalCustomerName = '' |
|
|
|
} |
|
|
|
}else { |
|
|
|
this.$message.warning(data.msg) |
|
|
|
} |
|
|
|
}).catch((error)=>{ |
|
|
|
this.$message.error(error) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// ======== 询价单附件的相关方法 ======== |
|
|
|
/** |
|
|
|
* 获取询价单附件列表 |
|
|
|
|