跟新bug #407

Merged
zwq merged 1 commits from projects/mes-zwq into projects/mes-test 2024-11-20 13:48:28 +08:00
6 changed files with 47 additions and 36 deletions

View File

@ -1,8 +1,8 @@
<!-- <!--
filename: index.vue filename: index.vue
author: liubin author: liubin
date: 2023-10-19 10:03:42 date: 2023-10-19 10:03:42
description: description:
--> -->
<template> <template>
@ -189,7 +189,7 @@ export default {
input: true, input: true,
label: '工艺编码', label: '工艺编码',
prop: 'code', prop: 'code',
// url: '/base/core-equipment/getCode', url: '/extend/process-flow/getCode',
}, },
], ],
[ [

View File

@ -69,7 +69,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="workOrderNum" label="工单数量" width="140"> <el-table-column prop="workOrderNum" label="工单数量" width="140">
<template v-slot="scope"> <template v-slot="scope">
<el-button @click="handleRoute" type="text"> <el-button @click="handleRoute(scope.row)" type="text">
{{ scope.row.workOrderNum }} {{ scope.row.workOrderNum }}
</el-button> </el-button>
</template> </template>
@ -499,13 +499,13 @@ export default {
this.splitWorkOrderCancel(); this.splitWorkOrderCancel();
this.getList(); this.getList();
}, },
async handleRoute() { async handleRoute(row) {
const res = await orderAssignmentList({ const res = await orderAssignmentList({
orderIdList: [this.injectData.id], orderIdList: [row.id],
}); });
console.log(res.data); console.log(res.data);
let arr = []; let arr = [];
res.data[this.injectData.id].forEach((ele) => { res.data[row.id].forEach((ele) => {
arr.push(ele.workOrderId); arr.push(ele.workOrderId);
}); });
let woIdString = arr.join(','); let woIdString = arr.join(',');

View File

@ -183,6 +183,7 @@
</el-select> </el-select>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-tooltip effect="dark" content="该产线分配生产数量" placement="top-end">
<el-input-number <el-input-number
style="width: 100%" style="width: 100%"
v-model="item.num" v-model="item.num"
@ -190,6 +191,7 @@
:step="1" :step="1"
:min="0" :min="0"
step-strictly /> step-strictly />
</el-tooltip>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@ -236,12 +238,14 @@
</el-select> </el-select>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-tooltip effect="dark" content="该产线分配生产数量" placement="top-end">
<el-input-number <el-input-number
style="width: 100%" style="width: 100%"
v-model="item.num" v-model="item.num"
:step="1" :step="1"
:min="0" :min="0"
step-strictly /> step-strictly />
</el-tooltip>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>

View File

@ -2,7 +2,7 @@
* @Author: zwq * @Author: zwq
* @Date: 2021-11-18 14:16:25 * @Date: 2021-11-18 14:16:25
* @LastEditors: zwq * @LastEditors: zwq
* @LastEditTime: 2024-10-15 16:16:22 * @LastEditTime: 2024-11-19 16:49:09
* @Description: * @Description:
--> -->
<template> <template>
@ -61,7 +61,7 @@
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8">负责人:{{ dataForm.workers }}</el-col> <el-col :span="8">负责人:{{ dataForm.workers }}</el-col>
<el-col :span="8">关联产线: <el-col :span="8">关联产线:
<span v-for="(item, index) in dataForm.productLineNames" :key="index" style="margin-right: 10px">{{ item <span v-for="(item, index) in dataForm.productLineIds" :key="index" style="margin-right: 10px">{{ item.lineName
}}</span> }}</span>
</el-col> </el-col>
<el-col :span="8">物料计算方式:{{ dataForm.materialMethod === 1 ? '产品基础' : dataForm.materialMethod === 2 ? '工艺扩展' <el-col :span="8">物料计算方式:{{ dataForm.materialMethod === 1 ? '产品基础' : dataForm.materialMethod === 2 ? '工艺扩展'
@ -115,10 +115,10 @@
@clickBtn="handleClick" /> @clickBtn="handleClick" />
</base-table> </base-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="预计用料信息" name="material"> <!-- <el-tab-pane label="预计用料信息" name="material">
<base-table :max-height="tableH" :table-props="tableProps1" :page="listQuery1.pageNo" <base-table :max-height="tableH" :table-props="tableProps1" :page="listQuery1.pageNo"
:limit="listQuery1.pageSize" :table-data="materialList" /> :limit="listQuery1.pageSize" :table-data="materialList" />
</el-tab-pane> </el-tab-pane> -->
<el-tab-pane label="质量信息" name="quality"> <el-tab-pane label="质量信息" name="quality">
<base-table :max-height="tableH" :table-props="tablePropsQuality" :table-data="qualityList" :page="1" <base-table :max-height="tableH" :table-props="tablePropsQuality" :table-data="qualityList" :page="1"
:limit="10" /> :limit="10" />
@ -532,11 +532,12 @@ export default {
// }); // });
// } // }
// //
// orderList({ getConOrderList({
// workOrderId: this.dataForm.id workOrderId: this.dataForm.id,
// }).then((response) => { }).then((response) => {
// this.orderArray = response.data; this.orderList = response.data;
// }); // this.listQuery.total = response.data.total;
});
}, },
init(id, isdetail) { init(id, isdetail) {
this.initData(); this.initData();
@ -559,7 +560,7 @@ export default {
}) })
} }
// //
// this.getList(); this.getList();
}); });
} else { } else {
if (this.urlOptions.isGetCode) { if (this.urlOptions.isGetCode) {

View File

@ -315,7 +315,14 @@ export default {
{ {
prop: 'status', prop: 'status',
label: '工单状态', label: '工单状态',
filter: (val) => ['', '等待', '激活', '暂停', '完成', '', '', '', '', '作废'][val] filter: (val) => ['', '等待', '激活', '暂停', '完成', '作废', '终止', '', '', ''][val]
},
{
prop: 'startProduceTime',
label: '实际开始时间',
filter: parseTime,
minWidth: 150,
showOverflowtooltip: true
}, },
{ {
prop: 'planFinishTime', prop: 'planFinishTime',
@ -362,20 +369,20 @@ export default {
}) })
}, },
refreshWorkOrder(val) { refreshWorkOrder(val) {
console.log(val) // if (val) {
if (val) { // // 使
// 使 // console.log('使')
console.log('预使用原料信息') // this.handleCancel()
this.handleCancel() // this.getDataList()
this.getDataList() // this.materialVisible = true;
this.materialVisible = true; // this.addOrEditTitle = "使";
this.addOrEditTitle = "预使用主原料信息"; // this.$nextTick(() => {
this.$nextTick(() => { // this.$refs.material.init(val, true);
this.$refs.material.init(val, true); // });
}); // } else {
} else { // this.successSubmit()
this.successSubmit() // }
} this.successSubmit()
}, },
closeDetail() { closeDetail() {
this.detailVisible = false this.detailVisible = false
@ -417,7 +424,7 @@ export default {
opration = '暂停' opration = '暂停'
} }
if (val.type === 'nullify') { if (val.type === 'nullify') {
param.status = 9 param.status = 5
opration = '报废' opration = '报废'
} }
if (val.type === 'finish') { if (val.type === 'finish') {

View File

@ -1,8 +1,8 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2024-09-09 15:39:08 * @Date: 2024-09-09 15:39:08
* @LastEditTime: 2024-09-11 10:25:54 * @LastEditTime: 2024-11-18 16:43:54
* @LastEditors: zhp * @LastEditors: zwq
* @Description: * @Description:
--> -->
<template> <template>
@ -15,7 +15,6 @@
</button> </button>
<el-button style="flex: .1" type="text" @click="nextText" icon="el-icon-caret-right"></el-button> <el-button style="flex: .1" type="text" @click="nextText" icon="el-icon-caret-right"></el-button>
<button style="flex: .2;display: inline-block;" @click="goback()"> <button style="flex: .2;display: inline-block;" @click="goback()">
<svg-icon style="width: 20px; height: 20px" :icon-class=" 'back' " />
<span>返回</span> <span>返回</span>
</button> </button>
</div> </div>