From 5ecb7958c96d3f0b6d47b79aff7eb306c2cf690f Mon Sep 17 00:00:00 2001 From: charles <981744753@qq.com> Date: 星期二, 06 八月 2024 11:16:58 +0800 Subject: [PATCH] gitlab上面的wms转移到公司git --- src/views/operate/scrap/index.vue | 41 +++++++++++++++++++++++++++++++++-------- 1 files changed, 33 insertions(+), 8 deletions(-) diff --git a/src/views/operate/scrap/index.vue b/src/views/operate/scrap/index.vue index dbdeef6..e209f6b 100644 --- a/src/views/operate/scrap/index.vue +++ b/src/views/operate/scrap/index.vue @@ -16,14 +16,26 @@ :table-list="tableList" :show-checkcol="false" @tableRowClick="tableRowClick" - ></TableCommonView> + > + <template slot="tableButton"> + <el-table-column label="鎿嶄綔" width="120"> + <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 + > + <el-button @click.stop="" type="text" size="small">鍒犻櫎</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 +58,8 @@ editConfig: { visible: false, title: "鏂板缓", - infomation: {} + infomation: {}, + showEdit: false }, keyword: "" } @@ -56,10 +69,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 +103,7 @@ console.log(showcol) let tableColumn = [ { - label: "鍗曞彿", + label: "鎶ュ簾鍗曞彿", prop: "number", isShowColumn: true, default: true @@ -139,7 +165,6 @@ async getData() { await getDisuseList({ number: this.keyword, - sourceNumber: this.keyword, page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize }).then((res) => { @@ -166,8 +191,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