|
@@ -208,6 +208,7 @@
|
|
|
<!-- <a-button type="primary" @click="cancelClose"> 取消关闭(cancel close)</a-button> -->
|
|
|
<a-button type="primary" @click="confirm" v-auth="'saleCode:sale_order:confirm'"> 确认(confirm)</a-button>
|
|
|
<a-button type="primary" @click="cancelConfirm" v-auth="'saleCode:sale_order:cancelConfirm'"> 取消确认(cancel confirm)</a-button>
|
|
|
+ <a-button type="primary" @click="setIsNotified" v-auth="'saleCode:sale_order:setIsNotified'"> Set Notified</a-button>
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
|
<template #overlay>
|
|
|
<a-menu>
|
|
@@ -240,6 +241,7 @@
|
|
|
<SelectSaleOrderModal ref="SelectSaleOrderModalRef" @copy-product="handleCopyProduct" />
|
|
|
<SetCloseReasonModal ref="SetCloseReasonModalRef" @success="successfullyClosed"></SetCloseReasonModal>
|
|
|
<ViewHistoryVersionModal ref="ViewHistoryVersionModallRef" />
|
|
|
+ <SetIsNotified ref="setIsNotifiedRef" @success="handleSuccess" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -250,6 +252,7 @@
|
|
|
import { useModal } from '/@/components/Modal';
|
|
|
import SaleInquiryFormModal from './components/SaleOrderFormModal.vue';
|
|
|
import { columns, superQuerySchema } from './SaleOrderForm.data';
|
|
|
+ import SetIsNotified from './components/SetIsNotified.vue';
|
|
|
import {
|
|
|
list,
|
|
|
deleteOne,
|
|
@@ -287,6 +290,7 @@
|
|
|
const SelectSaleOrderModalRef = ref();
|
|
|
const ViewHistoryVersionModallRef = ref();
|
|
|
var SetCloseReasonModalRef = ref();
|
|
|
+ const setIsNotifiedRef = ref();
|
|
|
const queryParam = reactive<any>({});
|
|
|
//注册model
|
|
|
const [registerModal, { openModal }] = useModal();
|
|
@@ -509,6 +513,16 @@
|
|
|
SetCloseReasonModalRef.value.getTable(ids)
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ function setIsNotified() {
|
|
|
+ if (selectedRowKeys.value.length == 0) {
|
|
|
+ message.warning('请选择数据');
|
|
|
+ } else {
|
|
|
+ var ids = selectedRowKeys.value.join(',');
|
|
|
+ setIsNotifiedRef.value.getTable(ids);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
function successfullyClosed(reason,id){
|
|
|
var params={
|
|
|
ids: id,
|