|
@@ -2,11 +2,12 @@
|
|
|
<div class="detail-model">
|
|
|
<!-- 线下开发票 -->
|
|
|
<Modal title="线下开发票" v-model="iShow" class-name="order-model piao-model" :mask-closable="false" @on-visible-change="visibleChange">
|
|
|
- <Select placeholder="请选择发票类型" v-model="invoice.type" style="width:100%;margin: 20px 0">
|
|
|
+ <!-- <Select placeholder="请选择发票类型" v-model="invoice.type" style="width:100%;margin: 20px 0">
|
|
|
<Option v-for="item in invoType" :value="item.n" :key="item.v">{{ item.n }}</Option>
|
|
|
- </Select>
|
|
|
+ </Select> -->
|
|
|
+ <p style="text-align:center;margin:16px 0;font-size:15px">确定线下开发票吗?如若确定,则会关闭用户线上开票入口。</p>
|
|
|
<div slot="footer">
|
|
|
- <Button type="primary" size="large" @click="invoSave" :disabled="isDisable">提交</Button>
|
|
|
+ <Button type="primary" size="large" @click="invoSave" :disabled="isDisable">确定</Button>
|
|
|
<Button size="large" @click="iShow = false">取消</Button>
|
|
|
</div>
|
|
|
</Modal>
|
|
@@ -190,15 +191,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
invoSave() {// 线下开发票
|
|
|
- if (this.invoice.type == '') {
|
|
|
- this.$Message.warning('请选择发票类型')
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (this.invoice.type == '') {
|
|
|
+ // this.$Message.warning('请选择发票类型')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
this.isDisable = true
|
|
|
this.$request('/order/openInvoice').data({
|
|
|
orderCode: this.orderDetail.order_code,
|
|
|
- invoiceType: this.invoice.type,
|
|
|
- userId: this.orderDetail.user_id
|
|
|
+ // invoiceType: this.invoice.type,
|
|
|
+ // userId: this.orderDetail.user_id
|
|
|
}).showSuccessTip().success(() => {
|
|
|
this.$parent.ordered()
|
|
|
this.iShow = false
|