|
@@ -405,15 +405,15 @@
|
|
|
:show-overflow-tooltip="true"
|
|
|
sortable
|
|
|
>
|
|
|
- <template slot-scope="scope">
|
|
|
+ <template slot-scope="scope">
|
|
|
<span v-if="item.label == 'fMblno'">
|
|
|
<el-link :underline="false" type="primary"
|
|
|
- ><div @click="handleUpdate(scope.row)">
|
|
|
- {{ scope.row.fMblno }}
|
|
|
- </div></el-link
|
|
|
+ ><div @click="handleUpdate(scope.row)">
|
|
|
+ {{ scope.row.fMblno }}
|
|
|
+ </div></el-link
|
|
|
>
|
|
|
</span>
|
|
|
- <span v-else>{{scope.row[item.label]}}</span>
|
|
|
+ <span v-else>{{ scope.row[item.label] }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -711,8 +711,13 @@ export default {
|
|
|
this.getRow();
|
|
|
this.getList();
|
|
|
},
|
|
|
+ activated() {
|
|
|
+ if (this.$route.query.id) {
|
|
|
+ this.handleUpdate(this.$route.query.id);
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
- //列设置全选
|
|
|
+ //列设置全选
|
|
|
allChecked() {
|
|
|
if (this.allCheck == true) {
|
|
|
this.setRowList.map((e) => {
|
|
@@ -796,7 +801,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
//合计
|
|
|
- getSum(param) {
|
|
|
+ getSum(param) {
|
|
|
const { columns, data } = param;
|
|
|
const sums = [];
|
|
|
var values = [];
|
|
@@ -842,7 +847,7 @@ export default {
|
|
|
}
|
|
|
if (column.property === "fPlanqty") {
|
|
|
if (sums[index]) {
|
|
|
- sums[index] = sums[index]
|
|
|
+ sums[index] = sums[index];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -865,7 +870,7 @@ export default {
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
- const fId = row.fId || this.ids[0];
|
|
|
+ const fId = row.fId || this.ids[0] || row;
|
|
|
this.copyStatus = null;
|
|
|
this.formId = fId;
|
|
|
this.$nextTick(() => {
|