fix: pc可修改分切计划信息-前端
This commit is contained in:
@@ -111,9 +111,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row />
|
||||||
|
|
||||||
</el-row>
|
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="母卷上料">
|
<el-form-item label="母卷上料">
|
||||||
@@ -279,6 +277,50 @@
|
|||||||
>
|
>
|
||||||
强制完成
|
强制完成
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
slot="right"
|
||||||
|
class="filter-item"
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-top"
|
||||||
|
size="mini"
|
||||||
|
:disabled="crud.selections.length < 1"
|
||||||
|
@click="setUpOrDown('1')"
|
||||||
|
>
|
||||||
|
设置上轴
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
slot="right"
|
||||||
|
class="filter-item"
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-bottom"
|
||||||
|
size="mini"
|
||||||
|
:disabled="crud.selections.length < 1"
|
||||||
|
@click="setUpOrDown('2')"
|
||||||
|
>
|
||||||
|
设置下轴
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
slot="right"
|
||||||
|
class="filter-item"
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-back"
|
||||||
|
size="mini"
|
||||||
|
:disabled="crud.selections.length < 1"
|
||||||
|
@click="setLeftOrRight('1')"
|
||||||
|
>
|
||||||
|
设置左卷
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
slot="right"
|
||||||
|
class="filter-item"
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-right"
|
||||||
|
size="mini"
|
||||||
|
:disabled="crud.selections.length < 1"
|
||||||
|
@click="setLeftOrRight('2')"
|
||||||
|
>
|
||||||
|
设置右卷
|
||||||
|
</el-button>
|
||||||
</crudOperation>
|
</crudOperation>
|
||||||
<!--表单组件-->
|
<!--表单组件-->
|
||||||
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="1200px">
|
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="1200px">
|
||||||
@@ -434,8 +476,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;"
|
<el-table
|
||||||
@selection-change="crud.selectionChangeHandler">
|
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 type="selection" width="55" />
|
||||||
<el-table-column v-if="false" prop="workorder_id" label="分切计划标识" />
|
<el-table-column v-if="false" prop="workorder_id" label="分切计划标识" />
|
||||||
<el-table-column prop="status" label="状态" :formatter="formatStatusName" />
|
<el-table-column prop="status" label="状态" :formatter="formatStatusName" />
|
||||||
@@ -467,6 +515,16 @@
|
|||||||
<el-table-column prop="is_child_tz_ok" label="子卷套轴完成" width="100px" :formatter="formatChildName" />
|
<el-table-column prop="is_child_tz_ok" label="子卷套轴完成" width="100px" :formatter="formatChildName" />
|
||||||
<el-table-column prop="is_child_ps_ok" label="子卷配送完成" width="100px" :formatter="formatChildPsName" />
|
<el-table-column prop="is_child_ps_ok" label="子卷配送完成" width="100px" :formatter="formatChildPsName" />
|
||||||
<el-table-column prop="is_call" label="是否呼叫" width="100px" :formatter="formatChildCallName" />
|
<el-table-column prop="is_call" label="是否呼叫" width="100px" :formatter="formatChildCallName" />
|
||||||
|
<el-table-column prop="up_or_down" label="上轴下轴" width="100px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.up_or_down === '' ? '-' : scope.row.up_or_down === '1' ? '上轴' : '下轴' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="left_or_right" label="左卷右卷" width="100px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.left_or_right === '' ? '-' :scope.row.left_or_right === '1' ? '左卷' : '右卷' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="qzzno" label="气涨轴编码" width="160px" />
|
<el-table-column prop="qzzno" label="气涨轴编码" width="160px" />
|
||||||
<el-table-column prop="start_time" label="开始时间" width="150px" />
|
<el-table-column prop="start_time" label="开始时间" width="150px" />
|
||||||
<el-table-column prop="end_time" label="结束时间" width="150px" />
|
<el-table-column prop="end_time" label="结束时间" width="150px" />
|
||||||
@@ -674,6 +732,28 @@ export default {
|
|||||||
},
|
},
|
||||||
formatChildCallName(row) {
|
formatChildCallName(row) {
|
||||||
return this.dict.label.IS_OR_NOT[row.is_call]
|
return this.dict.label.IS_OR_NOT[row.is_call]
|
||||||
|
},
|
||||||
|
setUpOrDown(flag) {
|
||||||
|
const _selectData = this.$refs.table.selection
|
||||||
|
const param = {
|
||||||
|
'data': _selectData,
|
||||||
|
'up_or_down': flag
|
||||||
|
}
|
||||||
|
crudSlittingproductionplan.setDirection(param).then(() => {
|
||||||
|
this.crud.toQuery()
|
||||||
|
this.crud.notify('设置成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
setLeftOrRight(flag) {
|
||||||
|
const _selectData = this.$refs.table.selection
|
||||||
|
const param = {
|
||||||
|
'data': _selectData,
|
||||||
|
'left_or_right': flag
|
||||||
|
}
|
||||||
|
crudSlittingproductionplan.setDirection(param).then(() => {
|
||||||
|
this.crud.toQuery()
|
||||||
|
this.crud.notify('设置成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,4 +64,12 @@ export function compelFinish(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export default { add, edit, del, upMaterFinish, caseFinish, sendFinish, inFinish, compelFinish }
|
export function setDirection(data) {
|
||||||
|
return request({
|
||||||
|
url: 'api/slittingproductionplan/setDirection',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export default { add, edit, del, upMaterFinish, caseFinish, sendFinish, inFinish, compelFinish, setDirection }
|
||||||
|
|||||||
Reference in New Issue
Block a user