商品分组更新:

增加编辑售卖时间
编辑分组名称
This commit is contained in:
2024-10-15 15:21:50 +08:00
parent a9fb79b9f5
commit 24f34e8f8c
6 changed files with 349 additions and 63 deletions

View File

@@ -25,6 +25,7 @@
<edit-sort @save="updataGroup" :item="popup.selData" v-model:show="popup.sort.show"></edit-sort>
<edit-name @save="updataGroup" :item="popup.selData" v-model:show="popup.name.show"></edit-name>
<edit-time @save="updataGroup" :item="popup.selData" v-model:show="popup.time.show"></edit-time>
<up-action-sheet :round="10" @select="actionSelect" @close="actionsHide" cancelText="取消" :actions="actions.list"
:show="actions.show"></up-action-sheet>
@@ -44,6 +45,7 @@
import infoBox from "@/commons/utils/infoBox.js"
import editSort from './components/edit-sort.vue';
import editName from './components/edit-name.vue';
import editTime from './components/edit-time.vue';
import {
tbProductGroupGet,
tbProductGroupDelete,
@@ -66,7 +68,13 @@
name: '管理商品',
color: '#333',
fontSize: '16'
}],
},
{
name: '售卖时间',
color: '#333',
fontSize: '16'
}
],
show: false,
})
@@ -82,6 +90,9 @@
})
}
if (e.name == '售卖时间') {
return popupShow(actions.selIndex, 'time', true)
}
}
function actionsHide() {
@@ -106,6 +117,9 @@
},
name:{
show: false
},
time:{
show: false
}
})
@@ -119,6 +133,7 @@
const res = await $productCategory.update(e)
popup.sort.show = false;
popup.name.show = false;
popup.time.show = false;
pageData.list[popup.selIndex] = e
infoBox.showToast('更新成功')
}