|
|
@@ -42,6 +42,7 @@
|
|
|
icon="el-icon-plus"
|
|
|
class="ele-btn-icon"
|
|
|
@click="openEdit('add', {})"
|
|
|
+ v-if="$hasPermission('eom:saleorder:save')"
|
|
|
>
|
|
|
新建
|
|
|
</el-button>
|
|
|
@@ -51,6 +52,7 @@
|
|
|
el-icon-delete
|
|
|
class="ele-btn-icon"
|
|
|
@click="allDelBtn"
|
|
|
+ v-if="$hasPermission('eom:saleorder:delete')"
|
|
|
:disabled="selection?.length === 0"
|
|
|
>
|
|
|
批量删除
|
|
|
@@ -61,6 +63,7 @@
|
|
|
icon="el-icon-plus"
|
|
|
class="ele-btn-icon"
|
|
|
@click="invoiceAll"
|
|
|
+ v-if="$hasPermission('eom:saleManage:invoiceAll')"
|
|
|
:disabled="selection?.length === 0"
|
|
|
>
|
|
|
批量发货
|
|
|
@@ -70,6 +73,7 @@
|
|
|
size="small"
|
|
|
icon="el-icon-upload2"
|
|
|
@click="uploadFile"
|
|
|
+ v-if="$hasPermission('eom:saleorder:save')"
|
|
|
>导入</el-button
|
|
|
>
|
|
|
<exportButton
|
|
|
@@ -106,9 +110,8 @@
|
|
|
icon="el-icon-edit"
|
|
|
@click="openEdit('edit', row)"
|
|
|
v-if="
|
|
|
- (isNeed_process_is_close &&
|
|
|
- [0, 3].includes(row.orderStatus)) ||
|
|
|
- !isNeed_process_is_close
|
|
|
+ $hasPermission('eom:saleorder:update') &&
|
|
|
+ [0, 3].includes(row.orderStatus)
|
|
|
"
|
|
|
>
|
|
|
修改
|
|
|
@@ -119,7 +122,8 @@
|
|
|
icon="el-icon-plus"
|
|
|
@click="saleOrderSubmitOrGenerate(row)"
|
|
|
v-if="
|
|
|
- isNeed_process_is_close && [0, 3].includes(row.orderStatus)
|
|
|
+ [0, 3].includes(row.orderStatus) &&
|
|
|
+ $hasPermission('eom:saleorder:update')
|
|
|
"
|
|
|
>
|
|
|
提交
|
|
|
@@ -143,9 +147,8 @@
|
|
|
title="确定要删除此信息吗?"
|
|
|
@confirm="remove([row.id])"
|
|
|
v-if="
|
|
|
- (isNeed_process_is_close &&
|
|
|
- [0, 3].includes(row.orderStatus)) ||
|
|
|
- !isNeed_process_is_close
|
|
|
+ [0, 3].includes(row.orderStatus) &&
|
|
|
+ $hasPermission('eom:saleorder:delete')
|
|
|
"
|
|
|
>
|
|
|
<template v-slot:reference>
|
|
|
@@ -163,7 +166,11 @@
|
|
|
:underline="false"
|
|
|
icon="el-icon-plus"
|
|
|
@click="handleCommand('invoice', row)"
|
|
|
- v-if="[2].includes(row.orderStatus) && row.needProduce != 2"
|
|
|
+ v-if="
|
|
|
+ [2].includes(row.orderStatus) &&
|
|
|
+ row.needProduce != 2 &&
|
|
|
+ $hasPermission('eom:saleordersendrecord:save')
|
|
|
+ "
|
|
|
>
|
|
|
创建发货单
|
|
|
</el-link>
|
|
|
@@ -183,7 +190,11 @@
|
|
|
:underline="false"
|
|
|
icon="el-icon-plus"
|
|
|
@click="handleCommand('invoiceManage', row)"
|
|
|
- v-if="[2].includes(row.orderStatus) && !row.hasInvoiceApply"
|
|
|
+ v-if="
|
|
|
+ [2].includes(row.orderStatus) &&
|
|
|
+ !row.hasInvoiceApply &&
|
|
|
+ $hasPermission('eom:fininvoiceapply:save')
|
|
|
+ "
|
|
|
>
|
|
|
新增发票
|
|
|
</el-link>
|
|
|
@@ -787,7 +798,7 @@
|
|
|
|
|
|
this.processSubmitDialogFlag = true;
|
|
|
let businessType =
|
|
|
- this.current.needProduce == 1
|
|
|
+ this.current.needProduce == 1
|
|
|
? '有客户生产性订单'
|
|
|
: this.current.needProduce == 2
|
|
|
? '无客户生产性订单'
|
|
|
@@ -821,7 +832,7 @@
|
|
|
|
|
|
async saleOrderSubmitOrGenerate(res) {
|
|
|
this.tableList = [];
|
|
|
- this.current = await getSaleOrderDetail(res.id);
|
|
|
+ this.current = await getSaleOrderDetail(res.id);
|
|
|
if (!this.current.generatePurchase && !this.current.generateProduce) {
|
|
|
this.saleOrderSubmit(res.id);
|
|
|
} else {
|