Compare commits
No commits in common. "fc20e275f794cd6454370444d5a5c5bb9d76f301" and "342e83ab41ff41c9897d523825546cbe9edaa3df" have entirely different histories.
fc20e275f7
...
342e83ab41
@ -189,7 +189,7 @@ export default {
|
||||
input: true,
|
||||
label: '工艺编码',
|
||||
prop: 'code',
|
||||
url: '/extend/process-flow/getCode',
|
||||
// url: '/base/core-equipment/getCode',
|
||||
},
|
||||
],
|
||||
[
|
||||
|
@ -69,7 +69,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="workOrderNum" label="工单数量" width="140">
|
||||
<template v-slot="scope">
|
||||
<el-button @click="handleRoute(scope.row)" type="text">
|
||||
<el-button @click="handleRoute" type="text">
|
||||
{{ scope.row.workOrderNum }}
|
||||
</el-button>
|
||||
</template>
|
||||
@ -499,13 +499,13 @@ export default {
|
||||
this.splitWorkOrderCancel();
|
||||
this.getList();
|
||||
},
|
||||
async handleRoute(row) {
|
||||
async handleRoute() {
|
||||
const res = await orderAssignmentList({
|
||||
orderIdList: [row.id],
|
||||
orderIdList: [this.injectData.id],
|
||||
});
|
||||
console.log(res.data);
|
||||
let arr = [];
|
||||
res.data[row.id].forEach((ele) => {
|
||||
res.data[this.injectData.id].forEach((ele) => {
|
||||
arr.push(ele.workOrderId);
|
||||
});
|
||||
let woIdString = arr.join(',');
|
||||
|
@ -183,7 +183,6 @@
|
||||
</el-select>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-tooltip effect="dark" content="该产线分配生产数量" placement="top-end">
|
||||
<el-input-number
|
||||
style="width: 100%"
|
||||
v-model="item.num"
|
||||
@ -191,7 +190,6 @@
|
||||
:step="1"
|
||||
:min="0"
|
||||
step-strictly />
|
||||
</el-tooltip>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
@ -238,14 +236,12 @@
|
||||
</el-select>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-tooltip effect="dark" content="该产线分配生产数量" placement="top-end">
|
||||
<el-input-number
|
||||
style="width: 100%"
|
||||
v-model="item.num"
|
||||
:step="1"
|
||||
:min="0"
|
||||
step-strictly />
|
||||
</el-tooltip>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
|
@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2021-11-18 14:16:25
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2024-11-19 16:49:09
|
||||
* @LastEditTime: 2024-10-15 16:16:22
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@ -61,7 +61,7 @@
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="8">负责人:{{ dataForm.workers }}</el-col>
|
||||
<el-col :span="8">关联产线:
|
||||
<span v-for="(item, index) in dataForm.productLineIds" :key="index" style="margin-right: 10px">{{ item.lineName
|
||||
<span v-for="(item, index) in dataForm.productLineNames" :key="index" style="margin-right: 10px">{{ item
|
||||
}}</span>
|
||||
</el-col>
|
||||
<el-col :span="8">物料计算方式:{{ dataForm.materialMethod === 1 ? '产品基础' : dataForm.materialMethod === 2 ? '工艺扩展'
|
||||
@ -115,10 +115,10 @@
|
||||
@clickBtn="handleClick" />
|
||||
</base-table>
|
||||
</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"
|
||||
:limit="listQuery1.pageSize" :table-data="materialList" />
|
||||
</el-tab-pane> -->
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="质量信息" name="quality">
|
||||
<base-table :max-height="tableH" :table-props="tablePropsQuality" :table-data="qualityList" :page="1"
|
||||
:limit="10" />
|
||||
@ -532,12 +532,11 @@ export default {
|
||||
// });
|
||||
// }
|
||||
// 获取订单相关信息
|
||||
getConOrderList({
|
||||
workOrderId: this.dataForm.id,
|
||||
}).then((response) => {
|
||||
this.orderList = response.data;
|
||||
// this.listQuery.total = response.data.total;
|
||||
});
|
||||
// orderList({
|
||||
// workOrderId: this.dataForm.id
|
||||
// }).then((response) => {
|
||||
// this.orderArray = response.data;
|
||||
// });
|
||||
},
|
||||
init(id, isdetail) {
|
||||
this.initData();
|
||||
@ -560,7 +559,7 @@ export default {
|
||||
})
|
||||
}
|
||||
// 获取订单列表和用料列表
|
||||
this.getList();
|
||||
// this.getList();
|
||||
});
|
||||
} else {
|
||||
if (this.urlOptions.isGetCode) {
|
||||
|
@ -315,14 +315,7 @@ export default {
|
||||
{
|
||||
prop: 'status',
|
||||
label: '工单状态',
|
||||
filter: (val) => ['', '等待', '激活', '暂停', '完成', '作废', '终止', '', '', ''][val]
|
||||
},
|
||||
{
|
||||
prop: 'startProduceTime',
|
||||
label: '实际开始时间',
|
||||
filter: parseTime,
|
||||
minWidth: 150,
|
||||
showOverflowtooltip: true
|
||||
filter: (val) => ['', '等待', '激活', '暂停', '完成', '', '', '', '', '作废'][val]
|
||||
},
|
||||
{
|
||||
prop: 'planFinishTime',
|
||||
@ -369,20 +362,20 @@ export default {
|
||||
})
|
||||
},
|
||||
refreshWorkOrder(val) {
|
||||
// if (val) {
|
||||
// // 预使用原料信息
|
||||
// console.log('预使用原料信息')
|
||||
// this.handleCancel()
|
||||
// this.getDataList()
|
||||
// this.materialVisible = true;
|
||||
// this.addOrEditTitle = "预使用主原料信息";
|
||||
// this.$nextTick(() => {
|
||||
// this.$refs.material.init(val, true);
|
||||
// });
|
||||
// } else {
|
||||
// this.successSubmit()
|
||||
// }
|
||||
console.log(val)
|
||||
if (val) {
|
||||
// 预使用原料信息
|
||||
console.log('预使用原料信息')
|
||||
this.handleCancel()
|
||||
this.getDataList()
|
||||
this.materialVisible = true;
|
||||
this.addOrEditTitle = "预使用主原料信息";
|
||||
this.$nextTick(() => {
|
||||
this.$refs.material.init(val, true);
|
||||
});
|
||||
} else {
|
||||
this.successSubmit()
|
||||
}
|
||||
},
|
||||
closeDetail() {
|
||||
this.detailVisible = false
|
||||
@ -424,7 +417,7 @@ export default {
|
||||
opration = '暂停'
|
||||
}
|
||||
if (val.type === 'nullify') {
|
||||
param.status = 5
|
||||
param.status = 9
|
||||
opration = '报废'
|
||||
}
|
||||
if (val.type === 'finish') {
|
||||
|
@ -1,8 +1,8 @@
|
||||
<!--
|
||||
* @Author: zhp
|
||||
* @Date: 2024-09-09 15:39:08
|
||||
* @LastEditTime: 2024-11-18 16:43:54
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2024-09-11 10:25:54
|
||||
* @LastEditors: zhp
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@ -15,6 +15,7 @@
|
||||
</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()">
|
||||
<svg-icon style="width: 20px; height: 20px" :icon-class=" 'back' " />
|
||||
<span>返回</span>
|
||||
</button>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user