chen.lin
1 天以前 b003a49794f49a329e2702918ecfc8d14b371d0d
rsf-admin/src/page/orders/outStock/OutOrderList.jsx
@@ -195,8 +195,8 @@
        actions={(
          <TopToolbar>
            <FilterButton />
            <CreateByOrderButton setCreateDialog={setCreateDialog} />
            <MyCreateButton onClick={() => { setManualDialog(true); setmodalType(0) }} />
            {/* <CreateByOrderButton setCreateDialog={setCreateDialog} /> 通过单据创建暂不使用 */}
            {/* <MyCreateButton onClick={() => { setManualDialog(true); setmodalType(0) }} /> 添加按钮暂不使用 */}
            <SelectColumnsButton preferenceKey='outStock' />
            <ImportButton value={'outStockItem'} />
          </TopToolbar>
@@ -216,9 +216,9 @@
          <TextField source="poCode" label="table.field.outStock.poCode" />
          <TextField source="type$" label="table.field.outStock.type" />
          <TextField cellClassName="wkType" source="wkType$" label="table.field.outStock.wkType" />
          <NumberField source="anfme" label="table.field.outStock.anfme" options={{ maximumFractionDigits: 6 }} />
          <NumberField source="workQty" label="table.field.outStock.workQty" options={{ maximumFractionDigits: 6 }} />
          <NumberField source="qty" label="table.field.outStock.qty" options={{ maximumFractionDigits: 6 }} />
          <NumberField source="anfme" label="table.field.outStock.anfme" options={{ minimumFractionDigits: 2, maximumFractionDigits: 2 }} />
          <NumberField source="workQty" label="table.field.outStock.workQty" options={{ minimumFractionDigits: 2, maximumFractionDigits: 2 }} />
          <NumberField source="qty" label="table.field.outStock.qty" options={{ minimumFractionDigits: 2, maximumFractionDigits: 2 }} />
          <TextField source="logisNo" label="table.field.outStock.logisNo" />
          <TextField source="rleStatus$" label="table.field.outStock.rleStatus" sortable={false} />
          <TextField source="updateBy$" label="common.field.updateBy" />
@@ -317,7 +317,7 @@
  )
}
/** 出库单执行状态:10=初始化(仅此状态显示编辑/详情) */
/** 出库单执行状态:10=初始化(仅此状态显示编辑);详情任意状态可查看 */
const OUT_STOCK_EXCE_STATUS_INIT = 10;
const OutOrderRowActions = ({ setCreateDialog, setmodalType, setDrawerVal, drawerVal, setSelect }) => {
@@ -325,12 +325,8 @@
  const isInit = record?.exceStatus === OUT_STOCK_EXCE_STATUS_INIT || record?.exceStatus === '10';
  return (
    <>
      {isInit && (
        <>
          <MyButton setCreateDialog={setCreateDialog} setmodalType={setmodalType} />
          <EditButton label="toolbar.detail" icon={(<DetailsIcon />)} />
        </>
      )}
      {isInit && <MyButton setCreateDialog={setCreateDialog} setmodalType={setmodalType} />}
      <EditButton label="toolbar.detail" icon={(<DetailsIcon />)} />
      <PublicButton setDrawerVal={setDrawerVal} drawerVal={drawerVal} setSelect={setSelect} />
    </>
  );