فهرست منبع

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) => {