|
@@ -84,7 +84,7 @@
|
|
v-hasPermi="['ehs:jobticket:add']"
|
|
v-hasPermi="['ehs:jobticket:add']"
|
|
>{{ $t('新增') }}</el-button>
|
|
>{{ $t('新增') }}</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="1.5">
|
|
|
|
|
|
+<!-- <el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
type="success"
|
|
type="success"
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
@@ -103,7 +103,7 @@
|
|
@click="handleDelete"
|
|
@click="handleDelete"
|
|
v-hasPermi="['ehs:jobticket:remove']"
|
|
v-hasPermi="['ehs:jobticket:remove']"
|
|
>{{ $t('删除') }}</el-button>
|
|
>{{ $t('删除') }}</el-button>
|
|
- </el-col>
|
|
|
|
|
|
+ </el-col>-->
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
type="warning"
|
|
type="warning"
|
|
@@ -129,7 +129,7 @@
|
|
row-key="id"
|
|
row-key="id"
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
>
|
|
>
|
|
- <el-table-column :label="$t('开票日期')" align="center" prop="kprq" width="100">
|
|
|
|
|
|
+ <el-table-column :label="$t('开票日期')" align="center" prop="kprq" width="125">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ parseTime(scope.row.kprq, '{y}-{m}-{d}') }}</span>
|
|
<span>{{ parseTime(scope.row.kprq, '{y}-{m}-{d}') }}</span>
|
|
</template>
|
|
</template>
|
|
@@ -1038,6 +1038,10 @@ export default {
|
|
},
|
|
},
|
|
/** 删除按钮操作 */
|
|
/** 删除按钮操作 */
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
|
|
+ if (row.children!= null && row.children.length > 0) {
|
|
|
|
+ this.msgError('存在续票,无法删除主票')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
const ids = row.id || this.ids;
|
|
const ids = row.id || this.ids;
|
|
this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
|
|
this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
|
|
confirmButtonText: this.$t('确定'),
|
|
confirmButtonText: this.$t('确定'),
|