Quellcode durchsuchen

bug修复。数据字典是否只获取已启用的数据

chenrui vor 3 Jahren
Ursprung
Commit
a1652d6343

+ 6 - 1
src/components/Select/index.js

@@ -25,6 +25,10 @@ export default {
     showType: {
       type: String,
       default: 'select'
+    },
+    isEnable: { // 是否只获取已启用的数据
+      type: Boolean,
+      default: false
     }
   }),
   created () {
@@ -33,7 +37,8 @@ export default {
     getLookUpData({
       pageNo: 1,
       pageSize: 1000,
-      lookupCode: _this.code
+      lookupCode: _this.code,
+      isEnable: _this.isEnable ? 1 : undefined
     }).then(res => {
       if (res.status == 200) {
         _this.dataList = res.data.list

+ 1 - 0
src/views/salesManagement/outboundOrder/list.vue

@@ -22,6 +22,7 @@
                   ref="outBizType"
                   id="outboundOrderList-outBizType"
                   code="OUT_STOCK_TYPE"
+                  isEnable
                   placeholder="请选择出库类型"
                   allowClear></v-select>
               </a-form-item>