|  |  |  | 
|---|
|  |  |  | </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> | 
|---|
|  |  |  | 
|---|
|  |  |  | <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> | 
|---|
|  |  |  | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | align="center" | 
|---|
|  |  |  | prop="insuranceCode" | 
|---|
|  |  |  | label="保单号"> | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <span>{{row.insuranceCode ? row.insuranceCode : '-'}}</span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | align="center" | 
|---|
|  |  |  | label="批单号"> | 
|---|
|  |  |  | <template slot-scope="{row}"> | 
|---|
|  |  |  | <span>{{row.validCode ? row.validCode : '-'}}</span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column | 
|---|
|  |  |  | align="center" | 
|---|
|  |  |  | 
|---|
|  |  |  | return price | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | watch: { | 
|---|
|  |  |  | type: { | 
|---|
|  |  |  | handler(news) { | 
|---|
|  |  |  | this.val = '' | 
|---|
|  |  |  | this.val1 = '' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | open (title, target) { | 
|---|
|  |  |  | this.title = title | 
|---|
|  |  |  | this.visible = true | 
|---|
|  |  |  | this.type = '0' | 
|---|
|  |  |  | this.val = '' | 
|---|
|  |  |  | this.val1 = '' | 
|---|
|  |  |  | this.list1 = [] | 
|---|
|  |  |  | this.list2 = [] | 
|---|
|  |  |  | this.val = this.userInfo.company.invoiceEmail | 
|---|
|  |  |  | this.val1 = this.userInfo.company.invoiceAddr | 
|---|
|  |  |  | this.$nextTick(() => { | 
|---|
|  |  |  | for (const key in this.form) { | 
|---|
|  |  |  | this.form[key] = target[key] | 
|---|
|  |  |  | 
|---|
|  |  |  | this.$message.warning('请输入接收地址') | 
|---|
|  |  |  | return | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (this.setectData.length === 0) { | 
|---|
|  |  |  | // if (this.list2.length > 0 && this.setectData.length === 0) { | 
|---|
|  |  |  | //     this.$message.warning('至少勾选一项冲红单数据') | 
|---|
|  |  |  | //     return | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | let price = 0 | 
|---|
|  |  |  | this.list1.forEach(item => { | 
|---|
|  |  |  | price += item.amount | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | if (price < 0 && this.setectData.length === 0) { | 
|---|
|  |  |  | this.$message.warning('至少勾选一项冲红单数据') | 
|---|
|  |  |  | return | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.isWorking = true | 
|---|
|  |  |  | directInvoicing({ | 
|---|
|  |  |  | address: this.val1 || this.val, | 
|---|
|  |  |  | address: this.type == 1 ? this.val1 : this.val, | 
|---|
|  |  |  | id: this.form.id, | 
|---|
|  |  |  | invoicingDetailDTOList: this.setectData.map(item => item.id), | 
|---|
|  |  |  | invoicingMoney: this.totalPrice, | 
|---|