修改库房启用停用给一个二次提醒

修改库房的物料启用停用给一个二次提醒
This commit is contained in:
yangjun 2025-10-29 16:47:22 +08:00
parent a3e239d887
commit 9aaa7a724e
2 changed files with 44 additions and 5 deletions

View File

@ -101,6 +101,8 @@ import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMult
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import { JInput } from '/@/components/Form';
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";
const formRef = ref();
const queryParam = reactive<any>({});
@ -109,6 +111,7 @@ const registerModal = ref();
const registerAddModal = ref();
const registerCrkModal = ref();
const userStore = useUserStore();
const { createConfirm } = useMessage();
//table
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
tableProps: {
@ -245,9 +248,26 @@ function getTableAction(record) {
];
}
function handleQyty(record, izEnabled) {
defHttp.put({ url: '/invoicing/blWarehouseMaterialInfo/edit', params: { id: record.id, izEnabled: izEnabled } }).then(res => {
handleSuccess();
});
var title = "是否启用";
var content = "是否启用此物料";
if(izEnabled == '1'){
title = "是否停用";
content = "是否停用此物料";
}
createConfirm({
iconType: 'warning',
title: title,
content: content,
okText: '确认',
cancelText: '取消',
onOk: () => {
defHttp.put({ url: '/invoicing/blWarehouseMaterialInfo/edit', params: { id: record.id, izEnabled: izEnabled } }).then(res => {
handleSuccess();
});
}
});
}

View File

@ -54,6 +54,9 @@
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import { JInput } from '/@/components/Form';
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";
const { createConfirm } = useMessage();
const formRef = ref();
const queryParam = reactive<any>({areaFlag:'3'});
@ -152,8 +155,24 @@ import { defHttp } from '/@/utils/http/axios';
];
}
function handleQyty(record,izEnabled) {
defHttp.put({ url: '/nuBaseInfo/nuBaseInfo/edit', params: { id: record.id,status:izEnabled} }).then(res => {
handleSuccess();
var title = "是否启用";
var content = "是否启用此仓库";
if(izEnabled == '5'){
title = "是否停用";
content = "是否停用此仓库";
}
createConfirm({
iconType: 'warning',
title: title,
content: content,
okText: '确认',
cancelText: '取消',
onOk: () => {
defHttp.put({ url: '/nuBaseInfo/nuBaseInfo/edit', params: { id: record.id,status:izEnabled} }).then(res => {
handleSuccess();
});
}
});
}