diff --git a/src/views/biz/nuBaseInfo/QyxxList.vue b/src/views/biz/nuBaseInfo/QyxxList.vue index e0da396..2626dc8 100644 --- a/src/views/biz/nuBaseInfo/QyxxList.vue +++ b/src/views/biz/nuBaseInfo/QyxxList.vue @@ -95,6 +95,8 @@ + + @@ -102,6 +104,7 @@ import { ref, reactive, onMounted } from 'vue'; import { saveOrUpdate, hldyQyty } from './NuBaseInfo.api'; import NuBaseInfoModal from './components/NuBaseInfoModal.vue' + import NuBaseInfoJcfyModal from './components/NuBaseInfoJcfyModal.vue' import NuBaseInfoAddModal from './components/NuBaseInfoAddModal.vue' // import BaseWlsbListModal from './components/BaseWlsbListModal.vue' import BaseWlsbListModal from '/@/views/biz/nuBaseInfo/devicesBind/DevicesModal.vue' @@ -138,6 +141,7 @@ const { createMessage } = useMessage(); const registerModal = ref(); const registerAddModal = ref(); const qyghModal = ref(); + const jcfyModal = ref(); const labelCol = reactive({ xs:24, sm:6, @@ -172,7 +176,8 @@ const { createMessage } = useMessage(); } function handleJcfy(record) { - alert("开发中"); + jcfyModal.value.disableSubmit = false; + jcfyModal.value.edit(record); } //查看物联设备 diff --git a/src/views/biz/nuBaseInfo/components/NuBaseInfoJcfyForm.vue b/src/views/biz/nuBaseInfo/components/NuBaseInfoJcfyForm.vue new file mode 100644 index 0000000..74705c0 --- /dev/null +++ b/src/views/biz/nuBaseInfo/components/NuBaseInfoJcfyForm.vue @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + + 一、计费周期:基础服务费按自然月核算,每月统一按照 30 天标准计算,执行月度固定收费标准。 + 二、计费起算:自长者实际入住当日起正式开始计费。 + 三、时长核算:计费最小单位为小时。入住时长不足半小时,免收当期时段费用;入住时长超过半小时且不足一小时,统一按照 1 小时标准计费。 + 四、基础费用仅对长者入住区域(护理单元)有效。 + + + + + + + + + + + + diff --git a/src/views/biz/nuBaseInfo/components/NuBaseInfoJcfyModal.vue b/src/views/biz/nuBaseInfo/components/NuBaseInfoJcfyModal.vue new file mode 100644 index 0000000..e5180c8 --- /dev/null +++ b/src/views/biz/nuBaseInfo/components/NuBaseInfoJcfyModal.vue @@ -0,0 +1,84 @@ + + + + + + 关闭 + 确认 + + + + + + + + + diff --git a/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfo.api.ts b/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfo.api.ts index f880a79..4d3249a 100644 --- a/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfo.api.ts +++ b/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfo.api.ts @@ -16,6 +16,7 @@ enum Api { getConfiguredList = '/invoicing/configMaterialInfo/getConfiguredList', getCkWlList = '/api/pad/invoicing/getCkWlList', editXsjg='/api/pad/invoicing/editXsjg', + savePddInfo='/api/pad/invoicing/savePddInfo', } /** @@ -99,4 +100,7 @@ export const editFzr = (params, isUpdate) => { } export const editXsjg = (params, isUpdate) => { return defHttp.post({ url: Api.editXsjg, params }, { isTransformResponse: false }); +} +export const savePddInfo = (params, isUpdate) => { + return defHttp.post({ url: Api.savePddInfo, params }, { isTransformResponse: false }); } \ No newline at end of file diff --git a/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfoList.vue b/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfoList.vue index 4dac92d..b8de132 100644 --- a/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfoList.vue +++ b/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfoList.vue @@ -19,35 +19,6 @@ - @@ -65,10 +36,6 @@ - @@ -77,12 +44,6 @@ - - - - - - @@ -90,6 +51,8 @@ + + @@ -97,18 +60,13 @@ import { ref, reactive } from 'vue'; import { BasicTable, useTable, TableAction } from '/@/components/Table'; import { useListPage } from '/@/hooks/system/useListPage'; -import { columns, superQuerySchema } from './BlWarehouseMaterialInfo.data'; -import { getCkWlList, deleteOne, batchDelete } from './BlWarehouseMaterialInfo.api'; -import { downloadFile } from '/@/utils/common/renderUtils'; -import BlWarehouseMaterialInfoModal from './components/BlWarehouseMaterialInfoModal.vue' -import CheckWuliaoModal from './components/CheckWuliaoModal.vue' -import DelWuliaoModal from './components/DelWuliaoModal.vue' +import { columns } from './BlWarehouseMaterialInfo.data'; +import { getCkWlList } from './BlWarehouseMaterialInfo.api'; import NuWarehouseMaterialCrkInfoListModal from '/@/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfoListModal.vue' import BlWarehouseXsjgModal from '/@/views/invoicing/warehouseMaterialInfo/components/BlWarehouseXsjgModal.vue' +import BlWarehouseMaterialInfoModal from '/@/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoModal.vue' import { useUserStore } from '/@/store/modules/user'; -import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMultiple.vue'; 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"; @@ -116,12 +74,9 @@ import { useMessage } from "/@/hooks/web/useMessage"; const formRef = ref(); const queryParam = reactive({}); const nuId = ref(''); -const toggleSearchStatus = ref(false); -const registerModal = ref(); -const registerAddModal = ref(); -const registerDelModal = ref(); const registerCrkModal = ref(); const xsjgModal = ref(); +const pddModal = ref(); const userStore = useUserStore(); const { createConfirm, createMessage} = useMessage(); //注册table数据 @@ -154,17 +109,6 @@ const wrapperCol = reactive({ sm: 18, }); -// 出入库记录 -function handleCrkjl(record: Recordable) { - registerCrkModal.value.disableSubmit = true; - registerCrkModal.value.init(record); -} - -function handleXsjg(record: Recordable) { - xsjgModal.value.disableSubmit = false; - xsjgModal.value.edit(record); -} - /** * 成功回调 */ @@ -179,7 +123,7 @@ function getTableAction(record) { return [ { label: '盘点', - onClick: handleCrkjl.bind(null, record), + onClick: handlePdd.bind(null, record), }, { label: '出入库', @@ -191,47 +135,23 @@ function getTableAction(record) { }, ]; } -async function handleQyty(record, izEnabled) { - var kcsl = record.kcsl; - var sfjx = "0"; - if(parseInt(kcsl) > 0 && izEnabled == 'N'){ - createMessage.error("此物料有库存,请先清空库存后再停用"); - return; - }else if(parseInt(kcsl) == 0){ - //校验物料是否有对应的占用信息 - await defHttp.get({ url: '/invoicing/blWarehouseMaterialInfo/queryWlsfzy', params: { wlId: record.wlId,nuId:record.nuId } }).then(res => { - console.log("🚀 ~ handleQyty ~ res:", res) - if(!res.success){ - createMessage.error(res.message); - sfjx = "1"; - } - - }); - } - if(sfjx == '1'){ - return; - } - var title = "是否启用"; - var content = "是否启用此物料"; - if(izEnabled == 'N'){ - 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(); - }); - } - }); - + +//盘点 +function handlePdd(record) { + pddModal.value.disableSubmit = false; + pddModal.value.edit(record); } +//出入库记录 +function handleCrkjl(record: Recordable) { + registerCrkModal.value.disableSubmit = true; + registerCrkModal.value.init(record); +} +//销售价格 +function handleXsjg(record: Recordable) { + xsjgModal.value.disableSubmit = false; + xsjgModal.value.edit(record); +} /** * 查询 @@ -258,27 +178,6 @@ function init(record) { reload(); } -function handleSearch(data, izReload = true) { - console.log("🚀 ~ handleSearch ~ data:", data) - var levle = parseInt(data.levle) - if (levle == 1) { - queryParam.categoryId = data.key - queryParam.typeId = '' - queryParam.medicationId = '' - } else if (levle == 2) { - queryParam.categoryId = data.categoryId - queryParam.typeId = data.key - queryParam.medicationId = '' - } else if (levle == 3) { - queryParam.categoryId = data.categoryId - queryParam.typeId = data.typeId - queryParam.medicationId = data.key - } - if (izReload) { - reload(); - } -} - defineExpose({ init, }); diff --git a/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoForm.vue b/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoForm.vue index bcf6ed0..2bd8de1 100644 --- a/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoForm.vue +++ b/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoForm.vue @@ -4,24 +4,88 @@ - - - + + + + - - - + + + - - - + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 正常 + 盘盈 + 盘亏 + + + + + + + + + + + + + + + + + + + + + + + @@ -35,10 +99,8 @@ import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue'; import { defHttp } from '/@/utils/http/axios'; import { useMessage } from '/@/hooks/web/useMessage'; - import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; - import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMultiple.vue'; import { getValueType } from '/@/utils'; - import { saveOrUpdate } from '../BlWarehouseMaterialInfo.api'; + import { savePddInfo } from '../BlWarehouseMaterialInfo.api'; import { Form } from 'ant-design-vue'; import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue'; const props = defineProps({ @@ -52,11 +114,25 @@ const formData = reactive>({ id: '', nuId: '', - wlId: '', - upperLimit: '', - lowerLimit: '', - wlId_dictText:'', - nuId_dictText:'', + wlId: '', + materialName: '', + materialNo: '', + specificationModel: '', + brandType: '', + manufacturer: '', + suppliersId: '', + suppliersName: '', + dqkcsl: '', + materialImg: '', + categoryName: '', + typeName: '', + cesl: '', + pdsl: '', + content: '', + picPath: '', + pdType: '', + xsjg: '', + ckId: '', }); const { createMessage } = useMessage(); const labelCol = ref({ xs: { span: 24 }, sm: { span: 5 } }); @@ -64,8 +140,7 @@ const confirmLoading = ref(false); //表单验证 const validatorRules = reactive({ - upperLimit: [{ required: true, message: '请输入物料上限!' },], - lowerLimit: [{ required: true, message: '请输入物料下限!' },], + pdsl: [{ required: true, message: '请输入盘点数量' },], }); const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false }); @@ -92,20 +167,33 @@ /** * 编辑 */ - function edit(record) { + function edit(record) { nextTick(() => { resetFields(); - const tmpData = {}; - Object.keys(formData).forEach((key) => { - if(record.hasOwnProperty(key)){ - tmpData[key] = record[key] - } + defHttp.get({ url: '/api/pad/invoicing/generatedPddInfo', params: { id: record.id } }).then((res) => { + //赋值 + Object.assign(formData, res); }) - //赋值 - Object.assign(formData, tmpData); }); } + function handlePdslChange(e){ + console.log("🚀 ~ handlePdslChange ~ e:", e) + if(e == null || e == '' || e == undefined){ + formData.pdType = '' + formData.cesl = '' + return; + } + formData.cesl = e - formData.dqkcsl; + if(formData.cesl>0){ + formData.pdType = '1' + }else if(formData.cesl<0){ + formData.pdType = '2' + }else{ + formData.pdType = '' + } + } + /** * 提交数据 */ @@ -140,10 +228,10 @@ } } } - await saveOrUpdate(model, isUpdate.value) + await savePddInfo(model, isUpdate.value) .then((res) => { if (res.success) { - createMessage.success(res.message); + createMessage.success("操作成功"); emit('ok'); } else { createMessage.warning(res.message);
一、计费周期:基础服务费按自然月核算,每月统一按照 30 天标准计算,执行月度固定收费标准。
二、计费起算:自长者实际入住当日起正式开始计费。
三、时长核算:计费最小单位为小时。入住时长不足半小时,免收当期时段费用;入住时长超过半小时且不足一小时,统一按照 1 小时标准计费。
四、基础费用仅对长者入住区域(护理单元)有效。