|
|
@ -49,6 +49,17 @@ |
|
|
border |
|
|
border |
|
|
v-loading="dataListLoading" |
|
|
v-loading="dataListLoading" |
|
|
style="width: 100%;"> |
|
|
style="width: 100%;"> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="status" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="center" |
|
|
|
|
|
label="状态"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<div :style="{fontWeight:'bold', color: scope.row.status === '待审核' ? 'red' : '#3ac252'}"> |
|
|
|
|
|
{{ scope.row.status }} |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
v-for="(item,index) in columnList" :key="index" |
|
|
v-for="(item,index) in columnList" :key="index" |
|
|
:sortable="item.columnSortable" |
|
|
:sortable="item.columnSortable" |
|
|
@ -102,22 +113,22 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top"> |
|
|
<el-form :inline="true" label-position="top"> |
|
|
<el-form-item :label="'预计使用寿命:'"> |
|
|
<el-form-item :label="'预计使用寿命:'"> |
|
|
<el-input style="width: 85px;" disabled type="number" v-model="checkData.estUseQty"></el-input> |
|
|
|
|
|
|
|
|
<el-input style="width: 120px;" disabled type="number" v-model="checkData.estUseQty"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'已使用寿命:'"> |
|
|
<el-form-item :label="'已使用寿命:'"> |
|
|
<el-input style="width: 85px;" disabled type="number" v-model="checkData.ActualUseQty"></el-input> |
|
|
|
|
|
|
|
|
<el-input style="width: 120px;" disabled type="number" v-model="checkData.ActualUseQty"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'新增寿命:'"> |
|
|
<el-form-item :label="'新增寿命:'"> |
|
|
<el-input style="width: 85px;" type="number" v-model="checkData.addUseQty"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="'新预计使用寿命:'"> |
|
|
|
|
|
<el-input style="width: 85px;" readonly type="number" v-model="checkData.newEstUseQty"></el-input> |
|
|
|
|
|
|
|
|
<el-input style="width: 120px;" type="number" v-model="checkData.addUseQty"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<!-- <el-form-item :label="'新预计使用寿命:'">--> |
|
|
|
|
|
<!-- <el-input style="width: 85px;" readonly type="number" v-model="checkData.newEstUseQty"></el-input>--> |
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<span slot="footer" class="dialog-footer"> |
|
|
<span slot="footer" class="dialog-footer"> |
|
|
<el-button type="primary" @click="saveToolUseQtyAssess()">确定</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="checkToolUseQtyAssess()">确定</el-button> |
|
|
<el-button type="primary" @click="checkFlag = false">取消</el-button> |
|
|
<el-button type="primary" @click="checkFlag = false">取消</el-button> |
|
|
</span> |
|
|
|
|
|
|
|
|
</span> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
</div> |
|
|
</div> |
|
|
@ -126,7 +137,7 @@ |
|
|
<script> |
|
|
<script> |
|
|
import column from '../common/column' |
|
|
import column from '../common/column' |
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
import {saveToolUseQtyAssess, getToolUseQtyAssessList} from '@/api/knifemold/tool-info.js' |
|
|
|
|
|
|
|
|
import {checkToolUseQtyAssess, getToolUseQtyAssessList} from '@/api/knifemold/tool-info.js' |
|
|
var functionId = '106001005' |
|
|
var functionId = '106001005' |
|
|
export default { |
|
|
export default { |
|
|
components: {column, Chooselist}, |
|
|
components: {column, Chooselist}, |
|
|
@ -162,11 +173,23 @@ export default { |
|
|
// ------------ 页面属性 ---------- |
|
|
// ------------ 页面属性 ---------- |
|
|
// 展示列集 |
|
|
// 展示列集 |
|
|
columnList: [ |
|
|
columnList: [ |
|
|
|
|
|
// { |
|
|
|
|
|
// columnProp: 'status', |
|
|
|
|
|
// headerAlign: 'center', |
|
|
|
|
|
// align: 'center', |
|
|
|
|
|
// columnLabel: '状态', |
|
|
|
|
|
// columnHidden: false, |
|
|
|
|
|
// columnImage: false, |
|
|
|
|
|
// columnSortable: false, |
|
|
|
|
|
// sortLv: 0, |
|
|
|
|
|
// status: true, |
|
|
|
|
|
// fixed: '' |
|
|
|
|
|
// }, |
|
|
{ |
|
|
{ |
|
|
columnProp: 'status', |
|
|
|
|
|
|
|
|
columnProp: 'toolId', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '状态', |
|
|
|
|
|
|
|
|
columnLabel: '工具编码', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
@ -175,10 +198,10 @@ export default { |
|
|
fixed: '' |
|
|
fixed: '' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
columnProp: 'toolId', |
|
|
|
|
|
|
|
|
columnProp: 'toolDescription', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '工具编码', |
|
|
|
|
|
|
|
|
columnLabel: '工具名称', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
@ -295,7 +318,7 @@ export default { |
|
|
fixed: '' |
|
|
fixed: '' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
columnProp: 'checkerDate', |
|
|
|
|
|
|
|
|
columnProp: 'checkDate', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '审核时间', |
|
|
columnLabel: '审核时间', |
|
|
@ -315,6 +338,8 @@ export default { |
|
|
exportFooter: [], |
|
|
exportFooter: [], |
|
|
exportDefaultValue: '', |
|
|
exportDefaultValue: '', |
|
|
checkData: { |
|
|
checkData: { |
|
|
|
|
|
id: '', |
|
|
|
|
|
site: this.$store.state.user.site, |
|
|
toolId: '', |
|
|
toolId: '', |
|
|
toolDescription: '', |
|
|
toolDescription: '', |
|
|
toolInstanceId: '', |
|
|
toolInstanceId: '', |
|
|
@ -336,11 +361,11 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
/** |
|
|
/** |
|
|
* 新增寿命评估记录 |
|
|
|
|
|
|
|
|
* 审核 |
|
|
*/ |
|
|
*/ |
|
|
saveToolUseQtyAssess () { |
|
|
|
|
|
this.checkData.status = '待审核' |
|
|
|
|
|
saveToolUseQtyAssess(this.checkData).then(({data}) => { |
|
|
|
|
|
|
|
|
checkToolUseQtyAssess () { |
|
|
|
|
|
this.checkData.status = '已完成' |
|
|
|
|
|
checkToolUseQtyAssess(this.checkData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
this.checkFlag = false |
|
|
this.checkFlag = false |
|
|
@ -362,13 +387,14 @@ export default { |
|
|
* 寿命评估 |
|
|
* 寿命评估 |
|
|
*/ |
|
|
*/ |
|
|
checkModal (row) { |
|
|
checkModal (row) { |
|
|
|
|
|
this.checkData.id = row.id |
|
|
this.checkData.toolId = row.toolId |
|
|
this.checkData.toolId = row.toolId |
|
|
this.checkData.toolDescription = row.toolDescription |
|
|
this.checkData.toolDescription = row.toolDescription |
|
|
this.checkData.toolInstanceId = row.toolInstanceId |
|
|
this.checkData.toolInstanceId = row.toolInstanceId |
|
|
this.checkData.addUseQty = row.addUseQty |
|
|
this.checkData.addUseQty = row.addUseQty |
|
|
this.checkData.estUseQty = row.estUseQty |
|
|
this.checkData.estUseQty = row.estUseQty |
|
|
this.checkData.ActualUseQty = row.ActualUseQty |
|
|
this.checkData.ActualUseQty = row.ActualUseQty |
|
|
this.checkData.newEstUseQty = Number(row.ActualUseQty) + Number(row.addUseQty) |
|
|
|
|
|
|
|
|
//this.checkData.newEstUseQty = Number(row.estUseQty) + Number(row.addUseQty) |
|
|
this.checkFlag = true |
|
|
this.checkFlag = true |
|
|
}, |
|
|
}, |
|
|
// --------------- 业务 ------------------- |
|
|
// --------------- 业务 ------------------- |
|
|
|