|
@@ -35,6 +35,11 @@ import dropdownText from '@/components/dropdown-text/index.vue'
|
|
|
total:25,
|
|
|
rowMergeArray:[]
|
|
|
})
|
|
|
+ // 开票金额是否收起
|
|
|
+ let invoiceIsFold=ref(true)
|
|
|
+
|
|
|
+ // 到款金额是否收起
|
|
|
+ let placementIsFold=ref(true)
|
|
|
|
|
|
// method
|
|
|
const commodityPList=()=>{
|
|
@@ -108,6 +113,16 @@ import dropdownText from '@/components/dropdown-text/index.vue'
|
|
|
}
|
|
|
return ''
|
|
|
}
|
|
|
+ // 开票到款金额展开收起
|
|
|
+ const foldOrUnfold=(type)=>{
|
|
|
+ // type: 0-开票 1-到款
|
|
|
+ if(type){
|
|
|
+ placementIsFold.value = !placementIsFold.value
|
|
|
+ }else{
|
|
|
+ invoiceIsFold.value = !invoiceIsFold.value
|
|
|
+ }
|
|
|
+ console.log(type,invoiceIsFold.value);
|
|
|
+ }
|
|
|
|
|
|
// -----------------------------------------------------弹窗
|
|
|
// ---------------------------------编辑付款方式
|
|
@@ -310,16 +325,78 @@ import dropdownText from '@/components/dropdown-text/index.vue'
|
|
|
</div>
|
|
|
<div class="operation-zone">
|
|
|
<div class="amount-show-zone">
|
|
|
- <div class="amount-show-item" style="margin-right: 30px;">
|
|
|
- 开票合计金额:
|
|
|
- <span>80000.00</span>
|
|
|
+ <div class="amount-show-item">
|
|
|
+ <div class="amount-item-head" @click="foldOrUnfold(0)">
|
|
|
+ <div class="amount-item-head-title">
|
|
|
+ 已开票合计金额(换算后):80000.00(元)
|
|
|
+ </div>
|
|
|
+ <span class="amount-item-head-icon">
|
|
|
+ {{ invoiceIsFold?'展开':'收起' }}
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="amount-item-body-package" :style="{height:invoiceIsFold?'0':'66px'}">
|
|
|
+ <div class="amount-item-body">
|
|
|
+ <div class="amount-item-body-box">
|
|
|
+ <svg-Icon name="svgIcon-country-China" style="margin-right: 20px;" size="40" />
|
|
|
+ <div class="amount-item-body-info">
|
|
|
+ <span>人民币</span>
|
|
|
+ <span>5000.00(元)</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="amount-item-body-box">
|
|
|
+ <svg-Icon name="svgIcon-country-Singapore" style="margin-right: 20px;" size="40" />
|
|
|
+ <div class="amount-item-body-info">
|
|
|
+ <span>新加坡币</span>
|
|
|
+ <span>5000.00(新元)</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="amount-item-body-box">
|
|
|
+ <svg-Icon name="svgIcon-country-America" style="margin-right: 20px;" size="40" />
|
|
|
+ <div class="amount-item-body-info">
|
|
|
+ <span>美元</span>
|
|
|
+ <span>5000.00(美元)</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="amount-show-item">
|
|
|
- 到款合计金额:
|
|
|
- <span>80000.00</span>
|
|
|
+ <div class="amount-item-head" @click="foldOrUnfold(1)">
|
|
|
+ <div class="amount-item-head-title">
|
|
|
+ 已到款合计金额(换算后):80000.00(元)
|
|
|
+ </div>
|
|
|
+ <span class="amount-item-head-icon">
|
|
|
+ {{ placementIsFold?'展开':'收起' }}
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="amount-item-body-package" :style="{height:placementIsFold?'0':'66px'}">
|
|
|
+ <div class="amount-item-body">
|
|
|
+ <div class="amount-item-body-box">
|
|
|
+ <svg-Icon name="svgIcon-country-China" style="margin-right: 20px;" size="40" />
|
|
|
+ <div class="amount-item-body-info">
|
|
|
+ <span>人民币</span>
|
|
|
+ <span>5000.00(元)</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="amount-item-body-box">
|
|
|
+ <svg-Icon name="svgIcon-country-Singapore" style="margin-right: 20px;" size="40" />
|
|
|
+ <div class="amount-item-body-info">
|
|
|
+ <span>新加坡币</span>
|
|
|
+ <span>5000.00(新元)</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="amount-item-body-box">
|
|
|
+ <svg-Icon name="svgIcon-country-America" style="margin-right: 20px;" size="40" />
|
|
|
+ <div class="amount-item-body-info">
|
|
|
+ <span>美元</span>
|
|
|
+ <span>5000.00(美元)</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-button @click="dataExport" size="large" class="element-common-button">导出</el-button>
|
|
|
+ <el-button @click="dataExport" style="margin-bottom: 10px;" size="large" class="element-common-button">导出</el-button>
|
|
|
</div>
|
|
|
<div class="table-zone">
|
|
|
<el-table :data="commodityPData.tableData" border ref="tableRef"
|
|
@@ -433,15 +510,73 @@ import dropdownText from '@/components/dropdown-text/index.vue'
|
|
|
.operation-zone{
|
|
|
margin-bottom: 20px;
|
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
+ align-items: flex-end;
|
|
|
justify-content: space-between;
|
|
|
.amount-show-zone{
|
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
- padding-left: 20px;
|
|
|
+ align-items: flex-start;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ // justify-content: space-between;
|
|
|
+ // padding-left: 20px;
|
|
|
.amount-show-item{
|
|
|
- span{
|
|
|
- color: $dangerColor;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border: 1px solid #DCDFE6;
|
|
|
+ box-shadow: 0px 4px 12px rgba(153, 153, 153, 0.08);
|
|
|
+ border-radius: 8px;
|
|
|
+ // height: 132px;
|
|
|
+ width: 725px;
|
|
|
+ margin-right: 30px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ // padding-bottom: 16px;
|
|
|
+ .amount-item-head{
|
|
|
+ padding: 20px 20px 20px 20px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ cursor: pointer;
|
|
|
+ .amount-item-head-title{
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 18px;
|
|
|
+ color: #000000;
|
|
|
+ }
|
|
|
+ .amount-item-head-icon{
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 14px;
|
|
|
+ color: $themeColor;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .amount-item-body-package{
|
|
|
+ overflow: hidden;
|
|
|
+ transition: height 0.1s ease;
|
|
|
+ .amount-item-body{
|
|
|
+ padding: 6px 20px 16px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ .amount-item-body-box{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ width: 220px;
|
|
|
+ .amount-item-body-info{
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-between;
|
|
|
+ span{
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 14px;
|
|
|
+ color: $secondaryTextColor;
|
|
|
+ margin-bottom: 2px;
|
|
|
+ &:last-child{
|
|
|
+ font-weight: 700;
|
|
|
+ font-size: 16px;
|
|
|
+ color: $mainTextColor;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|