This commit is contained in:
zds
2022-10-11 14:54:13 +08:00
parent 900b4a9e1e
commit 325fb89b69
14 changed files with 153 additions and 27 deletions

View File

@@ -161,6 +161,16 @@
<el-table-column prop="audit_time" label="审核时间" width="150px" show-overflow-tooltip />
<el-table-column prop="source_bill_code" label="源单号" show-overflow-tooltip />
<el-table-column prop="source_bill_type" label="源单业务类型" width="120px" />
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
<template slot-scope="scope">
<udOperation
:data="scope.row"
:permission="permission"
:disabled-edit="formterStatus(scope.row)"
:disabled-dle="scope.row.invstatus !== '01'"
/>
</template>
</el-table-column>
</el-table>
<!--分页组件-->
<pagination />
@@ -169,6 +179,7 @@
<resuftDialog :dialog-show.sync="resuftDialog" :open-param="openParam" />
<ReceiveDialog :dialog-show.sync="receiveDialog" :open-param="openParam" />
<StartDialog :dialog-show.sync="startDialog" :open-param="openParam" />
<AddDialog/>
</div>
</template>
@@ -188,11 +199,12 @@ import ExecuteDialog from '@/views/wms/sb/repair/devicerepairpa/ExecuteDialog'
import resuftDialog from '@/views/wms/sb/repair/devicerepairpa/resuftDialog'
import ReceiveDialog from '@/views/wms/sb/repair/devicerepairpa/ReceiveDialog'
import StartDialog from '@/views/wms/sb/repair/devicerepairpa/StartDialog'
import AddDialog from '@/views/wms/sb/repair/devicerepair/AddDialog'
export default {
name: 'Devicerepairpa',
dicts: ['EM_DEVICE_WX_INVTYPE', 'EM_DEVICE_WX_INVSTATUS', 'EM_FAULT_LEVEL'],
components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker, Treeselect, ExecuteDialog, resuftDialog, ReceiveDialog, StartDialog },
components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker, Treeselect, ExecuteDialog, resuftDialog, ReceiveDialog, StartDialog, AddDialog },
mixins: [presenter(), header(), crud()],
cruds() {
return CRUD({
@@ -202,7 +214,7 @@ export default {
sort: 'repair_id,desc',
crudMethod: { ...crudDevicerepairmst },
optShow: {
add: false,
add: true,
edit: false,
del: false,
download: false,
@@ -249,6 +261,9 @@ export default {
hand(value) {
this.crud.toQuery()
},
formterStatus(row) {
return '06,07,99'.includes(row.invstatus)
},
loadClass({ action, parentNode, callback }) {
if (action === LOAD_CHILDREN_OPTIONS) {
crudClassstandard.getClass({ pid: parentNode.id }).then(res => {
@@ -289,9 +304,6 @@ export default {
startRepair() {
const _selectData = this.$refs.table.selection
const data = _selectData[0]
if (data.invstatus !== '02') {
return this.crud.notify('只能对提交状态的单据维修', CRUD.NOTIFICATION_TYPE.INFO)
}
this.openParam = data
this.startDialog = true
},
@@ -383,7 +395,7 @@ export default {
this.confirm_flag = false
this.result_flag = false
for (let i = 0; i < rows.length; i++) {
if ('01,03,04,05,06,07,99'.includes(rows[i].invstatus)) {
if ('03,04,05,06,07,99'.includes(rows[i].invstatus)) {
this.start_flag = true
}
if ('01,02,04,05,06,07,99'.includes(rows[i].invstatus)) {