소스 검색

no message

linwenxin 9 달 전
부모
커밋
34b02997cc
1개의 변경된 파일9개의 추가작업 그리고 11개의 파일을 삭제
  1. 9 11
      src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/pandanxinxi.js

+ 9 - 11
src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/pandanxinxi.js

@@ -138,12 +138,11 @@ export default {
               {
                 isShow: this.formOptions.workerId.isShow,
                 name: 'el-select',
-                options: this.workerList.filter(item =>
-                  (this.orderInfo.workerId == item.value ||
-                    !~this.orderInfo.orderWorkers.map(item => item.workerId).indexOf(item.value)) &&
-                  this.orderType == 'RECYCLE'
-                    ? item.isRecycler
-                    : true
+                options: this.workerList.filter(
+                  item =>
+                    (this.orderInfo.workerId == item.value ||
+                      !~this.orderInfo.orderWorkers.map(item => item.workerId).indexOf(item.value)) &&
+                    (this.orderType == 'RECYCLE' ? item.isRecycler : true)
                 ),
                 md: 8,
                 attributes: {
@@ -199,11 +198,10 @@ export default {
               {
                 isShow: this.formOptions.orderWorkers.isEdit,
                 name: 'el-select',
-                options: this.workerList.filter(item =>
-                  !~this.orderInfo.orderWorkers.map(item => item.workerId).indexOf(item.value) &&
-                  this.orderType == 'RECYCLE'
-                    ? item.isRecycler
-                    : true
+                options: this.workerList.filter(
+                  item =>
+                    !~this.orderInfo.orderWorkers.map(item => item.workerId).indexOf(item.value) &&
+                    (this.orderType == 'RECYCLE' ? item.isRecycler : true)
                 ),
                 md: 8,
                 attributes: {