Merge branch 'multi-store' of https://e.coding.net/g-cphe0354/cashier/cashier-web into ymf_test
This commit is contained in:
@@ -301,10 +301,13 @@ async function handleEditClick(row: IObject) {
|
||||
// 其他工具栏
|
||||
function handleToolbarClick(name: string) {
|
||||
console.log(name);
|
||||
if (name === "custom1") {
|
||||
if ( name === "custom1" ) {
|
||||
// ElMessage.success("点击了自定义1按钮");
|
||||
myDialogRef.value.open();
|
||||
}
|
||||
if ( name === "custom2" ) { //商品同步
|
||||
|
||||
}
|
||||
}
|
||||
async function confirm() {
|
||||
let res = await UserAPI.stockWarning(form.warnLine)
|
||||
|
||||
@@ -59,6 +59,13 @@ const contentConfig: IContentConfig<UserPageQuery> = {
|
||||
pk: "id",
|
||||
toolbar: [
|
||||
"add",
|
||||
{
|
||||
icon: "refresh",
|
||||
text: "同步",
|
||||
type: "danger",
|
||||
name: "custom2",
|
||||
auth: "import",
|
||||
},
|
||||
{
|
||||
icon: "edit",
|
||||
text: "库存预警",
|
||||
@@ -66,6 +73,7 @@ const contentConfig: IContentConfig<UserPageQuery> = {
|
||||
name: "custom1",
|
||||
auth: "import",
|
||||
},
|
||||
|
||||
],
|
||||
cols: [
|
||||
// { type: "selection", width: 50, align: "center" },
|
||||
|
||||
Reference in New Issue
Block a user