From a1b487e3417efb1481c3ef5598dcc4894529f1d5 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 18 四月 2024 16:42:04 +0800
Subject: [PATCH] 出入库明细打印的接口联调+根据公司的不同设置不同的打印宽度
---
src/views/operate/scrap/index.vue | 39 ++++++++++++++++++++++++++++++++-------
1 files changed, 32 insertions(+), 7 deletions(-)
diff --git a/src/views/operate/scrap/index.vue b/src/views/operate/scrap/index.vue
index daa4b7f..ae4d460 100644
--- a/src/views/operate/scrap/index.vue
+++ b/src/views/operate/scrap/index.vue
@@ -16,14 +16,25 @@
:table-list="tableList"
:show-checkcol="false"
@tableRowClick="tableRowClick"
- ></TableCommonView>
+ >
+ <template slot="tableButton">
+ <el-table-column fixed="right" label="鎿嶄綔" width="100">
+ <template slot-scope="scope">
+ <el-button @click="examineClick(scope.row)" type="text" size="small">鏌ョ湅</el-button>
+ <el-button type="text" v-if="scope.row.status != 4" size="small" @click="editClick(scope.row)"
+ >缂栬緫</el-button
+ >
+ </template>
+ </el-table-column>
+ </template>
+ </TableCommonView>
</div>
<div class="btn-pager">
<PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
</div>
</div>
<!-- 鏂板缓/缂栬緫 -->
- <AddScrapDialog v-if="editConfig.visible" :edit-common-config="editConfig" />
+ <AddScrapDialog v-if="editConfig.visible" :editCommonConfig="editConfig" />
</div>
</template>
@@ -46,7 +57,8 @@
editConfig: {
visible: false,
title: "鏂板缓",
- infomation: {}
+ infomation: {},
+ showEdit: false
},
keyword: ""
}
@@ -56,10 +68,23 @@
this.getData()
},
methods: {
+ // 鏌ョ湅
+ examineClick(row) {
+ this.editConfig.title = "鏌ョ湅"
+ this.editConfig.infomation = { ...row }
+ this.editConfig.visible = true
+ },
+ editClick(row) {
+ console.log(row, "缂栬緫")
+ this.editConfig.title = "缂栬緫"
+ this.editConfig.infomation = { ...row }
+ this.editConfig.visible = true
+ },
setTable() {
this.tableList = {
tableInfomation: [],
- selectBox: true,
+ selectBox: false,
+ selectIndex: true,
showcol: this.showcol,
allcol: [],
tableColumn: this.setTableColumn(this.showcol)
@@ -77,7 +102,7 @@
console.log(showcol)
let tableColumn = [
{
- label: "鍗曞彿",
+ label: "鎶ュ簾鍗曞彿",
prop: "number",
isShowColumn: true,
default: true
@@ -165,8 +190,8 @@
// 琛岀偣鍑�
tableRowClick(row) {
console.log(row)
- this.editConfig.visible = true
- this.editConfig.title = "缂栬緫"
+ // this.editConfig.visible = true;
+ // this.editConfig.title = "缂栬緫";
this.editConfig.infomation = { ...row }
},
// 鏂板缓
--
Gitblit v1.8.0