|
@@ -16,28 +16,17 @@
|
|
:picker-options="pickerOptions">
|
|
:picker-options="pickerOptions">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item :label="$t('签发班组')" prop="qfbz">
|
|
|
|
- <el-select v-model="queryParams.qfbz" :placeholder="$t('请选择') + $t('签发班组')" clearable size="small"
|
|
|
|
|
|
+ <el-form-item :label="$t('新票/续票')" prop="xpxp">
|
|
|
|
+ <el-select v-model="queryParams.xpxp" :placeholder="$t('请选择') + $t('新票/续票')" clearable size="small"
|
|
@change="handleQuery">
|
|
@change="handleQuery">
|
|
<el-option
|
|
<el-option
|
|
- v-for="dict in qfbzOptions"
|
|
|
|
|
|
+ v-for="dict in xpxpOptions"
|
|
:key="dict.dictValue"
|
|
:key="dict.dictValue"
|
|
:label="dict.dictLabel"
|
|
:label="dict.dictLabel"
|
|
:value="dict.dictValue"
|
|
:value="dict.dictValue"
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item :label="$t('新票/续票')" prop="xpxp">
|
|
|
|
- <el-select v-model="queryParams.xpxp" :placeholder="$t('请选择') + $t('新票/续票')" clearable size="small"
|
|
|
|
- @change="handleQuery">
|
|
|
|
- <el-option
|
|
|
|
- v-for="dict in xpxpOptions"
|
|
|
|
- :key="dict.dictValue"
|
|
|
|
- :label="dict.dictLabel"
|
|
|
|
- :value="dict.dictValue"
|
|
|
|
- />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
<el-form-item label="延期许可证号" prop="yqxkzh">
|
|
<el-form-item label="延期许可证号" prop="yqxkzh">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.yqxkzh"
|
|
v-model="queryParams.yqxkzh"
|
|
@@ -162,15 +151,7 @@
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="检查/存档人" prop="jccdr">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.jccdr"
|
|
|
|
- placeholder="请输入检查/存档人"
|
|
|
|
- clearable
|
|
|
|
- size="small" @input="handleQuery"
|
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+
|
|
<el-form-item label="未撤销项编号" prop="wcxxbh">
|
|
<el-form-item label="未撤销项编号" prop="wcxxbh">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.wcxxbh"
|
|
v-model="queryParams.wcxxbh"
|
|
@@ -271,10 +252,17 @@
|
|
>{{ $t('数据分析') }}
|
|
>{{ $t('数据分析') }}
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-radio-group v-model="tableType" @input="getList">
|
|
|
|
+ <el-radio-button label="1">树形列表</el-radio-button>
|
|
|
|
+ <el-radio-button label="2">平级列表</el-radio-button>
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </el-col>
|
|
|
|
+
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" :data="jobticketList"
|
|
|
|
|
|
+ <el-table v-if="tableType == 1" v-loading="loading" :data="jobticketList"
|
|
:height="clientHeight" border :cell-style="myclass"
|
|
:height="clientHeight" border :cell-style="myclass"
|
|
row-key="id"
|
|
row-key="id"
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
@@ -286,16 +274,123 @@
|
|
<span>{{ parseTime(scope.row.kprq, '{y}-{m}-{d}') }}</span>
|
|
<span>{{ parseTime(scope.row.kprq, '{y}-{m}-{d}') }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column :label="$t('签发时间')" align="center" prop="qfsj" :show-overflow-tooltip="true"/>
|
|
|
|
- <el-table-column :label="$t('签发班组')" align="center" prop="qfbz" :formatter="qfbzFormat"/>
|
|
|
|
<el-table-column :label="$t('新票/续票')" align="center" prop="xpxp" width="100" :formatter="xpxpFormat"/>
|
|
<el-table-column :label="$t('新票/续票')" align="center" prop="xpxp" width="100" :formatter="xpxpFormat"/>
|
|
- <el-table-column :label="$t('延期许可证号')" align="center" sortable="custom" prop="yqxkzh" width="100" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
+ <el-table-column :label="$t('延期许可证号')" align="center" sortable="custom" prop="yqxkzh" width="100"
|
|
|
|
+ :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('危害工作许可证号')" align="center" sortable="custom" prop="whgzxkzh" width="100"
|
|
<el-table-column :label="$t('危害工作许可证号')" align="center" sortable="custom" prop="whgzxkzh" width="100"
|
|
:show-overflow-tooltip="true"/>
|
|
:show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('动火作业许可证号')" align="center" sortable="custom" prop="dhzyxkzh" width="100"
|
|
<el-table-column :label="$t('动火作业许可证号')" align="center" sortable="custom" prop="dhzyxkzh" width="100"
|
|
:show-overflow-tooltip="true"/>
|
|
:show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('火票级别')" align="center" sortable="custom" prop="hpjb" :formatter="hpjbFormat"/>
|
|
<el-table-column :label="$t('火票级别')" align="center" sortable="custom" prop="hpjb" :formatter="hpjbFormat"/>
|
|
- <el-table-column :label="$t('限制空间许可证号')" align="center" sortable="custom" prop="xzkjxkzh" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
+ <el-table-column :label="$t('限制空间许可证号')" align="center" sortable="custom" prop="xzkjxkzh"
|
|
|
|
+ :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column label="盲板作业许可证号" align="center" sortable="custom" prop="mbzyxkzh" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column label="高处作业许可证号" align="center" sortable="custom" prop="gczyxkzh" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column label="高处作业级别" align="center" sortable="custom" prop="gczyjb" :formatter="gczyjbFormat"/>
|
|
|
|
+ <el-table-column :label="$t('工作内容')" align="center" prop="content" width="300" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('BYC负责单位/联系人')" align="center" prop="byclxr" width="100"
|
|
|
|
+ :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('施工单位')" align="center" prop="sgdw" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('联系人')" align="center" prop="lxr" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('联系电话')" align="center" prop="lxdh" width="100" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('销票时间')" align="center" prop="xpsj" width="100">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ parseTime(scope.row.xpsj, '{y}-{m}-{d}') }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column :label="$t('作业票状态')" align="center" prop="zypzt" width="200" :formatter="zypztFormat">
|
|
|
|
+ <template slot-scope="scope" v-if="scope.row.zypzt != null">
|
|
|
|
+ <el-dropdown placement="bottom" trigger="click">
|
|
|
|
+ <span class="el-dropdown-link">
|
|
|
|
+ <span style=" font-size: 13px" v-if="scope.row.zypzt==10">{{ "作业票未销" }}</span>
|
|
|
|
+ <span style=" font-size: 13px" v-if="scope.row.zypzt==18">{{ "作业票收回,作业票关闭" }}</span>
|
|
|
|
+ <span style="font-size: 13px" v-if="scope.row.zypzt==16">{{ "作业票延期" }}</span>
|
|
|
|
+ <span style="font-size: 13px" v-if="scope.row.zypzt==20">{{ "作业票作废" }}</span>
|
|
|
|
+ <i class="el-icon-caret-bottom"></i>
|
|
|
|
+ </span>
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
+ <el-dropdown-item @click.native="statusChange(10, scope.row)">{{ $t('作业票未销') }}</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item @click.native="statusChange(18, scope.row)">{{ $t('作业票关闭,作业票收回') }}</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item @click.native="statusChange(16, scope.row)">{{ $t('作业票延期') }}</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item @click.native="statusChange(20, scope.row)">{{ $t('作业票作废') }}</el-dropdown-item>
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </el-dropdown>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column :label="$t('检查/存档人')" align="center" prop="jccdr" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('未撤销项编号')" align="center" prop="wcxxbh" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('未撤销状态')" align="center" prop="wcxzt" :formatter="wcxztFormat">
|
|
|
|
+ <template slot-scope="scope" v-if="scope.row.wcxzt != null">
|
|
|
|
+ <el-dropdown placement="bottom" trigger="click">
|
|
|
|
+ <span class="el-dropdown-link">
|
|
|
|
+ <span style=" font-size: 13px" v-if="scope.row.wcxzt==10">{{ "有" }}</span>
|
|
|
|
+ <span style=" font-size: 13px" v-if="scope.row.wcxzt==12">{{ "无" }}</span>
|
|
|
|
+ <i class="el-icon-caret-bottom"></i>
|
|
|
|
+ </span>
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
+ <el-dropdown-item @click.native="wcxztYOU(0, scope.row)">{{ $t('有') }}</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item @click.native="wcxztWU(0, scope.row)">{{ $t('无') }}</el-dropdown-item>
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </el-dropdown>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column :label="$t('撤销时间')" align="center" prop="cxsj" width="100">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ parseTime(scope.row.cxsj, '{y}-{m}-{d}') }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column :label="$t('索引')" align="center" prop="tag" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('备注')" align="center" prop="remarks" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('操作')" align="center" fixed="right" width="160"
|
|
|
|
+ class-name="small-padding fixed-width">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
+ @click="handleUpdate(scope.row)"
|
|
|
|
+ v-hasPermi="['ehs:jobticket:edit']"
|
|
|
|
+ >{{ $t('修改') }}
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
+ @click="handleDelete(scope.row)"
|
|
|
|
+ v-hasPermi="['ehs:jobticket:remove']"
|
|
|
|
+ >{{ $t('删除') }}
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="scope.row.xpxp=='10'"
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ icon="el-icon-date"
|
|
|
|
+ @click="handlePostpone(scope.row)"
|
|
|
|
+ v-hasPermi="['ehs:jobticket:add']"
|
|
|
|
+ >{{ $t('延期') }}
|
|
|
|
+ </el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ <el-table v-else v-loading="loading" :data="jobticketList"
|
|
|
|
+ :height="clientHeight" border :cell-style="myclass"
|
|
|
|
+ @sort-change="sortList"
|
|
|
|
+ >
|
|
|
|
+ <el-table-column :label="$t('开票日期')" align="center" prop="kprq" width="125">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ parseTime(scope.row.kprq, '{y}-{m}-{d}') }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column :label="$t('新票/续票')" align="center" prop="xpxp" width="100" :formatter="xpxpFormat"/>
|
|
|
|
+ <el-table-column :label="$t('延期许可证号')" align="center" sortable="custom" prop="yqxkzh" width="100"
|
|
|
|
+ :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('危害工作许可证号')" align="center" sortable="custom" prop="whgzxkzh" width="100"
|
|
|
|
+ :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('动火作业许可证号')" align="center" sortable="custom" prop="dhzyxkzh" width="100"
|
|
|
|
+ :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column :label="$t('火票级别')" align="center" sortable="custom" prop="hpjb" :formatter="hpjbFormat"/>
|
|
|
|
+ <el-table-column :label="$t('限制空间许可证号')" align="center" sortable="custom" prop="xzkjxkzh"
|
|
|
|
+ :show-overflow-tooltip="true"/>
|
|
<el-table-column label="盲板作业许可证号" align="center" sortable="custom" prop="mbzyxkzh" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="盲板作业许可证号" align="center" sortable="custom" prop="mbzyxkzh" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="高处作业许可证号" align="center" sortable="custom" prop="gczyxkzh" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="高处作业许可证号" align="center" sortable="custom" prop="gczyxkzh" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="高处作业级别" align="center" sortable="custom" prop="gczyjb" :formatter="gczyjbFormat"/>
|
|
<el-table-column label="高处作业级别" align="center" sortable="custom" prop="gczyjb" :formatter="gczyjbFormat"/>
|
|
@@ -384,7 +479,6 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
-
|
|
|
|
<pagination
|
|
<pagination
|
|
v-show="total>0"
|
|
v-show="total>0"
|
|
:total="total"
|
|
:total="total"
|
|
@@ -395,7 +489,8 @@
|
|
/>
|
|
/>
|
|
|
|
|
|
<!-- 添加或修改工作票对话框 -->
|
|
<!-- 添加或修改工作票对话框 -->
|
|
- <el-dialog v-dialogDrag :title="title" :visible.sync="open" width="700px" :close-on-click-modal="false" append-to-body >
|
|
|
|
|
|
+ <el-dialog v-dialogDrag :title="title" :visible.sync="open" width="700px" :close-on-click-modal="false"
|
|
|
|
+ append-to-body>
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="130px">
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="130px">
|
|
<el-form-item :label="$t('开票日期')" prop="kprq">
|
|
<el-form-item :label="$t('开票日期')" prop="kprq">
|
|
<el-date-picker clearable size="small" style="width: 200px"
|
|
<el-date-picker clearable size="small" style="width: 200px"
|
|
@@ -572,7 +667,8 @@
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!-- 用户导入对话框 -->
|
|
<!-- 用户导入对话框 -->
|
|
- <el-dialog v-dialogDrag :title="upload.title" :visible.sync="upload.open" width="400px" :close-on-click-modal="false" append-to-body>
|
|
|
|
|
|
+ <el-dialog v-dialogDrag :title="upload.title" :visible.sync="upload.open" width="400px"
|
|
|
|
+ :close-on-click-modal="false" append-to-body>
|
|
<el-upload
|
|
<el-upload
|
|
ref="upload"
|
|
ref="upload"
|
|
:limit="1"
|
|
:limit="1"
|
|
@@ -701,7 +797,7 @@ import {listSpecYlrq} from "@/api/sems/specYlrq";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "Jobticket",
|
|
name: "Jobticket",
|
|
- components: {FireData, Treeselect,StatusData},
|
|
|
|
|
|
+ components: {FireData, Treeselect, StatusData},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
//新票新增
|
|
//新票新增
|
|
@@ -773,9 +869,11 @@ export default {
|
|
url: process.env.VUE_APP_BASE_API + "/ehs/jobticket/importData"
|
|
url: process.env.VUE_APP_BASE_API + "/ehs/jobticket/importData"
|
|
},
|
|
},
|
|
// 查询参数
|
|
// 查询参数
|
|
|
|
+ tableType: 1,
|
|
queryParams: {
|
|
queryParams: {
|
|
|
|
+ tableType: 1,
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
- pageSize: 20,
|
|
|
|
|
|
+ pageSize: 100,
|
|
plantCode: null,
|
|
plantCode: null,
|
|
kprq: null,
|
|
kprq: null,
|
|
startDate: null,
|
|
startDate: null,
|
|
@@ -1050,8 +1148,9 @@ export default {
|
|
/** 查询工作票列表 */
|
|
/** 查询工作票列表 */
|
|
getList() {
|
|
getList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
|
+ this.queryParams.tableType = this.tableType
|
|
listJobticket(this.queryParams).then(response => {
|
|
listJobticket(this.queryParams).then(response => {
|
|
- this.jobticketList=[]
|
|
|
|
|
|
+ this.jobticketList = []
|
|
this.jobticketList = response.rows;
|
|
this.jobticketList = response.rows;
|
|
this.total = response.total;
|
|
this.total = response.total;
|
|
this.loading = false;
|
|
this.loading = false;
|