|
|
|
|
@@ -93,7 +93,6 @@
|
|
|
|
|
type="success"
|
|
|
|
|
icon="el-icon-position"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="crud.selections.length !== 1"
|
|
|
|
|
@click="confirmRepair"
|
|
|
|
|
>
|
|
|
|
|
班组验收
|
|
|
|
|
@@ -102,38 +101,38 @@
|
|
|
|
|
<!--表格渲染-->
|
|
|
|
|
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
|
|
|
|
<el-table-column fixed="left" type="selection" min-width="35" />
|
|
|
|
|
<el-table-column fixed="left" prop="repair_code" label="维修单号" min-width="120" >
|
|
|
|
|
<el-table-column fixed="left" prop="repair_code" label="维修单号" min-width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-link type="warning" @click="crud.toView(scope.row)">{{ scope.row.repair_code }}</el-link>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column fixed="left" prop="device_code" label="设备编码" min-width="85" />
|
|
|
|
|
<el-table-column fixed="left" prop="device_name" label="设备名称" min-width="150" />
|
|
|
|
|
<el-table-column fixed="left" prop="extend_code" label="设备自编码" min-width="100" />
|
|
|
|
|
<el-table-column fixed="left" prop="dept_name" label="归属部门" min-width="130" />
|
|
|
|
|
<el-table-column fixed="left" prop="use_name" label="使用班组" min-width="130" />
|
|
|
|
|
<el-table-column fixed="left" prop="device_code" label="设备编码" min-width="85" />
|
|
|
|
|
<el-table-column fixed="left" prop="device_name" label="设备名称" min-width="150" />
|
|
|
|
|
<el-table-column fixed="left" prop="extend_code" label="设备自编码" min-width="100" />
|
|
|
|
|
<el-table-column fixed="left" prop="dept_name" label="归属部门" min-width="130" />
|
|
|
|
|
<el-table-column fixed="left" prop="use_name" label="使用班组" min-width="130" />
|
|
|
|
|
<el-table-column fixed="left" prop="invstatus" label="单据状态" :formatter="formatStatusName" min-width="70" />
|
|
|
|
|
<el-table-column fixed="left" prop="maintenancecycle" label="单据类型" :formatter="formatTypeName" min-width="70" />
|
|
|
|
|
<el-table-column fixed="left" prop="fault_level" label="故障等级" :formatter="formatLevelName" min-width="70" />
|
|
|
|
|
<el-table-column fixed="left" prop="plan_start_date" label="计划维修日期" min-width="95" />
|
|
|
|
|
<el-table-column prop="fault_desc" label="故障描述" min-width="200" />
|
|
|
|
|
<el-table-column prop="remark" label="备注" min-width="200" />
|
|
|
|
|
<el-table-column fixed="left" prop="plan_start_date" label="计划维修日期" min-width="95" />
|
|
|
|
|
<el-table-column prop="fault_desc" label="故障描述" min-width="200" />
|
|
|
|
|
<el-table-column prop="remark" label="备注" min-width="200" />
|
|
|
|
|
<el-table-column prop="input_optname" label="制单人" min-width="90" />
|
|
|
|
|
<el-table-column prop="input_time" label="制单时间" min-width="140" />
|
|
|
|
|
<el-table-column prop="input_time" label="制单时间" min-width="140" />
|
|
|
|
|
<el-table-column prop="update_optname" label="维修人" min-width="150" />
|
|
|
|
|
<el-table-column prop="real_start_date" label="开始时间" min-width="140" />
|
|
|
|
|
<el-table-column prop="real_end_date" label="结束时间" min-width="140" />
|
|
|
|
|
<el-table-column prop="real_start_date" label="开始时间" min-width="140" />
|
|
|
|
|
<el-table-column prop="real_end_date" label="结束时间" min-width="140" />
|
|
|
|
|
<el-table-column prop="confirm_optname" label="验收人" min-width="150" />
|
|
|
|
|
<el-table-column prop="confirm_time" label="验收时间" min-width="140" />
|
|
|
|
|
<el-table-column prop="confirm_time" label="验收时间" min-width="140" />
|
|
|
|
|
<el-table-column prop="audit_optname" label="审核人" min-width="90" />
|
|
|
|
|
<el-table-column prop="audit_time" label="审核时间" min-width="140" />
|
|
|
|
|
<el-table-column prop="source_bill_code" label="源单号" min-width="120px" />
|
|
|
|
|
<el-table-column prop="audit_time" label="审核时间" min-width="140" />
|
|
|
|
|
<el-table-column prop="source_bill_code" label="源单号" min-width="120px" />
|
|
|
|
|
<el-table-column prop="source_bill_type" label="源单业务类型" min-width="90" />
|
|
|
|
|
</el-table>
|
|
|
|
|
<!--分页组件-->
|
|
|
|
|
<pagination />
|
|
|
|
|
</div>
|
|
|
|
|
<AddDialog/>
|
|
|
|
|
<AddDialog />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@@ -251,11 +250,16 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
confirmRepair() {
|
|
|
|
|
const _selectData = this.$refs.table.selection
|
|
|
|
|
const data = _selectData[0]
|
|
|
|
|
if (data.invstatus !== '06') {
|
|
|
|
|
return this.crud.notify('只能对结束状态的单据确认', CRUD.NOTIFICATION_TYPE.INFO)
|
|
|
|
|
if (_selectData.length === 0) {
|
|
|
|
|
return this.crud.notify('请选择需要确认的记录!', CRUD.NOTIFICATION_TYPE.INFO)
|
|
|
|
|
}
|
|
|
|
|
crudDevicerepairmst.confirmRepair(data).then(res => {
|
|
|
|
|
for (let i = 0; i < _selectData.length; i++) {
|
|
|
|
|
const now = _selectData[i]
|
|
|
|
|
if (now.invstatus !== '06') {
|
|
|
|
|
return this.crud.notify('只能对结束状态的单据确认:' + now.repair_code, CRUD.NOTIFICATION_TYPE.INFO)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
crudDevicerepairmst.confirmRepair({ rows: _selectData }).then(res => {
|
|
|
|
|
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
|
|
|
|
this.crud.toQuery()
|
|
|
|
|
})
|
|
|
|
|
@@ -376,7 +380,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
color: "#CCCFD6";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vue-treeselect--has-value .vue-treeselect__input {
|
|
|
|
|
|