tuqin
6 天以前 debcea7c3778974b2f91a15060ca2b14b299042a
feat(erp): 销售订单产品清单不再由销售判断是否需生产

背景:客户反馈销售在下单时看不到库存量,无法判断是否需要生产。
经确认,判断职责移到生产车间,销售端不参与。

前端改动:
- 产品清单的「是否需生产」由下拉选择框改为只读展示(统一显示是)
- 新增行默认 needProduction=1 的既有逻辑保持不变

配套后端:ErpSaleOrderServiceImpl.validateSaleOrderItems 已加兜底,
未传 needProduction 时统一按需生产处理。

注意:needProduction 同时控制能否生成发货通知单(需生产需等 MPS 完成),
该字段默认全部为「需生产」后,现货直发场景需在生产环节另行处理。
已修改1个文件
15 ■■■■■ 文件已修改
src/views/erp/sale/order/modules/item-form.vue 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/erp/sale/order/modules/item-form.vue
@@ -239,18 +239,9 @@
      <span v-else>{{ row.productName || '-' }}</span>
    </template>
    <template #needProduction="{ row }">
      <Select
        v-if="!disabled"
        v-model:value="row.needProduction"
        :options="[
          { label: '是', value: 1 },
          { label: '否', value: 0 },
        ]"
        class="w-full"
        placeholder="请选择"
        @change="handleRowChange(row)"
      />
      <Tag v-else-if="row.needProduction === 1" color="success">是</Tag>
      <!-- 销售端不再让业务员判断是否需要生产,统一按"需要生产"处理,
           由生产车间根据实际库存情况在生产环节自行判断/调整 -->
      <Tag v-if="row.needProduction === 1" color="success">是</Tag>
      <Tag v-else color="default">否</Tag>
    </template>
    <template #count="{ row }">