This commit is contained in:
zxx 2023-11-15 16:27:46 +08:00
parent fa32863376
commit 95dd95d22c
10 changed files with 161 additions and 78 deletions

View File

@ -27,7 +27,7 @@
<a-tab-pane key="2" tab="料品属性">
<a-tab-pane key="2" tab="料品自定义属性">
<!-- 料品属性 Start -->
<vxe-form :data="options.formOptions2.data" ref="xForm2" :title-width="options.formOptions2.titleWidth"
:title-align="options.formOptions2.titleAlign" :rules="options.formOptions2.rules"

View File

@ -45,8 +45,8 @@ export default {
keyName: 'id', //
listFieldName: 'MesStock',
addPageUrl: "/MesWarehouse/MesWarehousePositionAdd",
editPageUrl: "/MesWarehouse/MesWarehousePositionUpdate/",
addPageUrl: "/MesStock/MesStockAdd",
editPageUrl: "/MesStock/MesStockUpdate/",
//
actions: { // Api
@ -141,16 +141,19 @@ export default {
this.pageOptions = pageData;
},
//
//
stockOut(id) {
console.log("stockOut:"+id)
this.$router.push('/MesStock/MesStockOut/'+id) //
},
//
stockIn(id) {
console.log("stockIn:"+id)
this.$router.push('/MesStock/MesStockIn/'+id) //
},
},
watch: {

View File

@ -2,7 +2,7 @@
<basic-page-list :desc="desc" :options="pageOptions">
<template v-slot:column1="{ row }">
<a-button class="in" type="default" @click="stockIn(row.id)">查看详情</a-button>
<a-button class="in" type="default" @click="LogDetail(row.id)">查看详情</a-button>
</template>
</basic-page-list>
</template>
@ -12,7 +12,7 @@ import BASE_URL from '@/services/mes/api.js';
export default {
i18n: require("./i18n"),
i18n: require("../i18n"),
props: {
},
@ -80,7 +80,6 @@ export default {
],
//
searchFormItems: [ //
{ field: 'title', title: '标题', span: 5, itemRender: { name: '$input', props: { placeholder: '请输入仓位名称' } } },
{ span: 8, slots: { default: 'date' } }, //
{
align: 'right', span: 4, itemRender: { //
@ -133,7 +132,6 @@ export default {
//
// =============================== Start ===============================
{ title: '操作', slots: { default: 'op' }, width: 120 },
{ field: 'id' , slots: { default: 'column1' }, sortable: true, title: '查看详情', width: 100 }, //
{ field: 'product_detail.name', sortable: true, title: '料品名称', width: 250 }, //
{ field: 'in_type', sortable: true, title: '入库类型', width: 100 }, //
@ -180,14 +178,9 @@ export default {
});
},
//
stockOut(id) {
console.log("stockOut:"+id)
},
//
stockIn(id) {
console.log("stockIn:"+id)
LogDetail(id){
console.log("LogDetail:"+id)
this.$router.push('/MesStock/MesStockOutInLogDetail/'+id) //
},
},

View File

@ -9,7 +9,7 @@ import BASE_URL from '@/services/mes/api.js';
export default {
i18n: require('./i18n'),
i18n: require('../i18n'),
components: {},
props: {
pageMode: {
@ -60,7 +60,7 @@ export default {
uploadDefaultImg: null,
detailDataFieldName: "mes_unit",
detailDataFieldName: "product_stock_log",
actions: {
// =============================== Start ===============================
@ -170,7 +170,7 @@ export default {
};
pageData.actions.get = pageData.actions.MesStockDetail;
pageData.actions.get = pageData.actions.ProductStockLogDetail;
pageData.actions.create = pageData.actions.MesStockCreate;
pageData.actions.update = pageData.actions.MesStockUpdate;
//

View File

@ -9,7 +9,7 @@ import BASE_URL from '@/services/mes/api.js';
export default {
i18n: require('./i18n'),
i18n: require('../i18n'),
components: {},
props: {
pageMode: {
@ -60,7 +60,7 @@ export default {
uploadDefaultImg: null,
detailDataFieldName: "mes_unit",
detailDataFieldName: "product_stock_log",
actions: {
// =============================== Start ===============================
@ -151,12 +151,18 @@ export default {
{ field: 'stock_pos_id', title: '库位ID', span: 12, itemRender: { name: '$input' } },
{ field: 'product_id', title: '产品ID', span: 12, itemRender: { name: '$input' } },
{ field: 'stock', title: '入库数量', span: 12, itemRender: { name: '$input' } },
{ field: 'stock', title: '剩余库存数量', span: 12, itemRender: { name: '$input' } },
{ field: 'in_type', title: '入库类型', span: 12, itemRender: { name: '$input' } },
{ field: 'in_time', title: '入库时间', span: 12, itemRender: { name: '$input' } ,props: { type: "date" }},
{ field: 'in_user_id', title: '入库人员id', span: 12, itemRender: { name: '$input' } },
{ field: 'in_user_name', title: '入库人员姓名', span: 12, itemRender: { name: '$input' } },
{ field: 'in_stock', title: '入库数量', span: 12, itemRender: { name: '$input' } },
{ field: 'out_stock', title: '出库数量', span: 12, itemRender: { name: '$input' } },
{ field: 'out_time', title: '出库时间', span: 12, itemRender: { name: '$input' } ,props: { type: "date" }},
{ field: 'out_user_id', title: '出库人员id', span: 12, itemRender: { name: '$input' } },
{ field: 'out_user_name', title: '出库人员姓名', span: 12, itemRender: { name: '$input' } },
{ field: 'out_type', title: '出库类型', span: 12, itemRender: { name: '$input' } },
{ field: 'bill_date', title: '单据日期', span: 12, itemRender: { name: '$input' ,props: { type: "date" }} },
{ field: 'in_type', title: '入库类型', span: 12, itemRender: { name: '$input' } },
{ field: 'business_type', title: '业务类型', span: 12, itemRender: { name: '$input' } },
{ field: 'business_no', title: '业务单号', span: 12, itemRender: { name: '$input' } },
{ field: 'out_type', title: '出库类型', span: 12, itemRender: { name: '$input' } },
@ -174,6 +180,7 @@ export default {
{ field: 'contact', title: '联系人', span: 12, itemRender: { name: '$input' } },
{ field: 'phone', title: '联系电话', span: 12, itemRender: { name: '$input' } },
{ field: 'remark', title: '备注', span: 12, itemRender: { name: '$input' } },
{ field: 'stock', title: '剩余库存数量', span: 12, itemRender: { name: '$input' } },
@ -188,7 +195,7 @@ export default {
};
pageData.actions.get = pageData.actions.MesStockDetail;
pageData.actions.get = pageData.actions.ProductStockLogDetail;
pageData.actions.create = pageData.actions.MesStockCreate;
pageData.actions.update = pageData.actions.MesStockUpdate;
//

View File

@ -2,7 +2,7 @@
<basic-page-list :desc="desc" :options="pageOptions">
<template v-slot:column1="{ row }">
<a-button class="in" type="default" @click="stockIn(row.id)">查看详情</a-button>
<a-button class="in" type="default" @click="LogDetail(row.id)">查看详情</a-button>
</template>
</basic-page-list>
</template>
@ -12,7 +12,7 @@ import BASE_URL from '@/services/mes/api.js';
export default {
i18n: require("./i18n"),
i18n: require("../i18n"),
props: {
},
@ -80,7 +80,6 @@ export default {
],
//
searchFormItems: [ //
{ field: 'title', title: '标题', span: 5, itemRender: { name: '$input', props: { placeholder: '请输入仓位名称' } } },
{ span: 8, slots: { default: 'date' } }, //
{
align: 'right', span: 4, itemRender: { //
@ -133,7 +132,6 @@ export default {
//
// =============================== Start ===============================
{ title: '操作', slots: { default: 'op' }, width: 120 },
{ field: 'id' , slots: { default: 'column1' }, sortable: true, title: '查看详情', width: 100 }, //
{ field: 'product_detail.name', sortable: true, title: '料品名称', width: 250 }, //
{ field: 'out_type', sortable: true, title: '出库类型', width: 100 }, //
@ -180,14 +178,10 @@ export default {
});
},
//
stockOut(id) {
console.log("stockOut:"+id)
},
//
stockIn(id) {
console.log("stockIn:"+id)
LogDetail(id){
console.log("LogDetail:"+id)
this.$router.push('/MesStock/MesStockOutInLogDetail/'+id) //
},
},

View File

@ -8,7 +8,7 @@ import BASE_URL from '@/services/mes/api.js';
export default {
i18n: require('./i18n'),
i18n: require('../i18n'),
components: {},
props: {
pageMode: {
@ -52,9 +52,9 @@ export default {
// ID
currentBeid: 0,
addPageUrl: "/MesWarehouse/MesWarehousePositionAdd",
editPageUrl: "/MesWarehouse/MesWarehousePositionUpdate/",
listPageUrl: "/MesWarehouse/MesWarehousePositionList",
addPageUrl: "/MesStock/MesStockPositionAdd",
editPageUrl: "/MesStock/MesStockPositionUpdate/",
listPageUrl: "/MesStock/MesStockPositionList",
uploadDefaultImg: null,
@ -62,26 +62,23 @@ export default {
actions: {
// =============================== Start ===============================
MesWarehouseList: `${BASE_URL.BASE_URL}/MesWarehouse/v1/mes/warehouse/list`, //
MesWarehouseDetail: `${BASE_URL.BASE_URL}/MesWarehouse/v1/mes/warehouse/detail`, //
MesWarehouseCreate: `${BASE_URL.BASE_URL}/MesWarehouse/v1/mes/warehouse/create`, //
MesWarehouseUpdate: `${BASE_URL.BASE_URL}/MesWarehouse/v1/mes/warehouse/update`, //
MesWarehouseDelete: `${BASE_URL.BASE_URL}/MesWarehouse/v1/mes/warehouse/detele`, //
MesWarehouseBatchDelete: `${BASE_URL.BASE_URL}/MesWarehouse/v1/mes/warehouse/batchDelete`, //
MesWarehouseBatchUpdate: `${BASE_URL.BASE_URL}/MesWarehouse/v1/mes/warehouse/batchUpdate`, //
MesWarehouseBatchCreate: `${BASE_URL.BASE_URL}/MesWarehouse/v1/mes/warehouse/batchCreate`, //
MesWarehouseExportExcel: `${BASE_URL.BASE_URL}/MesWarehouse/v1/mes/warehouse/export/excel`, // EXCEL
MesWarehouseImportExcel: `${BASE_URL.BASE_URL}/MesWarehouse/v1/mes/warehouse/import/excel`, // EXCEL
WarehouseLocationList: `${BASE_URL.BASE_URL}/MesWarehouse/v1/warehouse/location/list`, //
WarehouseLocationDetail: `${BASE_URL.BASE_URL}/MesWarehouse/v1/warehouse/location/detail`, //
WarehouseLocationCreate: `${BASE_URL.BASE_URL}/MesWarehouse/v1/warehouse/location/create`, //
WarehouseLocationUpdate: `${BASE_URL.BASE_URL}/MesWarehouse/v1/warehouse/location/update`, //
WarehouseLocationDelete: `${BASE_URL.BASE_URL}/MesWarehouse/v1/warehouse/location/detele`, //
WarehouseLocationBatchDelete: `${BASE_URL.BASE_URL}/MesWarehouse/v1/warehouse/location/batchDelete`, //
WarehouseLocationBatchUpdate: `${BASE_URL.BASE_URL}/MesWarehouse/v1/warehouse/location/batchUpdate`, //
WarehouseLocationBatchCreate: `${BASE_URL.BASE_URL}/MesWarehouse/v1/warehouse/location/batchCreate`, //
WarehouseLocationExportExcel: `${BASE_URL.BASE_URL}/MesWarehouse/v1/warehouse/location/export/excel`, // EXCEL
WarehouseLocationImportExcel: `${BASE_URL.BASE_URL}/MesWarehouse/v1/warehouse/location/import/excel`, // EXCEL
MesStockList: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/list`, //
MesStockDetail: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/detail`, //
MesStockCreate: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/create`, //
MesStockUpdate: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/update`, //
MesStockDelete: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/detele`, //
MesStockBatchDelete: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/batchDelete`, //
ProductStockOut: `${BASE_URL.BASE_URL}/MesStock/v1/product/stock/out`, //
ProductStockIn: `${BASE_URL.BASE_URL}/MesStock/v1/product/stock/in`, //
MesStockPositionList: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/position/list`, //
MesStockPositionDetail: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/position/detail`, //
MesStockPositionCreate: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/position/create`, //
MesStockPositionUpdate: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/position/update`, //
MesStockPositionDelete: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/position/detele`, //
MesStockPositionBatchDelete: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/position/batchDelete`, //
MesStockPositionBatchUpdate: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/position/batchUpdate`, //
MesStockPositionBatchCreate: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/position/batchCreate`, //
MesStockPositionBatchHandle: `${BASE_URL.BASE_URL}/MesStock/v1/mes/stock/position/batchHandle`, //
// =============================== End ===============================
},
@ -168,9 +165,9 @@ export default {
};
pageData.actions.get = pageData.actions.MesWarehouseDetail;
pageData.actions.create = pageData.actions.MesWarehouseCreate;
pageData.actions.update = pageData.actions.MesWarehouseUpdate;
pageData.actions.get = pageData.actions.MesStockPositionDetail;
pageData.actions.create = pageData.actions.MesStockPositionCreate;
pageData.actions.update = pageData.actions.MesStockPositionUpdate;
//
pageData.formOptions = Object.assign({}, this.$mk.config.defaults.formOptions, pageData.formOptions);

View File

@ -2,8 +2,8 @@
<basic-page-list :desc="desc" :options="pageOptions">
<template v-slot:column1="{ row }">
<a-button class="in" type="primary" @click="stockIn(row.id)">入库</a-button>
<a-button class="out" @click="stockIn(row.id)">出库</a-button>
<a-button class="in" type="primary" @click="stockIn(row.stock_id)">入库</a-button>
<a-button class="out" @click="stockOut(row.stock_id)">出库</a-button>
</template>
@ -16,7 +16,7 @@ import BASE_URL from '@/services/mes/api.js';
export default {
i18n: require("./i18n"),
i18n: require("../i18n"),
props: {
},
@ -48,8 +48,8 @@ export default {
keyName: 'id', //
listFieldName: 'MesStockPosition',
addPageUrl: "/MesWarehouse/MesWarehousePositionAdd",
editPageUrl: "/MesWarehouse/MesWarehousePositionUpdate/",
addPageUrl: "/MesStock/MesStockPositionAdd",
editPageUrl: "/MesStock/MesStockPositionUpdate/",
//
actions: { // Api
@ -148,14 +148,16 @@ export default {
});
},
//
//
stockOut(id) {
console.log("stockOut:"+id)
this.$router.push('/MesStock/MesStockOut/'+id) //
},
//
stockIn(id) {
console.log("stockIn:"+id)
this.$router.push('/MesStock/MesStockIn/'+id) //
},
},

View File

@ -168,9 +168,9 @@ export default {
};
pageData.actions.get = pageData.actions.MesWarehouseDetail;
pageData.actions.create = pageData.actions.MesWarehouseCreate;
pageData.actions.update = pageData.actions.MesWarehouseUpdate;
pageData.actions.get = pageData.actions.WarehouseLocationDetail;
pageData.actions.create = pageData.actions.WarehouseLocationCreate;
pageData.actions.update = pageData.actions.WarehouseLocationUpdate;
//
pageData.formOptions = Object.assign({}, this.$mk.config.defaults.formOptions, pageData.formOptions);
@ -241,7 +241,10 @@ export default {
},
//
watch: {
// warehouse_id
'pageOptions.formOptions.data.warehouse_id': function (val) {
this.pageOptions.formOptions.data.warehouse_id = parseInt(val);
},
}
};

View File

@ -64,11 +64,14 @@ routerMap[FunName + 'Update']= {
}
};
routerMap[FunName + 'PositionList']= {
name: FunTitle,
icon: 'idcard',
path: `/${FunName}/${FunName}PositionList`,
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/PositionList`),
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/Position/PositionList`),
meta:{
page:{ cacheAble:false}
},
@ -77,11 +80,61 @@ routerMap[FunName + 'PositionList']= {
}
};
routerMap[FunName + 'PositionDetail']= {
name: FunTitle,
icon: 'idcard',
path: `/${FunName}/${FunName}PositionDetail/:id`,
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/Position/PositionEdit`),
meta:{
invisible: true,
page:{ cacheAble:false}
},
authority: {
permission: [],
}
};
routerMap[FunName + 'PositionUpdate']= {
name: FunTitle,
icon: 'idcard',
path: `/${FunName}/${FunName}PositionUpdate/:id`,
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/Position/PositionEdit`),
meta:{
invisible: true,
page:{ cacheAble:false}
},
authority: {
permission: [],
}
};
routerMap[FunName + 'PositionAdd']= {
name: FunTitle,
icon: 'idcard',
path: `/${FunName}/${FunName}PositionAdd/:id`,
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/Position/PositionEdit`),
meta:{
invisible: true,
page:{ cacheAble:false}
},
authority: {
permission: [],
}
};
routerMap[FunName + 'OutList']= {
name: FunTitle,
icon: 'idcard',
path: `/${FunName}/${FunName}OutLogList`,
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/OutList`),
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/OutIn/OutList`),
meta:{
page:{ cacheAble:false}
},
@ -93,7 +146,7 @@ routerMap[FunName + 'InList']= {
name: FunTitle,
icon: 'idcard',
path: `/${FunName}/${FunName}InLogList`,
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/InList`),
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/OutIn/InList`),
meta:{
page:{ cacheAble:false}
},
@ -102,11 +155,11 @@ routerMap[FunName + 'InList']= {
}
};
routerMap[FunName + 'LogDetail']= {
routerMap[FunName + 'Out']= {
name: FunTitle,
icon: 'idcard',
path: `/${FunName}/${FunName}LogDetail`,
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/LogDetail`),
path: `/${FunName}/${FunName}Out/:id`,
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/OutIn/LogEdit`),
meta:{
invisible: true,
page:{ cacheAble:false}
@ -115,6 +168,37 @@ routerMap[FunName + 'LogDetail']= {
permission: [],
}
};
routerMap[FunName + 'In']= {
name: FunTitle,
icon: 'idcard',
path: `/${FunName}/${FunName}In/:id`,
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/OutIn/LogEdit`),
meta:{
invisible: true,
page:{ cacheAble:false}
},
authority: {
permission: [],
}
};
routerMap[FunName + 'OutInLogDetail']= {
name: FunTitle,
icon: 'idcard',
path: `/${FunName}/${FunName}OutInLogDetail/:id`,
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/OutIn/LogDetail`),
meta:{
invisible: true,
page:{ cacheAble:false}
},
authority: {
permission: [],
}
};
InvisibleRouters.forEach(item => {