Commit f9f7027d authored by krysent's avatar krysent

出库

parent 36f252db
...@@ -78,6 +78,7 @@ function Outstore(props) { ...@@ -78,6 +78,7 @@ function Outstore(props) {
title: "任务单号", title: "任务单号",
dataIndex: "taskNo", dataIndex: "taskNo",
key: "taskNo", key: "taskNo",
search: false,
render: (dom, record) => { render: (dom, record) => {
return ( return (
<a <a
...@@ -118,6 +119,7 @@ function Outstore(props) { ...@@ -118,6 +119,7 @@ function Outstore(props) {
dataIndex: "materieName", dataIndex: "materieName",
key: "materieName", key: "materieName",
valueType: "select", valueType: "select",
options: [ options: [
{ {
label: "生产领料出库", label: "生产领料出库",
...@@ -141,6 +143,7 @@ function Outstore(props) { ...@@ -141,6 +143,7 @@ function Outstore(props) {
title: "规格型号", title: "规格型号",
dataIndex: "specificationModel", dataIndex: "specificationModel",
key: "specificationModel", key: "specificationModel",
search: false,
fieldProps: { fieldProps: {
allowClear: true, allowClear: true,
showSearch: true, showSearch: true,
...@@ -165,11 +168,13 @@ function Outstore(props) { ...@@ -165,11 +168,13 @@ function Outstore(props) {
title: "来源库位", title: "来源库位",
dataIndex: "sourceStorePositionName", dataIndex: "sourceStorePositionName",
key: "sourceStorePositionName", key: "sourceStorePositionName",
search: false,
}, },
{ {
title: "目标库位", title: "目标库位",
dataIndex: "targetStorePositionName", dataIndex: "targetStorePositionName",
key: "targetStorePositionName", key: "targetStorePositionName",
search: false,
}, },
{ {
title: "任务类型", title: "任务类型",
...@@ -204,12 +209,14 @@ function Outstore(props) { ...@@ -204,12 +209,14 @@ function Outstore(props) {
title: "下发时间", title: "下发时间",
dataIndex: "distributeTime", dataIndex: "distributeTime",
key: "distributeTime", key: "distributeTime",
search: false,
}, },
{ {
title: "操作", title: "操作",
dataIndex: "options", dataIndex: "options",
key: "options", key: "options",
render:(text, record, _, action) => { search: false,
render: (text, record, _, action) => {
return [ return [
getPrem("equipmentCustomer_deleteById", action, "关单", null, { getPrem("equipmentCustomer_deleteById", action, "关单", null, {
title: "确认关单?", title: "确认关单?",
......
...@@ -5,7 +5,7 @@ import EditTable from "@/components/EditTable"; ...@@ -5,7 +5,7 @@ import EditTable from "@/components/EditTable";
import { useEffect, useState } from 'react' import { useEffect, useState } from 'react'
import { useModel } from 'umi' import { useModel } from 'umi'
const EditUpload = ({ record, fid, storeId }) => { const EditUpload = ({ record, fid, storeId ,formRef}) => {
const [value, setvalue] = useState({ const [value, setvalue] = useState({
[record.id]: record.downloadList [record.id]: record.downloadList
}); });
...@@ -595,7 +595,9 @@ const one = { ...@@ -595,7 +595,9 @@ const one = {
"key": "materieId", "key": "materieId",
"valueType": "select", "valueType": "select",
"request": async () => { "request": async () => {
let res = await doFetch({ url: "/ngic-workmanship/pmMaterie/query/selectbox", params: {} }) let res = await doFetch({
url: "/ngic-workmanship/pmMaterie/selectboxByStoreId", params: {
} })
return res?.data?.dataList return res?.data?.dataList
}, },
"fieldProps": { "fieldProps": {
......
...@@ -149,6 +149,7 @@ function Outstore(props) { ...@@ -149,6 +149,7 @@ function Outstore(props) {
dataIndex: "outstoreTypeName", dataIndex: "outstoreTypeName",
key: "outstoreType", key: "outstoreType",
valueType: "select", valueType: "select",
search: false,
options: [ options: [
{ {
label: "生产领料出库", label: "生产领料出库",
...@@ -171,6 +172,7 @@ function Outstore(props) { ...@@ -171,6 +172,7 @@ function Outstore(props) {
{ {
title: "出库仓库", title: "出库仓库",
dataIndex: "storeName", dataIndex: "storeName",
search: false,
key: "storeId", key: "storeId",
fieldProps: { fieldProps: {
allowClear: true, allowClear: true,
...@@ -194,18 +196,20 @@ function Outstore(props) { ...@@ -194,18 +196,20 @@ function Outstore(props) {
{ {
title: "备注", title: "备注",
dataIndex: "remark", dataIndex: "remark",
search: false,
key: "remark", key: "remark",
search: false, search: false,
}, },
{ {
title: "创建人", title: "创建人",
dataIndex: "createUserName", dataIndex: "applyUserName",
key: "createUserName", key: "applyUserName",
search: false,
}, },
{ {
title: "创建时间", title: "创建时间",
dataIndex: "createTime", dataIndex: "applyTime",
key: "createTime", key: "applyTimeList",
valueType: "dateRange", valueType: "dateRange",
formItemProps: { formItemProps: {
name: "createTimeList", name: "createTimeList",
...@@ -216,6 +220,7 @@ function Outstore(props) { ...@@ -216,6 +220,7 @@ function Outstore(props) {
dataIndex: "statusName", dataIndex: "statusName",
key: "status", key: "status",
valueType: "select", valueType: "select",
search: false,
options: [ options: [
{ {
label: "待下架", label: "待下架",
...@@ -261,6 +266,7 @@ function Outstore(props) { ...@@ -261,6 +266,7 @@ function Outstore(props) {
dataIndex: "outstoreTypeName", dataIndex: "outstoreTypeName",
key: "outstoreType", key: "outstoreType",
valueType: "select", valueType: "select",
search: false,
options: [ options: [
{ {
label: "生产领料出库", label: "生产领料出库",
...@@ -311,13 +317,15 @@ function Outstore(props) { ...@@ -311,13 +317,15 @@ function Outstore(props) {
}, },
{ {
title: "创建人", title: "创建人",
dataIndex: "createUserName", dataIndex: "applyUserName",
key: "createUserName", key: "applyUserName",
search: false,
}, },
{ {
title: "创建时间", title: "创建时间",
dataIndex: "createTime", dataIndex: "applyTime",
key: "createTime", key: "applyTimeList",
search: false,
valueType: "dateRange", valueType: "dateRange",
formItemProps: { formItemProps: {
name: "createTimeList", name: "createTimeList",
...@@ -336,6 +344,7 @@ function Outstore(props) { ...@@ -336,6 +344,7 @@ function Outstore(props) {
title: "状态", title: "状态",
dataIndex: "statusName", dataIndex: "statusName",
key: "status", key: "status",
search: false,
valueType: "select", valueType: "select",
options: [ options: [
{ {
...@@ -497,6 +506,9 @@ function Outstore(props) { ...@@ -497,6 +506,9 @@ function Outstore(props) {
}; };
}, },
valueType: "digit", valueType: "digit",
fieldProps: {
precision: 3,
},
editable: true, editable: true,
}, },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment