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