新增白坯工单管理

yangwl
zhaoxiaolin 11 months ago
parent 2c26c687a4
commit dfc7279397

@ -0,0 +1,103 @@
import request from '@/utils/request'
export function getWorkOrders(workorderCode) {
return request({
url:'/plan/bppro/workorder/getWorkOrders/'+workorderCode,
method:'get'
})
}
// 校验工单是否可以修改
export function checkWorkOrder(workorderId){
return request({
url:'/plan/bppro/workorder/checkWorkOrder/'+workorderId,
method:'get'
})
}
// 提交修改工单接口
export function subChangeWorkOrder(data){
return request({
url:'/plan/bppro/workorder/subChangeWorkOrder',
method:'post',
data:data
})
}
// 通过子工单查询父工单对应的批次list
export function getWorkBatchList(data){
return request({
url:'/plan/bppro/workorder/getWorkBatchList',
method:'post',
data: data
})
}
// 通过子工单查询订单信息和工单信息
export function getOrderAndWork(data) {
return request({
url: '/plan/bppro/workorder/getOrderAndWorkInfo',
method: 'post',
data: data
})
}
// 查询生产工单列表
export function listWorkorder(query) {
return request({
url: '/plan/bppro/workorder/list',
method: 'get',
params: query
});
}
// 查询生产工单详细
export function getWorkorder(workorderId) {
return request({
url: '/plan/bppro/workorder/' + workorderId,
method: 'get'
});
}
// 新增生产工单
export function addWorkorder(data) {
return request({
url: '/plan/bppro/workorder',
method: 'post',
data: data
});
}
// 修改生产工单
export function updateWorkorder(data) {
return request({
url: '/plan/bppro/workorder',
method: 'put',
data: data
});
}
// 删除生产工单
export function delWorkorder(workorderId) {
return request({
url: '/plan/bppro/workorder/' + workorderId,
method: 'delete'
});
}
//下发生产工单
export function downWorkorder(workorderId) {
return request({
url: '/plan/bppro/workorder/downWorkorder/' + workorderId,
method: 'post'
});
}
// 提交修改工单接口
export function subChangeWorkOrderM(data){
return request({
url:'/plan/bppro/workorder/subChangeWorkOrderM',
method:'post',
data:data
})
}

@ -863,6 +863,7 @@ export default {
//
getProRoutes(row.prodCode).then(response => {
this.routes = response.data
this.splitForm.routeCode = response.data[0]
})
var ymd = moment(this.splitForm.productDate).format('YYYY-MM-DD')

@ -271,8 +271,13 @@
</el-table-column>
<el-table-column
prop="workorderCode"
label="工单号"
width="180">
label="生产工单"
width="150">
</el-table-column>
<el-table-column
prop="workorderCodeSap"
width="150"
label="生产订单">
</el-table-column>
<el-table-column
prop="productName"
@ -283,10 +288,6 @@
prop="unit"
label="单位">
</el-table-column>
<el-table-column
prop="orderCode"
label="生产订单">
</el-table-column>
<el-table-column
prop="quantityProduced"
label="已生产数量">

File diff suppressed because it is too large Load Diff

@ -105,7 +105,17 @@
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="检验规则名称" align="center" prop="ruleName" :show-overflow-tooltip="true" width="250"/>
<el-table-column
label="序号"
type="index"
width="50"
align="center">
<template scope="scope">
<span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
</template>
</el-table-column>
<el-table-column label="检验规则编码" align="center" prop="projectNo" />
<el-table-column label="检验规则名称" align="left" prop="ruleName" :show-overflow-tooltip="true" width="250"/>
<el-table-column label="标准值" align="left" prop="standardValue" :show-overflow-tooltip="true" width="250"/>
<el-table-column label="上差值" align="left" prop="upperDiff" />
<el-table-column label="下差值" align="left" prop="downDiff" />

Loading…
Cancel
Save