123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <!--成单样品详情-->
- <template>
- <div class="content">
- <div class="menu-wrapper">
- <div class="a-list">
- <a class="boxColor" :class="tabIndex === 1 ? 'active' : ''" @click="changeBack(1)" href="#secondTitle">{{ titlePrice }}</a>
- <a class="boxColor" :class="tabIndex === 2 ? 'active' : ''" @click="changeBack(2)" href="#thirdTitle">{{ titleAttribute }}</a>
- <a class="boxColor" :class="tabIndex === 3 ? 'active' : ''" @click="changeBack(3)" href="#forthTitle">{{ titleDescription }}</a>
- <!--<a class="boxColor" :class="tabIndex === 4 ? 'active' : ''" @click="changeBack(4)" href="#fifthTitle">{{ titleMaterial }}</a>-->
- <a class="boxColor" :class="tabIndex === 5 ? 'active' : ''" @click="changeBack(5)" href="#sixthTitle">{{ titleCharge }}</a>
- <a class="boxColor" :class="tabIndex === 6 ? 'active' : ''" @click="changeBack(6)" href="#seventhTitle">{{ titlePayment }}</a>
- <a class="boxColor" :class="tabIndex === 7 ? 'active' : ''" @click="changeBack(7)" href="#eighthTitle">{{ titleAccount }}</a>
- <a class="boxColor" :class="tabIndex === 8 ? 'active' : ''" @click="changeBack(8)" href="#ninthTitle">{{ titleDetail }}</a>
- </div>
- </div>
- <div class="item-wrapper">
- <div class="form-list">
- <el-form ref="form" :model="detailsData" :rules="rules" label-width="150px" style="margin-left: 20px; margin-top: 25px">
- <!--贸易信息-->
- <a class="target-fix" id="secondTitle"></a>
- <div id="secondTitle">
- <label-template :title="titlePrice"></label-template>
- <counter-info :counterInfo="detailsData"></counter-info>
- </div>
- <!--云服务信息-->
- <a class="target-fix" id="thirdTitle"></a>
- <div id="thirdTitle">
- <label-template :title="titleAttribute"></label-template>
- <!--<sample-table :simpleTable="detailsData.products"></sample-table>-->
- <sample-table></sample-table>
- </div>
- <!--付款信息-->
- <a class="target-fix" id="forthTitle"></a>
- <div id="forthTitle">
- <label-template :title="titleDescription"></label-template>
- <pay-info :infoData="detailsData"></pay-info>
- </div>
- <!--扩展属性-->
- <!--<a class="target-fix" id="fifthTitle"></a>-->
- <!--<div id="fifthTitle" v-if="(show = false)">-->
- <!--<label-template :title="titleMaterial"></label-template>-->
- <!--</div>-->
- <!--其他收费项目-->
- <a class="target-fix" id="sixthTitle"></a>
- <div id="sixthTitle">
- <label-template :title="titleCharge"></label-template>
- <add-table :additionData="detailsData.projects"></add-table>
- </div>
- <!--款项金额-->
- <a class="target-fix" id="seventhTitle"></a>
- <div id="seventhTitle">
- <label-template :title="titlePayment"></label-template>
- <contract :contractData="detailsData"></contract>
- </div>
- <!--收款账户-->
- <a class="target-fix" id="eighthTitle"></a>
- <div id="eighthTitle">
- <label-template :title="titleAccount"></label-template>
- <pay-account></pay-account>
- </div>
- <!--出货明细-->
- <a class="target-fix" id="ninthTitle"></a>
- <div id="ninthTitle">
- <label-template :title="titleDetail"></label-template>
- <ShipmentDetails :dataList="detailsData.shipments" style="width: 91%; margin-left: 39px"></ShipmentDetails>
- </div>
- <el-row>
- <el-col :span="24" style="text-align: center; padding: 1vw; margin-top: 40px">
- <el-button @click="queryDetails">预 览</el-button>
- <el-button @click="cancelClick">关 闭</el-button>
- </el-col>
- </el-row>
- </el-form>
- </div>
- </div>
- </div>
- </template>
- <script>
- import LabelTemplate from '@/components/LabelTemplate'
- import ShipmentDetails from '@/components/details-collection/shipmentDetails'
- import counterInfo from '@/components/details-collection/counterpartyInformation'
- import sampleTable from '@/components/details-collection/sampleQuoaTable'
- import payInfo from '@/components/details-collection/sampleQuoaPaymentInformation'
- import addTable from '@/components/details-collection/sampleQuoaAddition'
- import contract from '@/components/details-collection/sampleQuoaContract'
- import payAccount from '@/components/details-collection/paymentAccount'
- import progressBar from '@/components/details-collection/progressBar'
- export default {
- name: 'Addproduct',
- components: {
- LabelTemplate,
- ShipmentDetails,
- counterInfo,
- sampleTable,
- payInfo,
- addTable,
- contract,
- payAccount,
- progressBar,
- },
- props: {
- rowData: Object,
- },
- data() {
- return {
- tabIndex: '',
- titlePrice: '贸易信息',
- titleAttribute: '云服务信息',
- titleDescription: '付款信息',
- // titleMaterial: '扩展属性',
- titleCharge: '其他收费项目',
- titlePayment: '款项金额',
- titleAccount: '收款账户',
- titleDetail: '出货明细',
- pathPrefix: process.env.VUE_APP_IMG_URL,
- detailsData: {
- company: {},
- shipments: [],
- products: [],
- projects: [],
- pdfAttachment: {},
- },
- }
- },
- created() {
- this.loadTheData()
- },
- methods: {
- loadTheData() {
- // if (this.rowData.processDefinitionKey === 'SAMPLE') {
- // API.sampleDetails({ id: this.rowData.id }).then((response) => {
- // console.log(response, 'SAMPLE')
- // this.detailsData = response.data.data.details
- // })
- // } else {
- // API.makeoffersDetails({ id: this.rowData.id }).then((response) => {
- // console.log(response, 'quo')
- // this.detailsData = response.data.data.details
- // })
- // }
- },
- changeBack(index) {
- this.tabIndex = index
- },
- //查看
- handleUpdate() {},
- cancelClick() {
- this.$emit('cancelClick', true)
- },
- },
- }
- </script>
- <style lang="scss" scoped>
- /deep/ .el-step__title.is-process {
- font-size: 12px !important;
- }
- /deep/ .el-step__title {
- font-size: 12px !important;
- }
- .content {
- display: flex;
- height: 1800px;
- background-color: white;
- .menu-wrapper {
- height: 1888px;
- box-shadow: 0 0 7px rgb(215, 215, 215);
- margin-left: -20px;
- margin-top: -60px;
- flex: 0 0 130px;
- .a-list {
- display: flex;
- flex-direction: column;
- align-items: center;
- margin-top: 30px;
- .boxColor {
- line-height: 30px;
- padding: 0 25px;
- text-align: center;
- margin-top: 20px;
- }
- }
- }
- .item-wrapper {
- margin-top: -60px;
- flex: 1;
- /*overflow-y: auto;*/
- .form-list {
- width: 90%;
- }
- }
- }
- .target-fix {
- position: relative;
- top: -100px; //偏移值
- display: block;
- height: 0;
- overflow: hidden;
- }
- .boxColor {
- &.active {
- color: #6c88f1;
- }
- }
- * {
- font-size: 12px;
- }
- .avatar-uploader .el-upload {
- border: 1px dashed #d9d9d9;
- border-radius: 6px;
- cursor: pointer;
- position: relative;
- overflow: hidden;
- }
- .avatar-uploader .el-upload:hover {
- border-color: #409eff;
- }
- .avatar-uploader-icon {
- font-size: 28px;
- color: #8c939d;
- background-color: #f9f9f9;
- width: 148px;
- height: 148px;
- line-height: 148px;
- text-align: center;
- }
- .avatar {
- width: 148px;
- height: 148px;
- display: block;
- }
- ::v-deep {
- .el-input__inner {
- border-radius: 1px;
- }
- .el-button--mini {
- border-radius: 1px;
- }
- .tableHeader th {
- background-color: #edf0f5;
- height: 35px;
- padding: 0;
- }
- .el-dialog__footer {
- text-align: center;
- padding-bottom: 50px;
- .el-button {
- border-radius: 1px;
- }
- }
- }
- .totalPrice {
- width: 90%;
- display: flex;
- color: #6c88f1;
- font-weight: bold;
- margin-left: 90px;
- border: 1px solid lightskyblue;
- border-radius: 1px;
- padding: 15px 0 15px 10px;
- background-color: rgb(233, 245, 251);
- }
- .text {
- flex: 1;
- }
- .container {
- width: 90%;
- margin-left: 90px;
- border: 1px solid lightskyblue;
- border-radius: 1px;
- padding: 15px 0 15px 10px;
- background-color: rgb(233, 245, 251);
- }
- </style>
|