瀏覽代碼

fix(支持工单): 去掉硬件交付工单类型筛选

lk 2 年之前
父節點
當前提交
5607195729
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/views/work/order/components/Edit.vue

+ 6 - 1
src/views/work/order/components/Edit.vue

@@ -117,8 +117,13 @@
     },
     methods: {
       async getOrderTypeList() {
+        this.orderTypeList.splice(0, this.orderTypeList.length)
         const { data } = await typeApi.getList()
-        this.orderTypeList = data.list
+        for (let item of data.list) {
+          if (item.name !== '硬件交付工单') {
+            this.orderTypeList.push(item)
+          }
+        }
       },
       changeOrderType() {
         let item = this.orderTypeList.find((item) => {