cuilei
21 小时以前 0e59e3ebb9f7e9f83c7f906f40d0a562a8a686e8
排产功能物料下拉框调整
已修改2个文件
19 ■■■■ 文件已修改
src/views/base/FactoryManager.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mes/modules/MesProductionWorkOrderScheduleModal.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/base/FactoryManager.vue
@@ -72,7 +72,7 @@
              <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="factoryName" :label="nameLabel">
                <a-input placeholder="请输入产线/车间名称" v-model="model.factoryName"/>
              </a-form-model-item>
              <a-form-model-item v-if="this.factoryCategory == '3'" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="productionType" :label="nameLabel">
              <a-form-model-item v-if="this.factoryCategory == '3'" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="productionType" label="产线类型">
                <j-dict-select-tag type="list" placeholder="请选择产线类型" v-model="model.productionType" dictCode="production_type"/>
              </a-form-model-item>
              <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="父节点">
src/views/mes/modules/MesProductionWorkOrderScheduleModal.vue
@@ -157,7 +157,6 @@
<!--              :layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"-->
<!--              @page-change="handlePageChange">-->
<!--            </vxe-pager>-->
          </div>
        </a-card>
      </a-col>
      <a-col :span="12">
@@ -241,6 +240,7 @@
        listProductionLinesOption: '/base/factory/queryIdTree',
        queryShiftGroupByFactoryId: '/base/shiftGroup/queryShiftGroupByFactoryId',
        queryFactoryById: '/base/factory/queryById',
        queryLswMaterialByProductionType: '/lsw/lswMaterial/queryLswMaterialByProductionType',
        schedule: '/mesproductionworkorder/mesProductionWorkOrder/schedule',
        addSchedulePlan: '/mesproductionworkorder/mesProductionWorkOrder/addSchedulePlan'
      },
@@ -482,21 +482,20 @@
        });
        promises.push(shiftGroupPromise);
        const materialNumberPromise = ajaxGetDictItems("lsw_material,material_name,material_number,del_flag!='1' order by material_number asc", null).then(res => {
        const materialNumberPromise = getAction(this.url.queryLswMaterialByProductionType, { factoryId: factoryId }).then(res => {
          if (res.success) {
            this.materialOptions = res.result.map(item => {
              return {
                value: item.value,
                label: item.value
                value: item.materialNumber,
                label: item.materialNumber
              }
            });
            })
            this.materNumberNameMap = res.result.reduce((map, item) => {
              map[item.value] = item.text
              map[item.materialNumber] = item.materialName
              return map
            }, {})
          }
        }).catch(() => {
        });
        })
        promises.push(materialNumberPromise);
        // 等待所有请求完成
@@ -522,6 +521,8 @@
          if (this.dateRange[0]) {
            this.calendarStartDate = this.dateRange[0].clone().startOf('week');
          }
        } else {
          this.$message.error(res.message)
        }
      })
    },