代码更新
This commit is contained in:
@@ -105,7 +105,11 @@
|
||||
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column v-if="false" prop="repair_id" label="设备维修单标识" />
|
||||
<el-table-column prop="repair_code" label="维修单号" width="120px" show-overflow-tooltip />
|
||||
<el-table-column prop="repair_code" label="维修单号" width="120px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<el-link type="warning" @click="openReceive(scope.row)">{{ scope.row.repair_code }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="device_code" label="设备编码" width="120px" show-overflow-tooltip />
|
||||
<el-table-column prop="device_name" label="设备名称" show-overflow-tooltip />
|
||||
<el-table-column prop="invstatus" label="单据状态" :formatter="formatStatusName"/>
|
||||
@@ -130,6 +134,7 @@
|
||||
<pagination />
|
||||
</div>
|
||||
<resuftDialog :dialog-show.sync="resuftDialog" :open-param="openParam" />
|
||||
<ReceiveDialog :dialog-show.sync="receiveDialog" :open-param="openParam" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -146,11 +151,12 @@ import Treeselect, { LOAD_CHILDREN_OPTIONS } from '@riophae/vue-treeselect'
|
||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||
import crudMaterialbase from '@/api/wms/basedata/master/materialbase'
|
||||
import resuftDialog from '@/views/wms/sb/repair/devicerepairudit/resuftDialog'
|
||||
import ReceiveDialog from '@/views/wms/sb/repair/devicerepairudit/ReceiveDialog'
|
||||
|
||||
export default {
|
||||
name: 'Devicerepairudit',
|
||||
dicts: ['EM_DEVICE_WX_INVTYPE', 'EM_DEVICE_WX_INVSTATUS', 'EM_FAULT_LEVEL'],
|
||||
components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker, Treeselect, resuftDialog },
|
||||
components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker, Treeselect, resuftDialog, ReceiveDialog },
|
||||
mixins: [presenter(), header(), crud()],
|
||||
cruds() {
|
||||
return CRUD({
|
||||
@@ -175,6 +181,7 @@ export default {
|
||||
materOpt_code: '23',
|
||||
openParam: null,
|
||||
resuftDialog: false,
|
||||
receiveDialog: false,
|
||||
permission: {
|
||||
}
|
||||
}
|
||||
@@ -253,6 +260,16 @@ export default {
|
||||
this.openParam = res
|
||||
this.resuftDialog = true
|
||||
})
|
||||
},
|
||||
openReceive(row) {
|
||||
const data = row
|
||||
crudDevicerepairmst.getDtl(data).then(res => {
|
||||
this.openParam = {
|
||||
'form3': data,
|
||||
'itemData': res
|
||||
}
|
||||
this.receiveDialog = true
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user