fix: 修改支付方式是否生效文字改为是否显示,优化支付方式快捷修改和弹窗提醒
This commit is contained in:
@@ -882,7 +882,6 @@ function handleOperat(data: IOperatData) {
|
|||||||
|
|
||||||
// 属性修改
|
// 属性修改
|
||||||
function handleModify(field: string, value: boolean | string | number, row: Record<string, any>) {
|
function handleModify(field: string, value: boolean | string | number, row: Record<string, any>) {
|
||||||
console.log(1111111111111111111111111);
|
|
||||||
if (props.contentConfig.modifyAction) {
|
if (props.contentConfig.modifyAction) {
|
||||||
props.contentConfig.modifyAction({
|
props.contentConfig.modifyAction({
|
||||||
[pk]: row[pk],
|
[pk]: row[pk],
|
||||||
|
|||||||
@@ -16,8 +16,10 @@ const contentConfig: IContentConfig = {
|
|||||||
indexAction: function (params) {
|
indexAction: function (params) {
|
||||||
return Api.getList();
|
return Api.getList();
|
||||||
},
|
},
|
||||||
modifyAction: function (data) {
|
modifyAction: async function (data) {
|
||||||
return Api.edit(data);
|
const res = await Api.edit(data);
|
||||||
|
ElMessage.success(res ? '修改成功' : '修改失败');
|
||||||
|
return res
|
||||||
},
|
},
|
||||||
pk: "id",
|
pk: "id",
|
||||||
toolbar: ["add"],
|
toolbar: ["add"],
|
||||||
@@ -45,15 +47,13 @@ const contentConfig: IContentConfig = {
|
|||||||
label: "开钱箱权限",
|
label: "开钱箱权限",
|
||||||
align: "center",
|
align: "center",
|
||||||
prop: "isOpenCashDrawer",
|
prop: "isOpenCashDrawer",
|
||||||
templet: 'custom',
|
templet: 'switch',
|
||||||
slotName: 'switch'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "是否生效",
|
label: "是否显示",
|
||||||
align: "center",
|
align: "center",
|
||||||
prop: "isDisplay",
|
prop: "isDisplay",
|
||||||
templet: 'custom',
|
templet: 'switch',
|
||||||
slotName: 'switch'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "条件排序",
|
label: "条件排序",
|
||||||
|
|||||||
@@ -497,7 +497,7 @@ function refScanPayOpen(payType) {
|
|||||||
|
|
||||||
async function getPaytype() {
|
async function getPaytype() {
|
||||||
const res = await payTypeApi.getList();
|
const res = await payTypeApi.getList();
|
||||||
payTypes.list = res;
|
payTypes.list = res.filter((v) => v.isDisplay);
|
||||||
if (currentpayMoney.value * 1 <= 0) {
|
if (currentpayMoney.value * 1 <= 0) {
|
||||||
payTypes.sel = payTypes.list.findIndex((v) => v.payType == "cash");
|
payTypes.sel = payTypes.list.findIndex((v) => v.payType == "cash");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user