|
@@ -94,6 +94,17 @@
|
|
|
apiUrl="/eom/saleorder/export"
|
|
apiUrl="/eom/saleorder/export"
|
|
|
:params="params"
|
|
:params="params"
|
|
|
></exportButton>
|
|
></exportButton>
|
|
|
|
|
+
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-if="$hasPermission('eom:contact:push')"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ class="ele-btn-icon"
|
|
|
|
|
+ @click="allPushBtn"
|
|
|
|
|
+ :disabled="selection?.length === 0"
|
|
|
|
|
+ >
|
|
|
|
|
+ 批量推送
|
|
|
|
|
+ </el-button>
|
|
|
<!-- <el-button
|
|
<!-- <el-button
|
|
|
:disabled="selection?.length === 0"
|
|
:disabled="selection?.length === 0"
|
|
|
type="primary"
|
|
type="primary"
|
|
@@ -413,7 +424,8 @@ import {
|
|
|
saleOrderReminder,
|
|
saleOrderReminder,
|
|
|
getByRepeatBomAttribute,
|
|
getByRepeatBomAttribute,
|
|
|
saveOrderBomList,
|
|
saveOrderBomList,
|
|
|
- updateOrderInfo
|
|
|
|
|
|
|
+ updateOrderInfo,
|
|
|
|
|
+ saleOrderAdd
|
|
|
} from '@/api/saleManage/saleorder';
|
|
} from '@/api/saleManage/saleorder';
|
|
|
import { getToDoReminder } from '@/api/common/index';
|
|
import { getToDoReminder } from '@/api/common/index';
|
|
|
import { exportSaleorder } from '@/api/system/file/index.js';
|
|
import { exportSaleorder } from '@/api/system/file/index.js';
|
|
@@ -969,6 +981,14 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ allPushBtn() {
|
|
|
|
|
+ const dataId = this.selection.map((v) => v.id);
|
|
|
|
|
+ saleOrderAdd(dataId).then((res) => {
|
|
|
|
|
+ this.$message.success('推送成功!');
|
|
|
|
|
+ this.reload();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
invoiceAll() {
|
|
invoiceAll() {
|
|
|
let partaIds = this.selection.map((item) => item.partaId);
|
|
let partaIds = this.selection.map((item) => item.partaId);
|
|
|
if (new Set(partaIds).size != 1) {
|
|
if (new Set(partaIds).size != 1) {
|