From 3b771121444a2a10ce593d64fccf0dc7f89c00ae Mon Sep 17 00:00:00 2001 From: mengjiao <3338049200@qq,com> Date: Mon, 28 Aug 2023 11:00:06 +0800 Subject: [PATCH] =?UTF-8?q?wms=E9=83=A8=E5=88=86=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BB=A3=E7=A0=811.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/wmsEmbryoin.js | 44 +++ src/views/wms/chargeorder/index.vue | 42 ++- src/views/wms/wmsEmbryoin/index.vue | 480 ++++++++++++++++++++++++++++ 3 files changed, 555 insertions(+), 11 deletions(-) create mode 100644 src/api/wms/wmsEmbryoin.js create mode 100644 src/views/wms/wmsEmbryoin/index.vue diff --git a/src/api/wms/wmsEmbryoin.js b/src/api/wms/wmsEmbryoin.js new file mode 100644 index 00000000..d0b29bba --- /dev/null +++ b/src/api/wms/wmsEmbryoin.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询白胚入库单列表 +export function listWmsEmbryoin(query) { + return request({ + url: '/wms/wmsEmbryoin/list', + method: 'get', + params: query + }); +} + +// 查询白胚入库单详细 +export function getWmsEmbryoin(ID) { + return request({ + url: '/wms/wmsEmbryoin/' + ID, + method: 'get' + }); +} + +// 新增白胚入库单 +export function addWmsEmbryoin(data) { + return request({ + url: '/wms/wmsEmbryoin', + method: 'post', + data: data + }); +} + +// 修改白胚入库单 +export function updateWmsEmbryoin(data) { + return request({ + url: '/wms/wmsEmbryoin', + method: 'put', + data: data + }); +} + +// 删除白胚入库单 +export function delWmsEmbryoin(ID) { + return request({ + url: '/wms/wmsEmbryoin/' + ID, + method: 'delete' + }); +} diff --git a/src/views/wms/chargeorder/index.vue b/src/views/wms/chargeorder/index.vue index a92090ee..364277b6 100644 --- a/src/views/wms/chargeorder/index.vue +++ b/src/views/wms/chargeorder/index.vue @@ -83,13 +83,13 @@ - + < - + @@ -136,7 +136,7 @@ @@ -183,7 +183,7 @@ export default { materialDesc: null, planDate: null, planNumber: null, - Unit: null, + unit: null, realityNumber: null, orderStatus: null, userDefined1: null, @@ -254,13 +254,13 @@ export default { reset() { this.form = { siteCode: null, - ID: null, + id: null, orderCode: null, materialCode: null, materialDesc: null, planDate: null, planNumber: null, - Unit: null, + unit: null, realityNumber: null, orderStatus: null, userDefined1: null, @@ -299,10 +299,11 @@ export default { }, // 多选框选中数据 handleSelectionChange(selection) { - this.ids = selection.map(item => item.ID) + this.ids = selection.map(item => item.id) this.single = selection.length!==1 this.multiple = !selection.length }, + /** 新增按钮操作 */ handleAdd() { this.reset(); @@ -312,18 +313,37 @@ export default { /** 修改按钮操作 */ handleUpdate(row) { this.reset(); - const ID = row.ID || this.ids - getChargeorder(ID).then(response => { + const id = row.id || this.ids + getChargeorder(id).then(response => { this.form = response.data; this.open = true; this.title = "修改粉料配料"; }); }, + open() { + this.$prompt('请输入邮箱', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + inputPattern: /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/, + inputErrorMessage: '邮箱格式不正确' + }).then(({ value }) => { + this.$message({ + type: 'success', + message: '你的邮箱是: ' + value + }); + }).catch(() => { + this.$message({ + type: 'info', + message: '取消输入' + }); + }); + }, + /** 提交按钮 */ submitForm() { this.$refs["form"].validate(valid => { if (valid) { - if (this.form.ID != null) { + if (this.form.id != null) { updateChargeorder(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false; @@ -341,7 +361,7 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - const IDs = row.ID || this.ids; + const IDs = row.id || this.ids; this.$modal.confirm('是否确认删除粉料配料编号为"' + IDs + '"的数据项?').then(function() { return delChargeorder(IDs); }).then(() => { diff --git a/src/views/wms/wmsEmbryoin/index.vue b/src/views/wms/wmsEmbryoin/index.vue new file mode 100644 index 00000000..7be8836e --- /dev/null +++ b/src/views/wms/wmsEmbryoin/index.vue @@ -0,0 +1,480 @@ + + +