|
|
|
|
@ -17,6 +17,7 @@ |
|
|
|
|
@refresh-change="refreshChange" |
|
|
|
|
@on-load="onLoad" |
|
|
|
|
:row-class-name="rowCLassName" |
|
|
|
|
@sort-change="sortChange" |
|
|
|
|
> |
|
|
|
|
<template #menu-left> |
|
|
|
|
<!-- <el-button type="primary" @click="materialFormPrint">领料单打印</el-button> --> |
|
|
|
|
@ -24,23 +25,23 @@ |
|
|
|
|
|
|
|
|
|
<template #menu-right="{ size }"> |
|
|
|
|
<!-- 加工中 --> |
|
|
|
|
<el-button type="warning" @click="filterFun('3')" plain |
|
|
|
|
<el-button type="warning" @click="filterFun('3')" plain v-if="permission.oemOrder_processing" |
|
|
|
|
>加工中</el-button |
|
|
|
|
> |
|
|
|
|
<!-- 检验中 --> |
|
|
|
|
<el-button type="danger" @click="filterFun('4')" plain |
|
|
|
|
<el-button type="danger" @click="filterFun('4')" plain v-if="permission.oemOrder_inspection" |
|
|
|
|
>检验中</el-button |
|
|
|
|
> |
|
|
|
|
<!-- 已下达 --> |
|
|
|
|
<el-button type="success" @click="filterFun('2')" plain |
|
|
|
|
<el-button type="success" @click="filterFun('2')" plain v-if="permission.oemOrder_issued" |
|
|
|
|
>已下达</el-button |
|
|
|
|
> |
|
|
|
|
<!-- 已完成 --> |
|
|
|
|
<el-button type="success" plain @click="filterFun('15')" |
|
|
|
|
<el-button type="success" plain @click="filterFun('15')" v-if="permission.oemOrder_completed" |
|
|
|
|
>已完成</el-button |
|
|
|
|
> |
|
|
|
|
<!-- 全部 --> |
|
|
|
|
<el-button type="primary" @click="filterFun()" plain |
|
|
|
|
<el-button type="primary" @click="filterFun()" plain v-if="permission.oemOrder_all" |
|
|
|
|
>全部</el-button |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
@ -50,21 +51,21 @@ |
|
|
|
|
<!-- <el-button type="primary" link @click="takeBack(scope.row)" |
|
|
|
|
>领料单打印</el-button |
|
|
|
|
> --> |
|
|
|
|
<el-button type="primary" link @click="changeFn(scope.row)">厂家更改</el-button> |
|
|
|
|
<el-button type="primary" link @click="changeFn(scope.row)" v-if="permission.oemOrder_change_factiry">厂家更改</el-button> |
|
|
|
|
<!-- </template> --> |
|
|
|
|
|
|
|
|
|
<template |
|
|
|
|
v-if="scope.row.approvalStatus != 2 && scope.row.runStatus < 15" |
|
|
|
|
> |
|
|
|
|
<el-button type="text" @click="takeBack(scope.row)">收回</el-button> |
|
|
|
|
<el-button type="text" v-if="scope.row.oemStatus == 1 " @click="turnFacInner(scope.row)" >转厂内</el-button> |
|
|
|
|
<el-button type="text" @click="inBatches(scope.row)" >分批</el-button> |
|
|
|
|
<el-button type="text" @click="takeBack(scope.row)" v-if="permission.oemOrder_takeBack">收回</el-button> |
|
|
|
|
<el-button type="text" v-if="scope.row.oemStatus == 1 && permission.oemOrder_turnFacInner" @click="turnFacInner(scope.row)" >转厂内</el-button> |
|
|
|
|
<el-button type="text" @click="inBatches(scope.row)" v-if="permission.oemOrder_batch">分批</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template |
|
|
|
|
v-if="scope.row.approvalStatus != 2 && scope.row.runStatus >= 15"> |
|
|
|
|
<!-- <span style="color: red">订单{{ scope.row.runStatusTitle }}</span> --> |
|
|
|
|
<el-button type="text" @click="qualityRecords(scope.row)">质量记录</el-button> |
|
|
|
|
<el-button type="text" @click="certificate(scope.row)">合格证</el-button> |
|
|
|
|
<el-button type="text" @click="qualityRecords(scope.row)" v-if="permission.oemOrder_quality">质量记录</el-button> |
|
|
|
|
<el-button type="text" @click="certificate(scope.row)" v-if="permission.oemOrder_certificate">合格证</el-button> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
<!-- <template #virtualMac="scope"> |
|
|
|
|
@ -211,14 +212,14 @@ export default { |
|
|
|
|
prop: "planNumber", |
|
|
|
|
// bind: "prWorkOrder.pjYieldOrder.poCode", |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 170, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "订单单号", |
|
|
|
|
prop: "woCode", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 190, |
|
|
|
|
@ -227,7 +228,7 @@ export default { |
|
|
|
|
label: "零件号", |
|
|
|
|
prop: "partCode", |
|
|
|
|
// bind: "prWorkOrder.pjYieldOrder.partCode", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
hide: false, |
|
|
|
|
@ -238,7 +239,7 @@ export default { |
|
|
|
|
label: "计划下达时间", |
|
|
|
|
prop: "planIssuanceTime", |
|
|
|
|
// bind: "prWorkOrder.pjYieldOrder.failureTime", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 170, |
|
|
|
|
@ -254,7 +255,7 @@ export default { |
|
|
|
|
label: "镀后入库时间", |
|
|
|
|
prop: "postPlatingStorageTime", |
|
|
|
|
// bind: "prWorkOrder.putStoreTime", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 150, |
|
|
|
|
@ -270,7 +271,7 @@ export default { |
|
|
|
|
label: "订单状态", |
|
|
|
|
prop: "orderStatus", |
|
|
|
|
// bind: 'prWorkOrder.runStatus', |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -320,7 +321,7 @@ export default { |
|
|
|
|
prop: "oemStatusList", |
|
|
|
|
type:"select", |
|
|
|
|
// bind: 'prWorkOrder.runStatus', |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
hide: true, |
|
|
|
|
search: true, |
|
|
|
|
dicData:[ |
|
|
|
|
@ -333,7 +334,7 @@ export default { |
|
|
|
|
label: "订单状态", |
|
|
|
|
prop: "runStatusName", |
|
|
|
|
// bind: 'prWorkOrder.runStatus', |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: false, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -378,12 +379,14 @@ export default { |
|
|
|
|
label:'外协状态', |
|
|
|
|
prop:"oemStatusTitle", |
|
|
|
|
search:false, |
|
|
|
|
width:100, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "批次号", |
|
|
|
|
prop: "batchNo", |
|
|
|
|
// bind: "prWorkOrder.batchNo", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -393,7 +396,7 @@ export default { |
|
|
|
|
label: "产品名称", |
|
|
|
|
prop: "partName", |
|
|
|
|
// bind: "prWorkOrder.pjYieldOrder.partName", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -404,7 +407,7 @@ export default { |
|
|
|
|
label: "流程卡号", |
|
|
|
|
prop: "cardNo", |
|
|
|
|
// bind: "prWorkOrder.cardNo", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -415,6 +418,7 @@ export default { |
|
|
|
|
// bind: "prWorkOrder.mesCardNo", |
|
|
|
|
display: true, |
|
|
|
|
search: false, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
}, |
|
|
|
|
@ -422,7 +426,7 @@ export default { |
|
|
|
|
label: "镀种信息", |
|
|
|
|
prop: "plate", |
|
|
|
|
// bind: "prWorkOrder.pjYieldOrder.plate", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -431,7 +435,7 @@ export default { |
|
|
|
|
label: "生产标识", |
|
|
|
|
prop: "productIdent", |
|
|
|
|
// bind: "prWorkOrder.pjYieldOrder.prodIdent", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -440,7 +444,7 @@ export default { |
|
|
|
|
label: "优先级", |
|
|
|
|
prop: "priority", |
|
|
|
|
// bind: "prWorkOrder.priority", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -479,7 +483,7 @@ export default { |
|
|
|
|
label: "使用部门", |
|
|
|
|
prop: "deptName", |
|
|
|
|
// bind: "prWorkOrder.pjYieldOrder.useDept", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -490,7 +494,7 @@ export default { |
|
|
|
|
label: "数量", |
|
|
|
|
prop: "makeQty", |
|
|
|
|
// bind: "prWorkOrder.makeQty", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: false, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -499,7 +503,7 @@ export default { |
|
|
|
|
label: "面积(d㎡)", |
|
|
|
|
prop: "totalArea", |
|
|
|
|
// bind: "prWorkOrder.pjYieldOrder.poArea", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: false, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -508,7 +512,7 @@ export default { |
|
|
|
|
label: "单批次面积", |
|
|
|
|
prop: "area", |
|
|
|
|
// bind: "prWorkOrder.batchArea", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: false, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -517,7 +521,7 @@ export default { |
|
|
|
|
label: "需求交期", |
|
|
|
|
prop: "demandDate", |
|
|
|
|
// bind: "prWorkOrder.demandDate", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
type: "date", |
|
|
|
|
format: "YYYY-MM-DD", |
|
|
|
|
@ -530,7 +534,7 @@ export default { |
|
|
|
|
label: "外协代码/简称", |
|
|
|
|
prop: "oemCode", |
|
|
|
|
// bind: "inCustomer.codeAndName", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 150, |
|
|
|
|
@ -540,7 +544,7 @@ export default { |
|
|
|
|
label: "计划员", |
|
|
|
|
prop: "planner", |
|
|
|
|
// bind: "prWorkOrder.pjYieldOrder.planUser", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -549,7 +553,7 @@ export default { |
|
|
|
|
label: "调度员", |
|
|
|
|
prop: "dispatcher", |
|
|
|
|
// bind: "prWorkOrder.dispatcher.userName", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -557,7 +561,7 @@ export default { |
|
|
|
|
// { |
|
|
|
|
// label: '备注', |
|
|
|
|
// prop: 'memo', |
|
|
|
|
// sortable: true, |
|
|
|
|
// sortable: 'custom', |
|
|
|
|
// search: false, |
|
|
|
|
// width: 120, |
|
|
|
|
// }, |
|
|
|
|
@ -565,7 +569,7 @@ export default { |
|
|
|
|
label: "已交件数量", |
|
|
|
|
prop: "submittedNum", |
|
|
|
|
// bind: 'prWorkOrder.inventoryQty', |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: false, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -574,7 +578,7 @@ export default { |
|
|
|
|
label: "未交件数量", |
|
|
|
|
prop: "unsubmittedNum", |
|
|
|
|
// bind: 'notInQty', |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: false, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -582,7 +586,7 @@ export default { |
|
|
|
|
{ |
|
|
|
|
label: "工艺路线", |
|
|
|
|
prop: "craftWay", |
|
|
|
|
sortable: true, |
|
|
|
|
sortable: 'custom', |
|
|
|
|
search: false, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 120, |
|
|
|
|
@ -620,6 +624,18 @@ export default { |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 表格排序 |
|
|
|
|
sortChange({ prop, order }) { |
|
|
|
|
console.log('prop----------',prop) |
|
|
|
|
console.log('order----------',order) |
|
|
|
|
this.query.ascs = undefined; |
|
|
|
|
this.query.descs = undefined; |
|
|
|
|
const orderByFieldKey = order === 'ascending' ? 'ascs' : 'descs'; |
|
|
|
|
const orderByField = prop.replace(/([a-z])([A-Z0-9])/g, '$1_$2').toUpperCase(); |
|
|
|
|
this.query[orderByFieldKey] = orderByField; |
|
|
|
|
// // 重新加载数据 |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}, |
|
|
|
|
// 厂家修改 |
|
|
|
|
changeFn(row) { |
|
|
|
|
this.worId = row.woId |
|
|
|
|
|