feat: 耗材报损
This commit is contained in:
@@ -64,7 +64,9 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
">
|
||||
<el-button type="primary" link @click="refAddHaocaiOpen(scope.row)" v-if="!isSyncStatus()">编辑</el-button>
|
||||
<el-button v-if="!isSyncStatus()" type="primary" link @click="refAddHaocaiOpen(scope.row)">
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button link type="primary" @click="refAddHaocaiTakinShow(scope.row, 'consumables')">
|
||||
耗材盘点
|
||||
</el-button>
|
||||
@@ -127,14 +129,13 @@ if (conName) {
|
||||
}
|
||||
|
||||
if (isSyncStatus()) {
|
||||
contentConfig.toolbar[0].hidden = true
|
||||
contentConfig.toolbar[1].hidden = false
|
||||
contentConfig.toolbar[0].hidden = true;
|
||||
contentConfig.toolbar[1].hidden = false;
|
||||
} else {
|
||||
contentConfig.toolbar[0].hidden = false
|
||||
contentConfig.toolbar[1].hidden = true
|
||||
contentConfig.toolbar[0].hidden = false;
|
||||
contentConfig.toolbar[1].hidden = true;
|
||||
}
|
||||
|
||||
|
||||
//统计数据
|
||||
const gongjiData = reactive({ totalRow: 0 });
|
||||
function getTongji(params: IObject | undefined) {
|
||||
@@ -204,9 +205,9 @@ async function handleEditClick(row: IObject) {
|
||||
// 其他工具栏
|
||||
async function handleToolbarClick(name: string) {
|
||||
console.log(name);
|
||||
if (name === 'sync') {
|
||||
let res = await UserAPI.sync()
|
||||
ElMessage.success('操作成功,数据正在后台同步中...')
|
||||
if (name === "sync") {
|
||||
let res = await UserAPI.sync();
|
||||
ElMessage.success("操作成功,数据正在后台同步中...");
|
||||
return;
|
||||
}
|
||||
if (name === "category") {
|
||||
@@ -225,6 +226,10 @@ async function handleToolbarClick(name: string) {
|
||||
router.push({ path: "/inventory/operation_in", query: { type: "out" } });
|
||||
return;
|
||||
}
|
||||
if (name == "reportinglosses") {
|
||||
router.push({ path: "/inventory/operation_in", query: { type: "reportinglosses" } });
|
||||
return;
|
||||
}
|
||||
if (name == "damage-out" || name == "manual-out" || name == "manual-in") {
|
||||
router.push({ path: "/inventory/libraryrecords", query: { inOutItem: name } });
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user