This commit is contained in:
wangweidong 2025-10-31 08:50:43 +08:00
commit 1cc4e152bd
16 changed files with 1495 additions and 901 deletions

View File

@ -65,13 +65,13 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="身高" v-bind="validateInfos.height" id="EmployeesApplyForm-height" name="height"> <a-form-item label="身高(cm)" v-bind="validateInfos.height" id="EmployeesApplyForm-height" name="height">
<a-input-number v-model:value="formData.height" placeholder="请输入身高" style="width: 100%" disabled /> <a-input-number v-model:value="formData.height" placeholder="请输入身高" style="width: 100%" disabled />
<!-- <span>{{ formData.height }}cm</span> --> <!-- <span>{{ formData.height }}cm</span> -->
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="体重" v-bind="validateInfos.weight" id="EmployeesApplyForm-weight" name="weight"> <a-form-item label="体重(kg)" v-bind="validateInfos.weight" id="EmployeesApplyForm-weight" name="weight">
<a-input-number v-model:value="formData.weight" placeholder="请输入体重" style="width: 100%" disabled /> <a-input-number v-model:value="formData.weight" placeholder="请输入体重" style="width: 100%" disabled />
<!-- <span>{{ formData.weight }}kg</span> --> <!-- <span>{{ formData.weight }}kg</span> -->
</a-form-item> </a-form-item>
@ -153,7 +153,7 @@
</a-form> </a-form>
</template> </template>
</JFormContainer> </JFormContainer>
<JFormContainer> <JFormContainer :disabled="disabled">
<template #detail> <template #detail>
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol2" :wrapperCol="wrapperCol2" <a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol2" :wrapperCol="wrapperCol2"
name="EmployeesApplyForm"> name="EmployeesApplyForm">
@ -251,6 +251,13 @@
</a-tabs> </a-tabs>
</a-col> </a-col>
</a-row> </a-row>
</a-form>
</template>
</JFormContainer>
<JFormContainer :disabled="disabled">
<template #detail>
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol"
name="EmployeesApplyForm">
<a-row class="card-class"> <a-row class="card-class">
<a-col :span="24" style="border-bottom: 2px solid #f7f7f7; margin-bottom: 14px;"> <a-col :span="24" style="border-bottom: 2px solid #f7f7f7; margin-bottom: 14px;">
<div v-if="formData.applyType == 0"> <div v-if="formData.applyType == 0">

View File

@ -239,7 +239,9 @@ function handleChangeValidateStatus(record,checked) {
// console.log("🚀 ~ reload ~ list:", list.records) // console.log("🚀 ~ reload ~ list:", list.records)
defHttp.get({url: '/nuBaseInfo/nuBaseInfo/qyList',params:queryParam}).then(res => { defHttp.get({url: '/nuBaseInfo/nuBaseInfo/qyList',params:queryParam}).then(res => {
console.log("🌊 ~ reload ~ res1111111:", res)
console.log("🚀 ~ defHttp.get ~ res:", res) console.log("🚀 ~ defHttp.get ~ res:", res)
tableData.value = res.records; tableData.value = res.records;
}); });

View File

@ -197,4 +197,5 @@ export const applyObj = {
elderModifyStatus: '长者信息变更状态 1修改申请中 2通过 3驳回', elderModifyStatus: '长者信息变更状态 1修改申请中 2通过 3驳回',
elderModifyContent: '长者信息变更驳回原因', elderModifyContent: '长者信息变更驳回原因',
elderModifyId: '长者变更信息对应子表id nu_biz_elder_modify_info.id', elderModifyId: '长者变更信息对应子表id nu_biz_elder_modify_info.id',
guardianIdCardPositive:'监护人身份证正面',
}; };

View File

@ -4,8 +4,8 @@
<template #detail> <template #detail>
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" <a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol"
name="ElderInfoForm"> name="ElderInfoForm">
<a-row> <a-row class="card-class">
<a-col :span="24"> <a-col :span="24" style="border-bottom: 2px solid #f7f7f7; margin-bottom: 14px;">
<SectionDivider :title="'长者信息'" /> <SectionDivider :title="'长者信息'" />
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
@ -61,16 +61,19 @@
<span>{{ formData.houseAddress }}</span> <span>{{ formData.houseAddress }}</span>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="24"> </a-row>
<a-row class="card-class">
<a-col :span="24" style="border-bottom: 2px solid #f7f7f7; margin-bottom: 14px;">
<SectionDivider :title="'监护人信息'" /> <SectionDivider :title="'监护人信息'" />
</a-col> </a-col>
<a-col :span="24">
<a-col :span="12"> <a-col :span="12">
<a-form-item label="关系" v-bind="validateInfos.relationship" id="ElderInfoForm-relationship" <a-form-item label="身份证正面" v-bind="validateInfos.guardianIdCardPositive" id="ElderInfoForm-guardianIdCardPositive"
name="relationship"> name="guardianIdCardPositive">
<!-- <a-input v-model:value="formData.relationship" placeholder="请输入关系" allow-clear></a-input> --> <j-image-upload :fileMax="1" :value="opeMediaAddress + formData.guardianIdCardPositive"></j-image-upload>
<span>{{ formData.relationship }}</span>
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="姓名" v-bind="validateInfos.guardianName" id="ElderInfoForm-guardianName" <a-form-item label="姓名" v-bind="validateInfos.guardianName" id="ElderInfoForm-guardianName"
name="guardianName"> name="guardianName">
@ -78,6 +81,13 @@
<span>{{ formData.guardianName }}</span> <span>{{ formData.guardianName }}</span>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12">
<a-form-item label="关系" v-bind="validateInfos.relationship" id="ElderInfoForm-relationship"
name="relationship">
<!-- <a-input v-model:value="formData.relationship" placeholder="请输入关系" allow-clear></a-input> -->
<span>{{ formData.relationship }}</span>
</a-form-item>
</a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="身份证号" v-bind="validateInfos.guardianIdCard" id="ElderInfoForm-guardianIdCard" <a-form-item label="身份证号" v-bind="validateInfos.guardianIdCard" id="ElderInfoForm-guardianIdCard"
name="guardianIdCard"> name="guardianIdCard">
@ -106,7 +116,9 @@
<span>{{ formData.guardianWorkUnit }}</span> <span>{{ formData.guardianWorkUnit }}</span>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="24"> </a-row>
<a-row class="card-class">
<a-col :span="24" style="border-bottom: 2px solid #f7f7f7; margin-bottom: 14px;">
<SectionDivider :title="'长者身份证'" /> <SectionDivider :title="'长者身份证'" />
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
@ -192,6 +204,11 @@ const formData = reactive<Record<string, any>>({
issuingAuthority: '', issuingAuthority: '',
startTime: '', startTime: '',
endTime: '', endTime: '',
guardianBirthDate: '',
guardianSex: '',
guardianNational: '',
guardianCardHome: '',
guardianIdCardPositive: '',
}); });
const { createMessage } = useMessage(); const { createMessage } = useMessage();
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 8 } }); const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 8 } });
@ -311,4 +328,17 @@ defineExpose({
.antd-modal-form { .antd-modal-form {
// padding: 14px; // padding: 14px;
} }
.card-class {
padding-top: 24px;
padding-bottom: 24px;
padding-left: 14px;
padding-right: 14px;
// background-color: rgba(255, 255, 255, 0.9);
background-color: #fcfdff;
border-radius: 10px;
// box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 12px;
margin-bottom: 14px;
}
</style> </style>

View File

@ -38,7 +38,8 @@
</a-table> </a-table>
</a-col> </a-col>
</a-row> </a-row>
<a-form style="margin-top: 14px;height: 100px;" ref="formRef" layout="horizontal" :model="formData" :label-col="labelCol" :wrapper-col="wrapperCol"> <a-form style="margin-top: 14px;height: 100px;" ref="formRef" layout="horizontal" :model="formData"
:label-col="labelCol" :wrapper-col="wrapperCol">
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="12"> <a-col :span="12">
<a-form-item label="审核结果" name="status" v-bind="validateInfos.status"> <a-form-item label="审核结果" name="status" v-bind="validateInfos.status">
@ -156,6 +157,11 @@ const filteredTableData = computed(() => {
// && item.d1 !== 'elderModifyStatus' // && item.d1 !== 'elderModifyStatus'
// && item.d1 !== 'elderModifyContent' // && item.d1 !== 'elderModifyContent'
// && item.d1 !== 'elderModifyId' // && item.d1 !== 'elderModifyId'
&& item.d1 !== 'guardianBirthDate'
&& item.d1 !== 'guardianSex'
&& item.d1 !== 'guardianNational'
&& item.d1 !== 'guardianCardHome'
&& item.d1 !== 'guardianIdCardPositive'
); );
}); });

View File

@ -77,7 +77,7 @@ const { createMessage } = useMessage();
const labelCol = { span: 4 }; // const labelCol = { span: 4 }; //
const wrapperCol = { span: 18 }; // const wrapperCol = { span: 18 }; //
const isImg = (v_) => { const isImg = (v_) => {
return v_ == 'idCardPositive' || v_ == 'idCardNegative' || v_ == 'healthCertificatePositive' || v_ == 'bankPositive' || v_ == 'bankNegative' || v_ == 'qualification' || v_ == 'noCrimeCertificate' return v_ == 'guardianIdCardPositive' || v_ == 'idCardNegative' || v_ == 'healthCertificatePositive' || v_ == 'bankPositive' || v_ == 'bankNegative' || v_ == 'qualification' || v_ == 'noCrimeCertificate'
} }
const provinceOptions = ref({}) const provinceOptions = ref({})
const formData = reactive<Record<string, any>>({ const formData = reactive<Record<string, any>>({
@ -155,6 +155,10 @@ const filteredTableData = computed(() => {
&& item.d1 !== 'elderModifyStatus' && item.d1 !== 'elderModifyStatus'
&& item.d1 !== 'elderModifyContent' && item.d1 !== 'elderModifyContent'
&& item.d1 !== 'elderModifyId' && item.d1 !== 'elderModifyId'
&& item.d1 !== 'guardianBirthDate'
&& item.d1 !== 'guardianSex'
&& item.d1 !== 'guardianNational'
&& item.d1 !== 'guardianCardHome'
); );
}); });

View File

@ -143,6 +143,55 @@ export const columns3: BasicColumn[] = [
}, },
]; ];
export const columns4: BasicColumn[] = [
{
title: '物料',
align: "center",
dataIndex: 'materialName'
},
{
title: '物料编码',
align: "center",
dataIndex: 'materialNo'
},
{
title: '规格型号',
align: "center",
dataIndex: 'specificationModel'
},
{
title: '一级分类',
align: "center",
dataIndex: 'categoryId_dictText'
},
{
title: '二级分类',
align: "center",
dataIndex: 'typeId_dictText'
},
{
title: '三级分类',
align: "center",
dataIndex: 'medicationId_dictText'
},
{
title: '库存数量',
align: "center",
dataIndex: 'kcsl'
},
{
title: '物料上限',
align: "center",
dataIndex: 'upperLimit'
},
{
title: '物料下限',
align: "center",
dataIndex: 'lowerLimit'
},
];
//列表数据 //列表数据
export const ckcolumns: BasicColumn[] = [ export const ckcolumns: BasicColumn[] = [
{ {

View File

@ -67,7 +67,9 @@
<!--插槽:table标题--> <!--插槽:table标题-->
<template #tableTitle> <template #tableTitle>
<a-button type="primary" v-auth="'warehouseMaterialInfo:bl_warehouse_material_info:add'" @click="handleAdd" <a-button type="primary" v-auth="'warehouseMaterialInfo:bl_warehouse_material_info:add'" @click="handleAdd"
preIcon="ant-design:plus-outlined"> 选择物料</a-button> preIcon="ant-design:plus-outlined"> 添加物料</a-button>
<a-button type="primary" v-auth="'warehouseMaterialInfo:bl_warehouse_material_info:add'" @click="handleDel"
preIcon="ant-design:plus-outlined"> 移除物料</a-button>
</template> </template>
<!--操作栏--> <!--操作栏-->
<template #action="{ record }"> <template #action="{ record }">
@ -78,8 +80,10 @@
</BasicTable> </BasicTable>
<!-- 表单区域 --> <!-- 表单区域 -->
<BlWarehouseMaterialInfoModal ref="registerModal" @success="handleSuccess"></BlWarehouseMaterialInfoModal> <BlWarehouseMaterialInfoModal ref="registerModal" @success="handleSuccess"></BlWarehouseMaterialInfoModal>
<!-- 选择物料 --> <!-- 添加物料 -->
<CheckWuliaoModal ref="registerAddModal" @success="handleSuccess"></CheckWuliaoModal> <CheckWuliaoModal ref="registerAddModal" @success="handleSuccess"></CheckWuliaoModal>
<!-- 移除物料 -->
<DelWuliaoModal ref="registerDelModal" @success="handleSuccess"></DelWuliaoModal>
<!-- 出入库详情 --> <!-- 出入库详情 -->
<NuWarehouseMaterialCrkInfoListModal ref="registerCrkModal" @success="handleSuccess"> <NuWarehouseMaterialCrkInfoListModal ref="registerCrkModal" @success="handleSuccess">
</NuWarehouseMaterialCrkInfoListModal> </NuWarehouseMaterialCrkInfoListModal>
@ -95,20 +99,25 @@ import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './BlWa
import { downloadFile } from '/@/utils/common/renderUtils'; import { downloadFile } from '/@/utils/common/renderUtils';
import BlWarehouseMaterialInfoModal from './components/BlWarehouseMaterialInfoModal.vue' import BlWarehouseMaterialInfoModal from './components/BlWarehouseMaterialInfoModal.vue'
import CheckWuliaoModal from './components/CheckWuliaoModal.vue' import CheckWuliaoModal from './components/CheckWuliaoModal.vue'
import DelWuliaoModal from './components/DelWuliaoModal.vue'
import NuWarehouseMaterialCrkInfoListModal from '/@/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfoListModal.vue' import NuWarehouseMaterialCrkInfoListModal from '/@/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfoListModal.vue'
import { useUserStore } from '/@/store/modules/user'; import { useUserStore } from '/@/store/modules/user';
import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMultiple.vue'; import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMultiple.vue';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import { JInput } from '/@/components/Form'; import { JInput } from '/@/components/Form';
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";
const formRef = ref(); const formRef = ref();
const queryParam = reactive<any>({}); const queryParam = reactive<any>({});
const toggleSearchStatus = ref<boolean>(false); const toggleSearchStatus = ref<boolean>(false);
const registerModal = ref(); const registerModal = ref();
const registerAddModal = ref(); const registerAddModal = ref();
const registerDelModal = ref();
const registerCrkModal = ref(); const registerCrkModal = ref();
const userStore = useUserStore(); const userStore = useUserStore();
const { createConfirm } = useMessage();
//table //table
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
tableProps: { tableProps: {
@ -169,6 +178,14 @@ function handleAdd() {
registerAddModal.value.disableSubmit = false; registerAddModal.value.disableSubmit = false;
registerAddModal.value.edit(params); registerAddModal.value.edit(params);
} }
/**
* 新增事件
*/
function handleDel() {
var params = { nuId: queryParam.nuId }
registerDelModal.value.disableSubmit = false;
registerDelModal.value.edit(params);
}
/** /**
* 编辑事件 * 编辑事件
@ -245,10 +262,27 @@ function getTableAction(record) {
]; ];
} }
function handleQyty(record, izEnabled) { function handleQyty(record, izEnabled) {
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 => { defHttp.put({ url: '/invoicing/blWarehouseMaterialInfo/edit', params: { id: record.id, izEnabled: izEnabled } }).then(res => {
handleSuccess(); handleSuccess();
}); });
} }
});
}
/** /**

View File

@ -54,6 +54,9 @@
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import { JInput } from '/@/components/Form'; import { JInput } from '/@/components/Form';
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";
const { createConfirm , createMessage } = useMessage();
const formRef = ref(); const formRef = ref();
const queryParam = reactive<any>({areaFlag:'3'}); const queryParam = reactive<any>({areaFlag:'3'});
@ -151,11 +154,38 @@ import { defHttp } from '/@/utils/http/axios';
}, },
]; ];
} }
function handleQyty(record,izEnabled) { async function handleQyty(record,izEnabled) {
defHttp.put({ url: '/nuBaseInfo/nuBaseInfo/edit', params: { id: record.id,status:izEnabled} }).then(res => {
handleSuccess(); var title = "是否启用";
var content = "是否启用此仓库";
var sfjx = "0";
if(izEnabled == '5'){
title = "是否停用";
content = "是否停用此仓库";
await defHttp.get({ url: '/invoicing/blWarehouseMaterialInfo/sfkytyList', params: { nuId: record.nuId} }).then(res => {
console.log("🚀 ~ handleQyty ~ res:", res.total)
if(res.total > 0){
sfjx = "1";
}
}); });
} }
if(sfjx == '1'){
createMessage.error("此仓库下的物料库存不为零,请将物料的库存归零后再进行操作!");
return;
}
// 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();
// });
// }
// });
}
/** /**

View File

@ -210,10 +210,18 @@ import { defHttp } from '/@/utils/http/axios';
}) })
// emit('ok',selectedRows.value); // emit('ok',selectedRows.value);
} }
function submitAllForm() {
defHttp.post({url:'/invoicing/blWarehouseMaterialInfo/addAllWuliao',params:{nuId:formData.nuId}}).then(res=>{
console.log("🚀 ~ submitForm ~ res:", res)
emit('ok');
})
// emit('ok',selectedRows.value);
}
defineExpose({ defineExpose({
edit, edit,
submitForm, submitForm,
submitAllForm
}); });

View File

@ -4,7 +4,8 @@
<CheckWuliaoForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></CheckWuliaoForm> <CheckWuliaoForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></CheckWuliaoForm>
<template #footer> <template #footer>
<a-button type="primary" style="margin-right: 8px" @click="handleCancel">关闭</a-button> <a-button type="primary" style="margin-right: 8px" @click="handleCancel">关闭</a-button>
<a-button type="primary" @click="handleOk" v-if="!disableSubmit">确认</a-button> <a-button type="primary" style="margin-right: 8px" @click="handleAllOk" v-if="!disableSubmit">添加全部</a-button>
<a-button type="primary" @click="handleOk" v-if="!disableSubmit">添加</a-button>
</template> </template>
</a-drawer> </a-drawer>
</template> </template>
@ -37,7 +38,7 @@
* @param record * @param record
*/ */
function edit(record) { function edit(record) {
title.value = '选择物料'; title.value = '添加物料';
visible.value = true; visible.value = true;
nextTick(() => { nextTick(() => {
registerForm.value.edit(record); registerForm.value.edit(record);
@ -50,6 +51,12 @@
function handleOk() { function handleOk() {
registerForm.value.submitForm(); registerForm.value.submitForm();
} }
/**
* 确定按钮点击事件
*/
function handleAllOk() {
registerForm.value.submitAllForm();
}
/** /**
* form保存回调事件 * form保存回调事件

View File

@ -10,17 +10,17 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-item label="负责人" v-bind="validateInfos.fzr" id="BlWarehouseMaterialInfoForm-nuId" name="nuId" > <a-form-item label="负责人" v-bind="validateInfos.fzr" id="BlWarehouseMaterialInfoForm-fzr" name="fzr" >
<a-input v-model:value="formData.fzr" ></a-input> <a-input v-model:value="formData.fzr" ></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-item label="负责人电话" v-bind="validateInfos.fzrTel" id="BlWarehouseMaterialInfoForm-wlId" name="wlId" > <a-form-item label="负责人电话" v-bind="validateInfos.fzrTel" id="BlWarehouseMaterialInfoForm-fzrTel" name="fzrTel" >
<a-input v-model:value="formData.fzrTel" ></a-input> <a-input v-model:value="formData.fzrTel" ></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-item label="负责人头像" v-bind="validateInfos.fzrHeadPath" id="BlWarehouseMaterialInfoForm-upperLimit" name="upperLimit"> <a-form-item label="负责人头像" v-bind="validateInfos.fzrHeadPath" id="BlWarehouseMaterialInfoForm-fzrHeadPath" name="fzrHeadPath">
<j-image-upload :fileMax="1" text="无" v-model:value="formData.fzrHeadPath"></j-image-upload> <j-image-upload :fileMax="1" text="无" v-model:value="formData.fzrHeadPath"></j-image-upload>
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -65,6 +65,7 @@
// //
const validatorRules = reactive({ const validatorRules = reactive({
nuName: [{ required: true, message: '请输入库房名称!' },], nuName: [{ required: true, message: '请输入库房名称!' },],
fzrTel: [{ required: false, message: '请输入负责人电话!' },{ pattern: /^1[3456789]\d{9}$/, message: '手机号码格式有误', trigger: 'blur' }],
}); });
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false }); const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });

View File

@ -0,0 +1,254 @@
<template>
<div>
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
<a-row :gutter="24">
<a-col :lg="6">
<a-form-item name="paramWlxx">
<template #label><span title="物料信息">物料信息</span></template>
<a-input placeholder="请填写物料信息" v-model:value="queryParam.paramWlxx" allow-clear></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
<a-col :lg="6">
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
</a-col>
</span>
</a-col>
</a-row>
</a-form>
</div>
<!--引用表格-->
<BasicTable @register="registerTable" :rowSelection="rowSelection">
<!--插槽:table标题-->
<template #tableTitle>
</template>
<!--操作栏-->
<template #action="{ record }">
<TableAction :actions="getTableAction(record)"/>
</template>
<template v-slot:bodyCell="{ column, record, index, text }">
</template>
</BasicTable>
</div>
</template>
<script lang="ts" name="materialInfo-nuConfigMaterialInfo" setup>
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue';
import { BasicTable, useTable, TableAction } from '/@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { columns4 } from '../BlWarehouseMaterialInfo.data';
import { list, batchDelete } from '../BlWarehouseMaterialInfo.api';
import { downloadFile } from '/@/utils/common/renderUtils';
import { useUserStore } from '/@/store/modules/user';
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from '/@/hooks/web/useMessage';
const { createMessage,createConfirm } = useMessage();
const formRef = ref();
const queryParam = reactive<any>({});
const toggleSearchStatus = ref<boolean>(false);
const registerModal = ref();
const userStore = useUserStore();
const emit = defineEmits(['register', 'ok']);
const props = defineProps({
formDisabled: { type: Boolean, default: false },
formData: { type: Object, default: () => ({})},
formBpm: { type: Boolean, default: true }
});
//table
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
tableProps: {
title: 'nu_config_material_info',
api: list,
columns: columns4,
canResize:false,
useSearchForm: false,
immediate: false,
showActionColumn: false,
showTableSetting: false,
actionColumn: {
width: 120,
fixed: 'right',
},
beforeFetch: async (params) => {
return Object.assign(params, queryParam);
},
},
});
const formData = reactive<Record<string, any>>({
id: '',
nuId: '',
wlId: '',
upperLimit: '',
lowerLimit: '',
});
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys, selectedRows }] = tableContext;
const labelCol = reactive({
xs:24,
sm:4,
xl:6,
xxl:4
});
const wrapperCol = reactive({
xs: 24,
sm: 20,
});
/**
* 编辑事件
*/
function handleEdit(record: Recordable) {
registerModal.value.disableSubmit = false;
registerModal.value.edit(record);
}
/**
* 成功回调
*/
function handleSuccess() {
(selectedRowKeys.value = []) && reload();
}
/**
* 操作栏
*/
function getTableAction(record) {
return [
{
label: '编辑',
onClick: handleEdit.bind(null, record),
},
];
}
/**
* 查询
*/
function searchQuery() {
reload();
}
/**
* 重置
*/
function searchReset() {
formRef.value.resetFields();
selectedRowKeys.value = [];
//
reload();
}
async function edit(record) {
console.log("🚀 ~ edit ~ record:", record)
selectedRowKeys.value = [];
selectedRows.value = [];
nextTick(() => {
const tmpData = {};
Object.keys(formData).forEach((key) => {
if(record.hasOwnProperty(key)){
tmpData[key] = record[key]
}
})
//
Object.assign(formData, tmpData);
});
// var checkId = "";
// for(let item of record){
// checkId += item.id + ",";
// }
// if(checkId.length > 0){
// checkId = checkId.substring(0,checkId.length - 1);
// }
queryParam.nuId = formData.nuId;
reload();
}
function submitForm() {
var list = selectedRows.value;
if(list.length == 0){
createMessage.warning('请选择想要移除的物料!');
return;
}
var ids = "";
for(let item of list){
if(parseFloat(item.kcsl) == 0){
ids += item.id + ",";
}else{
createMessage.warning('库存数量大于0的物料不予移除,请重新选择!');
return;
}
}
if(ids.length == 0){
createMessage.warning('请选择想要移除的物料,库存数量大于0的物料不予移除');
return;
}
if(ids.length > 0){
ids = ids.substring(0,ids.length - 1);
}
createConfirm({
iconType: 'warning',
title: '确认删除',
content: '是否删除选中数据',
okText: '确认',
cancelText: '取消',
onOk: () => {
defHttp.get({url:'/invoicing/blWarehouseMaterialInfo/deleteBatch',params:{ids}}).then(res=>{
console.log("🚀 ~ submitForm ~ res:", res)
emit('ok');
})
}
});
// batchDelete(ids,emit('ok'))
// emit('ok',selectedRows.value);
}
function handleAllDel() {
defHttp.get({url:'/invoicing/blWarehouseMaterialInfo/deleteAllWuliao',params:{nuId:formData.nuId}}).then(res=>{
emit('ok');
})
}
defineExpose({
edit,
submitForm,
handleAllDel
});
</script>
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;
white-space: nowrap;
}
.query-group-cust{
min-width: 100px !important;
}
.query-group-split-cust{
width: 30px;
display: inline-block;
text-align: center
}
.ant-form-item:not(.ant-form-item-with-help){
margin-bottom: 16px;
height: 32px;
}
:deep(.ant-picker),:deep(.ant-input-number){
width: 100%;
}
}
</style>

View File

@ -0,0 +1,87 @@
<template>
<a-drawer :title="title" :width="width" v-model:visible="visible" :closable="true"
:footer-style="{ textAlign: 'right' }" @close="handleCancel">
<DelWuliaoForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></DelWuliaoForm>
<template #footer>
<a-button type="primary" style="margin-right: 8px" @click="handleCancel">关闭</a-button>
<a-button type="primary" style="margin-right: 8px" @click="handleAllDel" v-if="!disableSubmit">移除全部</a-button>
<a-button type="primary" @click="handleOk" v-if="!disableSubmit">移除</a-button>
</template>
</a-drawer>
</template>
<script lang="ts" setup>
import { ref, nextTick, defineExpose } from 'vue';
import DelWuliaoForm from './DelWuliaoForm.vue'
import JModal from '/@/components/Modal/src/JModal/JModal.vue';
const title = ref<string>('');
const width = ref<string>('80%');
const visible = ref<boolean>(false);
const disableSubmit = ref<boolean>(false);
const registerForm = ref();
const emit = defineEmits(['register', 'success']);
/**
* 新增
*/
function add() {
title.value = '新增';
visible.value = true;
nextTick(() => {
registerForm.value.add();
});
}
/**
* 编辑
* @param record
*/
function edit(record) {
title.value = '移除物料';
visible.value = true;
nextTick(() => {
registerForm.value.edit(record);
});
}
/**
* 确定按钮点击事件
*/
function handleOk() {
registerForm.value.submitForm();
}
function handleAllDel() {
registerForm.value.handleAllDel();
}
/**
* form保存回调事件
*/
function submitCallback(record) {
console.log("🚀 11111~ submitCallback ~ record:", record)
handleCancel();
emit('success',record);
}
/**
* 取消按钮回调事件
*/
function handleCancel() {
visible.value = false;
}
defineExpose({
add,
edit,
disableSubmit,
});
</script>
<style lang="less">
/**隐藏样式-modal确定按钮 */
.jee-hidden {
display: none !important;
}
</style>
<style lang="less" scoped></style>

View File

@ -500,58 +500,87 @@
.antd-modal-form { .antd-modal-form {
padding: 14px; padding: 14px;
} }
#video-container { #video-container {
padding: 0px 25px; padding: 0px 25px;
width: 600px; width: 600px;
height: 500px; height: 500px;
background: #1a1a1a; background: #1a1a1a;
} }
.buttonSpan { .buttonSpan {
display: inline-flex; align-items: flex-end; display: inline-flex;
align-items: flex-end;
margin-left: 20px; margin-left: 20px;
border: 1px solid #f6faff; border: 1px solid #f6faff;
padding: 5px 10px; padding: 5px 10px;
} }
.buttonSpan:hover { .buttonSpan:hover {
border: 1px solid #1ea0fa; border: 1px solid #1ea0fa;
color: #1ea0fa; color: #1ea0fa;
border-radius: 10px; border-radius: 10px;
cursor: pointer; cursor: pointer;
} }
.buttonImg { .buttonImg {
width:20px;margin-right:10px;vertical-align: bottom; width: 20px;
margin-right: 10px;
vertical-align: bottom;
} }
.fxjImgUp { .fxjImgUp {
width:50px;height: 50px; width: 50px;
margin-right:10px;vertical-align: bottom; height: 50px;
margin-right: 10px;
vertical-align: bottom;
cursor: pointer; cursor: pointer;
border-radius: 5px;transform: rotate(270deg); border-radius: 5px;
transform: rotate(270deg);
background: url('../../../../../assets/iot/fxj.png') center/contain no-repeat; background: url('../../../../../assets/iot/fxj.png') center/contain no-repeat;
} }
.fxjImgUp:hover { .fxjImgUp:hover {
background: url('../../../../../assets/iot/fxj_blue.png') center/contain no-repeat; background: url('../../../../../assets/iot/fxj_blue.png') center/contain no-repeat;
} }
.fxjImgLeft { .fxjImgLeft {
width:50px;height: 50px;margin-right:10px;vertical-align: bottom;transform: rotate(180deg); width: 50px;
height: 50px;
margin-right: 10px;
vertical-align: bottom;
transform: rotate(180deg);
cursor: pointer; cursor: pointer;
background: url('../../../../../assets/iot/fxj.png') center/contain no-repeat; background: url('../../../../../assets/iot/fxj.png') center/contain no-repeat;
} }
.fxjImgLeft:hover { .fxjImgLeft:hover {
background: url('../../../../../assets/iot/fxj_blue.png') center/contain no-repeat; background: url('../../../../../assets/iot/fxj_blue.png') center/contain no-repeat;
} }
.fxjImgDown { .fxjImgDown {
width:50px;height: 50px;margin-right:10px;vertical-align: bottom;transform: rotate(90deg); width: 50px;
height: 50px;
margin-right: 10px;
vertical-align: bottom;
transform: rotate(90deg);
cursor: pointer; cursor: pointer;
background: url('../../../../../assets/iot/fxj.png') center/contain no-repeat; background: url('../../../../../assets/iot/fxj.png') center/contain no-repeat;
} }
.fxjImgDown:hover { .fxjImgDown:hover {
background: url('../../../../../assets/iot/fxj_blue.png') center/contain no-repeat; background: url('../../../../../assets/iot/fxj_blue.png') center/contain no-repeat;
} }
.fxjImgRight { .fxjImgRight {
width:50px;height: 50px;margin-right:10px;vertical-align: bottom; width: 50px;
height: 50px;
margin-right: 10px;
vertical-align: bottom;
cursor: pointer; cursor: pointer;
background: url('../../../../../assets/iot/fxj.png') center/contain no-repeat; background: url('../../../../../assets/iot/fxj.png') center/contain no-repeat;
} }
.fxjImgRight:hover { .fxjImgRight:hover {
background: url('../../../../../assets/iot/fxj_blue.png') center/contain no-repeat; background: url('../../../../../assets/iot/fxj_blue.png') center/contain no-repeat;
} }
@ -563,52 +592,67 @@
width: 100px; width: 100px;
margin-top: 5px; margin-top: 5px;
} }
.selectDiv:hover { .selectDiv:hover {
border: 1px solid #a2a3a3; border: 1px solid #f4f5fa;
background: #a2a3a3; background: #f4f5fa;
color:white; color: #037FEA;
border-radius: 10px; border-radius: 10px;
cursor: pointer; cursor: pointer;
} }
.djImg { .djImg {
background: url('../../../../../assets/iot/monitor_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_1.png') left/contain no-repeat;
} }
.djImg:hover { .djImg:hover {
background: url('../../../../../assets/iot/monitor_1_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_1_1.png') left/contain no-repeat;
} }
.qxdImg { .qxdImg {
background: url('../../../../../assets/iot/monitor_5.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_5.png') left/contain no-repeat;
} }
.qxdImg:hover { .qxdImg:hover {
background: url('../../../../../assets/iot/monitor_5_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_5_1.png') left/contain no-repeat;
} }
.lzImg { .lzImg {
background: url('../../../../../assets/iot/monitor_4.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_4.png') left/contain no-repeat;
} }
.lzImg:hover { .lzImg:hover {
background: url('../../../../../assets/iot/monitor_4_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_4_1.png') left/contain no-repeat;
} }
.jtImg { .jtImg {
background: url('../../../../../assets/iot/monitor_3.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_3.png') left/contain no-repeat;
} }
.jtImg:hover { .jtImg:hover {
background: url('../../../../../assets/iot/monitor_3_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_3_1.png') left/contain no-repeat;
} }
.bjImg { .bjImg {
background: url('../../../../../assets/iot/monitor_8.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_8.png') left/contain no-repeat;
} }
.bjImg:hover { .bjImg:hover {
background: url('../../../../../assets/iot/monitor_8_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_8_1.png') left/contain no-repeat;
} }
.fpImg { .fpImg {
background: url('../../../../../assets/iot/monitor_6.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_6.png') left/contain no-repeat;
} }
.fpImg:hover { .fpImg:hover {
background: url('../../../../../assets/iot/monitor_6_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_6_1.png') left/contain no-repeat;
} }
.hmxzImg { .hmxzImg {
background: url('../../../../../assets/iot/monitor_7.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_7.png') left/contain no-repeat;
} }
.hmxzImg:hover { .hmxzImg:hover {
background: url('../../../../../assets/iot/monitor_7_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_7_1.png') left/contain no-repeat;
} }

View File

@ -3,7 +3,8 @@
<a-drawer :title="title" :width="width" v-model:visible="visible" :closable="true" <a-drawer :title="title" :width="width" v-model:visible="visible" :closable="true"
:footer-style="{ textAlign: 'right' }" @close="handleCancel"> :footer-style="{ textAlign: 'right' }" @close="handleCancel">
<div v-if="showCamera"> <div v-if="showCamera">
<CameraPreviewForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></CameraPreviewForm> <CameraPreviewForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false">
</CameraPreviewForm>
</div> </div>
@ -13,13 +14,18 @@
<a-col :span="20" style="text-align: center;margin-top: 15px;margin-bottom: 15px;"> <a-col :span="20" style="text-align: center;margin-top: 15px;margin-bottom: 15px;">
<!-- 对讲停止对讲 切换 --> <!-- 对讲停止对讲 切换 -->
<!-- <img src="../../../../../assets/iot/monitor_1.png" class="buttonImg"/> --> <!-- <img src="../../../../../assets/iot/monitor_1.png" class="buttonImg"/> -->
<span class="buttonSpan djImg" @click="startPhone" v-show="!izPhone"><span style="margin-left:30px;">对讲</span></span> <span class="buttonSpan djImg" @click="startPhone" v-show="!izPhone"><span
<span class="buttonSpan djImg" @click="stopPhone" v-show="izPhone"><span style="margin-left:30px;">结束</span></span> style="margin-left:30px;">对讲</span></span>
<span class="buttonSpan djImg" @click="stopPhone" v-show="izPhone"><span
style="margin-left:30px;">结束</span></span>
<!-- 流畅超清 切换 --> <!-- 流畅超清 切换 -->
<span class="buttonSpan qxdImg" @click="switchResolution"><span style="margin-left:30px;">{{ resolution }}</span></span> <span class="buttonSpan qxdImg" @click="switchResolution"><span style="margin-left:30px;">{{ resolution
}}</span></span>
<!-- 录制结束录制 切换 --> <!-- 录制结束录制 切换 -->
<span class="buttonSpan lzImg" @click="recordingStart" v-show="!izRecording"><span style="margin-left:30px;">录制</span></span> <span class="buttonSpan lzImg" @click="recordingStart" v-show="!izRecording"><span
<span class="buttonSpan lzImg" @click="recordingEnd" v-show="izRecording"><span style="margin-left:30px;">结束</span></span> style="margin-left:30px;">录制</span></span>
<span class="buttonSpan lzImg" @click="recordingEnd" v-show="izRecording"><span
style="margin-left:30px;">结束</span></span>
<span class="buttonSpan jtImg" @click="screenshot"><span style="margin-left:30px;">截图</span></span> <span class="buttonSpan jtImg" @click="screenshot"><span style="margin-left:30px;">截图</span></span>
<span class="buttonSpan bjImg" @click="manualAlarm"><span style="margin-left:30px;">报警</span></span> <span class="buttonSpan bjImg" @click="manualAlarm"><span style="margin-left:30px;">报警</span></span>
@ -375,63 +381,87 @@
<style lang="less" scoped> <style lang="less" scoped>
.selectDiv { .selectDiv {
text-align: center; text-align: center;
border: 1px solid #f6faff; border: 1px solid white;
padding: 3px 10px; padding: 3px 10px;
width: 100px; width: 100px;
margin-top: 5px; margin-top: 5px;
} }
.selectDiv:hover { .selectDiv:hover {
border: 1px solid #a2a3a3; border: 1px solid #f4f5fa;
background: #a2a3a3; background: #f4f5fa;
color:white; color: #037FEA;
border-radius: 10px; border-radius: 10px;
cursor: pointer; cursor: pointer;
} }
.buttonSpan { .buttonSpan {
display: inline-flex; display: inline-flex;
align-items: flex-end; align-items: flex-end;
margin-left: 20px; margin-left: 20px;
//border: 1px solid #f6faff;
padding: 6px 6px; padding: 6px 6px;
} }
.buttonSpan:hover {
//border: 1px solid #1ea0fa;
color: #1ea0fa;
border-radius: 10px;
cursor: pointer;
}
.djImg { .djImg {
background: url('../../../../../assets/iot/monitor_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_1.png') left/contain no-repeat;
} }
.djImg:hover { .djImg:hover {
background: url('../../../../../assets/iot/monitor_1_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_1_1.png') left/contain no-repeat;
} }
.qxdImg { .qxdImg {
background: url('../../../../../assets/iot/monitor_5.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_5.png') left/contain no-repeat;
} }
.qxdImg:hover { .qxdImg:hover {
background: url('../../../../../assets/iot/monitor_5_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_5_1.png') left/contain no-repeat;
} }
.lzImg { .lzImg {
background: url('../../../../../assets/iot/monitor_4.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_4.png') left/contain no-repeat;
} }
.lzImg:hover { .lzImg:hover {
background: url('../../../../../assets/iot/monitor_4_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_4_1.png') left/contain no-repeat;
} }
.jtImg { .jtImg {
background: url('../../../../../assets/iot/monitor_3.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_3.png') left/contain no-repeat;
} }
.jtImg:hover { .jtImg:hover {
background: url('../../../../../assets/iot/monitor_3_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_3_1.png') left/contain no-repeat;
} }
.bjImg { .bjImg {
background: url('../../../../../assets/iot/monitor_8.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_8.png') left/contain no-repeat;
} }
.bjImg:hover { .bjImg:hover {
background: url('../../../../../assets/iot/monitor_8_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_8_1.png') left/contain no-repeat;
} }
.fpImg { .fpImg {
background: url('../../../../../assets/iot/monitor_6.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_6.png') left/contain no-repeat;
} }
.fpImg:hover { .fpImg:hover {
background: url('../../../../../assets/iot/monitor_6_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_6_1.png') left/contain no-repeat;
} }
.hmxzImg { .hmxzImg {
background: url('../../../../../assets/iot/monitor_7.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_7.png') left/contain no-repeat;
} }
.hmxzImg:hover { .hmxzImg:hover {
background: url('../../../../../assets/iot/monitor_7_1.png') left/contain no-repeat; background: url('../../../../../assets/iot/monitor_7_1.png') left/contain no-repeat;
} }