Commit b77cf01b authored by krysent's avatar krysent

new 7.24

parent be8eed64
...@@ -211,11 +211,11 @@ export default [ ...@@ -211,11 +211,11 @@ export default [
name: '供应商管理', name: '供应商管理',
component: './platform/Provide', component: './platform/Provide',
}, },
{ // {
path: '/store/customer', // path: '/store/customer',
name: '客户管理', // name: '客户管理',
component: './platform/Custom', // component: './platform/Custom',
}, // },
{ {
path: '/store/location', path: '/store/location',
name: '库位管理', name: '库位管理',
......
import regValue from "@/utils/regValue"; import { selectionBoxAll, StoreAreaselection ,factorySelect,storeselectionBoxAll} from "@/services/system.js";
import {
unitSelect,
serialNumberRuleSelect,
processLineSelect,
bmTableSelect,
} from "@/services/craft";
import { doFetch } from "@/utils/doFetch"; import { doFetch } from "@/utils/doFetch";
export default { export default {
...@@ -139,10 +133,10 @@ export default { ...@@ -139,10 +133,10 @@ export default {
type: "select", type: "select",
title: "默认仓库", title: "默认仓库",
name: ["storeId"], name: ["storeId"],
linked:true,
required: false, required: false,
options: { options: {
database: (params) => database: selectionBoxAll,
doFetch({ url: "/ngic-auth/sysStore/selectionBoxAll", params }),
params: {}, params: {},
}, },
}, },
...@@ -151,11 +145,46 @@ export default { ...@@ -151,11 +145,46 @@ export default {
type: "select", type: "select",
title: "默认库区", title: "默认库区",
name: ["storeAreaId"], name: ["storeAreaId"],
options: { belinked: {
database: (params) => options: {
doFetch({ url: "/ngic-auth/sysStoreArea/selection", params }), database: StoreAreaselection,
params: {}, params: {
storeId: "linked",
},
},
}, },
linked: true,
required: false, required: false,
}, },
// factoryId: {
// value: null,
// type: "select",
// title: "所属工厂",
// name: ["factoryId"],
// required: true,
// options: {
// database: factorySelect,
// params: {},
// },
// linked: true,
// },
// storeId: {
// value: null,
// type: "select",
// title: "所属仓库",
// name: ["storeId"],
// required: true,
// linked: true,
// belinked: {
// options: {
// database: storeselectionBoxAll,
// params: {
// factoryId: "linked",
// },
// },
// },
// },
}; };
import { doFetch } from "@/utils/doFetch"; import { doFetch } from "@/utils/doFetch";
import { factorySelect } from "@/services/system"; import {
factorySelect,
shopSelectByFactory,
StoreAreaselection,
storeselectionBoxAll,
} from "@/services/system";
export default { export default {
storePositionCode: { storePositionCode: {
value: null, value: null,
...@@ -36,8 +41,7 @@ export default { ...@@ -36,8 +41,7 @@ export default {
linked: true, linked: true,
belinked: { belinked: {
options: { options: {
database: () => database: storeselectionBoxAll,
doFetch({ url: "/ngic-auth/sysStore/selectionBox", params: {} }),
params: { params: {
factoryId: "linked", factoryId: "linked",
}, },
...@@ -52,8 +56,7 @@ export default { ...@@ -52,8 +56,7 @@ export default {
required: true, required: true,
belinked: { belinked: {
options: { options: {
database: () => database: StoreAreaselection,
doFetch({ url: "/ngic-auth/sysStoreArea/selection", params: {} }),
params: { params: {
storeId: "linked", storeId: "linked",
}, },
...@@ -61,6 +64,7 @@ export default { ...@@ -61,6 +64,7 @@ export default {
}, },
linked: true, linked: true,
}, },
status: { status: {
value: 1, value: 1,
type: "select", type: "select",
......
...@@ -394,7 +394,6 @@ const Materiel = (props) => { ...@@ -394,7 +394,6 @@ const Materiel = (props) => {
params = { params = {
...firstValues, ...firstValues,
...difrid, ...difrid,
factoryId: materieTypeId,
materieProductUnitList, materieProductUnitList,
}; };
url = "/ngic-auth/sysStorePosition/save"; url = "/ngic-auth/sysStorePosition/save";
......
...@@ -6,11 +6,11 @@ import { ...@@ -6,11 +6,11 @@ import {
} from "@/services/system"; } from "@/services/system";
import regValue from "@/utils/regValue"; import regValue from "@/utils/regValue";
export default { export default {
stationCode: { stationNo: {
value: null, value: null,
type: "input", type: "input",
title: "工位编号", title: "工位编号",
name: ["stationCode"], name: ["stationNo"],
required: true, required: true,
}, },
stationName: { stationName: {
...@@ -32,78 +32,23 @@ export default { ...@@ -32,78 +32,23 @@ export default {
}, },
linked: true, linked: true,
}, },
shopId: { remark: {
value: null,
type: "select",
title: "所属车间",
name: ["shopId"],
required: true,
belinked: {
options: {
database: shopSelectByFactory,
params: { factoryId: "linked" },
},
},
linked: true,
},
sectionId: {
value: null,
type: "select",
title: "所属工段",
name: ["sectionId"],
required: true,
belinked: {
options: {
database: sectionSelectByShop,
params: { shopId: "linked", factoryId: "linked" },
},
},
},
productionLineId: {
value: null,
type: "select",
title: "所属产线",
name: ["productionLineId"],
required: true,
belinked: {
options: {
database: productionLineSelectByShop,
params: { shopId: "linked", factoryId: "linked" },
},
},
},
stationType: {
value: null, value: null,
type: "select", type: "select",
title: "工位类型", title: "启用状态",
name: ["stationType"], name: ["remark"],
required: false, required: false,
options: [ options: [
{ {
label: "待加工", label: "启用",
value: 0, value: 1,
}, },
{ {
label: "在加工", label: "停用",
value: 1, value: 2,
}, },
], ],
}, col: { span: 24 },
stationDifficultyCoefficient: {
value: null,
type: "inputnumber",
title: "难易系数",
name: ["stationDifficultyCoefficient"],
required: false,
...regValue(null, 6, 3),
},
capacity: {
value: null,
type: "inputnumber",
title: "能力",
name: ["capacity"],
required: false,
...regValue(null, 6, 3),
}, },
remark: { remark: {
value: null, value: null,
...@@ -111,6 +56,7 @@ export default { ...@@ -111,6 +56,7 @@ export default {
title: "描述", title: "描述",
name: ["remark"], name: ["remark"],
required: false, required: false,
col: { span: 24 }, col: { span: 24 },
}, },
}; };
...@@ -97,8 +97,8 @@ const Station = (props) => { ...@@ -97,8 +97,8 @@ const Station = (props) => {
columns = [ columns = [
{ {
title: "工位编号", title: "工位编号",
dataIndex: "stationCode", dataIndex: "stationNo",
key: "stationCode", key: "stationNo",
}, },
{ {
title: "工位名称", title: "工位名称",
...@@ -128,24 +128,13 @@ const Station = (props) => { ...@@ -128,24 +128,13 @@ const Station = (props) => {
}, },
}, },
{ {
title: "所属工厂", title: "启用状态",
dataIndex: "factoryName", dataIndex: "factoryName",
key: "factoryName", key: "factoryName",
}, search:false,
{ render: (_, row) => {
title: "所属车间", return row?.status ? '启用' : '禁用'
dataIndex: "shopName", }
key: "shopName",
},
{
title: "所属工段",
dataIndex: "sectionName",
key: "sectionName",
},
{
title: "所属产线",
dataIndex: "productionLineName",
key: "productionLineName",
}, },
{ {
title: "描述", title: "描述",
......
...@@ -136,7 +136,6 @@ const Store = (props) => { ...@@ -136,7 +136,6 @@ const Store = (props) => {
for (let i in defaultFields) { for (let i in defaultFields) {
defaultFields[i].value = record[i]; defaultFields[i].value = record[i];
} }
console.log(defaultFields);
dispatch({ type: "edit", fields: defaultFields, curitem: record }); dispatch({ type: "edit", fields: defaultFields, curitem: record });
}), }),
getPrem("sysDepartment_deleteById", action, "删除", null, { getPrem("sysDepartment_deleteById", action, "删除", null, {
......
...@@ -36,6 +36,13 @@ export async function storeselectionBoxAll(params) { ...@@ -36,6 +36,13 @@ export async function storeselectionBoxAll(params) {
data: params, data: params,
}); });
} }
//库区下拉
export async function StoreAreaselection(params) {
return request(`/srwms/ngic-auth/sysStoreArea/selection`, {
method: "POST",
data: params,
});
}
//根据工厂id查询车间下拉 //根据工厂id查询车间下拉
export async function storeselectionBox(params) { export async function storeselectionBox(params) {
return request(`/srwms/ngic-auth/sysStore/selectionBox`, { return request(`/srwms/ngic-auth/sysStore/selectionBox`, {
......
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