|
|
@@ -50,27 +50,27 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="conferencecost-content">
|
|
|
- <el-table border ref="tableRef" :data="tableDatas" tooltip-effect="dark" style="width: 100%"
|
|
|
+ <el-table border ref="tableRef" height="600" :data="tableDatas" tooltip-effect="dark" style="width: 100%"
|
|
|
@selection-change="handleSelectionChange">
|
|
|
- <el-table-column v-if="control.isReview" type="selection" width="55">
|
|
|
+ <el-table-column v-if="control.isReview" type="selection" width="40">
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="序号" prop="index" width="55">
|
|
|
+ <el-table-column label="序号" prop="index" width="45">
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" label="类型" width="150">
|
|
|
+ <el-table-column prop="name" label="类型" width="145">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-select size="small" v-model="scope.row.priceType" clearable placeholder="请选择">
|
|
|
+ <el-select size="mini" v-model="scope.row.priceType" clearable placeholder="请选择">
|
|
|
<el-option v-for="item in typearr" :key="item.id" :label="item.text" :value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" label="单项内容" width="140">
|
|
|
+ <el-table-column prop="name" label="单项内容" width="170">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input type="textarea" :rows="3" placeholder="请输入内容"
|
|
|
v-model="scope.row.priceName"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" label="成本单价" width="100">
|
|
|
+ <el-table-column prop="name" label="成本单价" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number @change="calculateQuotation(scope.row)" :precision="2" size="mini"
|
|
|
:controls="false" v-model="scope.row.costPrice"></el-input-number>
|
|
|
@@ -84,15 +84,15 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="name" label="单位" width="85">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-select size="small" v-model="scope.row.unit" placeholder="" clearable>
|
|
|
+ <el-select size="mini" v-model="scope.row.unit" placeholder="" clearable>
|
|
|
<el-option v-for="item in units" :key="item.id" :label="item.text" :value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" label="币种" width="100">
|
|
|
+ <el-table-column prop="name" label="币种" width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-select size="small" @change="currencychange(scope.row)" v-model="scope.row.currency"
|
|
|
+ <el-select size="mini" @change="currencychange(scope.row)" v-model="scope.row.currency"
|
|
|
clearable filterable placeholder="请选择币种">
|
|
|
<el-option v-for="item in options" :key="item.currencyId" :label="item.currencyCode"
|
|
|
:value="item.currencyId">
|
|
|
@@ -100,7 +100,7 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" label="当时汇率" width="100">
|
|
|
+ <el-table-column prop="name" label="当时汇率" width="80">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number @change="calculateQuotation(scope.row)" :precision="4" size="mini"
|
|
|
:controls="false" v-model="scope.row.rate"></el-input-number>
|
|
|
@@ -113,13 +113,13 @@
|
|
|
:controls="false" v-model="scope.row.coefficient"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" :label="`单项成本金额`" width="110">
|
|
|
+ <el-table-column prop="name" :label="`单项成本金额`" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
{{ townum(scope.row.costPrice * scope.row.count) }}
|
|
|
<!-- <el-input-number :precision="2" size="mini" :controls="false" v-model="scope.row.baoJiaPrice"></el-input-number> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" label="单项报价金额" width="120">
|
|
|
+ <el-table-column prop="name" label="单项报价金额" width="110">
|
|
|
<template slot-scope="scope">
|
|
|
{{ `${townum(scope.row.baoJiaPrice)} (CNY)` }}
|
|
|
<div v-if="scope.row.currency != 836">
|
|
|
@@ -145,17 +145,27 @@
|
|
|
<el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="scope.row.details"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" label="备注" width="150">
|
|
|
+ <el-table-column prop="name" label="备注">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="scope.row.remark"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="reviewStatus" label="审核状态" width="100">
|
|
|
+ <el-table-column prop="reviewStatus" label="审核状态" width="40">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.reviewStatus === 0 ? '未审核' : scope.row.reviewStatus === 1 ? '已通过' : '已撤销' }}
|
|
|
+ <span style="color: green;" v-if="scope.row.reviewStatus === 1">
|
|
|
+ ✓
|
|
|
+ <!-- {{ scope.row.reviewStatus === 0 ? '未审核' : scope.row.reviewStatus === 1 ? '✓' : '已撤销' }} -->
|
|
|
+ </span>
|
|
|
+ <span v-else-if="scope.row.reviewStatus === 0">
|
|
|
+ --
|
|
|
+ <!-- {{ scope.row.reviewStatus === 0 ? '未审核' : scope.row.reviewStatus === 1 ? '✓' : '已撤销' }} -->
|
|
|
+ </span>
|
|
|
+ <span v-else style="color: red;">
|
|
|
+ ×
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="文件查看" width="74">
|
|
|
+ <el-table-column label="文件" width="45">
|
|
|
<template slot-scope="scope">
|
|
|
<el-popover v-if="scope.row.imgsList.length>0" placement="right" width="400" trigger="hover">
|
|
|
<div style="white-space: pre-line;">
|
|
|
@@ -174,7 +184,7 @@
|
|
|
<div v-else style="cursor: pointer;">查看</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="90px">
|
|
|
+ <el-table-column label="操作" width="85px">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="conferencecost-content-btn">
|
|
|
<el-button size="mini" @click="removeRow(scope.$index, scope.row)" type="danger">移
|
|
|
@@ -226,8 +236,11 @@
|
|
|
<div class="conferencecost-foot-totalquotations">
|
|
|
报价总计:{{ reservetwo(conferenceAffairsCost.baoJiaAll) }} <span style="color: red;">{{ danwei }}</span>
|
|
|
</div>
|
|
|
+ <div class="conferencecost-foot-totalquotations">
|
|
|
+ 利润:{{ reservetwo(conferenceAffairsCost.baoJiaAll-conferenceAffairsCost.costAll) }} <span style="color: red;">{{ danwei }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="conferencecost-allocation">
|
|
|
+ <div class="conferencecost-allocation" v-if="false">
|
|
|
<div class="conferencecost-allocation-select">
|
|
|
注:其中
|
|
|
<el-input-number style="width:120px;" :precision="2" size="mini" :controls="false"
|
|
|
@@ -428,6 +441,13 @@ export default {
|
|
|
var data = res.data.data;
|
|
|
if (res.data.code == 200) {
|
|
|
that.tableDatas.push(data);
|
|
|
+ that.$nextTick(() => {
|
|
|
+ const bodyWrapper = that.$el.querySelector('.el-table__body-wrapper');
|
|
|
+ if (bodyWrapper) {
|
|
|
+ bodyWrapper.scrollTop = bodyWrapper.scrollHeight;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
} else {
|
|
|
that.$message({
|
|
|
type: 'error',
|
|
|
@@ -977,7 +997,7 @@ export default {
|
|
|
padding: 10px;
|
|
|
box-shadow: 0 0 5px #0005;
|
|
|
border-radius: 10px;
|
|
|
- min-height: 830px;
|
|
|
+ min-height: 768px;
|
|
|
}
|
|
|
|
|
|
.conferencecost-header {
|
|
|
@@ -1079,4 +1099,35 @@ button {
|
|
|
color:red;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+/*强制修改样式*/
|
|
|
+.conferencecost-all .el-table th.el-table__cell>.cell{
|
|
|
+ font-size: 12px;
|
|
|
+ padding-left: 3px;
|
|
|
+ padding-right: 3px;
|
|
|
+}
|
|
|
+.conferencecost-all .el-input__inner{
|
|
|
+ font-size: 12px;
|
|
|
+ padding-left: 3px;
|
|
|
+ padding-right: 3px;
|
|
|
+}
|
|
|
+.conferencecost-all .el-table td.el-table__cell div{
|
|
|
+ font-size: 12px;
|
|
|
+}
|
|
|
+.conferencecost-all .el-textarea__inner{
|
|
|
+ font-size: 12px;
|
|
|
+ padding-left: 5px;
|
|
|
+ padding-right: 5px;
|
|
|
+}
|
|
|
+.conferencecost-all .el-input-number.is-without-controls .el-input__inner{
|
|
|
+ font-size: 12px;
|
|
|
+ padding-left: 3px;
|
|
|
+ padding-right: 3px;
|
|
|
+}
|
|
|
+.conferencecost-all .el-table td.el-table__cell div{
|
|
|
+ padding-left: 3px;
|
|
|
+ padding-right: 3px;
|
|
|
+}
|
|
|
+.conferencecost-all .el-button{
|
|
|
+ font-size: 12px;
|
|
|
+}
|
|
|
</style>
|