|
@@ -146,36 +146,45 @@
|
|
|
<el-tag v-else type='danger'>未送达</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" :min-width="dynamicWidth" fixed="right">
|
|
|
+ <el-table-column label="操作" align="center" width="150" fixed="right">
|
|
|
<template slot-scope="{row}">
|
|
|
<div class="optionDiv" style="white-space: nowrap; display: inline-block">
|
|
|
- <el-button type="text" size="mini"
|
|
|
- v-if="(!row.reportDelivery || row.reportDelivery == null) && row.reportRepertoryState"
|
|
|
- @click="markDelivery(row)">
|
|
|
- 标记送达
|
|
|
- </el-button>
|
|
|
- <el-button type="text" size="mini" @click="orderDetail(row)">
|
|
|
- 查看
|
|
|
- </el-button>
|
|
|
- <el-button type="text" size="mini" @click="editOrder(row)">
|
|
|
- 编辑
|
|
|
- </el-button>
|
|
|
- <el-button type="text" size="mini" @click="openShouldAmountDialog(row)">
|
|
|
- 订单应收款
|
|
|
- </el-button>
|
|
|
- <el-button v-if="row.reportNo !== null" type="text" size="mini"
|
|
|
- @click="openProShouldAmountDialog(row)">
|
|
|
- 产品应收款
|
|
|
- </el-button>
|
|
|
- <el-button v-if="row.currentNodeCode === 'REPORT_OUT_APPLY'" type="text" size="mini"
|
|
|
- @click="openRepertoryOutWarehouse(row)">
|
|
|
- 申请提前出库
|
|
|
- </el-button>
|
|
|
- <el-button v-if="row.realAmount > 0" type="text" size="mini"
|
|
|
- @click="openAllotProductionDialog(row)">
|
|
|
- 实收款分配
|
|
|
- </el-button>
|
|
|
- <el-button type="text" size="mini" @click="openFinanceInvoiceDialog(row.orderFundId,row.productionFundId,row.realAmount,row.customerName,row.customerSubName)">申请开票</el-button>
|
|
|
+ <div>
|
|
|
+ <el-button type="text" size="mini"
|
|
|
+ :disabled="!((!row.reportDelivery || row.reportDelivery == null) && row.reportRepertoryState)"
|
|
|
+ @click="markDelivery(row)">
|
|
|
+ 标记送达
|
|
|
+ </el-button>
|
|
|
+ <el-button type="text" size="mini" @click="orderDetail(row)">
|
|
|
+ 查看
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-button type="text" size="mini" @click="editOrder(row)">
|
|
|
+ 编辑
|
|
|
+ </el-button>
|
|
|
+ <el-button type="text" size="mini" @click="openShouldAmountDialog(row)">
|
|
|
+ 订单应收款
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-button :disabled="!(row.reportNo !== null)" type="text" size="mini"
|
|
|
+ @click="openProShouldAmountDialog(row)">
|
|
|
+ 产品应收款
|
|
|
+ </el-button>
|
|
|
+ <el-button :disabled="!(row.currentNodeCode === 'REPORT_OUT_APPLY')" type="text" size="mini"
|
|
|
+ @click="openRepertoryOutWarehouse(row)">
|
|
|
+ 提前出库
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-button :disabled="!(row.realAmount > 0)" type="text" size="mini"
|
|
|
+ @click="openAllotProductionDialog(row)">
|
|
|
+ 实收款分配
|
|
|
+ </el-button>
|
|
|
+ <el-button type="text" size="mini"
|
|
|
+ @click="openFinanceInvoiceDialog(row.orderFundId, row.productionFundId, row.realAmount, row.customerName, row.customerSubName)">申请开票</el-button>
|
|
|
+ </div>
|
|
|
<!-- <el-button v-if="row.currentNodeCode === 'REPORT_OUT_APPLY'" type="text"
|
|
|
@click="canceladdRepertoryOutWarehouse(row)">
|
|
|
撤销出库申请
|
|
@@ -353,8 +362,8 @@
|
|
|
<el-dialog :visible.sync="makeInvoiceListDialog" width="90%" center custom-class="doWarehouseClass">
|
|
|
<el-button type="danger" round @click="openNewInvoiceDialog()">新增开票</el-button>
|
|
|
<div style="margin-top:30px;">
|
|
|
- <el-table :data="invoiceData" stripe :header-row-style="{ color: '#333333', 'font-size': '14px' }" border
|
|
|
- style="width: 100%; margin-top:20px;font-size: 14px;">
|
|
|
+ <el-table :data="invoiceData" stripe :header-row-style="{ color: '#333333', 'font-size': '14px' }" border
|
|
|
+ style="width: 100%; margin-top:20px;font-size: 14px;">
|
|
|
<el-table-column align="center" prop="title" label="发票抬头" width="180">
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="taxNo" label="税号" width="180">
|
|
@@ -380,8 +389,10 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column fixed="right" label="操作" width="200" align="center">
|
|
|
<template slot-scope="{row}">
|
|
|
- <el-button :disabled="row.state != '审核中'" @click="invoiceDetail(row.id)" type="text" size="small">修改</el-button>
|
|
|
- <el-button :disabled="row.state != '已开票'" @click="cancellation(row.id)" type="text" size="small">申请作废</el-button>
|
|
|
+ <el-button :disabled="row.state != '审核中'" @click="invoiceDetail(row.id)" type="text"
|
|
|
+ size="small">修改</el-button>
|
|
|
+ <el-button :disabled="row.state != '已开票'" @click="cancellation(row.id)" type="text"
|
|
|
+ size="small">申请作废</el-button>
|
|
|
<el-button @click="copyInvoice(row)" type="text" size="small">复制</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -389,90 +400,91 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<el-dialog :visible.sync="newInvoiceDialog" width="55%" top="10vh" center custom-class="doWarehouseClass"
|
|
|
- @closed="cleanFinanceInvoiceForm">
|
|
|
- <el-form ref="invoice" :model="invoice">
|
|
|
- <el-divider content-position="left">开票信息</el-divider>
|
|
|
- <el-row>
|
|
|
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
- <el-form-item label="发票抬头:" :rules="{ required: true, message: '发票抬头不能为空', trigger: 'blur' }" prop="title"
|
|
|
- label-width="140px" class="postInfo-container-item">
|
|
|
- <el-input v-model.trim="invoice.title" class="filter-item" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
- <el-form-item label="发票类型:" :rules="{ required: true, message: '发票类型不能为空', trigger: 'blur' }" prop="type"
|
|
|
- label-width="140px" class="postInfo-container-item">
|
|
|
- <el-select v-model="invoice.type" style="width:100%">
|
|
|
- <el-option label="普票" value="普票"></el-option>
|
|
|
- <el-option label="专票" value="专票"></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
- <el-form-item label="税号:" :rules="{ required: true, message: '税号不能为空', trigger: 'blur' }" prop="taxNo"
|
|
|
- label-width="140px" class="postInfo-container-item">
|
|
|
- <el-input v-model.trim="invoice.taxNo" class="filter-item" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
- <el-form-item label="计划开票日期:" prop="planMakeDate"
|
|
|
- :rules="{ required: true, message: '计划开票日期不能为空', trigger: 'blur' }" label-width="140px"
|
|
|
- class="postInfo-container-item">
|
|
|
- <el-date-picker v-model="invoice.planMakeDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" style="width:100%">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
- <el-form-item label="待开金额(元):" prop="planAmount"
|
|
|
- :rules="{ required: true, message: '使用权面积不能为空', trigger: 'blur' }" label-width="140px"
|
|
|
- class="postInfo-container-item">
|
|
|
- <el-input-number :precision="2" :min="0" :value-on-clear="0" v-model.number="invoice.planAmount"
|
|
|
- type="number" style="width:100%" class="filter-item" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
- <el-form-item label="是否收款:" label-width="140px"
|
|
|
- class="postInfo-container-item">
|
|
|
- <el-radio-group :value="invoice.realPayAmount?'已收款':'未收款'">
|
|
|
- <el-radio label="已收款"></el-radio>
|
|
|
- <el-radio label="未收款"></el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
- <el-form-item label="开票项目:" prop="makeItem" label-width="140px" class="postInfo-container-item">
|
|
|
- <el-input v-model.trim="invoice.makeItem" class="filter-item" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
- <el-form-item label="项目数量:" prop="itemQuantity" label-width="140px" class="postInfo-container-item">
|
|
|
- <el-input v-model.trim="invoice.itemQuantity" class="filter-item" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
- <el-form-item label="计量单位:" prop="itemUnit" label-width="140px" class="postInfo-container-item">
|
|
|
- <el-input v-model.trim="invoice.itemUnit" class="filter-item" placeholder="个/套/箱/次/斤/公斤/..." />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :xs="24" :sm="12" :lg="24" :span="6">
|
|
|
- <el-form-item label="备注:" prop="remark" label-width="140px" class="postInfo-container-item">
|
|
|
- <el-input v-model.trim="invoice.remark" type="textarea" :autosize="{ minRows: 5, maxRows: 8}" class="filter-item" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <!-- <el-divider content-position="left">银行信息</el-divider>
|
|
|
+ @closed="cleanFinanceInvoiceForm">
|
|
|
+ <el-form ref="invoice" :model="invoice">
|
|
|
+ <el-divider content-position="left">开票信息</el-divider>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="发票抬头:" :rules="{ required: true, message: '发票抬头不能为空', trigger: 'blur' }"
|
|
|
+ prop="title" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-input v-model.trim="invoice.title" class="filter-item" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="发票类型:" :rules="{ required: true, message: '发票类型不能为空', trigger: 'blur' }"
|
|
|
+ prop="type" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-select v-model="invoice.type" style="width:100%">
|
|
|
+ <el-option label="普票" value="普票"></el-option>
|
|
|
+ <el-option label="专票" value="专票"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="税号:" :rules="{ required: true, message: '税号不能为空', trigger: 'blur' }"
|
|
|
+ prop="taxNo" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-input v-model.trim="invoice.taxNo" class="filter-item" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="计划开票日期:" prop="planMakeDate"
|
|
|
+ :rules="{ required: true, message: '计划开票日期不能为空', trigger: 'blur' }" label-width="140px"
|
|
|
+ class="postInfo-container-item">
|
|
|
+ <el-date-picker v-model="invoice.planMakeDate" type="date" placeholder="选择日期"
|
|
|
+ value-format="yyyy-MM-dd" style="width:100%">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="待开金额(元):" prop="planAmount"
|
|
|
+ :rules="{ required: true, message: '使用权面积不能为空', trigger: 'blur' }" label-width="140px"
|
|
|
+ class="postInfo-container-item">
|
|
|
+ <el-input-number :precision="2" :min="0" :value-on-clear="0" v-model.number="invoice.planAmount"
|
|
|
+ type="number" style="width:100%" class="filter-item" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="是否收款:" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-radio-group :value="invoice.realPayAmount ? '已收款' : '未收款'">
|
|
|
+ <el-radio label="已收款"></el-radio>
|
|
|
+ <el-radio label="未收款"></el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="开票项目:" prop="makeItem" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-input v-model.trim="invoice.makeItem" class="filter-item" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="项目数量:" prop="itemQuantity" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-input v-model.trim="invoice.itemQuantity" class="filter-item" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="计量单位:" prop="itemUnit" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-input v-model.trim="invoice.itemUnit" class="filter-item" placeholder="个/套/箱/次/斤/公斤/..." />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="24" :span="6">
|
|
|
+ <el-form-item label="备注:" prop="remark" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-input v-model.trim="invoice.remark" type="textarea" :autosize="{ minRows: 5, maxRows: 8 }"
|
|
|
+ class="filter-item" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <!-- <el-divider content-position="left">银行信息</el-divider>
|
|
|
<el-row>
|
|
|
<el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
<el-form-item label="开户行:" prop="bankName" label-width="140px" class="postInfo-container-item">
|
|
@@ -497,7 +509,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row> -->
|
|
|
- <!-- <el-divider content-position="left">发票信息</el-divider>
|
|
|
+ <!-- <el-divider content-position="left">发票信息</el-divider>
|
|
|
<el-row>
|
|
|
<el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
<el-form-item label="发票号码:" prop="ticketNo" label-width="140px" class="postInfo-container-item">
|
|
@@ -547,8 +559,8 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row> -->
|
|
|
-
|
|
|
- <!-- <el-row>
|
|
|
+
|
|
|
+ <!-- <el-row>
|
|
|
<el-col :xs="24" :sm="12" :lg="6" :span="6">
|
|
|
<el-form-item label="税点:" prop="taxRate" label-width="140px" class="postInfo-container-item">
|
|
|
<el-input-number :precision="2" :min="0" :value-on-clear="0" v-model.number="invoice.taxRate" type="number"
|
|
@@ -562,13 +574,13 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row> -->
|
|
|
-
|
|
|
- </el-form>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="newInvoiceDialog = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="saveInvoice()">确 定</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
+
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="newInvoiceDialog = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="saveInvoice()">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -587,7 +599,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- dynamicWidth: 0,
|
|
|
+ // dynamicWidth: 0,
|
|
|
pageData: { records: [] },
|
|
|
listLoading: false,
|
|
|
listQuery: {
|
|
@@ -674,28 +686,28 @@ export default {
|
|
|
},
|
|
|
invoiceData: [],
|
|
|
invoice: {
|
|
|
- id: null,
|
|
|
- orderFundId: null,
|
|
|
- productionFundId: null,
|
|
|
- title: null,
|
|
|
- type: null,
|
|
|
- taxNo: null,
|
|
|
- planAmount: null,
|
|
|
- planMakeDate: null,
|
|
|
- bankName: null,
|
|
|
- bankAccount: null,
|
|
|
- bankAddress: null,
|
|
|
- bankTel: null,
|
|
|
- makeItem: null,
|
|
|
- itemQuantity: null,
|
|
|
- itemUnit: null,
|
|
|
- taxRate: null,
|
|
|
- taxAmount: null,
|
|
|
- remark: null,
|
|
|
- realPayAmount:null,
|
|
|
- realAmount:null,
|
|
|
- realMakeDate:null
|
|
|
- },
|
|
|
+ id: null,
|
|
|
+ orderFundId: null,
|
|
|
+ productionFundId: null,
|
|
|
+ title: null,
|
|
|
+ type: null,
|
|
|
+ taxNo: null,
|
|
|
+ planAmount: null,
|
|
|
+ planMakeDate: null,
|
|
|
+ bankName: null,
|
|
|
+ bankAccount: null,
|
|
|
+ bankAddress: null,
|
|
|
+ bankTel: null,
|
|
|
+ makeItem: null,
|
|
|
+ itemQuantity: null,
|
|
|
+ itemUnit: null,
|
|
|
+ taxRate: null,
|
|
|
+ taxAmount: null,
|
|
|
+ remark: null,
|
|
|
+ realPayAmount: null,
|
|
|
+ realAmount: null,
|
|
|
+ realMakeDate: null
|
|
|
+ },
|
|
|
makeInvoiceListDialog: false,
|
|
|
newInvoiceDialog: false
|
|
|
}
|
|
@@ -711,9 +723,9 @@ export default {
|
|
|
this.openRepertoryOutWarehouse(JSON.parse(this.$route.query.row));
|
|
|
}
|
|
|
},
|
|
|
- updated() {
|
|
|
- this.dynamicWidth = getOperatorWidth();
|
|
|
- },
|
|
|
+ // updated() {
|
|
|
+ // this.dynamicWidth = getOperatorWidth();
|
|
|
+ // },
|
|
|
methods: {
|
|
|
// 无条件分页查询
|
|
|
selectMyOrderPage() {
|
|
@@ -788,11 +800,11 @@ export default {
|
|
|
this.fund.orderId = row.orderId;
|
|
|
this.fund.orderName = row.name;
|
|
|
},
|
|
|
- stateStyle(state){
|
|
|
- if (state==='已开票'){
|
|
|
- return 'color:green'
|
|
|
- }else{
|
|
|
- return 'color:red'
|
|
|
+ stateStyle(state) {
|
|
|
+ if (state === '已开票') {
|
|
|
+ return 'color:green'
|
|
|
+ } else {
|
|
|
+ return 'color:red'
|
|
|
}
|
|
|
},
|
|
|
openProShouldAmountDialog(row) {
|
|
@@ -1118,8 +1130,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- openFinanceInvoiceDialog(orderFundId, productionFundId,realAmount,clientName,clientSubName) {
|
|
|
- console.log(orderFundId,realAmount,clientName,clientSubName)
|
|
|
+ openFinanceInvoiceDialog(orderFundId, productionFundId, realAmount, clientName, clientSubName) {
|
|
|
+ console.log(orderFundId, realAmount, clientName, clientSubName)
|
|
|
if (!orderFundId) {
|
|
|
this.$notify({
|
|
|
title: '提示',
|
|
@@ -1134,12 +1146,12 @@ export default {
|
|
|
this.invoice.orderFundId = orderFundId;
|
|
|
this.invoice.productionFundId = productionFundId;
|
|
|
this.invoice.realPayAmount = realAmount;
|
|
|
- this.invoice.title = clientName+clientSubName;
|
|
|
+ this.invoice.title = clientName + clientSubName;
|
|
|
this.getFinanceInvoiceList();
|
|
|
}
|
|
|
},
|
|
|
getFinanceInvoiceList() {
|
|
|
- this.$api.financeInvoice.getList(this.invoice.orderFundId,this.invoice.productionFundId).then(res => {
|
|
|
+ this.$api.financeInvoice.getList(this.invoice.orderFundId, this.invoice.productionFundId).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.invoiceData = res.data
|
|
|
}
|
|
@@ -1216,11 +1228,11 @@ export default {
|
|
|
this.newInvoiceDialog = true;
|
|
|
},
|
|
|
cancellation(id) {
|
|
|
- this.$prompt('作废原因:','已开发票作废',{
|
|
|
- confirmButtonText: '确认',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- }).then(({value}) => {
|
|
|
+ this.$prompt('作废原因:', '已开发票作废', {
|
|
|
+ confirmButtonText: '确认',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ }).then(({ value }) => {
|
|
|
this.invoice.reason = value;
|
|
|
this.invoice.id = id;
|
|
|
this.$api.financeInvoice.cancellation(this.invoice).then(res => {
|
|
@@ -1274,7 +1286,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- copyInvoice(row){
|
|
|
+ copyInvoice(row) {
|
|
|
this.invoice = row;
|
|
|
this.invoice.id = null;
|
|
|
this.invoice.state = null;
|