diff --git a/src/api/mes/md/batchconfig.js b/src/api/mes/md/batchconfig.js new file mode 100644 index 0000000..77eb4c4 --- /dev/null +++ b/src/api/mes/md/batchconfig.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询物料批次属性配置列表 +export function listBatchconfig(query) { + return request({ + url: '/mes/md/batchconfig/list', + method: 'get', + params: query + }) +} + +// 查询物料批次属性配置详细 +export function getBatchconfig(itemId) { + return request({ + url: '/mes/md/batchconfig/' + itemId, + method: 'get' + }) +} + +// 新增物料批次属性配置 +export function addBatchconfig(data) { + return request({ + url: '/mes/md/batchconfig', + method: 'post', + data: data + }) +} + +// 修改物料批次属性配置 +export function updateBatchconfig(data) { + return request({ + url: '/mes/md/batchconfig', + method: 'put', + data: data + }) +} + +// 删除物料批次属性配置 +export function delBatchconfig(configId) { + return request({ + url: '/mes/md/batchconfig/' + configId, + method: 'delete' + }) +} diff --git a/src/views/mes/md/mditem/components/batch.vue b/src/views/mes/md/mditem/components/batch.vue new file mode 100644 index 0000000..910528f --- /dev/null +++ b/src/views/mes/md/mditem/components/batch.vue @@ -0,0 +1,167 @@ + + + diff --git a/src/views/mes/md/mditem/index.vue b/src/views/mes/md/mditem/index.vue index a897d8e..f610359 100644 --- a/src/views/mes/md/mditem/index.vue +++ b/src/views/mes/md/mditem/index.vue @@ -340,7 +340,9 @@ - + + + @@ -402,10 +404,11 @@ import { getBarcodeUrl } from "@/api/mes/wm/barcode"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import BarcodeImg from "@/components/barcodeImg/index.vue" import printLabel from "@/components/printerLabel/index.vue" +import BatchConfig from "./components/batch.vue"; export default { name: "MdItem", dicts: ['sys_yes_no','mes_item_product'], - components: { Treeselect,ItemBom,SOPTab,SIPTab,BarcodeImg,printLabel }, + components: { Treeselect,ItemBom,SOPTab,SIPTab,BarcodeImg,printLabel, BatchConfig }, data() { return { // 遮罩层