Commit ef25453b by 王宝涛

feat(ccbg): 添加拍照取证字段并优化入库功能配置

- 在CcbgModel模型中添加psqzp拍照取证字段
- 将数值输入框的最大值限制从100调整为无限制
- 更新入库按钮配置,修改按钮类型为模态框显示
- 移除入库功能的相关事件处理函数
- 清理组件中的多余代码和注释
parent 15ae362b
...@@ -128,6 +128,8 @@ export interface MesCheliangBgModel { ...@@ -128,6 +128,8 @@ export interface MesCheliangBgModel {
wlzt: string; wlzt: string;
psqzp: string;
bz: string; bz: string;
createDate: string; createDate: string;
......
...@@ -764,7 +764,7 @@ export const formProps: FormProps = { ...@@ -764,7 +764,7 @@ export const formProps: FormProps = {
span: 7, span: 7,
defaultValue: '', defaultValue: '',
min: 0, min: 0,
max: 100, max: null,
step: 1, step: 1,
disabled: false, disabled: false,
showLabel: true, showLabel: true,
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
//展示在列表内的按钮 //展示在列表内的按钮
const actionButtons = ref<string[]>(["view","inWarehouse","delete"]); const actionButtons = ref<string[]>(["view","inWarehouse","delete"]);
const buttonConfigs = computed(()=>{ const buttonConfigs = computed(()=>{
const list = [{"buttonId":"2018972431831822336","name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true,"isUse":true},{"buttonId":"2018972431831822337","name":"新增","code":"add","icon":"ant-design:plus-outlined","isDefault":true,"isUse":true},{"isUse":true,"name":"入库","code":"inWarehouse","icon":"ant-design:home-twotone","isDefault":false,"setting":[],"showType":"inline","buttonType":"primary"},{"buttonId":"2018972431831822339","name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true,"isUse":true}] const list = [{"buttonId":"2018972431831822336","name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true,"isUse":true},{"buttonId":"2018972431831822337","name":"新增","code":"add","icon":"ant-design:plus-outlined","isDefault":true,"isUse":true},{"buttonId":"2019669737161912320","name":"入库","code":"inWarehouse","icon":"ant-design:home-twotone","isDefault":false,"isUse":true,"setting":[],"showType":"inline","buttonType":"modal"},{"buttonId":"2018972431831822339","name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true,"isUse":true}]
return filterButtonAuth(list); return filterButtonAuth(list);
}) })
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
return buttonConfigs.value?.filter((x) => actionButtons.value.includes(x.code)); return buttonConfigs.value?.filter((x) => actionButtons.value.includes(x.code));
}); });
const btnEvent = {view : handleView,add : handleAdd,delete : handleDelete, inWarehouse : handleInWarehouse} const btnEvent = {view : handleView,add : handleAdd,delete : handleDelete,}
const { currentRoute } = useRouter(); const { currentRoute } = useRouter();
...@@ -234,13 +234,7 @@ ...@@ -234,13 +234,7 @@
} }
function handleInWarehouse(record: Recordable) {
console.log('handleInWarehouse');
console.log(record);
// openModal(true, { isUpdate: true, record, });
}
...@@ -385,4 +379,4 @@ ...@@ -385,4 +379,4 @@
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment