|
@@ -14,7 +14,7 @@
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
<el-tab-pane label="全部" name="first">
|
|
<el-tab-pane label="全部" name="first">
|
|
<mergeRowTable v-bind.sync="option1" ref="excelDom" @func="calculate">
|
|
<mergeRowTable v-bind.sync="option1" ref="excelDom" @func="calculate">
|
|
- <el-table-column fixed="right" label="操作" width="50">
|
|
|
|
|
|
+ <el-table-column fixed="right" label="操作" width="80">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
@click="click(scope.row.resultId)"
|
|
@click="click(scope.row.resultId)"
|
|
@@ -23,18 +23,19 @@
|
|
:disabled="scope.row.isEdit!=1"
|
|
:disabled="scope.row.isEdit!=1"
|
|
>修改</el-button
|
|
>修改</el-button
|
|
>
|
|
>
|
|
- <!-- <el-button
|
|
|
|
|
|
+ <el-button
|
|
type="text"
|
|
type="text"
|
|
size="small"
|
|
size="small"
|
|
|
|
+ :disabled="scope.row.isEdit!=1"
|
|
@click="deleteclick(scope.row.resultId)"
|
|
@click="deleteclick(scope.row.resultId)"
|
|
- >删除</el-button > -->
|
|
|
|
|
|
+ >删除</el-button >
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</mergeRowTable>
|
|
</mergeRowTable>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="待计量" name="second">
|
|
<el-tab-pane label="待计量" name="second">
|
|
<mergeRowTable v-bind.sync="option1" ref="excelDom" @func="calculate">
|
|
<mergeRowTable v-bind.sync="option1" ref="excelDom" @func="calculate">
|
|
- <el-table-column fixed="right" label="操作" width="50">
|
|
|
|
|
|
+ <el-table-column fixed="right" label="操作" width="80">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
@click="click(scope.row.resultId)"
|
|
@click="click(scope.row.resultId)"
|
|
@@ -43,11 +44,12 @@
|
|
:disabled="scope.row.isEdit!=1"
|
|
:disabled="scope.row.isEdit!=1"
|
|
>修改</el-button
|
|
>修改</el-button
|
|
>
|
|
>
|
|
- <!-- <el-button
|
|
|
|
|
|
+ <el-button
|
|
type="text"
|
|
type="text"
|
|
size="small"
|
|
size="small"
|
|
|
|
+ :disabled="scope.row.isEdit!=1"
|
|
@click="deleteclick(scope.row.resultId)"
|
|
@click="deleteclick(scope.row.resultId)"
|
|
- >删除</el-button > -->
|
|
|
|
|
|
+ >删除</el-button >
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</mergeRowTable>
|
|
</mergeRowTable>
|
|
@@ -124,6 +126,31 @@ export default {
|
|
click(resultId) {
|
|
click(resultId) {
|
|
this.$router.push("/editOutBoundWagon/" + resultId);
|
|
this.$router.push("/editOutBoundWagon/" + resultId);
|
|
},
|
|
},
|
|
|
|
+ deleteclick(resultId){
|
|
|
|
+ this.$confirm("是否删除", "提示", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning",
|
|
|
|
+ center: true
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: "success",
|
|
|
|
+ message: "删除成功!"
|
|
|
|
+ });
|
|
|
|
+ this.axios
|
|
|
|
+ .post( "/api/v1/tms/deleteOutBoundWagonById?resultId=" + resultId)
|
|
|
|
+ .then(() => {
|
|
|
|
+ this.onclick();
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: "info",
|
|
|
|
+ message: "取消删除!"
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
//起止时间校验
|
|
//起止时间校验
|
|
checkSEDate(){
|
|
checkSEDate(){
|
|
if(this.startTime && this.endTime && this.startTime<=this.endTime){
|
|
if(this.startTime && this.endTime && this.startTime<=this.endTime){
|