Commit 2280ab13 authored by 李驰骋's avatar 李驰骋

Merge remote-tracking branch 'origin/dev' into dev

parents 5c4de52e 1f54f3a2
...@@ -41,10 +41,14 @@ ...@@ -41,10 +41,14 @@
<el-table-column :label="$t('工序编码')" width="120px" fixed align="center" prop="processCode" /> <el-table-column :label="$t('工序编码')" width="120px" fixed align="center" prop="processCode" />
<el-table-column :label="$t('工序名称')" width="150px" fixed align="center" prop="processName" /> <el-table-column :label="$t('工序名称')" width="150px" fixed align="center" prop="processName" />
<el-table-column :label="$t('标准工时')" width="150px" align="center" prop="stdWorkingTime" /> <el-table-column :label="$t('标准工时')" width="150px" align="center" prop="stdWorkingTime" />
<el-table-column :label="$t('common.workstation')" width="150px" align="center" prop="workstationName" /> <el-table-column :label="$t('common.workstation_name')" width="150px" align="center" prop="workstationName" />
<el-table-column :label="$t('工序总量')" width="100px" align="center" prop="keyFlag" /> <el-table-column :label="$t('common.workstation_code')" width="150px" align="center" prop="workstationCode" />
<el-table-column :label="$t('换型时间')" prop="lineBreakTime" align="center" /> <el-table-column :label="$t('换型时间')" prop="lineBreakTime" align="center" />
<el-table-column :label="$t('工时单位')" prop="stdWorkingTimeUom" align="center" /> <el-table-column :label="$t('工时单位')" prop="stdWorkingTimeUom" align="center" >
<template slot-scope="scope">
<dict-tag :options="dict.type.mes_work_time" :value="scope.row.stdWorkingTimeUom" />
</template>
</el-table-column>
<el-table-column :label="$t('工序总数量')" prop="quantity" align="center" /> <el-table-column :label="$t('工序总数量')" prop="quantity" align="center" />
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
...@@ -71,6 +75,7 @@ export default { ...@@ -71,6 +75,7 @@ export default {
props: { props: {
itemCode: null, itemCode: null,
}, },
dicts: ["mes_work_time"],
data() { data() {
return { return {
showFlag: false, showFlag: false,
......
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
> >
<el-option <el-option
v-for="dict in dict.type.mes_time_type" v-for="dict in dict.type.mes_work_time"
:key="dict.value" :key="dict.value"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
...@@ -523,7 +523,7 @@ export default { ...@@ -523,7 +523,7 @@ export default {
dicts: [ dicts: [
"process_control_code", "process_control_code",
"sys_yes_no", "sys_yes_no",
"mes_time_type", "mes_work_time",
"mes_work_time", "mes_work_time",
"product_shape", "product_shape",
], ],
......
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
<el-form-item label="时间单位" prop="timeUnitType"> <el-form-item label="时间单位" prop="timeUnitType">
<el-select v-model="form.timeUnitType"> <el-select v-model="form.timeUnitType">
<el-option <el-option
v-for="dict in dict.type.mes_time_type" v-for="dict in dict.type.mes_work_time"
:key="dict.value" :key="dict.value"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
...@@ -196,7 +196,7 @@ import Routeproductbom from "./routeproductbom.vue" ...@@ -196,7 +196,7 @@ import Routeproductbom from "./routeproductbom.vue"
import ItemSelect from "@/components/itemSelect/single.vue"; import ItemSelect from "@/components/itemSelect/single.vue";
export default { export default {
name: "Routeproduct", name: "Routeproduct",
dicts: ['mes_time_type'], dicts: ['mes_work_time'],
components: {ItemSelect,Routeproductbom}, components: {ItemSelect,Routeproductbom},
data() { data() {
return { return {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<el-table-column :label="$t('换型时间')" prop="lineBreakTime" align="center" /> <el-table-column :label="$t('换型时间')" prop="lineBreakTime" align="center" />
<el-table-column :label="$t('工时单位')" prop="stdWorkingTimeUom" align="center" > <el-table-column :label="$t('工时单位')" prop="stdWorkingTimeUom" align="center" >
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.mes_time_type" :value="scope.row.stdWorkingTimeUom" /> <dict-tag :options="dict.type.mes_work_time" :value="scope.row.stdWorkingTimeUom" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('基本数量')" prop="quantity" align="center" /> <el-table-column :label="$t('基本数量')" prop="quantity" align="center" />
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
WorkuintSelect WorkuintSelect
}, },
inject: ["mode"], inject: ["mode"],
dicts: ["process_control_code", "sys_yes_no", "mes_time_type"], dicts: ["process_control_code", "sys_yes_no", "mes_work_time"],
props: { props: {
bomList: { bomList: {
type: Array, type: Array,
......
...@@ -118,10 +118,10 @@ ...@@ -118,10 +118,10 @@
<el-button type="success" plain size="mini" :disabled="single" <el-button type="success" plain size="mini" :disabled="single"
@click="handleWorkProcess">{{$t('工艺路线更新')}}</el-button> @click="handleWorkProcess">{{$t('工艺路线更新')}}</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <!-- <el-col :span="1.5">
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleMake" <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleMake"
v-hasPermi="['mes:pro:workorder:make']">{{$t('生产补单')}}</el-button> v-hasPermi="['mes:pro:workorder:make']">{{$t('生产补单')}}</el-button>
</el-col> </el-col> -->
<el-col :span="1.2"> <el-col :span="1.2">
<el-button type="warning" plain size="mini" v-print="printContent" id="printbtn" style="display: none" <el-button type="warning" plain size="mini" v-print="printContent" id="printbtn" style="display: none"
>{{$t('打印工单')}}</el-button> >{{$t('打印工单')}}</el-button>
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
</el-col> </el-col>
<el-col :lg="6" :md="8" :sm="12" :xs="12"> <el-col :lg="6" :md="8" :sm="12" :xs="12">
<el-form-item :label="$t('产品编号')" prop="productCode"> <el-form-item :label="$t('产品编号')" prop="productCode">
<el-input :disabled="mode == 'make'" v-model="form.productCode"> <el-input :disabled="mode == 'make'" readonly v-model="form.productCode">
<el-button <el-button
slot="append" slot="append"
v-if="!(mode === 'make' || mode === 'makeInfo')" v-if="!(mode === 'make' || mode === 'makeInfo')"
...@@ -685,15 +685,16 @@ export default { ...@@ -685,15 +685,16 @@ export default {
//物料选择弹出框 //物料选择弹出框
onRoutesProcessSelect(row) { onRoutesProcessSelect(row) {
console.log('row44', row)
if (row != undefined && row != null) { if (row != undefined && row != null) {
this.form.productionSolutionId = row.productionSolutionId; this.form.productionSolutionId = row.productionSolutionId;
this.form.productionSolutionCode = row.productionSolutionCode; this.form.productionSolutionCode = row.productionSolutionCode;
this.form.productCode = row.itemCode;
this.form.groupCounter = row.groupCounter; this.form.groupCounter = row.groupCounter;
this.form.groupKey = row.groupKey; this.form.groupKey = row.groupKey;
this.form.productName = row.itemName; if (!this.form.productId) {
this.form.productId = row.itemId; this.form.productCode = row.itemCode;
this.form.productName = row.itemName;
this.form.productId = row.itemId;
}
this.form.productionSolutionName = row.productionSolutionName; this.form.productionSolutionName = row.productionSolutionName;
const params = { const params = {
pageNum: 1, pageNum: 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment