You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
318 lines
8.2 KiB
318 lines
8.2 KiB
|
7 months ago
|
<template>
|
||
|
5 months ago
|
<basic-container>
|
||
|
3 months ago
|
<avue-crud
|
||
|
|
:option="option"
|
||
|
|
:table-loading="loading"
|
||
|
|
:data="data"
|
||
|
|
v-model:page="page"
|
||
|
|
v-model="form"
|
||
|
|
ref="crud"
|
||
|
|
@search-change="searchChange"
|
||
|
|
@search-reset="searchReset"
|
||
|
|
@selection-change="selectionChange"
|
||
|
|
@current-change="currentChange"
|
||
|
|
@size-change="sizeChange"
|
||
|
|
@refresh-change="refreshChange"
|
||
|
|
@on-load="onLoad"
|
||
|
|
>
|
||
|
5 months ago
|
<template #menu="{ row }">
|
||
|
4 months ago
|
<!-- <el-button type="text">返工工艺</el-button> -->
|
||
|
|
<el-button type="text" @click="receiveData(row)" v-if="row.status == 0">接收</el-button>
|
||
|
2 months ago
|
<el-button type="text" @click="updateData(row)" v-if="row.status == 0">改数接收</el-button>
|
||
|
2 months ago
|
<el-button type="text" @click="finishData(row)">完成</el-button>
|
||
|
5 months ago
|
</template>
|
||
|
|
</avue-crud>
|
||
|
2 months ago
|
<!-- 改数接收 -->
|
||
|
|
<updateMakeQty
|
||
|
|
v-if="updateMakeQtyVisible"
|
||
|
|
ref="updateMakeQty"
|
||
|
|
:showDialog="updateMakeQtyVisible"
|
||
|
|
@close="updateMakeQtyClose"
|
||
|
|
:itemData="itemData"
|
||
|
|
></updateMakeQty>
|
||
|
5 months ago
|
</basic-container>
|
||
|
6 months ago
|
</template>
|
||
|
|
<script>
|
||
|
2 months ago
|
import { getList, getReceiveOrder, completeOrder } from '@/api/productionManagement/reworkOrder';
|
||
|
2 months ago
|
import updateMakeQty from './components/updateMakeQty.vue';
|
||
|
6 months ago
|
export default {
|
||
|
2 months ago
|
components: { updateMakeQty },
|
||
|
5 months ago
|
data() {
|
||
|
|
return {
|
||
|
2 months ago
|
updateMakeQtyVisible: false,
|
||
|
|
itemData: {},
|
||
|
3 months ago
|
page: {
|
||
|
|
pageSize: 10,
|
||
|
|
currentPage: 1,
|
||
|
|
total: 0,
|
||
|
|
},
|
||
|
5 months ago
|
data: [],
|
||
|
|
form: {},
|
||
|
|
option: {
|
||
|
|
tip: false,
|
||
|
3 months ago
|
height: 'auto',
|
||
|
5 months ago
|
calcHeight: 32,
|
||
|
|
columnSort: true,
|
||
|
|
// simplePage: true,
|
||
|
|
searchShow: true,
|
||
|
|
searchMenuSpan: 6,
|
||
|
|
searchIcon: true,
|
||
|
|
searchIndex: 3,
|
||
|
|
tree: false,
|
||
|
|
border: true,
|
||
|
|
index: true,
|
||
|
3 months ago
|
selection: false,
|
||
|
5 months ago
|
viewBtn: false,
|
||
|
|
delBtn: false,
|
||
|
|
addBtn: false,
|
||
|
|
editBtn: false,
|
||
|
3 months ago
|
editBtnText: '修改',
|
||
|
|
viewBtnText: '详情',
|
||
|
|
addBtnIcon: ' ',
|
||
|
|
viewBtnIcon: ' ',
|
||
|
|
delBtnIcon: ' ',
|
||
|
|
editBtnIcon: ' ',
|
||
|
|
labelWidth: '200px',
|
||
|
5 months ago
|
dialogWidth: 600,
|
||
|
2 months ago
|
menuWidth:140,
|
||
|
5 months ago
|
dialogClickModal: false,
|
||
|
|
searchEnter: true,
|
||
|
|
filterBtn: true,
|
||
|
|
searchShowBtn: false,
|
||
|
|
excelBtn: true,
|
||
|
|
showOverflowTooltip: true,
|
||
|
3 months ago
|
align: 'center',
|
||
|
|
searchLabelPosition: 'left',
|
||
|
5 months ago
|
searchGutter: 24,
|
||
|
|
searchSpan: 6,
|
||
|
3 months ago
|
menuAlign: 'left',
|
||
|
5 months ago
|
gridBtn: false,
|
||
|
3 months ago
|
searchMenuPosition: 'right',
|
||
|
5 months ago
|
column: [
|
||
|
|
{
|
||
|
3 months ago
|
label: '返工单号',
|
||
|
|
prop: 'redono',
|
||
|
5 months ago
|
search: true,
|
||
|
|
sortable: true,
|
||
|
|
filter: true,
|
||
|
|
addDisplay: false,
|
||
|
|
editDisplay: false,
|
||
|
|
viewDisplay: false,
|
||
|
|
span: 24,
|
||
|
2 months ago
|
width: 150,
|
||
|
5 months ago
|
},
|
||
|
|
{
|
||
|
3 months ago
|
label: '路线编号',
|
||
|
|
prop: 'seqno',
|
||
|
5 months ago
|
search: false,
|
||
|
|
sortable: true,
|
||
|
|
filter: true,
|
||
|
|
addDisplay: false,
|
||
|
|
editDisplay: false,
|
||
|
|
viewDisplay: false,
|
||
|
|
span: 24,
|
||
|
2 months ago
|
width: 150,
|
||
|
5 months ago
|
},
|
||
|
|
{
|
||
|
3 months ago
|
label: '发生单位',
|
||
|
|
prop: 'usedept',
|
||
|
5 months ago
|
search: false,
|
||
|
|
sortable: true,
|
||
|
|
filter: true,
|
||
|
|
addDisplay: false,
|
||
|
|
editDisplay: false,
|
||
|
|
viewDisplay: false,
|
||
|
|
span: 24,
|
||
|
2 months ago
|
width: 150,
|
||
|
5 months ago
|
},
|
||
|
3 months ago
|
|
||
|
5 months ago
|
{
|
||
|
3 months ago
|
label: '零件号',
|
||
|
|
prop: 'prtno',
|
||
|
5 months ago
|
search: true,
|
||
|
|
sortable: true,
|
||
|
|
filter: true,
|
||
|
|
addDisplay: false,
|
||
|
|
editDisplay: false,
|
||
|
|
viewDisplay: false,
|
||
|
|
span: 24,
|
||
|
2 months ago
|
width: 150,
|
||
|
5 months ago
|
},
|
||
|
|
{
|
||
|
3 months ago
|
label: '数量',
|
||
|
|
prop: 'amount',
|
||
|
5 months ago
|
search: false,
|
||
|
|
sortable: true,
|
||
|
|
filter: true,
|
||
|
|
addDisplay: false,
|
||
|
|
editDisplay: false,
|
||
|
|
viewDisplay: false,
|
||
|
|
span: 24,
|
||
|
2 months ago
|
width: 150,
|
||
|
5 months ago
|
},
|
||
|
|
{
|
||
|
3 months ago
|
label: '处理意见',
|
||
|
|
prop: 'detail',
|
||
|
5 months ago
|
search: false,
|
||
|
|
sortable: true,
|
||
|
|
filter: true,
|
||
|
|
addDisplay: false,
|
||
|
|
editDisplay: false,
|
||
|
|
viewDisplay: false,
|
||
|
|
span: 24,
|
||
|
2 months ago
|
width: 150,
|
||
|
5 months ago
|
},
|
||
|
|
{
|
||
|
3 months ago
|
label: '工艺路线',
|
||
|
|
prop: 'deptcode',
|
||
|
5 months ago
|
search: false,
|
||
|
|
sortable: true,
|
||
|
|
filter: true,
|
||
|
|
addDisplay: false,
|
||
|
|
editDisplay: false,
|
||
|
|
viewDisplay: false,
|
||
|
|
span: 24,
|
||
|
2 months ago
|
width: 150,
|
||
|
5 months ago
|
},
|
||
|
|
{
|
||
|
3 months ago
|
label: '批次号',
|
||
|
|
prop: 'splcode',
|
||
|
4 months ago
|
search: true,
|
||
|
5 months ago
|
sortable: true,
|
||
|
|
filter: true,
|
||
|
|
addDisplay: false,
|
||
|
|
editDisplay: false,
|
||
|
|
viewDisplay: false,
|
||
|
|
span: 24,
|
||
|
2 months ago
|
width: 150,
|
||
|
5 months ago
|
},
|
||
|
|
{
|
||
|
3 months ago
|
label: '需求交期',
|
||
|
|
prop: 'reqdate',
|
||
|
5 months ago
|
search: false,
|
||
|
|
sortable: true,
|
||
|
|
filter: true,
|
||
|
|
addDisplay: false,
|
||
|
|
editDisplay: false,
|
||
|
|
viewDisplay: false,
|
||
|
|
span: 24,
|
||
|
2 months ago
|
width: 150,
|
||
|
5 months ago
|
},
|
||
|
|
{
|
||
|
3 months ago
|
label: '接收状态',
|
||
|
|
prop: 'status',
|
||
|
5 months ago
|
search: true,
|
||
|
|
sortable: true,
|
||
|
|
filter: true,
|
||
|
|
addDisplay: false,
|
||
|
|
editDisplay: false,
|
||
|
|
viewDisplay: false,
|
||
|
3 months ago
|
type: 'select',
|
||
|
4 months ago
|
dicData: [
|
||
|
|
{
|
||
|
3 months ago
|
label: '待接收',
|
||
|
|
value: '0',
|
||
|
4 months ago
|
},
|
||
|
|
{
|
||
|
3 months ago
|
label: '已接收',
|
||
|
|
value: '1',
|
||
|
4 months ago
|
},
|
||
|
|
],
|
||
|
5 months ago
|
span: 24,
|
||
|
2 months ago
|
width: 150,
|
||
|
4 months ago
|
},
|
||
|
3 months ago
|
|
||
|
4 months ago
|
{
|
||
|
3 months ago
|
label: '备注',
|
||
|
|
prop: 'remark',
|
||
|
4 months ago
|
search: false,
|
||
|
|
sortable: true,
|
||
|
|
filter: true,
|
||
|
|
addDisplay: false,
|
||
|
|
editDisplay: false,
|
||
|
|
viewDisplay: false,
|
||
|
|
span: 24,
|
||
|
2 months ago
|
width: 150,
|
||
|
5 months ago
|
},
|
||
|
|
],
|
||
|
|
},
|
||
|
|
};
|
||
|
|
},
|
||
|
3 months ago
|
mounted() {},
|
||
|
5 months ago
|
methods: {
|
||
|
2 months ago
|
updateMakeQtyClose(){
|
||
|
|
this.updateMakeQtyVisible = false;
|
||
|
|
this.onLoad(this.page,this.query)
|
||
|
|
},
|
||
|
2 months ago
|
updateData(row) {
|
||
|
|
this.itemData = row;
|
||
|
|
this.updateMakeQtyVisible = true;
|
||
|
|
},
|
||
|
5 months ago
|
receiveData(row) {
|
||
|
3 months ago
|
this.$confirm('确定接收此工单?', '提示', {
|
||
|
|
confirmButtonText: '确认',
|
||
|
|
cancelButtonText: '取消',
|
||
|
|
type: 'warning',
|
||
|
2 months ago
|
}).then(() => {
|
||
|
2 months ago
|
this.loading=true
|
||
|
2 months ago
|
getReceiveOrder(row).then(res => {
|
||
|
|
this.$message({
|
||
|
|
message: '接收成功',
|
||
|
|
type: 'success',
|
||
|
|
});
|
||
|
|
this.onLoad(this.page.this.query);
|
||
|
|
});
|
||
|
|
});
|
||
|
6 months ago
|
},
|
||
|
5 months ago
|
finishData(row) {
|
||
|
3 months ago
|
this.$confirm('确定完成此工单?', '提示', {
|
||
|
|
confirmButtonText: '确认',
|
||
|
|
cancelButtonText: '取消',
|
||
|
|
type: 'warning',
|
||
|
2 months ago
|
}).then(() => {
|
||
|
2 months ago
|
this.loading=true
|
||
|
2 months ago
|
completeOrder(row).then(() => {
|
||
|
|
this.$message({
|
||
|
2 months ago
|
message: '操作成功',
|
||
|
2 months ago
|
type: 'success',
|
||
|
|
});
|
||
|
|
this.onLoad(this.page.this.query);
|
||
|
|
});
|
||
|
|
});
|
||
|
3 months ago
|
},
|
||
|
2 months ago
|
currentChange(currentPage) {
|
||
|
3 months ago
|
this.page.currentPage = currentPage;
|
||
|
|
this.onLoad(this.page, this.query);
|
||
|
|
},
|
||
|
|
sizeChange(pageSize) {
|
||
|
|
this.page.pageSize = pageSize;
|
||
|
|
this.onLoad(this.page, this.query);
|
||
|
|
},
|
||
|
|
refreshChange() {
|
||
|
|
this.onLoad(this.page, this.query);
|
||
|
|
},
|
||
|
|
searchReset() {
|
||
|
|
this.query = {};
|
||
|
|
this.treeDeptId = '';
|
||
|
|
this.onLoad(this.page, this.query);
|
||
|
|
},
|
||
|
|
searchChange(params, done) {
|
||
|
|
this.query = params;
|
||
|
|
this.page.currentPage = 1;
|
||
|
|
this.onLoad(this.page, params);
|
||
|
|
done();
|
||
|
6 months ago
|
},
|
||
|
3 months ago
|
onLoad(page, params = {}) {
|
||
|
2 months ago
|
this.loading = true;
|
||
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
|
||
|
|
this.data = res.data.data.records;
|
||
|
|
this.loading = false;
|
||
|
|
this.page.total = res.data.data.total;
|
||
|
|
this.selectionClear();
|
||
|
|
});
|
||
|
5 months ago
|
},
|
||
|
|
},
|
||
|
|
};
|
||
|
6 months ago
|
</script>
|
||
|
5 months ago
|
<style lang="scss" scoped></style>
|