|  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="info_list_item" style="width: 100%;"> | 
|---|
|  |  |  | <div class="info_list_item_label">地址、电话:</div> | 
|---|
|  |  |  | <div class="info_list_item_val">{{userInfo.company.invoiceAddr}} {{userInfo.company.phone}}</div> | 
|---|
|  |  |  | <div class="info_list_item_val">{{userInfo.company.taxAddr}}</div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="info_list_item" style="width: 100%;"> | 
|---|
|  |  |  | <div class="info_list_item_label">开票金额:</div> | 
|---|
|  |  |  | <div class="info_list_item_val" style="color:rgba(249, 86, 1, 0.996078431372549);">{{total}}</div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <!--                <div class="info_list_item" style="width: 100%;">--> | 
|---|
|  |  |  | <!--                    <div class="info_list_item_label">开票金额:</div>--> | 
|---|
|  |  |  | <!--                    <div class="info_list_item_val" style="color:rgba(249, 86, 1, 0.996078431372549);">{{total}}</div>--> | 
|---|
|  |  |  | <!--                </div>--> | 
|---|
|  |  |  | <div class="list" style="width: 100%;"> | 
|---|
|  |  |  | <el-radio v-model="type" label="0">电子发票</el-radio> | 
|---|
|  |  |  | <div class="list_val"> | 
|---|
|  |  |  | <div class="list_val_label">接收地址:</div> | 
|---|
|  |  |  | <el-input v-model="val" :disabled="type === '1'" placeholder="111222333@qq.com"></el-input> | 
|---|
|  |  |  | <el-input v-model="val" :disabled="type === '1'" placeholder="" ></el-input> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="list" style="width: 100%;"> | 
|---|
|  |  |  | <el-radio v-model="type" label="1">纸质发票</el-radio> | 
|---|
|  |  |  | <div class="list_val"> | 
|---|
|  |  |  | <div class="list_val_label">接收地址:</div> | 
|---|
|  |  |  | <el-input v-model="val1" :disabled="type === '0'" placeholder="安徽省合肥市经济技术开发区莲花路以东、石门路以南莲花路1#     0551-63450845"></el-input> | 
|---|
|  |  |  | <el-input v-model="val1" :disabled="type === '0'" placeholder=""></el-input> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <!--            show-summary--> | 
|---|
|  |  |  | <!--            :summary-method="getSummaries"--> | 
|---|
|  |  |  | <el-table | 
|---|
|  |  |  | :data="form.list" | 
|---|
|  |  |  | border | 
|---|
|  |  |  | show-summary | 
|---|
|  |  |  | :summary-method="getSummaries" | 
|---|
|  |  |  |  | 
|---|
|  |  |  | style="width: 100%; margin-bottom: 20px;"> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | label="序号" | 
|---|
|  |  |  | 
|---|
|  |  |  | prop="code" | 
|---|
|  |  |  | label="保单号"> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | align="center" | 
|---|
|  |  |  | label="金额"> | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <span style="color:rgba(249, 86, 1, 0.996078431372549);">{{row.totalPrice}}</span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <!--                <el-table-column--> | 
|---|
|  |  |  | <!--                    align="center"--> | 
|---|
|  |  |  | <!--                    label="金额">--> | 
|---|
|  |  |  | <!--                    <template slot-scope="{row}">--> | 
|---|
|  |  |  | <!--                        <span style="color:rgba(249, 86, 1, 0.996078431372549);">{{row.totalPrice}}</span>--> | 
|---|
|  |  |  | <!--                    </template>--> | 
|---|
|  |  |  | <!--                </el-table-column>--> | 
|---|
|  |  |  | </el-table> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </GlobalWindow> | 
|---|
|  |  |  | 
|---|
|  |  |  | watch: { | 
|---|
|  |  |  | type: { | 
|---|
|  |  |  | handler(news) { | 
|---|
|  |  |  | this.val = '' | 
|---|
|  |  |  | this.val1 = '' | 
|---|
|  |  |  | // this.val = '' | 
|---|
|  |  |  | // this.val1 = '' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | open (title, target) { | 
|---|
|  |  |  | this.title = title | 
|---|
|  |  |  | this.type = '0' | 
|---|
|  |  |  | this.val = '' | 
|---|
|  |  |  | this.val1 = '' | 
|---|
|  |  |  | this.visible = true | 
|---|
|  |  |  | this.$nextTick(() => { | 
|---|
|  |  |  | for (const key in this.form) { | 
|---|
|  |  |  | this.form[key] = target[key] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | this.val = this.userInfo.company.invoiceEmail | 
|---|
|  |  |  | this.val1 = this.userInfo.company.invoiceAddr | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | confirm () { | 
|---|
|  |  |  | if (!this.val && !this.val1) { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.isWorking = true | 
|---|
|  |  |  | entrustInvoicing({ | 
|---|
|  |  |  | address: this.val || this.val1, | 
|---|
|  |  |  | address: this.type == 0?this.val : this.val1, | 
|---|
|  |  |  | invoicingMoney: this.total, | 
|---|
|  |  |  | taxDetialList: this.form.list.map(item => { | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | 
|---|
|  |  |  | data.forEach(item => { | 
|---|
|  |  |  | price += item.totalPrice | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | sums[index] = price | 
|---|
|  |  |  | sums[index] = price.toFixed(2) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | return sums; | 
|---|