|
|
|
@ -80,7 +80,7 @@ |
|
|
|
<!-- 询价列表 --> |
|
|
|
<el-table |
|
|
|
@header-dragend="handleColumnResize" |
|
|
|
height="30vh" |
|
|
|
:height="this.height + 350" |
|
|
|
:data="dataList" |
|
|
|
border |
|
|
|
ref="mainTable" |
|
|
|
@ -110,6 +110,7 @@ |
|
|
|
width="180" |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-link style="cursor: pointer" @click="quoteRuleDetailModalFlag = true">详情</el-link> |
|
|
|
<el-link style="cursor: pointer" @click="updateModal(scope.row)">审批</el-link> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -126,33 +127,64 @@ |
|
|
|
layout="total, sizes, prev, pager, next, jumper"> |
|
|
|
</el-pagination> |
|
|
|
|
|
|
|
<el-tabs style="margin-top: 0px; width: 100%; height: 100%;" v-model="activeName" class="customer-tab" type="border-card" @tab-click="tabClick"> |
|
|
|
<el-tab-pane label="报价信息" name="quotationInformation"> |
|
|
|
<el-form :inline="true" label-width="120px" label-position="top"> |
|
|
|
<el-form-item label="Application"> |
|
|
|
<el-input v-model="quoteCurrentRow.application" style="width: 210px" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="Customer"> |
|
|
|
<el-input v-model="quoteCurrentRow.customerDesc" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="年需求量"> |
|
|
|
<el-input v-model="quoteCurrentRow.annualDemand" class="right-aligned-input" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="Cost Model"> |
|
|
|
<el-input v-model="quoteCurrentRow.costModel" style="width: 210px" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="Markup"> |
|
|
|
<el-input v-model="quoteCurrentRow.markup" class="right-aligned-input" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-width="120px" label-position="top"> |
|
|
|
<el-form-item label="报价备注"> |
|
|
|
<el-input type="textarea" :rows="2" v-model="quoteCurrentRow.remark" style="width: 1019px" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<quote-detail :quote="quoteCurrentRow" :auth-flag="true" :height="'33vh'"></quote-detail> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
<el-dialog title="报价信息" v-drag @close="closeQuoteRuleDetailDataDialog" |
|
|
|
:close-on-click-modal="false" style="margin-top: -20px" :visible.sync="quoteRuleDetailModalFlag" |
|
|
|
width="1480px"> |
|
|
|
<el-form :inline="true" label-width="120px" label-position="top"> |
|
|
|
<el-form-item label="Application"> |
|
|
|
<el-input v-model="quoteCurrentRow.application" style="width: 210px" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="Customer"> |
|
|
|
<el-input v-model="quoteCurrentRow.customerDesc" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="年需求量"> |
|
|
|
<el-input v-model="quoteCurrentRow.annualDemand" class="right-aligned-input" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="Cost Model"> |
|
|
|
<el-input v-model="quoteCurrentRow.costModel" style="width: 210px" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="Markup"> |
|
|
|
<el-input v-model="quoteCurrentRow.markup" class="right-aligned-input" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-width="120px" label-position="top"> |
|
|
|
<el-form-item label="报价备注"> |
|
|
|
<el-input type="textarea" :rows="2" v-model="quoteCurrentRow.remark" style="width: 1019px" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<quote-detail :quote="quoteCurrentRow" :auth-flag="true" :height="'33vh'"></quote-detail> |
|
|
|
<footer style="height:30px;margin-top: 5px;margin-left:-35px;text-align:center"> |
|
|
|
<el-button @click="closeQuoteRuleDetailDataDialog">{{'关闭'}}</el-button> |
|
|
|
</footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- <el-tabs style="margin-top: 0px; width: 100%; height: 100%;" v-model="activeName" class="customer-tab" type="border-card" @tab-click="tabClick">--> |
|
|
|
<!-- <el-tab-pane label="报价信息" name="quotationInformation">--> |
|
|
|
<!-- <el-form :inline="true" label-width="120px" label-position="top">--> |
|
|
|
<!-- <el-form-item label="Application">--> |
|
|
|
<!-- <el-input v-model="quoteCurrentRow.application" style="width: 210px" readonly></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- <el-form-item label="Customer">--> |
|
|
|
<!-- <el-input v-model="quoteCurrentRow.customerDesc" readonly></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- <el-form-item label="年需求量">--> |
|
|
|
<!-- <el-input v-model="quoteCurrentRow.annualDemand" class="right-aligned-input" readonly></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- <el-form-item label="Cost Model">--> |
|
|
|
<!-- <el-input v-model="quoteCurrentRow.costModel" style="width: 210px" readonly></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- <el-form-item label="Markup">--> |
|
|
|
<!-- <el-input v-model="quoteCurrentRow.markup" class="right-aligned-input" readonly></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- </el-form>--> |
|
|
|
<!-- <el-form :inline="true" label-width="120px" label-position="top">--> |
|
|
|
<!-- <el-form-item label="报价备注">--> |
|
|
|
<!-- <el-input type="textarea" :rows="2" v-model="quoteCurrentRow.remark" style="width: 1019px" readonly></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- </el-form>--> |
|
|
|
<!-- <quote-detail :quote="quoteCurrentRow" :auth-flag="true" :height="'33vh'"></quote-detail>--> |
|
|
|
<!-- </el-tab-pane>--> |
|
|
|
<!-- </el-tabs>--> |
|
|
|
|
|
|
|
<el-dialog title="申请单审核" :visible.sync="reviewFlag" width="520px" :close-on-click-modal="false" |
|
|
|
v-drag> |
|
|
|
@ -246,18 +278,15 @@ export default { |
|
|
|
DictDataSelect, |
|
|
|
Chooselist |
|
|
|
}, |
|
|
|
props:{ |
|
|
|
height:{ |
|
|
|
type:Number, |
|
|
|
default:200 |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
data() { |
|
|
|
return { |
|
|
|
height: 200, |
|
|
|
userBuList: [], |
|
|
|
copyPriceCheckDetail:{}, |
|
|
|
loading:false, |
|
|
|
attributeDialog:true, |
|
|
|
quoteRuleDetailModalFlag: false, |
|
|
|
activeName: 'quotationInformation', |
|
|
|
priceCheckRule: { |
|
|
|
associatedPartNo:[{required: true, message: ' ', trigger: 'change'},], |
|
|
|
@ -727,10 +756,9 @@ export default { |
|
|
|
inquiryPartItemModalFlag: false, |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted () { |
|
|
|
this.$nextTick(() => { |
|
|
|
/*第二个表格高度的动态调整*/ |
|
|
|
this.height = window.innerHeight - 210; |
|
|
|
this.height = window.innerHeight - 558 |
|
|
|
}) |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -794,7 +822,7 @@ export default { |
|
|
|
*/ |
|
|
|
tabClick(tab, event) { |
|
|
|
// 刷新列表数据 |
|
|
|
this.refreshCurrentTabTable() |
|
|
|
// this.refreshCurrentTabTable() |
|
|
|
}, |
|
|
|
|
|
|
|
// ======== 列表操作方法 ======== |
|
|
|
@ -815,14 +843,14 @@ export default { |
|
|
|
if (row) { |
|
|
|
this.quoteCurrentRow = JSON.parse(JSON.stringify(row)) |
|
|
|
//刷新当前页表 |
|
|
|
this.refreshCurrentTabTable() |
|
|
|
// this.refreshCurrentTabTable() |
|
|
|
} |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 刷新页签的table数据 |
|
|
|
*/ |
|
|
|
refreshCurrentTabTable() { |
|
|
|
}, |
|
|
|
// refreshCurrentTabTable() { |
|
|
|
// }, |
|
|
|
|
|
|
|
// ======== 列表数据刷新方法 ======== |
|
|
|
/** |
|
|
|
@ -993,9 +1021,9 @@ export default { |
|
|
|
this.modalData.orderRef1 = row.quoteVersionNo |
|
|
|
if (val === "Y") { |
|
|
|
if (row.lastStepFlag === 'Y') { |
|
|
|
this.modalData.approveResult = "已审批" |
|
|
|
this.modalData.approveResult = "全部审批" |
|
|
|
} else { |
|
|
|
this.modalData.approveResult = "已审批" |
|
|
|
this.modalData.approveResult = "部分审批" |
|
|
|
} |
|
|
|
} else if (val === "N") { |
|
|
|
this.modalData.approveResult = "未通过" |
|
|
|
@ -1111,6 +1139,9 @@ export default { |
|
|
|
} |
|
|
|
this.modalFlag = false |
|
|
|
}, |
|
|
|
closeQuoteRuleDetailDataDialog() { |
|
|
|
this.quoteRuleDetailModalFlag = false |
|
|
|
}, |
|
|
|
rowStyle({row}) { |
|
|
|
if (this.quoteCurrentRow.id === row.id) { |
|
|
|
return {'background-color': '#E8F7F6', cursor: 'pointer'}; |
|
|
|
@ -1243,3 +1274,10 @@ div.table-el-date /deep/ input.el-input__inner{ |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
.el-table /deep/ .cell{ |
|
|
|
height: auto; |
|
|
|
line-height: 1.5; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|