瀏覽代碼

no message

linwenxin 4 月之前
父節點
當前提交
99cd1ae401
共有 2 個文件被更改,包括 29 次插入1 次删除
  1. 8 0
      src/api/workOrderPool.js
  2. 21 1
      src/views/workOrder/workOrderPool/index.vue

+ 8 - 0
src/api/workOrderPool.js

@@ -28,6 +28,14 @@ export function orderBaseSettleNormConfirm(data) {
   })
 }
 
+export function changeOrderChangWebsit(data) {
+  return request({
+    url: `/changeOrder/changWebsit`,
+    method: 'post',
+    data
+  })
+}
+
 export function orderBaseCancel(params) {
   return request({
     url: `/order/base/cancel`,

+ 21 - 1
src/views/workOrder/workOrderPool/index.vue

@@ -135,7 +135,8 @@ import {
   orderBaseImport,
   orderBaseImport2,
   orderBaseImport3,
-  orderBaseDetail
+  orderBaseDetail,
+  changeOrderChangWebsit
 } from '@/api/workOrderPool.js'
 import workOrderInfo from './detailModule/workOrderInfo/index.vue'
 import Detail from './detail'
@@ -401,6 +402,25 @@ export default {
                 this.rescheduleBool = true
               }
             })
+          ],
+          [
+            this.optionsEvensAuth('bulkOrder', {
+              click: () => {
+                if (this.recordSelected.length === 0) {
+                  this.$message.warning('请勾选工单')
+                  return
+                }
+                changeOrderChangWebsit({
+                  ids: this.recordSelected.map(item => item.id)
+                }).then(res => {
+                  this.$message({
+                    type: 'success',
+                    message: '操作成功!'
+                  })
+                  this.$refs?.pageRef?.refreshList()
+                })
+              }
+            })
           ]
         ]
       ]