diff --git a/src/api/wmsManagement/wmGoodsNowProduction.js b/src/api/wmsManagement/wmGoodsNowProduction.js
index 40ebffb..498e80b 100644
--- a/src/api/wmsManagement/wmGoodsNowProduction.js
+++ b/src/api/wmsManagement/wmGoodsNowProduction.js
@@ -40,7 +40,7 @@ export function updateWmGoodsNowProduction(data) {
*/
export function getWmGoodsNowProduction(id) {
return request({
- url: 'business/WmGoodsNowProduction/' + id,
+ url: '/mes/wm/WmGoodsNowProduction/' + id,
method: 'get'
})
}
@@ -51,7 +51,7 @@ export function getWmGoodsNowProduction(id) {
*/
export function delWmGoodsNowProduction(pid) {
return request({
- url: 'business/WmGoodsNowProduction/' + pid,
+ url: '/mes/wm/WmGoodsNowProduction/' + pid,
method: 'delete'
})
}
diff --git a/src/views/wmsManagement/WmGoodsNowProduction.vue b/src/views/wmsManagement/WmGoodsNowProduction.vue
index 583fe3e..9bf11e0 100644
--- a/src/views/wmsManagement/WmGoodsNowProduction.vue
+++ b/src/views/wmsManagement/WmGoodsNowProduction.vue
@@ -7,378 +7,390 @@
* @LastEditTime: (2024-03-22)
-->
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+ this.form = {
+ ...data,
+ }
+ }
+ })
+ },
+ /** 提交按钮 */
+ submitForm: function () {
+ this.$refs['form'].validate((valid) => {
+ if (valid) {
+ console.log(JSON.stringify(this.form))
+
+ if (this.form.id != undefined && this.opertype === 2) {
+ updateWmGoodsNowProduction(this.form)
+ .then((res) => {
+ this.msgSuccess('修改成功')
+ this.open = false
+ this.getList()
+ })
+ .catch((err) => {
+ //TODO 错误逻辑
+ })
+ } else {
+ addWmGoodsNowProduction(this.form)
+ .then((res) => {
+ this.msgSuccess('新增成功')
+ this.open = false
+ this.getList()
+ })
+ .catch((err) => {
+ //TODO 错误逻辑
+ })
+ }
+ }
+ })
+ },
+ },
+}
+
diff --git a/src/views/wmsManagement/WmGoodsOutProduction.vue b/src/views/wmsManagement/WmGoodsOutProduction.vue
index 761b9cf..2097eb0 100644
--- a/src/views/wmsManagement/WmGoodsOutProduction.vue
+++ b/src/views/wmsManagement/WmGoodsOutProduction.vue
@@ -7,405 +7,411 @@
* @LastEditTime: (2024-03-22)
-->
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+ this.form = {
+ ...data,
+ }
+ }
+ })
+ },
+ /** 提交按钮 */
+ submitForm: function () {
+ this.$refs['form'].validate((valid) => {
+ if (valid) {
+ console.log(JSON.stringify(this.form))
+
+ if (this.form.id != undefined && this.opertype === 2) {
+ updateWmGoodsOutProduction(this.form)
+ .then((res) => {
+ this.msgSuccess('修改成功')
+ this.open = false
+ this.getList()
+ })
+ .catch((err) => {
+ //TODO 错误逻辑
+ })
+ } else {
+ addWmGoodsOutProduction(this.form)
+ .then((res) => {
+ this.msgSuccess('新增成功')
+ this.open = false
+ this.getList()
+ })
+ .catch((err) => {
+ //TODO 错误逻辑
+ })
+ }
+ }
+ })
+ },
+ },
+}
+