Commit 3b3c9f87 authored by 左玲玲's avatar 左玲玲 😬

下架采集

parent db72058c
...@@ -18,7 +18,7 @@ function Instore(props) { ...@@ -18,7 +18,7 @@ function Instore(props) {
"dataIndex": "operateTime", "dataIndex": "operateTime",
"key": "operateTimeList", "key": "operateTimeList",
"valueType": "dateRange", "valueType": "dateRange",
"render": (_, row) => {return (<div>{row.operateTime}</div>)}, "render": (_, row) => { return (<div>{row.operateTime}</div>) },
}, },
{ {
"title": "操作人", "title": "操作人",
...@@ -66,7 +66,12 @@ function Instore(props) { ...@@ -66,7 +66,12 @@ function Instore(props) {
{ {
"title": "仓库名称", "title": "仓库名称",
"dataIndex": "storeName", "dataIndex": "storeName",
"key": "storeName" "key": "storeId",
options: {
database: () => doFetch({ url: "/ngic-auth/sysStore/selectionBox", params: { factoryIdList: [] } }),
params: {}
},
valueType: "select",
}, },
{ {
"title": "库位", "title": "库位",
......
...@@ -14,8 +14,6 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -14,8 +14,6 @@ const EditUpload = ({ record, fid, storeId }) => {
if (!value) { if (!value) {
return return
} }
console.log(value);
let newlist = Object.keys(value)?.map?.(it => { let newlist = Object.keys(value)?.map?.(it => {
let id = it; let id = it;
let newArr = value[id]?.filter(it => typeof (it.id) == "number") ?? []; let newArr = value[id]?.filter(it => typeof (it.id) == "number") ?? [];
...@@ -23,8 +21,9 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -23,8 +21,9 @@ const EditUpload = ({ record, fid, storeId }) => {
id, id,
downloadList: newArr.map(its => { downloadList: newArr.map(its => {
return { return {
storeId: its?.storeId, storePositionId: its?.storePositionId,
outstroeNum: its?.outstroeNum, outstroeNum: its?.outstroeNum,
stockNum: its?.stockNum,
remark: its?.remark, remark: its?.remark,
materieControlNo: its?.materieControlNo materieControlNo: its?.materieControlNo
} }
...@@ -49,12 +48,13 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -49,12 +48,13 @@ const EditUpload = ({ record, fid, storeId }) => {
maxLength={1000} maxLength={1000}
linkconfig={{ linkconfig={{
urlchangeval: { urlchangeval: {
database: (params) => doFetch({ url: "/ngic-workmanship/wmsMaterieStockStore/queryByMaterieAndStoreId", params }), database: (params) => doFetch({ url: "/ngic-workmanship/wmsMaterieStore/queryStoreOne", params }),
params: { "storeId": "linked",materieId:record.materieId}, params: { "storePositionId": "linked",materieControlNo:"linked"},
effectresult: { effectresult: {
"supplierNo": "supplierNo", "supplierNo": "supplierNo",
"supplierName": "supplierName", "supplierName": "supplierName",
"productionNum": "productionNum", "stockNum": "stockNum",
"materieControlNo":"materieControlNo"
} }
} }
}} }}
...@@ -63,7 +63,7 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -63,7 +63,7 @@ const EditUpload = ({ record, fid, storeId }) => {
{ {
title: "库位名称", title: "库位名称",
dataIndex: "storePositionName", dataIndex: "storePositionName",
key: "storeId", key: "storePositionId",
search: false, search: false,
valueType: "select", valueType: "select",
request: async () => { request: async () => {
...@@ -79,9 +79,18 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -79,9 +79,18 @@ const EditUpload = ({ record, fid, storeId }) => {
dataIndex: "materieControlNo", dataIndex: "materieControlNo",
key: "materieControlNo", key: "materieControlNo",
search: false, search: false,
valueType: "select",
request: async (params) => {
let res = await doFetch({ url: "/ngic-workmanship/wmsMaterieStore/queryPCList", params:{materieId:params.materieId,storePositionId:params.storePositionId}});
return res?.data?.dataList
},
editable: (text, record, index) => { editable: (text, record, index) => {
return !record.materieOutstoreDetailId return !record.materieOutstoreDetailId
} },
params:(row)=>{
return {materieId:record.materieId,storePositionId:row.storePositionId}
},
width:200
}, },
{ {
title: "下架数量", title: "下架数量",
...@@ -90,22 +99,27 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -90,22 +99,27 @@ const EditUpload = ({ record, fid, storeId }) => {
search: false, search: false,
editable: (text, record, index) => { editable: (text, record, index) => {
return !record.materieOutstoreDetailId return !record.materieOutstoreDetailId
} },
valueType: "digit"
}, },
{ {
title: "供应商编号-名称", title: "供应商编号",
dataIndex: "supplierNo", dataIndex: "supplierNo",
key: "supplierNo", key: "supplierNo",
search: false, search: false,
readonly: true, readonly: true
render: (dom, row) => { },
return (row?.supplierNo ?? '') + " - " + (row?.supplierName ?? '') {
} title: "供应商名称",
dataIndex: "supplierName",
key: "supplierName",
search: false,
readonly: true
}, },
{ {
title: "库存数量", title: "库存数量",
dataIndex: "productionNum", dataIndex: "stockNum",
key: "productionNum", key: "stockNum",
search: false, search: false,
"readonly": true, "readonly": true,
}, },
...@@ -234,6 +248,7 @@ const one = { ...@@ -234,6 +248,7 @@ const one = {
rules: [{ required: true, message: '此项为必填项' }], rules: [{ required: true, message: '此项为必填项' }],
}; };
}, },
valueType: "digit"
}, },
{ {
"title": "可用库存", "title": "可用库存",
...@@ -357,6 +372,7 @@ const one = { ...@@ -357,6 +372,7 @@ const one = {
rules: [{ required: true, message: '此项为必填项' }], rules: [{ required: true, message: '此项为必填项' }],
}; };
}, },
valueType: "digit"
}, },
{ {
"title": "可用库存", "title": "可用库存",
...@@ -480,6 +496,7 @@ const one = { ...@@ -480,6 +496,7 @@ const one = {
rules: [{ required: true, message: '此项为必填项' }], rules: [{ required: true, message: '此项为必填项' }],
}; };
}, },
valueType: "digit"
}, },
{ {
"title": "可用库存", "title": "可用库存",
...@@ -603,6 +620,7 @@ const one = { ...@@ -603,6 +620,7 @@ const one = {
rules: [{ required: true, message: '此项为必填项' }], rules: [{ required: true, message: '此项为必填项' }],
}; };
}, },
valueType: "digit"
}, },
{ {
"title": "可用库存", "title": "可用库存",
......
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