修改bug
This commit is contained in:
parent
b44b9ccf19
commit
ae3b66495a
|
|
@ -142,7 +142,7 @@ import { defHttp } from '/@/utils/http/axios';
|
|||
}
|
||||
|
||||
function init(record) {
|
||||
console.log("🚀 ~ init ~ record:", record)
|
||||
selectedRowKeys.value = [];
|
||||
reload();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,7 +116,8 @@
|
|||
}
|
||||
|
||||
function init(record) {
|
||||
console.log("🚀 ~ init ~ record:", record)
|
||||
console.log("🚀 ~ init123 ~ record:", record)
|
||||
queryParam.materialName = null;
|
||||
suppliersId.value = record.id;
|
||||
queryParam.suppliersId = record.id;
|
||||
queryParam.suppliersName = record.suppliersName;
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@
|
|||
</BasicTable>
|
||||
<!-- 表单区域 -->
|
||||
<NuBizSuppliersListModal ref="registerModal" @success="handleSuccess"></NuBizSuppliersListModal>
|
||||
<NuBizSuppliersMateriallInfoModal ref="wlRegisterModal" @success="handleSuccess"></NuBizSuppliersMateriallInfoModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -59,6 +60,7 @@
|
|||
import { columns, superQuerySchema } from './ConfigSuppliersInfo.data';
|
||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './ConfigSuppliersInfo.api';
|
||||
import NuBizSuppliersListModal from '/@/views/invoicing/bizSuppliers/NuBizSuppliersListModal.vue'
|
||||
import NuBizSuppliersMateriallInfoModal from '/@/views/invoicing/bizSuppliers/NuBizSuppliersMateriallInfoModal.vue'
|
||||
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
|
|
@ -71,6 +73,7 @@
|
|||
const queryParam = reactive<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const wlRegisterModal = ref();
|
||||
const userStore = useUserStore();
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
|
|
@ -110,54 +113,22 @@
|
|||
sm: 20,
|
||||
});
|
||||
|
||||
// 高级查询配置
|
||||
const superQueryConfig = reactive(superQuerySchema);
|
||||
|
||||
/**
|
||||
* 高级查询事件
|
||||
*/
|
||||
function handleSuperQuery(params) {
|
||||
Object.keys(params).map((k) => {
|
||||
queryParam[k] = params[k];
|
||||
});
|
||||
searchQuery();
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增事件
|
||||
*/
|
||||
function handleAdd() {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.add();
|
||||
}
|
||||
|
||||
function handleCheckAdd() {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.checkAdd();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑事件
|
||||
*/
|
||||
function handleEdit(record: Recordable) {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
function handleDetail(record: Recordable) {
|
||||
registerModal.value.disableSubmit = true;
|
||||
registerModal.value.edit(record);
|
||||
wlRegisterModal.value.disableSubmit = true;
|
||||
wlRegisterModal.value.edit(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除事件
|
||||
*/
|
||||
async function handleDelete(record) {
|
||||
await deleteOne({ id: record.id }, handleSuccess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功回调
|
||||
|
|
@ -171,25 +142,10 @@
|
|||
*/
|
||||
function getTableAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '编辑',
|
||||
onClick: handleEdit.bind(null, record),
|
||||
auth: 'configSuppliersInfo:config_suppliers_info:edit',
|
||||
ifShow: record.sourceType == '1'
|
||||
},
|
||||
{
|
||||
label: '详情',
|
||||
label: '物料详情',
|
||||
onClick: handleDetail.bind(null, record),
|
||||
},
|
||||
// {
|
||||
// label: '删除',
|
||||
// popConfirm: {
|
||||
// title: '是否确认删除',
|
||||
// confirm: handleDelete.bind(null, record),
|
||||
// placement: 'topLeft',
|
||||
// },
|
||||
// auth: 'configSuppliersInfo:config_suppliers_info:delete'
|
||||
// }
|
||||
{
|
||||
label: '启用',
|
||||
onClick: handleWlQyty.bind(null, record),
|
||||
|
|
@ -231,25 +187,6 @@
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* 下拉操作栏
|
||||
*/
|
||||
function getDropDownAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '详情',
|
||||
onClick: handleDetail.bind(null, record),
|
||||
}, {
|
||||
label: '删除',
|
||||
popConfirm: {
|
||||
title: '是否确认删除',
|
||||
confirm: handleDelete.bind(null, record),
|
||||
placement: 'topLeft',
|
||||
},
|
||||
auth: 'configSuppliersInfo:nu_config_suppliers_info:delete'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
|
|
|
|||
Loading…
Reference in New Issue