|
|
@@ -99,30 +99,6 @@
|
|
|
</template>
|
|
|
<!-- 操作列 -->
|
|
|
<template v-slot:action="{ row }">
|
|
|
- <el-link
|
|
|
- type="primary"
|
|
|
- :underline="false"
|
|
|
- icon="el-icon-edit"
|
|
|
- v-if="
|
|
|
- (isNeed_process_is_close &&
|
|
|
- [0, 3].includes(row.orderStatus)) ||
|
|
|
- !isNeed_process_is_close
|
|
|
- "
|
|
|
- @click="openEdit('edit', row)"
|
|
|
- >
|
|
|
- 修改
|
|
|
- </el-link>
|
|
|
- <el-link
|
|
|
- type="primary"
|
|
|
- :underline="false"
|
|
|
- icon="el-icon-plus"
|
|
|
- @click="saleOrderSubmit(row)"
|
|
|
- v-if="
|
|
|
- isNeed_process_is_close && [0, 3].includes(row.orderStatus)
|
|
|
- "
|
|
|
- >
|
|
|
- 提交
|
|
|
- </el-link>
|
|
|
<el-popconfirm
|
|
|
class="ele-action"
|
|
|
title="确定要删除此信息吗?"
|
|
|
@@ -148,7 +124,7 @@
|
|
|
type="primary"
|
|
|
:underline="false"
|
|
|
icon="el-icon-plus"
|
|
|
- v-if="row.invoiceStatus != 2"
|
|
|
+ v-if="row.invoiceStatus != 2 && !(row.transactionMode == 2 && row.paymentStatus == 0)"
|
|
|
@click="openEdit('add', row)"
|
|
|
>
|
|
|
新增发票
|
|
|
@@ -575,8 +551,6 @@ export default {
|
|
|
reload(where) {
|
|
|
this.$refs.table.reload({ page: 1, where });
|
|
|
},
|
|
|
-
|
|
|
- //新增编辑
|
|
|
//新增编辑
|
|
|
openEdit(type, row) {
|
|
|
const select = []
|
|
|
@@ -586,7 +560,18 @@ export default {
|
|
|
let customerIds = this.selection.map((item) => item.customerId);
|
|
|
let initiatorIds = this.selection.map((item) => item.initiatorId);
|
|
|
let invoiceStatus = this.selection.map((item) => item.invoiceStatus);
|
|
|
- console.log(customerIds, initiatorIds);
|
|
|
+ let flag = false
|
|
|
+ this.selection.forEach(item => {
|
|
|
+ if(item.transactionMode == 2 && item.paymentStatus == 0) {
|
|
|
+ console.log('selection', item);
|
|
|
+ flag = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ console.log(customerIds, initiatorIds, flag);
|
|
|
+ if(flag) {
|
|
|
+ this.$message.warning('先款后票的计划需要付款后再开票!');
|
|
|
+ return
|
|
|
+ }
|
|
|
if(invoiceStatus.includes(2)) {
|
|
|
this.$message.warning('请选择未开票的计划!');
|
|
|
return
|