关闭点击遮罩关闭窗口
This commit is contained in:
parent
a3968276ca
commit
59de595e44
@ -138,7 +138,7 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改盘点计划配置对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="配置名称" prop="configureName">
|
||||
<el-input v-model="form.configureName" placeholder="请输入配置名称"/>
|
||||
|
@ -147,7 +147,7 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改BOM头对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="60%" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="60%">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-form-item label="BOM编码" prop="bomCode">
|
||||
<el-input v-model="form.bomCode" placeholder="请输入BOM编码"/>
|
||||
|
@ -76,16 +76,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改物料入库单行对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" readonly="readonly" placeholder="请选择物料编码" >
|
||||
<el-form-item label="物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请选择物料编码" readonly="readonly">
|
||||
<el-button slot="append" @click="handleSelectProduct" icon="el-icon-search"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<ItemSelect ref="itemSelect" @onSelected="onItemSelected" > </ItemSelect>
|
||||
<ItemSelect ref="itemSelect" @onSelected="onItemSelected"></ItemSelect>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料名称" prop="itemName">
|
||||
@ -176,10 +176,17 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listItemrecptline, getItemrecptline, delItemrecptline, addItemrecptline, updateItemrecptline } from "@/api/mes/wm/itemrecptline";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import {
|
||||
addItemrecptline,
|
||||
delItemrecptline,
|
||||
getItemrecptline,
|
||||
listItemrecptline,
|
||||
updateItemrecptline
|
||||
} from "@/api/mes/wm/itemrecptline";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import IqcSelect from "@/components/iqcSelect/single.vue";
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
|
||||
export default {
|
||||
name: "Itemrecptline",
|
||||
dicts: ['sys_yes_no'],
|
||||
|
@ -206,7 +206,7 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改盘点计划对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" append-to-body width="90%">
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="90%">
|
||||
<el-form ref="form" :inline="true" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="是否复盘" prop="isag">
|
||||
<el-select v-model="form.isag" placeholder="请选择是否复盘" @change="handleIsAgChange">
|
||||
|
@ -85,14 +85,15 @@
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="calplanList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column align="center" type="selection" width="55"/>
|
||||
<el-table-column label="计划编号" align="center" prop="planCode" >
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['mes:cal:calplan:query']"
|
||||
>{{scope.row.planCode}}</el-button>
|
||||
<el-button
|
||||
v-hasPermi="['mes:cal:calplan:query']"
|
||||
type="text"
|
||||
@click="handleView(scope.row)"
|
||||
>{{ scope.row.planCode }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="计划名称" width="200px" align="center" prop="planName" :show-overflow-tooltip="true"/>
|
||||
@ -157,20 +158,21 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改排班计划对话框 -->
|
||||
<el-dialog :title="title" v-loading="formLoading" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog v-loading="formLoading" :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body
|
||||
width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="计划编号" prop="planCode">
|
||||
<el-input v-model="form.planCode" placeholder="请输入计划编号" />
|
||||
<el-input v-model="form.planCode" placeholder="请输入计划编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'" >
|
||||
v-if="optType != 'view'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -272,10 +274,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listCalplan, getCalplan, delCalplan, addCalplan, updateCalplan } from "@/api/mes/cal/calplan";
|
||||
import {addCalplan, delCalplan, getCalplan, listCalplan, updateCalplan} from "@/api/mes/cal/calplan";
|
||||
import Shift from "./shift";
|
||||
import Team from "./team";
|
||||
import Team from "./team";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
|
||||
export default {
|
||||
name: "Calplan",
|
||||
dicts: ['mes_shift_method','mes_shift_type','mes_calendar_type','mes_order_status'],
|
||||
|
@ -74,17 +74,17 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改计划班次对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="序号" prop="orderNum">
|
||||
<el-input-number :min="1" v-model="form.orderNum" placeholder="请输入序号" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="班次名称" prop="shiftName">
|
||||
<el-input v-model="form.shiftName" placeholder="请输入班次名称" />
|
||||
<el-col :span="12">
|
||||
<el-form-item label="序号" prop="orderNum">
|
||||
<el-input-number v-model="form.orderNum" :min="1" placeholder="请输入序号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="班次名称" prop="shiftName">
|
||||
<el-input v-model="form.shiftName" placeholder="请输入班次名称"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -122,7 +122,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listShift, getShift, delShift, addShift, updateShift } from "@/api/mes/cal/shift";
|
||||
import {addShift, delShift, getShift, listShift, updateShift} from "@/api/mes/cal/shift";
|
||||
|
||||
export default {
|
||||
name: "Shift",
|
||||
|
@ -87,7 +87,8 @@
|
||||
type="text"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['mes:cal:team:query']"
|
||||
>{{scope.row.teamCode}}</el-button>
|
||||
>{{ scope.row.teamCode }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="班组名称" align="center" prop="teamName" />
|
||||
@ -126,20 +127,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改班组对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="班组编号" prop="teamCode">
|
||||
<el-input v-model="form.teamCode" placeholder="请输入班组编号" />
|
||||
<el-input v-model="form.teamCode" placeholder="请输入班组编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="3">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'" >
|
||||
v-if="optType != 'view'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -164,7 +165,7 @@
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
<el-input v-model="form.remark" placeholder="请输入内容" type="textarea"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -181,9 +182,10 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listTeam, getTeam, delTeam, addTeam, updateTeam } from "@/api/mes/cal/team";
|
||||
import {addTeam, delTeam, getTeam, listTeam, updateTeam} from "@/api/mes/cal/team";
|
||||
import Teammember from "./member";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
|
||||
export default {
|
||||
name: "Team",
|
||||
components: {Teammember},
|
||||
|
@ -108,16 +108,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改设备点检计划头对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="结果编码" prop="requestCode">
|
||||
<el-input v-model="form.requestCode" placeholder="请输入结果编码" />
|
||||
<el-input v-model="form.requestCode" placeholder="请输入结果编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@ -196,7 +196,7 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 选择点检计划-->
|
||||
<el-dialog :visible.sync="selecareaVisible" title="选择点检计划">
|
||||
<el-dialog :close-on-click-modal="false" :visible.sync="selecareaVisible" title="选择点检计划">
|
||||
<inventory-cmps v-if="selecareaVisible" @selecoInventoryTaskHandle="selecoInventoryTaskHandle"></inventory-cmps>
|
||||
</el-dialog>
|
||||
</div>
|
||||
@ -204,13 +204,17 @@
|
||||
|
||||
<script>
|
||||
import {
|
||||
addRequest, delRequest, delRequests, getRequest,
|
||||
listRequest, updateRequest
|
||||
|
||||
addRequest,
|
||||
delRequest,
|
||||
delRequests,
|
||||
getRequest,
|
||||
listRequest,
|
||||
updateRequest
|
||||
} from "@/api/mes/dv/inventoryRequest";
|
||||
import {listMdItem} from "@/api/mes/md/mdItem";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import InventoryCmps from "@/components/wm/InventoryCmps.vue";
|
||||
|
||||
export default {
|
||||
name: "InventoryRequest",
|
||||
components: {InventoryCmps},
|
||||
|
@ -134,16 +134,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改设备点检计划头对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="计划编码" prop="wmsInventoryCode">
|
||||
<el-input v-model="form.wmsInventoryCode" placeholder="请输入计划编码" />
|
||||
<el-input v-model="form.wmsInventoryCode" placeholder="请输入计划编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@ -287,17 +287,18 @@
|
||||
|
||||
<script>
|
||||
import {
|
||||
listDvsubject,
|
||||
addMachinery,
|
||||
getMachinery,
|
||||
updateMachinery,
|
||||
delMachinery,
|
||||
delMachinerys,
|
||||
rechecklMachinerys
|
||||
getMachinery,
|
||||
listDvsubject,
|
||||
rechecklMachinerys,
|
||||
updateMachinery
|
||||
} from "@/api/mes/dv/inventoryTask";
|
||||
import {listMdItem} from "@/api/mes/md/mdItem";
|
||||
import {listQctemplate} from "@/api/mes/qc/qctemplate";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
|
||||
export default {
|
||||
name: "InventoryTask",
|
||||
dicts: ['mes_cycle_type','mes_order_status','dv_plan_type'],
|
||||
|
@ -91,13 +91,14 @@
|
||||
|
||||
<el-table v-loading="loading" :data="checkplanList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="计划编码" align="center" prop="planCode" >
|
||||
<el-table-column align="center" label="计划编码" prop="planCode">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['mes:dv:checkplan:query']"
|
||||
>{{scope.row.planCode}}</el-button>
|
||||
>{{ scope.row.planCode }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="计划名称" align="center" width="200px" prop="planName" />
|
||||
@ -116,9 +117,9 @@
|
||||
<span>{{ parseTime(scope.row.endDate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="频率" align="center" prop="cycleType">
|
||||
<el-table-column align="center" label="频率" prop="cycleType">
|
||||
<template slot-scope="scope">
|
||||
{{scope.row.cycleCount}}
|
||||
{{ scope.row.cycleCount }}
|
||||
<dict-tag :options="dict.type.mes_cycle_type" :value="scope.row.cycleType"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -166,20 +167,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改设备点检计划头对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="计划编码" prop="planCode">
|
||||
<el-input v-model="form.planCode" placeholder="请输入计划编码" />
|
||||
<el-input v-model="form.planCode" placeholder="请输入计划编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">
|
||||
v-if="optType != 'view'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -257,24 +258,29 @@
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
<el-input v-model="form.remark" placeholder="请输入内容" type="textarea"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<el-tabs type="border-card" v-if="form.planId != null">
|
||||
<el-tabs v-if="form.planId != null" type="border-card">
|
||||
<el-tab-pane label="设备清单">
|
||||
<Checkmachinery ref="machinerylist" :optType="optType" :planId="form.planId" ></Checkmachinery>
|
||||
<Checkmachinery ref="machinerylist" :optType="optType" :planId="form.planId"></Checkmachinery>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane :label="form.planType=='CHECK'?'点检项目':'保养项目'">
|
||||
<Checksubject ref="subjectlist" :optType="optType" :planId="form.planId" ></Checksubject>
|
||||
<Checksubject ref="subjectlist" :optType="optType" :planId="form.planId"></Checksubject>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="cancel" v-if="optType =='view' || form.status !='PREPARE' ">返回</el-button>
|
||||
<el-button type="primary" @click="submitForm" v-if="form.status =='PREPARE' && optType !='view' ">保存</el-button>
|
||||
<el-button type="success" @click="handleFinish" v-if="form.status =='PREPARE' && optType !='view' && form.planId !=null">启用</el-button>
|
||||
<el-button type="success" @click="handleDeFinish" v-if="form.status =='FINISHED' && optType !='view' && form.planId !=null">停用</el-button>
|
||||
<el-button v-if="form.status =='PREPARE' && optType !='view' " type="primary" @click="submitForm">保存
|
||||
</el-button>
|
||||
<el-button v-if="form.status =='PREPARE' && optType !='view' && form.planId !=null" type="success"
|
||||
@click="handleFinish">启用
|
||||
</el-button>
|
||||
<el-button v-if="form.status =='FINISHED' && optType !='view' && form.planId !=null" type="success"
|
||||
@click="handleDeFinish">停用
|
||||
</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@ -282,10 +288,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listCheckplan, getCheckplan, delCheckplan, addCheckplan, updateCheckplan } from "@/api/mes/dv/checkplan";
|
||||
import {addCheckplan, delCheckplan, getCheckplan, listCheckplan, updateCheckplan} from "@/api/mes/dv/checkplan";
|
||||
import Checkmachinery from "./machinery.vue"
|
||||
import Checksubject from "./subject.vue"
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
|
||||
export default {
|
||||
name: "Checkplan",
|
||||
dicts: ['mes_cycle_type','mes_order_status','dv_plan_type'],
|
||||
@ -458,11 +465,11 @@ export default {
|
||||
if(this.form.planId != null && this.form.status =='PREPARE'){
|
||||
this.form.status='FINISHED';
|
||||
updateCheckplan(this.form).then(response => {
|
||||
this.$modal.msgSuccess("已启用");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
},err =>{
|
||||
this.form.status='PREPARE';
|
||||
this.$modal.msgSuccess("已启用");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}, err => {
|
||||
this.form.status = 'PREPARE';
|
||||
});
|
||||
}
|
||||
},
|
||||
@ -470,11 +477,11 @@ export default {
|
||||
if(this.form.planId != null && this.form.status =='FINISHED'){
|
||||
this.form.status='PREPARE';
|
||||
updateCheckplan(this.form).then(response => {
|
||||
this.$modal.msgSuccess("已停用");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
},err =>{
|
||||
this.form.status='FINISHED';
|
||||
this.$modal.msgSuccess("已停用");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}, err => {
|
||||
this.form.status = 'FINISHED';
|
||||
});
|
||||
}
|
||||
},
|
||||
|
@ -154,7 +154,8 @@
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['mes:dv:machinery:remove']"
|
||||
>删除</el-button>
|
||||
>删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -170,7 +171,7 @@
|
||||
</el-row>
|
||||
|
||||
<!-- 添加或修改设备对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
@ -180,11 +181,11 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">
|
||||
v-if="optType != 'view'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -246,7 +247,8 @@
|
||||
</el-dialog>
|
||||
|
||||
<!-- 物料导入对话框 -->
|
||||
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="upload.title" :visible.sync="upload.open" append-to-body
|
||||
width="400px">
|
||||
<el-upload
|
||||
ref="upload"
|
||||
:limit="1"
|
||||
@ -278,11 +280,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listMachinery, getMachinery, delMachinery, addMachinery, updateMachinery } from "@/api/mes/dv/machinery";
|
||||
import { listMachinerytype } from "@/api/mes/dv/machinerytype";
|
||||
import { listAllWorkshop } from "@/api/mes/md/workshop";
|
||||
import {addMachinery, delMachinery, getMachinery, listMachinery, updateMachinery} from "@/api/mes/dv/machinery";
|
||||
import {listMachinerytype} from "@/api/mes/dv/machinerytype";
|
||||
import {listAllWorkshop} from "@/api/mes/md/workshop";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import { getToken } from "@/utils/auth";
|
||||
import {getToken} from "@/utils/auth";
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
|
||||
|
@ -69,12 +69,13 @@
|
||||
</el-table>
|
||||
|
||||
<!-- 添加或修改设备类型对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="700px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="24" v-if="form.parentTypeId !== 0">
|
||||
<el-form-item label="父类型" prop="parentTypeId">
|
||||
<treeselect v-model="form.parentTypeId" :options="machinerytypeOptions" :normalizer="normalizer" placeholder="请选择父类型" />
|
||||
<treeselect v-model="form.parentTypeId" :normalizer="normalizer" :options="machinerytypeOptions"
|
||||
placeholder="请选择父类型"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -120,7 +121,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listMachinerytype, getMachinerytype, delMachinerytype, addMachinerytype, updateMachinerytype } from "@/api/mes/dv/machinerytype";
|
||||
import {
|
||||
addMachinerytype,
|
||||
delMachinerytype,
|
||||
getMachinerytype,
|
||||
listMachinerytype,
|
||||
updateMachinerytype
|
||||
} from "@/api/mes/dv/machinerytype";
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
|
||||
|
@ -158,26 +158,26 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改设备维修单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="维修单编号" prop="repairCode">
|
||||
<el-input v-model="form.repairCode" placeholder="请输入维修单编号" />
|
||||
<el-input v-model="form.repairCode" placeholder="请输入维修单编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">
|
||||
v-if="optType != 'view'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="维修单名称" prop="repairName">
|
||||
<el-input v-model="form.repairName" placeholder="请输入维修单名称" />
|
||||
<el-input v-model="form.repairName" placeholder="请输入维修单名称"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -205,11 +205,11 @@
|
||||
<el-col :span="8">
|
||||
<el-form-item label="报修日期" prop="requireDate">
|
||||
<el-date-picker clearable
|
||||
v-model="form.requireDate"
|
||||
style="width: 187px"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择报修日期">
|
||||
v-model="form.requireDate"
|
||||
placeholder="请选择报修日期"
|
||||
style="width: 187px"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -262,19 +262,20 @@
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
<el-input v-model="form.remark" placeholder="请输入内容" type="textarea"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<el-divider v-if="form.repairId !=null" content-position="center">维修内容</el-divider>
|
||||
<el-card shadow="always" v-if="form.repairId !=null" class="box-card">
|
||||
<Repairline ref="line" :repairId="form.repairId" :optType="optType"></Repairline>
|
||||
<Repairline ref="line" :optType="optType" :repairId="form.repairId"></Repairline>
|
||||
</el-card>
|
||||
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" v-if="form.status =='PREPARE' && optType !='view'" @click="submitForm">提 交</el-button>
|
||||
<el-button type="primary" v-if="form.status == 'APPROVING' && optType !='view'" @click="finish">完成维修</el-button>
|
||||
<el-button v-if="form.status == 'APPROVING' && optType !='view'" type="primary" @click="finish">完成维修
|
||||
</el-button>
|
||||
<el-button type="success" v-if="form.status == 'FINISHED' && optType !='view'" @click="confirm">验收通过</el-button>
|
||||
<el-button type="danger" v-if="form.status == 'FINISHED' && optType !='view'" @click="unconfirm">不通过</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
@ -284,10 +285,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listRepair, getRepair, delRepair, addRepair, updateRepair } from "@/api/mes/dv/repair";
|
||||
import {addRepair, delRepair, getRepair, listRepair, updateRepair} from "@/api/mes/dv/repair";
|
||||
import MachinerySelectSingle from "@/components/machinerySelect/single.vue";
|
||||
import Repairline from './line.vue'
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
|
||||
export default {
|
||||
name: "Repair",
|
||||
dicts: ['mes_repair_result', 'mes_order_status'],
|
||||
@ -487,12 +489,12 @@ export default {
|
||||
this.form.machineryBrand = row.machineryBrand;
|
||||
},
|
||||
//自动生成编码
|
||||
handleAutoGenChange(autoGenFlag){
|
||||
if(autoGenFlag){
|
||||
genCode('REPAIR_CODE').then(response =>{
|
||||
handleAutoGenChange(autoGenFlag) {
|
||||
if (autoGenFlag) {
|
||||
genCode('REPAIR_CODE').then(response => {
|
||||
this.form.repairCode = response;
|
||||
});
|
||||
}else{
|
||||
} else {
|
||||
this.form.repairCode = null;
|
||||
}
|
||||
}
|
||||
|
@ -67,16 +67,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改设备维修单行对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-form-item label="项目名称" prop="subjectName">
|
||||
<el-input v-model="form.subjectName" placeholder="请输入项目名称" />
|
||||
<el-input v-model="form.subjectName" placeholder="请输入项目名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="故障描述" prop="malfunction">
|
||||
<el-input v-model="form.malfunction" type="textarea" placeholder="请输入内容" />
|
||||
<el-input v-model="form.malfunction" placeholder="请输入内容" type="textarea"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="故障描述资源" prop="malfunctionUrl">
|
||||
<el-input type="textarea" v-model="form.malfunctionUrl" placeholder="请输入故障描述资源" />
|
||||
<el-input v-model="form.malfunctionUrl" placeholder="请输入故障描述资源" type="textarea"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="维修情况" prop="repairDes">
|
||||
<el-input v-model="form.repairDes" type="textarea" placeholder="请输入内容" />
|
||||
@ -91,7 +91,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listRepairline, getRepairline, delRepairline, addRepairline, updateRepairline } from "@/api/mes/dv/repairline";
|
||||
import {addRepairline, delRepairline, getRepairline, listRepairline, updateRepairline} from "@/api/mes/dv/repairline";
|
||||
|
||||
export default {
|
||||
name: "Repairline",
|
||||
|
@ -124,20 +124,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改设备点检保养项目对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="项目编码" prop="subjectCode">
|
||||
<el-input v-model="form.subjectCode" placeholder="请输入项目编码" />
|
||||
<el-input v-model="form.subjectCode" placeholder="请输入项目编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">
|
||||
v-if="optType != 'view'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -172,7 +172,7 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item label="项目内容" prop="subjectContent">
|
||||
<el-input type="textarea" v-model="form.subjectContent" placeholder="请输入项目内容" />
|
||||
<el-input v-model="form.subjectContent" placeholder="请输入项目内容" type="textarea"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="标准" prop="subjectStandard">
|
||||
<el-input type="textarea" v-model="form.subjectStandard" placeholder="请输入标准" autosize/>
|
||||
@ -187,8 +187,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listDvsubject, getDvsubject, delDvsubject, addDvsubject, updateDvsubject } from "@/api/mes/dv/dvsubject";
|
||||
import {addDvsubject, delDvsubject, getDvsubject, listDvsubject, updateDvsubject} from "@/api/mes/dv/dvsubject";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
|
||||
export default {
|
||||
name: "Dvsubject",
|
||||
dicts: ['sys_yes_no', 'mes_dvsubject_type'],
|
||||
|
@ -127,7 +127,7 @@
|
||||
/>
|
||||
|
||||
<!-- 操作日志详细 -->
|
||||
<el-dialog title="台账详细信息" :visible.sync="open" width="60%" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :visible.sync="open" append-to-body title="台账详细信息" width="60%">
|
||||
<el-form ref="form" :model="form" label-width="100px" size="mini">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
@ -247,9 +247,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {listBaseKnife, getBaseKnife, delBaseKnife, addBaseKnife, updateBaseKnife} from "@/api/mes/md/baseKnife";
|
||||
import {addBaseKnife, getBaseKnife, listBaseKnife, updateBaseKnife} from "@/api/mes/md/baseKnife";
|
||||
import {resetBaseKnife} from "../../../../api/mes/md/baseKnife";
|
||||
import {listMdItem } from "@/api/mes/md/mdItem"
|
||||
import {listMdItem} from "@/api/mes/md/mdItem"
|
||||
|
||||
export default {
|
||||
name: "BaseKnife",
|
||||
|
@ -172,16 +172,16 @@
|
||||
</el-row>
|
||||
|
||||
<!-- 添加或修改物料产品编码对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请输入物料编码" maxlength="64" />
|
||||
<el-input v-model="form.itemCode" maxlength="64" placeholder="请输入物料编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@ -273,7 +273,8 @@
|
||||
</el-dialog>
|
||||
|
||||
<!-- 物料导入对话框 -->
|
||||
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="upload.title" :visible.sync="upload.open" append-to-body
|
||||
width="400px">
|
||||
<el-upload
|
||||
ref="upload"
|
||||
:limit="1"
|
||||
@ -305,11 +306,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listMdItem, getMdItem, delMdItem, addMdItem, updateMdItem} from "@/api/mes/md/mdItem";
|
||||
import { listAllUnitmeasure} from "@/api/mes/md/unitmeasure";
|
||||
import {addMdItem, delMdItem, getMdItem, listMdItem, updateMdItem} from "@/api/mes/md/mdItem";
|
||||
import {listAllUnitmeasure} from "@/api/mes/md/unitmeasure";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import { getToken } from "@/utils/auth";
|
||||
import { treeselect } from "@/api/mes/md/itemtype";
|
||||
import {getToken} from "@/utils/auth";
|
||||
import {treeselect} from "@/api/mes/md/itemtype";
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
|
||||
|
@ -181,20 +181,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改客户对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="客户编码" prop="clientCode">
|
||||
<el-input v-model="form.clientCode" placeholder="请输入客户编码" />
|
||||
<el-input v-model="form.clientCode" placeholder="请输入客户编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">
|
||||
v-if="optType != 'view'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -353,7 +353,8 @@
|
||||
</el-dialog>
|
||||
|
||||
<!-- 客户导入对话框 -->
|
||||
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="upload.title" :visible.sync="upload.open" append-to-body
|
||||
width="400px">
|
||||
<el-upload
|
||||
ref="upload"
|
||||
:limit="1"
|
||||
@ -387,9 +388,10 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listClient, getClient, delClient, addClient, updateClient } from "@/api/mes/md/client";
|
||||
import {addClient, delClient, getClient, listClient, updateClient} from "@/api/mes/md/client";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import { getToken } from "@/utils/auth";
|
||||
import {getToken} from "@/utils/auth";
|
||||
|
||||
export default {
|
||||
name: "Client",
|
||||
dicts: ['mes_client_type','sys_yes_no'],
|
||||
|
@ -109,7 +109,7 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改出入库类型对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-form-item label="类型编码" prop="code">
|
||||
<el-input v-model="form.code" placeholder="请输入类型编码"></el-input>
|
||||
@ -136,7 +136,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {listTYPE, getTYPE, delTYPE, addTYPE, updateTYPE} from "@/api/md/TYPE";
|
||||
import {addTYPE, delTYPE, getTYPE, listTYPE, updateTYPE} from "@/api/md/TYPE";
|
||||
|
||||
export default {
|
||||
name: "TYPE",
|
||||
|
@ -94,12 +94,13 @@
|
||||
</el-table>
|
||||
|
||||
<!-- 添加或修改物料分类对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="600px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-row>
|
||||
<el-col :span="24" v-if="form.parentTypeId !== 0">
|
||||
<el-form-item label="父分类" prop="parentTypeId">
|
||||
<treeselect v-model="form.parentTypeId" disabled = "disabled" :options="itemTypeOptions" :normalizer="normalizer" placeholder="请选择上级分类" />
|
||||
<treeselect v-model="form.parentTypeId" :normalizer="normalizer" :options="itemTypeOptions"
|
||||
disabled="disabled" placeholder="请选择上级分类"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -160,7 +161,14 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listItemType, getItemType, delItemType, addItemType, updateItemType, listItemTypeExcludeChild } from "@/api/mes/md/itemtype";
|
||||
import {
|
||||
addItemType,
|
||||
delItemType,
|
||||
getItemType,
|
||||
listItemType,
|
||||
listItemTypeExcludeChild,
|
||||
updateItemType
|
||||
} from "@/api/mes/md/itemtype";
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
|
||||
|
@ -27,13 +27,13 @@
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="bomList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="物料编码" align="center" prop="bomItemCode" />
|
||||
<el-table-column label="物料名称" align="center" prop="bomItemName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="规格" align="center" prop="bomItemSpec" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="单位" width="60px" align="center" prop="unitOfMeasure" />
|
||||
<el-table-column label="使用比例" width="90px" align="center" prop="quantity" />
|
||||
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
||||
<el-table-column align="center" type="selection" width="55"/>
|
||||
<el-table-column align="center" label="物料编码" prop="bomItemCode"/>
|
||||
<el-table-column :show-overflow-tooltip="true" align="center" label="物料名称" prop="bomItemName"/>
|
||||
<el-table-column :show-overflow-tooltip="true" align="center" label="规格" prop="bomItemSpec"/>
|
||||
<el-table-column align="center" label="单位" prop="unitOfMeasure" width="60px"/>
|
||||
<el-table-column align="center" label="使用比例" prop="quantity" width="90px"/>
|
||||
<el-table-column :show-overflow-tooltip="true" align="center" label="备注" prop="remark"/>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="optType !='view'">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
@ -42,7 +42,8 @@
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['mes:md:mditem:edit']"
|
||||
>修改</el-button>
|
||||
>修改
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@ -63,16 +64,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改产品BOM关系对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="600px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-form-item label="BOM物料编码" prop="bomItemCode">
|
||||
<el-input v-model="form.bomItemCode" readonly placeholder="请输入BOM物料编码" />
|
||||
<el-input v-model="form.bomItemCode" placeholder="请输入BOM物料编码" readonly/>
|
||||
</el-form-item>
|
||||
<el-form-item label="BOM物料名称" prop="bomItemName">
|
||||
<el-input v-model="form.bomItemName" readonly placeholder="请输入BOM物料名称" />
|
||||
<el-input v-model="form.bomItemName" placeholder="请输入BOM物料名称" readonly/>
|
||||
</el-form-item>
|
||||
<el-form-item label="BOM物料规格" prop="bomItemSpec">
|
||||
<el-input v-model="form.bomItemSpec" readonly type="textarea" placeholder="请输入内容" />
|
||||
<el-input v-model="form.bomItemSpec" placeholder="请输入内容" readonly type="textarea"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="BOM物料单位" prop="unitOfMeasure">
|
||||
<el-input v-model="form.unitOfMeasure" readonly placeholder="请输入BOM物料单位" />
|
||||
@ -94,8 +95,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listBom, getBom, delBom, addBom, updateBom } from "@/api/mes/md/bom";
|
||||
import ItemSelect from "@/components/itemSelect/index.vue";
|
||||
import {addBom, delBom, getBom, listBom, updateBom} from "@/api/mes/md/bom";
|
||||
import ItemSelect from "@/components/itemSelect/index.vue";
|
||||
|
||||
export default {
|
||||
name: "Bom",
|
||||
@ -228,11 +229,11 @@ components: { ItemSelect },
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
updateBom(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
updateBom(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -13,17 +13,17 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
<div class="header">
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-form-item label="标题" prop="sipTitle">
|
||||
<el-input v-model="form.sipTitle" placeholder="请输入标题"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="展示顺序">
|
||||
<el-input-number :min="1" v-model="form.orderNum"></el-input-number>
|
||||
</el-form-item>
|
||||
<el-form-item label="内容说明">
|
||||
<el-input type="textarea" v-model="form.sipDescription" placeholder="请输入说明信息"></el-input>
|
||||
</el-form-item>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-form-item label="标题" prop="sipTitle">
|
||||
<el-input v-model="form.sipTitle" placeholder="请输入标题"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="展示顺序">
|
||||
<el-input-number v-model="form.orderNum" :min="1"></el-input-number>
|
||||
</el-form-item>
|
||||
<el-form-item label="内容说明">
|
||||
<el-input v-model="form.sipDescription" placeholder="请输入说明信息" type="textarea"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="所属工序" prop="processId">
|
||||
<el-select v-model="form.processId" placeholder="请选择工序">
|
||||
<el-option
|
||||
@ -34,9 +34,10 @@
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="图片">
|
||||
<ImageUpload :limit="1" :value="form.sipUrl" :fileSize="5" @onUploaded="handleImgUplaoded" @onRemoved="handleImgRemoved" ></ImageUpload>
|
||||
</el-form-item>
|
||||
<el-form-item label="图片">
|
||||
<ImageUpload :fileSize="5" :limit="1" :value="form.sipUrl" @onRemoved="handleImgRemoved"
|
||||
@onUploaded="handleImgUplaoded"></ImageUpload>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">提 交</el-button>
|
||||
@ -49,7 +50,8 @@
|
||||
<el-card shadow="hover" :body-style="{pading: '10px'}">
|
||||
<el-popover>
|
||||
<img :src="sipList[index].sipUrl" slot="reference" class="image"/>
|
||||
<el-image class="imagePreview" :src="sipList[index].sopUrl" :preview-src-list="imageList"></el-image>
|
||||
<el-image :preview-src-list="imageList" :src="sipList[index].sopUrl"
|
||||
class="imagePreview"></el-image>
|
||||
</el-popover>
|
||||
<div style="text-align:center;padding-top:12px">
|
||||
<span>
|
||||
@ -64,9 +66,10 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { listSip, getSip, delSip, addSip, updateSip } from "@/api/mes/md/sip";
|
||||
import {addSip, delSip, getSip, listSip, updateSip} from "@/api/mes/md/sip";
|
||||
import ImageUpload from "@/components/ImageUpload/index.vue"
|
||||
import {listAllProcess} from "@/api/mes/pro/process";
|
||||
|
||||
export default{
|
||||
name: "SOPTab",
|
||||
components: {ImageUpload},
|
||||
@ -76,26 +79,26 @@ export default{
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
title: "新增SIP信息",
|
||||
loading: true,
|
||||
open: false,
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
itemId: [
|
||||
{ required: true, message: "物料产品ID不能为空", trigger: "blur" }
|
||||
],
|
||||
},
|
||||
// 产品SOP表格数据
|
||||
sipList: [],
|
||||
//用于图片预览的清单
|
||||
imageList: [],
|
||||
//工序选项
|
||||
processOptions:[],
|
||||
queryParams: {
|
||||
itemId: this.itemId
|
||||
}
|
||||
title: "新增SIP信息",
|
||||
loading: true,
|
||||
open: false,
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
itemId: [
|
||||
{required: true, message: "物料产品ID不能为空", trigger: "blur"}
|
||||
],
|
||||
},
|
||||
// 产品SOP表格数据
|
||||
sipList: [],
|
||||
//用于图片预览的清单
|
||||
imageList: [],
|
||||
//工序选项
|
||||
processOptions: [],
|
||||
queryParams: {
|
||||
itemId: this.itemId
|
||||
}
|
||||
}
|
||||
},
|
||||
created(){
|
||||
@ -136,7 +139,7 @@ export default{
|
||||
processName: null,
|
||||
sopTitle: null,
|
||||
sopDescription: null,
|
||||
sopUrl: null
|
||||
sopUrl: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
@ -153,28 +156,28 @@ export default{
|
||||
this.reset();
|
||||
const sipId = row.sipId || this.ids
|
||||
getSip(sipId).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改产品SIP";
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改产品SIP";
|
||||
});
|
||||
},
|
||||
//图片上传成功
|
||||
handleImgUplaoded(imgUrl){
|
||||
this.form.sipUrl = imgUrl;
|
||||
},
|
||||
//图片移除
|
||||
handleImgRemoved(imgUrl){
|
||||
this.form.sipUrl = null;
|
||||
},
|
||||
//提交
|
||||
submitForm(){
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.sipId != null) {
|
||||
updateSip(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
//图片上传成功
|
||||
handleImgUplaoded(imgUrl) {
|
||||
this.form.sipUrl = imgUrl;
|
||||
},
|
||||
//图片移除
|
||||
handleImgRemoved(imgUrl) {
|
||||
this.form.sipUrl = null;
|
||||
},
|
||||
//提交
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.sipId != null) {
|
||||
updateSip(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addSip(this.form).then(response => {
|
||||
|
@ -13,17 +13,17 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
<div class="header">
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-form-item label="标题" prop="sopTitle">
|
||||
<el-input v-model="form.sopTitle" placeholder="请输入标题"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="展示顺序">
|
||||
<el-input-number :min="1" v-model="form.orderNum"></el-input-number>
|
||||
</el-form-item>
|
||||
<el-form-item label="内容说明">
|
||||
<el-input type="textarea" v-model="form.sopDescription" placeholder="请输入说明信息"></el-input>
|
||||
</el-form-item>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-form-item label="标题" prop="sopTitle">
|
||||
<el-input v-model="form.sopTitle" placeholder="请输入标题"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="展示顺序">
|
||||
<el-input-number v-model="form.orderNum" :min="1"></el-input-number>
|
||||
</el-form-item>
|
||||
<el-form-item label="内容说明">
|
||||
<el-input v-model="form.sopDescription" placeholder="请输入说明信息" type="textarea"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="所属工序" prop="processId">
|
||||
<el-select v-model="form.processId" placeholder="请选择工序">
|
||||
<el-option
|
||||
@ -34,9 +34,10 @@
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="图片">
|
||||
<ImageUpload :limit="1" :value="form.sopUrl" :fileSize="5" @onUploaded="handleImgUplaoded" @onRemoved="handleImgRemoved" ></ImageUpload>
|
||||
</el-form-item>
|
||||
<el-form-item label="图片">
|
||||
<ImageUpload :fileSize="5" :limit="1" :value="form.sopUrl" @onRemoved="handleImgRemoved"
|
||||
@onUploaded="handleImgUplaoded"></ImageUpload>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">提 交</el-button>
|
||||
@ -49,7 +50,8 @@
|
||||
<el-card shadow="hover" :body-style="{pading: '10px'}">
|
||||
<el-popover>
|
||||
<img :src="sopList[index].sopUrl" slot="reference" class="image"/>
|
||||
<el-image class="imagePreview" :src="sopList[index].sopUrl" :preview-src-list="imageList"></el-image>
|
||||
<el-image :preview-src-list="imageList" :src="sopList[index].sopUrl"
|
||||
class="imagePreview"></el-image>
|
||||
</el-popover>
|
||||
<div style="text-align:center;padding-top:12px">
|
||||
<span>
|
||||
@ -64,9 +66,10 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { listSop, getSop, delSop, addSop, updateSop } from "@/api/mes/md/sop";
|
||||
import {addSop, delSop, getSop, listSop, updateSop} from "@/api/mes/md/sop";
|
||||
import ImageUpload from "@/components/ImageUpload/index.vue"
|
||||
import {listAllProcess} from "@/api/mes/pro/process";
|
||||
|
||||
export default{
|
||||
name: "SOPTab",
|
||||
components: {ImageUpload},
|
||||
@ -76,26 +79,26 @@ export default{
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
title: "新增SOP信息",
|
||||
loading: true,
|
||||
open: false,
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
itemId: [
|
||||
{ required: true, message: "物料产品ID不能为空", trigger: "blur" }
|
||||
],
|
||||
},
|
||||
// 产品SOP表格数据
|
||||
sopList: [],
|
||||
//用于图片预览的清单
|
||||
imageList: [],
|
||||
//工序选项
|
||||
processOptions:[],
|
||||
queryParams: {
|
||||
itemId: this.itemId
|
||||
}
|
||||
title: "新增SOP信息",
|
||||
loading: true,
|
||||
open: false,
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
itemId: [
|
||||
{required: true, message: "物料产品ID不能为空", trigger: "blur"}
|
||||
],
|
||||
},
|
||||
// 产品SOP表格数据
|
||||
sopList: [],
|
||||
//用于图片预览的清单
|
||||
imageList: [],
|
||||
//工序选项
|
||||
processOptions: [],
|
||||
queryParams: {
|
||||
itemId: this.itemId
|
||||
}
|
||||
}
|
||||
},
|
||||
created(){
|
||||
@ -136,7 +139,7 @@ export default{
|
||||
processName: null,
|
||||
sopTitle: null,
|
||||
sopDescription: null,
|
||||
sopUrl: null
|
||||
sopUrl: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
@ -165,8 +168,8 @@ export default{
|
||||
},
|
||||
//图片移除
|
||||
handleImgRemoved(imgUrl){
|
||||
console.log(imgUrl);
|
||||
this.form.sopUrl = null;
|
||||
console.log(imgUrl);
|
||||
this.form.sopUrl = null;
|
||||
},
|
||||
//提交
|
||||
submitForm(){
|
||||
|
@ -199,7 +199,7 @@
|
||||
</el-row>
|
||||
|
||||
<!-- 添加或修改物料产品编码对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="14">
|
||||
@ -417,7 +417,8 @@
|
||||
</el-dialog>
|
||||
|
||||
<!-- 物料导入对话框 -->
|
||||
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="upload.title" :visible.sync="upload.open" append-to-body
|
||||
width="400px">
|
||||
<el-upload
|
||||
ref="upload"
|
||||
:limit="1"
|
||||
@ -452,7 +453,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {listMdItem, getMdItem, delMdItem, addMdItem, updateMdItem} from "@/api/mes/md/mdItem";
|
||||
import {addMdItem, delMdItem, getMdItem, listMdItem, updateMdItem} from "@/api/mes/md/mdItem";
|
||||
|
||||
import ItemBom from "./components/itembom.vue";
|
||||
import SOPTab from "./components/sop.vue"
|
||||
@ -460,7 +461,7 @@ import SIPTab from "./components/sip.vue"
|
||||
import {listAllUnitmeasure} from "@/api/mes/md/unitmeasure";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import {getToken} from "@/utils/auth";
|
||||
import {treeselect, getItemType} from "@/api/mes/md/itemtype";
|
||||
import {getItemType, treeselect} from "@/api/mes/md/itemtype";
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import {getBarcodeUrl} from "@/api/mes/wm/barcode";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
|
@ -114,17 +114,17 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改单位对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="800px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="150px">
|
||||
<el-form-item label="单位名称" prop="measureName">
|
||||
<el-input v-model="form.measureName" placeholder="请输入单位名称" />
|
||||
<el-input v-model="form.measureName" placeholder="请输入单位名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="单位简称" prop="measureCode">
|
||||
<el-input v-model="form.measureCode" placeholder="请输入单位简称" />
|
||||
<el-input v-model="form.measureCode" placeholder="请输入单位简称"/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="是否是主单位" prop="primaryFlag">-->
|
||||
<!-- <el-radio-group v-model="form.primaryFlag">-->
|
||||
<!-- <el-radio-->
|
||||
<!-- <el-form-item label="是否是主单位" prop="primaryFlag">-->
|
||||
<!-- <el-radio-group v-model="form.primaryFlag">-->
|
||||
<!-- <el-radio-->
|
||||
<!-- v-for="dict in dict.type.sys_yes_no"-->
|
||||
<!-- :key="dict.value"-->
|
||||
<!-- :label="dict.value"-->
|
||||
@ -158,7 +158,14 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listUnitmeasure,listPrimaryUnitmeasure, getUnitmeasure, delUnitmeasure, addUnitmeasure, updateUnitmeasure } from "@/api/mes/md/unitmeasure";
|
||||
import {
|
||||
addUnitmeasure,
|
||||
delUnitmeasure,
|
||||
getUnitmeasure,
|
||||
listPrimaryUnitmeasure,
|
||||
listUnitmeasure,
|
||||
updateUnitmeasure
|
||||
} from "@/api/mes/md/unitmeasure";
|
||||
|
||||
export default {
|
||||
name: "Unitmeasure",
|
||||
|
29
src/views/mes/md/vendor/index.vue
vendored
29
src/views/mes/md/vendor/index.vue
vendored
@ -134,7 +134,8 @@
|
||||
type="text"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['mes:md:vendor:query']"
|
||||
>{{scope.row.vendorCode}}</el-button>
|
||||
>{{ scope.row.vendorCode }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="供应商名称" align="center" prop="vendorName" width="150px" :show-overflow-tooltip="true"/>
|
||||
@ -181,22 +182,22 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改供应商对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="14">
|
||||
<el-row>
|
||||
<el-col :span="20">
|
||||
<el-form-item label="供应商编码" prop="vendorCode">
|
||||
<el-input v-model="form.vendorCode" placeholder="请输入供应商编码" />
|
||||
<el-input v-model="form.vendorCode" placeholder="请输入供应商编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">
|
||||
v-if="optType != 'view'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -364,7 +365,8 @@
|
||||
</el-dialog>
|
||||
|
||||
<!-- 供应商导入对话框 -->
|
||||
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="upload.title" :visible.sync="upload.open" append-to-body
|
||||
width="400px">
|
||||
<el-upload
|
||||
ref="upload"
|
||||
:limit="1"
|
||||
@ -397,10 +399,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listVendor, getVendor, delVendor, addVendor, updateVendor } from "@/api/mes/md/vendor";
|
||||
import { getBarcodeUrl } from "@/api/mes/wm/barcode";
|
||||
import { getToken } from "@/utils/auth";
|
||||
import {addVendor, delVendor, getVendor, listVendor, updateVendor} from "@/api/mes/md/vendor";
|
||||
import {getBarcodeUrl} from "@/api/mes/wm/barcode";
|
||||
import {getToken} from "@/utils/auth";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
|
||||
export default {
|
||||
name: "Vendor",
|
||||
dicts: ['sys_yes_no','mes_vendor_level'],
|
||||
@ -667,9 +670,9 @@ export default {
|
||||
getBarcodeUrl(){
|
||||
this.barcodeParams.bussinessId = this.form.vendorId;
|
||||
this.barcodeParams.bussinessCode = this.form.vendorCode;
|
||||
getBarcodeUrl(this.barcodeParams).then( response =>{
|
||||
if(response.data != null){
|
||||
this.$set(this.form,'barcodeUrl',response.data.barcodeUrl);//强制刷新DOM
|
||||
getBarcodeUrl(this.barcodeParams).then(response => {
|
||||
if (response.data != null) {
|
||||
this.$set(this.form, 'barcodeUrl', response.data.barcodeUrl);//强制刷新DOM
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -108,21 +108,21 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改车间对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="车间编码" prop="workshopCode">
|
||||
<el-input v-model="form.workshopCode" placeholder="请输入车间编码" />
|
||||
<el-input v-model="form.workshopCode" placeholder="请输入车间编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">
|
||||
</el-switch>
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-if="optType != 'view'"
|
||||
v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -181,8 +181,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listWorkshop, getWorkshop, delWorkshop, addWorkshop, updateWorkshop } from "@/api/mes/md/workshop";
|
||||
import {addWorkshop, delWorkshop, getWorkshop, listWorkshop, updateWorkshop} from "@/api/mes/md/workshop";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
|
||||
export default {
|
||||
name: "Workshop",
|
||||
dicts: ['sys_yes_no'],
|
||||
|
@ -24,17 +24,17 @@
|
||||
</el-table>
|
||||
|
||||
<!-- 添加或修改工装夹具资源对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
|
||||
<el-form-item label="工装夹具类型" prop="toolTypeId">
|
||||
<el-select v-model="form.toolTypeId" placeholder="请选择类型">
|
||||
<el-option
|
||||
v-for="dict in toolTypeOptions"
|
||||
:key="dict.toolTypeId"
|
||||
:label="dict.toolTypeName"
|
||||
:value="dict.toolTypeId"
|
||||
></el-option>
|
||||
<el-select v-model="form.toolTypeId" placeholder="请选择类型">
|
||||
<el-option
|
||||
v-for="dict in toolTypeOptions"
|
||||
:key="dict.toolTypeId"
|
||||
:label="dict.toolTypeName"
|
||||
:value="dict.toolTypeId"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="数量" prop="quantity">
|
||||
@ -50,8 +50,15 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listWorkstationtool, getWorkstationtool, delWorkstationtool, addWorkstationtool, updateWorkstationtool } from "@/api/mes/md/workstationtool";
|
||||
import { listAllTooltype } from "@/api/mes/tm/tooltype"
|
||||
import {
|
||||
addWorkstationtool,
|
||||
delWorkstationtool,
|
||||
getWorkstationtool,
|
||||
listWorkstationtool,
|
||||
updateWorkstationtool
|
||||
} from "@/api/mes/md/workstationtool";
|
||||
import {listAllTooltype} from "@/api/mes/tm/tooltype"
|
||||
|
||||
export default {
|
||||
name: "Workstationtool",
|
||||
data() {
|
||||
|
@ -24,17 +24,17 @@
|
||||
</el-table>
|
||||
|
||||
<!-- 添加或修改人力资源对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-form-item label="岗位" prop="postId">
|
||||
<el-select v-model="form.postId" placeholder="请选择岗位">
|
||||
<el-option
|
||||
v-for="dict in postOptions"
|
||||
:key="dict.postId"
|
||||
:label="dict.postName"
|
||||
:value="dict.postId"
|
||||
></el-option>
|
||||
</el-select>
|
||||
<el-select v-model="form.postId" placeholder="请选择岗位">
|
||||
<el-option
|
||||
v-for="dict in postOptions"
|
||||
:key="dict.postId"
|
||||
:label="dict.postName"
|
||||
:value="dict.postId"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="数量" prop="quantity">
|
||||
@ -50,8 +50,15 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listWorkstationworker, getWorkstationworker, delWorkstationworker, addWorkstationworker, updateWorkstationworker } from "@/api/mes/md/workstationworker";
|
||||
import {
|
||||
addWorkstationworker,
|
||||
delWorkstationworker,
|
||||
getWorkstationworker,
|
||||
listWorkstationworker,
|
||||
updateWorkstationworker
|
||||
} from "@/api/mes/md/workstationworker";
|
||||
import {listAllPost} from "@/api/system/post";
|
||||
|
||||
export default {
|
||||
name: "Workstationworker",
|
||||
data() {
|
||||
@ -70,7 +77,7 @@ export default {
|
||||
total: 0,
|
||||
// 人力资源表格数据
|
||||
workstationworkerList: [],
|
||||
postOptions:[],
|
||||
postOptions: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
|
@ -153,22 +153,22 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改工作站对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="14">
|
||||
<el-row>
|
||||
<el-col :span="16">
|
||||
<el-form-item label="工作站编号" prop="workstationCode">
|
||||
<el-input v-model="form.workstationCode" placeholder="请输入工作站编码" />
|
||||
<el-input v-model="form.workstationCode" placeholder="请输入工作站编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">
|
||||
v-if="optType != 'view'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -263,7 +263,8 @@
|
||||
<span>设备资源</span>
|
||||
<el-button style="float:right; padding: 3px 0" @click="handleMachineryAdd" v-if="optType !='view'" type="text">新增</el-button>
|
||||
</div>
|
||||
<WorkStationMachine ref="machineryList" :optType="optType" :workstationId="form.workstationId" style="align:center"></WorkStationMachine>
|
||||
<WorkStationMachine ref="machineryList" :optType="optType" :workstationId="form.workstationId"
|
||||
style="align:center"></WorkStationMachine>
|
||||
</el-card>
|
||||
</el-carousel-item>
|
||||
<el-carousel-item>
|
||||
@ -297,7 +298,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listWorkstation, getWorkstation, delWorkstation, addWorkstation, updateWorkstation } from "@/api/mes/md/workstation";
|
||||
import {
|
||||
addWorkstation,
|
||||
delWorkstation,
|
||||
getWorkstation,
|
||||
listWorkstation,
|
||||
updateWorkstation
|
||||
} from "@/api/mes/md/workstation";
|
||||
//设备资源选择与保存
|
||||
import WorkStationMachine from "./components/machine";
|
||||
import MachinerySelectSingle from "@/components/machinerySelect/single.vue";
|
||||
@ -310,8 +317,9 @@ import WorkStationTool from "./components/tool";
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
import {listAllProcess} from "@/api/mes/pro/process";
|
||||
import {genCode} from "@/api/system/autocode/rule";
|
||||
import { listAllWorkshop } from "@/api/mes/md/workshop";
|
||||
import { getBarcodeUrl } from "@/api/mes/wm/barcode";
|
||||
import {listAllWorkshop} from "@/api/mes/md/workshop";
|
||||
import {getBarcodeUrl} from "@/api/mes/wm/barcode";
|
||||
|
||||
export default {
|
||||
name: "Workstation",
|
||||
dicts: ['sys_yes_no'],
|
||||
@ -436,7 +444,7 @@ export default {
|
||||
},
|
||||
//查询车间信息
|
||||
getWorkshops(){
|
||||
listAllWorkshop().then( response => {
|
||||
listAllWorkshop().then(response => {
|
||||
this.workshopOptions = response.data;
|
||||
});
|
||||
},
|
||||
@ -448,16 +456,16 @@ export default {
|
||||
},
|
||||
//获取仓库
|
||||
getWarehouseList(){
|
||||
getTreeList().then( response =>{
|
||||
getTreeList().then(response => {
|
||||
this.warehouseOptions = response.data;
|
||||
this.warehouseOptions.map(w =>{
|
||||
w.children.map(l =>{
|
||||
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
this.warehouseOptions.map(w => {
|
||||
w.children.map(l => {
|
||||
let lstr = JSON.stringify(l.children).replace(/locationId/g, 'lId').replace(/areaId/g, 'pId').replace(/areaName/g, 'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
});
|
||||
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g, 'wId').replace(/locationId/g, 'pId').replace(/locationName/g, 'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
|
||||
});
|
||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||
@ -643,9 +651,9 @@ export default {
|
||||
getBarcodeUrl(){
|
||||
this.barcodeParams.bussinessId = this.form.workstationId;
|
||||
this.barcodeParams.bussinessCode = this.form.workstationCode;
|
||||
getBarcodeUrl(this.barcodeParams).then( response =>{
|
||||
if(response.data != null){
|
||||
this.$set(this.form,'barcodeUrl',response.data.barcodeUrl);//强制刷新DOM
|
||||
getBarcodeUrl(this.barcodeParams).then(response => {
|
||||
if (response.data != null) {
|
||||
this.$set(this.form, 'barcodeUrl', response.data.barcodeUrl);//强制刷新DOM
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -82,17 +82,17 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改生产工序内容对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row >
|
||||
<el-col :span="12">
|
||||
<el-form-item label="顺序编号" prop="orderNum">
|
||||
<el-input-number :min="1" v-model="form.orderNum" placeholder="请输入顺序编号" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="材料URL" prop="docUrl">
|
||||
<el-input v-model="form.docUrl" placeholder="请输入材料URL" />
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="顺序编号" prop="orderNum">
|
||||
<el-input-number v-model="form.orderNum" :min="1" placeholder="请输入顺序编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="材料URL" prop="docUrl">
|
||||
<el-input v-model="form.docUrl" placeholder="请输入材料URL"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -132,7 +132,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listProcesscontent, getProcesscontent, delProcesscontent, addProcesscontent, updateProcesscontent } from "@/api/mes/pro/processcontent";
|
||||
import {
|
||||
addProcesscontent,
|
||||
delProcesscontent,
|
||||
getProcesscontent,
|
||||
listProcesscontent,
|
||||
updateProcesscontent
|
||||
} from "@/api/mes/pro/processcontent";
|
||||
|
||||
export default {
|
||||
name: "Processcontent",
|
||||
|
@ -1,10 +1,11 @@
|
||||
<template>
|
||||
<el-dialog title="缺陷记录"
|
||||
v-if="showFlag"
|
||||
:visible.sync="showFlag"
|
||||
:modal= false
|
||||
width="80%"
|
||||
center
|
||||
v-if="showFlag"
|
||||
:close-on-click-modal="false"
|
||||
:modal= false
|
||||
:visible.sync="showFlag"
|
||||
center
|
||||
width="80%"
|
||||
>
|
||||
<el-row :gutter="10" v-if="optType !='view'" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
@ -24,7 +25,8 @@
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
>常见缺陷</el-button>
|
||||
>常见缺陷
|
||||
</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
@ -37,14 +39,14 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="缺陷等级" align="center" prop="defectLevel">
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="scope.row.defectLevel">
|
||||
<el-option
|
||||
v-for="dict in dict.type.mes_defect_level"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
<el-select v-model="scope.row.defectLevel">
|
||||
<el-option
|
||||
v-for="dict in dict.type.mes_defect_level"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="缺陷数量" align="center" prop="defectQuantity" >
|
||||
@ -82,7 +84,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listDefectrecord, getDefectrecord, delDefectrecord, addDefectrecord, updateDefectrecord } from "@/api/mes/qc/defectrecord";
|
||||
import {delDefectrecord, listDefectrecord, updateDefectrecord} from "@/api/mes/qc/defectrecord";
|
||||
|
||||
export default {
|
||||
name: "Defectrecord",
|
||||
|
@ -107,13 +107,14 @@
|
||||
|
||||
<el-table v-loading="loading" :data="ipqcList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="检验单编号" width="150px" align="center" prop="ipqcCode" >
|
||||
<el-table-column align="center" label="检验单编号" prop="ipqcCode" width="150px">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['mes:qc:ipqc:query']"
|
||||
>{{scope.row.ipqcCode}}</el-button>
|
||||
>{{ scope.row.ipqcCode }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="检验类型" align="center" prop="ipqcType">
|
||||
@ -175,20 +176,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改过程检验单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="检验单编号" prop="ipqcCode">
|
||||
<el-input v-model="form.ipqcCode" placeholder="请输入检验单编号" />
|
||||
<el-input v-model="form.ipqcCode" placeholder="请输入检验单编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'">
|
||||
v-if="optType != 'view' && form.status =='PREPARE'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -213,11 +214,11 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="工单编码" prop="workorderCode">
|
||||
<el-input v-if="form.ipqcId == null" v-model="form.workorderCode" placeholder="请选择生产工单" >
|
||||
<el-input v-if="form.ipqcId == null" v-model="form.workorderCode" placeholder="请选择生产工单">
|
||||
<el-button slot="append" icon="el-icon-search" @click="handleWorkorderSelect"></el-button>
|
||||
</el-input>
|
||||
<!--保存过则不允许修改工单,需要修改则删除重做-->
|
||||
<el-input v-else v-model="form.workorderCode" >
|
||||
<el-input v-else v-model="form.workorderCode">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<WorkorderSelect ref="woSelect" @onSelected="onWorkorderSelected"></WorkorderSelect>
|
||||
@ -302,12 +303,12 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="不合格数" prop="quantityUnqualified">
|
||||
<el-input v-model="form.quantityUnqualified" placeholder="请输入不合格数" />
|
||||
<el-input v-model="form.quantityUnqualified" placeholder="请输入不合格数"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="合格品数量" prop="quantityQualified">
|
||||
<el-input v-model="form.quantityQualified" placeholder="请输入合格品数量" />
|
||||
<el-input v-model="form.quantityQualified" placeholder="请输入合格品数量"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -383,11 +384,12 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listIpqc, getIpqc, delIpqc, addIpqc, updateIpqc } from "@/api/mes/qc/ipqc";
|
||||
import {addIpqc, delIpqc, getIpqc, listIpqc, updateIpqc} from "@/api/mes/qc/ipqc";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import WorkorderSelect from "@/components/workorderSelect/single.vue"
|
||||
import WorkstationSelect from "@/components/workstationSelect/simpletableSingle.vue"
|
||||
import Ipqcline from "./line.vue"
|
||||
|
||||
export default {
|
||||
name: "Ipqc",
|
||||
components: {WorkorderSelect,WorkstationSelect,Ipqcline},
|
||||
|
@ -215,20 +215,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改来料检验单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="1080px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="1080px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="检验单编号" prop="iqcCode">
|
||||
<el-input v-model="form.iqcCode" placeholder="请输入来料检验单编号" />
|
||||
<el-input v-model="form.iqcCode" placeholder="请输入来料检验单编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'" >
|
||||
v-if="optType != 'view' && form.status =='PREPARE'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -373,12 +373,12 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="严重缺陷数量" prop="majQuantity">
|
||||
<el-input v-model="form.majQuantity" readonly="readonly" />
|
||||
<el-input v-model="form.majQuantity" readonly="readonly"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="轻微缺陷数量" prop="minQuantity">
|
||||
<el-input v-model="form.minQuantity" readonly="readonly" />
|
||||
<el-input v-model="form.minQuantity" readonly="readonly"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -400,12 +400,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listIqc, getIqc, delIqc, addIqc, updateIqc } from "@/api/mes/qc/iqc";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import {addIqc, delIqc, getIqc, listIqc, updateIqc} from "@/api/mes/qc/iqc";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import VendorSelect from "@/components/vendorSelect/single.vue";
|
||||
import IqcLine from "./iqcline.vue";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import {getReport,getReport2} from "@/api/mes/report/report"
|
||||
import {getReport2} from "@/api/mes/report/report"
|
||||
|
||||
export default {
|
||||
name: "Iqc",
|
||||
dicts: ['mes_qc_result','mes_order_status'],
|
||||
@ -707,7 +708,7 @@ export default {
|
||||
var reportName = "Test";
|
||||
getReport2(reportName).then(res=>{
|
||||
debugger;
|
||||
let blob = new Blob([res],{type:'application/pdf'});
|
||||
let blob = new Blob([res], {type: 'application/pdf'});
|
||||
let href = URL.createObjectURL(blob);
|
||||
console.log(href);
|
||||
window.open(`/pdf/web/viewer.html?file=${encodeURIComponent(href)}`);
|
||||
|
@ -104,14 +104,15 @@
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="oqcList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="出货检验单编号" width="150px" align="center" prop="oqcCode" >
|
||||
<el-table-column align="center" type="selection" width="55"/>
|
||||
<el-table-column align="center" label="出货检验单编号" prop="oqcCode" width="150px">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['mes:qc:oqc:query']"
|
||||
>{{scope.row.oqcCode}}</el-button>
|
||||
>{{ scope.row.oqcCode }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="验单名称" width="100px" align="center" prop="oqcName" :show-overflow-tooltip="true"/>
|
||||
@ -180,28 +181,28 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改出货检验单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="检验单编号" prop="oqcCode">
|
||||
<el-input v-model="form.oqcCode" placeholder="请输入出货检验单编号" />
|
||||
<el-input v-model="form.oqcCode" placeholder="请输入出货检验单编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'" >
|
||||
v-if="optType != 'view' && form.status =='PREPARE'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12">
|
||||
<el-form-item label="检验单名称" prop="oqcName">
|
||||
<el-input v-model="form.oqcName" placeholder="请输入内容" />
|
||||
<el-input v-model="form.oqcName" placeholder="请输入内容"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -220,7 +221,7 @@
|
||||
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品名称" prop="itemName">
|
||||
<el-input readonly="readonly" v-model="form.itemName"></el-input>
|
||||
<el-input v-model="form.itemName" readonly="readonly"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
@ -347,12 +348,12 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="严重缺陷率" prop="majRate">
|
||||
<el-input readonly="readonly" v-model="form.majRate" />
|
||||
<el-input v-model="form.majRate" readonly="readonly"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="轻微缺陷率" prop="minRate">
|
||||
<el-input readonly="readonly" v-model="form.minRate" />
|
||||
<el-input v-model="form.minRate" readonly="readonly"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -374,11 +375,12 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listOqc, getOqc, delOqc, addOqc, updateOqc } from "@/api/mes/qc/oqc";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import {addOqc, delOqc, getOqc, listOqc, updateOqc} from "@/api/mes/qc/oqc";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import ClientSelect from "@/components/clientSelect/single.vue";
|
||||
import {genCode} from "@/api/system/autocode/rule";
|
||||
import Oqcline from "./line.vue";
|
||||
|
||||
export default {
|
||||
name: "Oqc",
|
||||
dicts: ['mes_order_status','mes_qc_result'],
|
||||
@ -447,19 +449,19 @@ export default {
|
||||
// 表单校验
|
||||
rules: {
|
||||
oqcCode: [
|
||||
{ required: true, message: "出货检验单编号不能为空", trigger: "blur" }
|
||||
{required: true, message: "出货检验单编号不能为空", trigger: "blur"}
|
||||
],
|
||||
clientCode: [
|
||||
{ required: true, message: "客户不能为空", trigger: "blur" }
|
||||
{required: true, message: "客户不能为空", trigger: "blur"}
|
||||
],
|
||||
itemCode: [
|
||||
{ required: true, message: "产品不能为空", trigger: "blur" }
|
||||
{required: true, message: "产品不能为空", trigger: "blur"}
|
||||
],
|
||||
quantityOut: [
|
||||
{ required: true, message: "发货数量不能为空", trigger: "blur" }
|
||||
{required: true, message: "发货数量不能为空", trigger: "blur"}
|
||||
],
|
||||
quantityCheck: [
|
||||
{ required: true, message: "本次检测数量不能为空", trigger: "blur" }
|
||||
{required: true, message: "本次检测数量不能为空", trigger: "blur"}
|
||||
],
|
||||
outDate: [
|
||||
{ required: true, message: "请选择出货日期", trigger: "blur" }
|
||||
|
@ -123,12 +123,12 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改常见缺陷对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="缺陷描述" prop="defectName">
|
||||
<el-input v-model="form.defectName" type="textarea" placeholder="请输入缺陷描述" />
|
||||
<el-input v-model="form.defectName" placeholder="请输入缺陷描述" type="textarea"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -169,7 +169,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listQcdefect, getQcdefect, delQcdefect, addQcdefect, updateQcdefect } from "@/api/mes/qc/qcdefect";
|
||||
import {addQcdefect, delQcdefect, getQcdefect, listQcdefect, updateQcdefect} from "@/api/mes/qc/qcdefect";
|
||||
|
||||
export default {
|
||||
name: "Qcdefect",
|
||||
|
@ -118,16 +118,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改检测项对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="检测项编码" prop="indexCode">
|
||||
<el-input v-model="form.indexCode" placeholder="请输入检测项编码" />
|
||||
<el-input v-model="form.indexCode" placeholder="请输入检测项编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@ -178,8 +178,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listQcindex, getQcindex, delQcindex, addQcindex, updateQcindex } from "@/api/mes/qc/qcindex";
|
||||
import {addQcindex, delQcindex, getQcindex, listQcindex, updateQcindex} from "@/api/mes/qc/qcindex";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
|
||||
export default {
|
||||
name: "Qcindex",
|
||||
dicts: ['mes_index_type'],
|
||||
|
@ -134,20 +134,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改检测模板对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="模板编号" prop="templateCode">
|
||||
<el-input v-model="form.templateCode" placeholder="请输入模板编号" />
|
||||
<el-input v-model="form.templateCode" placeholder="请输入模板编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">
|
||||
v-if="optType != 'view'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -162,9 +162,10 @@
|
||||
<el-form-item label="检测种类" prop="qcTypesParam">
|
||||
<el-checkbox-group v-model="form.qcTypesParam">
|
||||
<el-checkbox v-for="dict in dict.type.mes_qc_type"
|
||||
:key="dict.value"
|
||||
:label="dict.value"
|
||||
:value="dict.value">{{dict.label}}</el-checkbox>
|
||||
:key="dict.value"
|
||||
:label="dict.value"
|
||||
:value="dict.value">{{ dict.label }}
|
||||
</el-checkbox>
|
||||
</el-checkbox-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -214,10 +215,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listQctemplate, getQctemplate, delQctemplate, addQctemplate, updateQctemplate } from "@/api/mes/qc/qctemplate";
|
||||
import {addQctemplate, delQctemplate, getQctemplate, listQctemplate, updateQctemplate} from "@/api/mes/qc/qctemplate";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import TemplateIndex from "./templateindex.vue"
|
||||
import TemplateProduct from "./templateproduct";
|
||||
|
||||
export default {
|
||||
name: "Qctemplate",
|
||||
dicts: ['sys_yes_no','mes_qc_type'],
|
||||
|
@ -79,17 +79,17 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改检测模板-检测项对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="检测项" prop="indexId">
|
||||
<el-input v-model="form.indexName" placeholder="请选择检测项" >
|
||||
<el-button slot="append" @click="handleSelectIndex" icon="el-icon-search"></el-button>
|
||||
</el-input>
|
||||
<IndexSelect ref="indexSelect" @onSelected="onIndexSelected" ></IndexSelect>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="检测项" prop="indexId">
|
||||
<el-input v-model="form.indexName" placeholder="请选择检测项">
|
||||
<el-button slot="append" icon="el-icon-search" @click="handleSelectIndex"></el-button>
|
||||
</el-input>
|
||||
<IndexSelect ref="indexSelect" @onSelected="onIndexSelected"></IndexSelect>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="检测刀具" prop="qcTool">
|
||||
<el-input v-model="form.qcTool" placeholder="请输入检测刀具" />
|
||||
@ -160,9 +160,16 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listTemplateindex, getTemplateindex, delTemplateindex, addTemplateindex, updateTemplateindex } from "@/api/mes/qc/templateindex";
|
||||
import {
|
||||
addTemplateindex,
|
||||
delTemplateindex,
|
||||
getTemplateindex,
|
||||
listTemplateindex,
|
||||
updateTemplateindex
|
||||
} from "@/api/mes/qc/templateindex";
|
||||
import IndexSelect from "@/components/qcindexSelect/single.vue";
|
||||
import { listAllUnitmeasure} from "@/api/mes/md/unitmeasure";
|
||||
import {listAllUnitmeasure} from "@/api/mes/md/unitmeasure";
|
||||
|
||||
export default {
|
||||
name: "Templateindex",
|
||||
dicts: ['mes_index_type'],
|
||||
|
@ -88,17 +88,17 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改检测模板-产品对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="110px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请输入产品物料编码" >
|
||||
<el-button slot="append" @click="handleSelectItem" icon="el-icon-search"></el-button>
|
||||
</el-input>
|
||||
<ItemSelect ref="itemSelect" @onSelected="onItemSelected" ></ItemSelect>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请输入产品物料编码">
|
||||
<el-button slot="append" icon="el-icon-search" @click="handleSelectItem"></el-button>
|
||||
</el-input>
|
||||
<ItemSelect ref="itemSelect" @onSelected="onItemSelected"></ItemSelect>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品物料名称" prop="itemName">
|
||||
<el-input v-model="form.itemName" readonly="readonly" />
|
||||
@ -155,11 +155,11 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入内容" type="textarea"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@ -172,14 +172,21 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listTemplateproduct, getTemplateproduct, delTemplateproduct, addTemplateproduct, updateTemplateproduct } from "@/api/mes/qc/templateproduct";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import {
|
||||
addTemplateproduct,
|
||||
delTemplateproduct,
|
||||
getTemplateproduct,
|
||||
listTemplateproduct,
|
||||
updateTemplateproduct
|
||||
} from "@/api/mes/qc/templateproduct";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
|
||||
export default {
|
||||
name: "Templateproduct",
|
||||
components: {ItemSelect},
|
||||
props:{
|
||||
optType: null,
|
||||
templateId: null
|
||||
props: {
|
||||
optType: null,
|
||||
templateId: null
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -186,7 +186,7 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改工装夹具清单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
@ -228,9 +228,9 @@
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">
|
||||
v-if="optType != 'view'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -304,9 +304,10 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listTool, getTool, delTool, addTool, updateTool } from "@/api/mes/tm/tool";
|
||||
import { listAllTooltype } from "@/api/mes/tm/tooltype"
|
||||
import {addTool, delTool, getTool, listTool, updateTool} from "@/api/mes/tm/tool";
|
||||
import {listAllTooltype} from "@/api/mes/tm/tooltype"
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
|
||||
export default {
|
||||
name: "Tool",
|
||||
dicts: ['mes_tool_status', 'mes_mainten_type'],
|
||||
|
@ -80,14 +80,15 @@
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="tooltypeList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="类型编码" align="center" prop="toolTypeCode" >
|
||||
<el-table-column align="center" type="selection" width="55"/>
|
||||
<el-table-column align="center" label="类型编码" prop="toolTypeCode">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['mes:tm:tooltype:query']"
|
||||
>{{scope.row.toolTypeCode}}</el-button>
|
||||
>{{ scope.row.toolTypeCode }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="类型名称" align="center" prop="toolTypeName" :show-overflow-tooltip="true"/>
|
||||
@ -139,19 +140,19 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改工装夹具类型对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="类型编码" prop="toolTypeCode">
|
||||
<el-input v-model="form.toolTypeCode" placeholder="请输入类型编码" />
|
||||
<el-input v-model="form.toolTypeCode" placeholder="请输入类型编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">
|
||||
v-if="optType != 'view'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
@ -193,14 +194,14 @@
|
||||
</el-col>
|
||||
<el-col :span="8" v-if="form.codeFlag=='Y'">
|
||||
<el-form-item label="保养周期" prop="maintenPeriod">
|
||||
<el-input v-model="form.maintenPeriod" placeholder="请输入保养周期" />
|
||||
<el-input v-model="form.maintenPeriod" placeholder="请输入保养周期"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
<el-input v-model="form.remark" placeholder="请输入内容" type="textarea"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -215,8 +216,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listTooltype, getTooltype, delTooltype, addTooltype, updateTooltype } from "@/api/mes/tm/tooltype";
|
||||
import {addTooltype, delTooltype, getTooltype, listTooltype, updateTooltype} from "@/api/mes/tm/tooltype";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
|
||||
export default {
|
||||
name: "Tooltype",
|
||||
dicts: ['mes_mainten_type','sys_yes_no'],
|
||||
|
@ -152,14 +152,14 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改库位设置对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="14">
|
||||
<el-row>
|
||||
<el-col :span="16">
|
||||
<el-form-item label="库位编码" prop="areaCode">
|
||||
<el-input v-model="form.areaCode" placeholder="请输入库位编码" />
|
||||
<el-input v-model="form.areaCode" placeholder="请输入库位编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
@ -236,22 +236,23 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!--选择库区-->
|
||||
<el-dialog :visible.sync="selecocationVisible" title="选择库区">
|
||||
<el-dialog :close-on-click-modal="false" :visible.sync="selecocationVisible" title="选择库区">
|
||||
<selec-location-cmps @select="selecoLocationHandle"></selec-location-cmps>
|
||||
</el-dialog>
|
||||
<!--选择库位-->
|
||||
<el-dialog :visible.sync="selecareaVisible" title="选择库位">
|
||||
<el-dialog :close-on-click-modal="false" :visible.sync="selecareaVisible" title="选择库位">
|
||||
<selec-area-cmps v-if="selecareaVisible" @selectArea="selecoAreaHandle"></selec-area-cmps>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listArea, getArea, delArea, addArea, updateArea, changeFrozenState } from "@/api/mes/wm/area";
|
||||
import {addArea, changeFrozenState, delArea, getArea, listArea, updateArea} from "@/api/mes/wm/area";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import BarcodeImg from "@/components/barcodeImg/index.vue"
|
||||
import SelecLocationCmps from "@/components/wm/SelecLocationCmps.vue";
|
||||
import SelecAreaCmps from "@/components/wm/SelecAreaCmps.vue";
|
||||
|
||||
export default {
|
||||
name: "Area",
|
||||
dicts: ['sys_yes_no'],
|
||||
|
@ -1,21 +1,21 @@
|
||||
<template>
|
||||
<el-dialog title="批量打印"
|
||||
v-if="showFlag"
|
||||
:visible.sync="showFlag"
|
||||
:modal= false
|
||||
width="80%"
|
||||
center
|
||||
>
|
||||
v-if="showFlag"
|
||||
:close-on-click-modal="false"
|
||||
:modal=false
|
||||
:visible.sync="showFlag"
|
||||
center
|
||||
width="80%">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="条码类型" prop="barcodeType">
|
||||
<el-select v-model="queryParams.barcodeType" placeholder="请选择条码类型">
|
||||
<el-select v-model="queryParams.barcodeType" placeholder="请选择条码类型">
|
||||
<el-option
|
||||
v-for="dict in dict.type.mes_barcode_type"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
v-for="dict in dict.type.mes_barcode_type"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
@ -36,14 +36,15 @@
|
||||
</el-form>
|
||||
|
||||
<el-table v-loading="loading" :data="barcodeList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column align="center" type="selection" width="55"/>
|
||||
<el-table-column label="条码" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-image @click="handleView(scope.row)" class="barcodeClass" fit="scale-down" :src="scope.row.barcodeUrl">
|
||||
<div slot="error" class="image-slot">
|
||||
<i class="el-icon-picture-outline"></i>
|
||||
</div>
|
||||
</el-image>
|
||||
<el-image :src="scope.row.barcodeUrl" class="barcodeClass" fit="scale-down"
|
||||
@click="handleView(scope.row)">
|
||||
<div slot="error" class="image-slot">
|
||||
<i class="el-icon-picture-outline"></i>
|
||||
</div>
|
||||
</el-image>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="条码格式" align="center" prop="barcodeFormart">
|
||||
@ -59,7 +60,7 @@
|
||||
<el-table-column label="条码内容" align="center" prop="barcodeContent" />
|
||||
<el-table-column label="业务编码" align="center" prop="bussinessCode" />
|
||||
<el-table-column label="业务名称" align="center" prop="bussinessName" />
|
||||
<el-table-column label="是否生效" align="center" prop="enableFlag" >
|
||||
<el-table-column align="center" label="是否生效" prop="enableFlag">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.enableFlag"/>
|
||||
</template>
|
||||
@ -71,7 +72,7 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
@ -85,9 +86,10 @@
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listBarcode, updateBarcode } from "@/api/mes/wm/barcode";
|
||||
export default {
|
||||
<script>
|
||||
import {listBarcode} from "@/api/mes/wm/barcode";
|
||||
|
||||
export default {
|
||||
name: "BatchPrint",
|
||||
dicts: ['sys_yes_no', 'mes_barcode_type','mes_barcode_formart'],
|
||||
data() {
|
||||
@ -167,4 +169,3 @@
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<el-dialog title="赋码设置"
|
||||
v-if="showFlag"
|
||||
:visible.sync="showFlag"
|
||||
:modal= false
|
||||
width="80%"
|
||||
center
|
||||
>
|
||||
v-if="showFlag"
|
||||
:close-on-click-modal="false"
|
||||
:modal=false
|
||||
:visible.sync="showFlag"
|
||||
center
|
||||
width="80%">
|
||||
<el-table v-loading="loading" :data="barcodeconfigList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column align="center" type="selection" width="55"/>
|
||||
<el-table-column label="赋码类型" align="center" prop="barcodeType">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.mes_barcode_type" :value="scope.row.barcodeType"/>
|
||||
@ -57,8 +57,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listBarcodeconfig, getBarcodeconfig, delBarcodeconfig, addBarcodeconfig, updateBarcodeconfig } from "@/api/mes/wm/barcodeconfig";
|
||||
import {addBarcodeconfig, getBarcodeconfig, listBarcodeconfig, updateBarcodeconfig} from "@/api/mes/wm/barcodeconfig";
|
||||
import ReportSelect from "@/components/reportSelect/single.vue";
|
||||
|
||||
export default {
|
||||
name: "Barcodeconfig",
|
||||
components: {ReportSelect},
|
||||
|
@ -81,14 +81,14 @@
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="barcodeList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column align="center" type="selection" width="55"/>
|
||||
<el-table-column label="条码" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-image @click="handleView(scope.row)" class="barcodeClass" fit="scale-down" :src="scope.row.barcodeUrl">
|
||||
<div slot="error" class="image-slot">
|
||||
<i class="el-icon-picture-outline"></i>
|
||||
</div>
|
||||
</el-image>
|
||||
<el-image :src="scope.row.barcodeUrl" class="barcodeClass" fit="scale-down" @click="handleView(scope.row)">
|
||||
<div slot="error" class="image-slot">
|
||||
<i class="el-icon-picture-outline"></i>
|
||||
</div>
|
||||
</el-image>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="条码格式" align="center" prop="barcodeFormart">
|
||||
@ -138,7 +138,7 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改条码清单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
@ -263,7 +263,7 @@
|
||||
<el-button slot="append" icon="el-icon-search" @click="handleWorkstationSelect"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<WorkstationSelect ref="wsSelect" @onSelected="onWorkstationSelected"> </WorkstationSelect>
|
||||
<WorkstationSelect ref="wsSelect" @onSelected="onWorkstationSelected"></WorkstationSelect>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="工作站名称" prop="bussinessName">
|
||||
@ -280,7 +280,7 @@
|
||||
<el-button slot="append" icon="el-icon-search" @click="handleMaterialStockSelect"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<StockSelect ref="stockSelect" @onSelected="onMaterialStockSelected"> </StockSelect>
|
||||
<StockSelect ref="stockSelect" @onSelected="onMaterialStockSelected"></StockSelect>
|
||||
</el-col>
|
||||
<el-col :span="16">
|
||||
<el-form-item label="物资信息" prop="bussinessName">
|
||||
@ -311,14 +311,14 @@
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
<el-input v-model="form.remark" placeholder="请输入内容" type="textarea"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="cancel" v-if="optType =='view'">返回</el-button>
|
||||
<el-button type="primary" @click="submitForm" v-if="optType !='view' ">保 存</el-button>
|
||||
<el-button v-if="optType !='view' " type="primary" @click="submitForm">保 存</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@ -326,8 +326,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listBarcode, getBarcode, delBarcode, addBarcode, updateBarcode } from "@/api/mes/wm/barcode";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import {addBarcode, delBarcode, getBarcode, listBarcode, updateBarcode} from "@/api/mes/wm/barcode";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import VendorSelect from "@/components/vendorSelect/single.vue";
|
||||
import PackageSelectSingle from "@/components/package/single.vue";
|
||||
import WorkstationSelect from "@/components/workstationSelect/simpletableSingle.vue"
|
||||
@ -335,7 +335,7 @@ import StockSelect from "@/components/stockSelect/single.vue"
|
||||
import Barcodeconfig from "./config.vue"
|
||||
import BarcodeBatchPrint from "./batchprint.vue"
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
import { checkPermi } from "@/utils/permission.js";
|
||||
|
||||
export default {
|
||||
name: "Barcode",
|
||||
dicts: ['mes_barcode_type','mes_barcode_formart','sys_yes_no'],
|
||||
@ -537,21 +537,22 @@ export default {
|
||||
},
|
||||
//选择仓库、库区、库位
|
||||
getWarehouseList(){
|
||||
getTreeList().then( response =>{
|
||||
if(response.data){
|
||||
this.warehouseOptions = response.data.filter((el) =>{
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});;
|
||||
getTreeList().then(response => {
|
||||
if (response.data) {
|
||||
this.warehouseOptions = response.data.filter((el) => {
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});
|
||||
;
|
||||
}
|
||||
this.warehouseOptions.map(w =>{
|
||||
this.warehouseOptions.map(w => {
|
||||
debugger;
|
||||
w.children.map(l =>{
|
||||
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
w.children.map(l => {
|
||||
let lstr = JSON.stringify(l.children).replace(/locationId/g, 'lId').replace(/areaId/g, 'pId').replace(/areaName/g, 'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
});
|
||||
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g, 'wId').replace(/locationId/g, 'pId').replace(/locationName/g, 'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
|
||||
});
|
||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||
|
@ -125,7 +125,7 @@
|
||||
>删除
|
||||
</el-button>
|
||||
<!--下发操作对话框-->
|
||||
<el-dialog :visible.sync="issueVisible" title="执行操作确认" width="30%">
|
||||
<el-dialog :close-on-click-modal="false" :visible.sync="issueVisible" title="执行操作确认" width="30%">
|
||||
<span>是否进行执行操作,该操作无法撤销</span>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="issueVisible=false">取 消</el-button>
|
||||
@ -254,7 +254,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {listPLAN, getPLAN, delPLAN, addPLAN, updatePLAN} from "@/api/wm/PLAN";
|
||||
import {addPLAN, delPLAN, getPLAN, listPLAN, updatePLAN} from "@/api/wm/PLAN";
|
||||
import {listTYPE} from "@/api/md/TYPE";
|
||||
import {listMdItem} from "@/api/mes/md/mdItem"
|
||||
import {listArea} from "@/api/mes/wm/area"
|
||||
|
@ -96,21 +96,22 @@
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="issueheaderList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="领料单编号" align="center" width="150px" prop="issueCode" >
|
||||
<el-table-column align="center" type="selection" width="55"/>
|
||||
<el-table-column align="center" label="领料单编号" prop="issueCode" width="150px">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['mes:wm:issueheader:query']"
|
||||
>{{scope.row.issueCode}}</el-button>
|
||||
>{{ scope.row.issueCode }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="领料单名称" align="center" prop="issueName" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="生产工单" align="center" prop="workorderCode" />
|
||||
<el-table-column label="工作站" align="center" prop="workstationName" />
|
||||
<el-table-column label="客户编号" align="center" prop="clientCode" />
|
||||
<el-table-column label="客户名称" align="center" prop="clientName" />
|
||||
<el-table-column :show-overflow-tooltip="true" align="center" label="领料单名称" prop="issueName"/>
|
||||
<el-table-column align="center" label="生产工单" prop="workorderCode"/>
|
||||
<el-table-column align="center" label="工作站" prop="workstationName"/>
|
||||
<el-table-column align="center" label="客户编号" prop="clientCode"/>
|
||||
<el-table-column align="center" label="客户名称" prop="clientName"/>
|
||||
<el-table-column label="领料日期" align="center" prop="issueDate" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.issueDate, '{y}-{m}-{d} {h}:{i}') }}</span>
|
||||
@ -160,20 +161,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改生产领料单头对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="领料单编号" prop="issueCode">
|
||||
<el-input v-model="form.issueCode" placeholder="请输入领料单编号" />
|
||||
<el-input v-model="form.issueCode" placeholder="请输入领料单编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'">
|
||||
v-if="optType != 'view' && form.status =='PREPARE'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -205,29 +206,29 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="工作站" prop="workstationCode">
|
||||
<el-input v-model="form.workstationCode" placeholder="请选择工作站" >
|
||||
<el-input v-model="form.workstationCode" placeholder="请选择工作站">
|
||||
<el-button slot="append" icon="el-icon-search" @click="handleWorkstationSelect"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<WorkstationSelect ref="wsSelect" @onSelected="onWorkstationSelected"> </WorkstationSelect>
|
||||
<WorkstationSelect ref="wsSelect" @onSelected="onWorkstationSelected"></WorkstationSelect>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="工作站名称" prop="workstationName">
|
||||
<el-input v-model="form.workstationName" readonly placeholder="请选择工作站" >
|
||||
<el-input v-model="form.workstationName" placeholder="请选择工作站" readonly>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="客户编号" >
|
||||
<el-input v-model="form.clientCode" placeholder="请选择生产工单" >
|
||||
<el-input v-model="form.clientCode" placeholder="请选择生产工单">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="客户名称" >
|
||||
<el-input v-model="form.clientName" placeholder="请选择生产工单" >
|
||||
<el-form-item label="客户名称">
|
||||
<el-input v-model="form.clientName" placeholder="请选择生产工单">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -242,11 +243,13 @@
|
||||
</el-form>
|
||||
<el-divider v-if="form.issueId !=null" content-position="center">物料信息</el-divider>
|
||||
<el-card shadow="always" v-if="form.issueId !=null" class="box-card">
|
||||
<Issueline ref="line" :issueId="form.issueId" :warehouseId="form.warehouseId" :locationId="form.locationId" :areaId="form.areaId" :optType="optType"></Issueline>
|
||||
<Issueline ref="line" :areaId="form.areaId" :issueId="form.issueId" :locationId="form.locationId"
|
||||
:optType="optType" :warehouseId="form.warehouseId"></Issueline>
|
||||
</el-card>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="cancel" v-if="optType =='view' || form.status !='PREPARE' ">返回</el-button>
|
||||
<el-button type="primary" @click="submitForm" v-if="form.status =='PREPARE' && optType !='view' ">确 定</el-button>
|
||||
<el-button v-if="optType =='view' || form.status !='PREPARE' " type="primary" @click="cancel">返回</el-button>
|
||||
<el-button v-if="form.status =='PREPARE' && optType !='view' " type="primary" @click="submitForm">确 定
|
||||
</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@ -254,12 +257,20 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listIssueheader, getIssueheader, delIssueheader, addIssueheader, updateIssueheader, execute } from "@/api/mes/wm/issueheader";
|
||||
import {
|
||||
addIssueheader,
|
||||
delIssueheader,
|
||||
execute,
|
||||
getIssueheader,
|
||||
listIssueheader,
|
||||
updateIssueheader
|
||||
} from "@/api/mes/wm/issueheader";
|
||||
import WorkstationSelect from "@/components/workstationSelect/simpletableSingle.vue"
|
||||
import WorkorderSelect from "@/components/workorderSelect/single.vue"
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import Issueline from "./line.vue";
|
||||
|
||||
export default {
|
||||
name: "Issueheader",
|
||||
dicts: ['mes_order_status'],
|
||||
@ -351,20 +362,21 @@ export default {
|
||||
});
|
||||
},
|
||||
getWarehouseList(){
|
||||
getTreeList().then( response =>{
|
||||
if(response.data){
|
||||
this.warehouseOptions = response.data.filter((el) =>{
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});;
|
||||
getTreeList().then(response => {
|
||||
if (response.data) {
|
||||
this.warehouseOptions = response.data.filter((el) => {
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});
|
||||
;
|
||||
}
|
||||
this.warehouseOptions.map(w =>{
|
||||
w.children.map(l =>{
|
||||
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
this.warehouseOptions.map(w => {
|
||||
w.children.map(l => {
|
||||
let lstr = JSON.stringify(l.children).replace(/locationId/g, 'lId').replace(/areaId/g, 'pId').replace(/areaName/g, 'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
});
|
||||
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g, 'wId').replace(/locationId/g, 'pId').replace(/locationName/g, 'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
|
||||
});
|
||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||
@ -516,8 +528,8 @@ export default {
|
||||
}, `issueheader_${new Date().getTime()}.xlsx`)
|
||||
},
|
||||
//选择默认的仓库、库区、库位
|
||||
handleWarehouseChanged(obj){
|
||||
if(obj !=null){
|
||||
handleWarehouseChanged(obj) {
|
||||
if (obj != null) {
|
||||
this.form.warehouseId = obj[0];
|
||||
this.form.locationId = obj[1];
|
||||
this.form.areaId = obj[2];
|
||||
@ -540,7 +552,7 @@ export default {
|
||||
this.$refs.woSelect.showFlag = true;
|
||||
},
|
||||
onWorkorderSelected(row){
|
||||
if(row != undefined && row != null){
|
||||
if (row != undefined && row != null) {
|
||||
this.form.workorderId = row.workorderId;
|
||||
this.form.workorderCode = row.workorderCode;
|
||||
this.form.workorderName = row.workorderName;
|
||||
|
@ -9,7 +9,8 @@
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['mes:wm:issueheader:add']"
|
||||
>新增</el-button>
|
||||
>新增
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
@ -79,17 +80,18 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改生产领料单行对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" readonly="readonly" placeholder="请选择产品物料编码" >
|
||||
<el-button slot="append" @click="handleSelectStock" icon="el-icon-search"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<StockSelect ref="stockSelect" :batchCode="form.batchCode" :vendorId="form.vendorId" @onSelected="onStockSelected"></StockSelect>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请选择产品物料编码" readonly="readonly">
|
||||
<el-button slot="append" icon="el-icon-search" @click="handleSelectStock"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<StockSelect ref="stockSelect" :batchCode="form.batchCode" :vendorId="form.vendorId"
|
||||
@onSelected="onStockSelected"></StockSelect>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品物料名称" prop="itemName">
|
||||
<el-input v-model="form.itemName" readonly="readonly" />
|
||||
@ -157,8 +159,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listIssueline, getIssueline, delIssueline, addIssueline, updateIssueline } from "@/api/mes/wm/issueline";
|
||||
import {addIssueline, delIssueline, getIssueline, listIssueline, updateIssueline} from "@/api/mes/wm/issueline";
|
||||
import StockSelect from "@/components/stockSelect/single.vue"
|
||||
|
||||
export default {
|
||||
name: "Issueline",
|
||||
components:{StockSelect},
|
||||
|
@ -222,16 +222,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改物料消耗记录对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="生产工单ID" prop="workorderId">
|
||||
<el-input v-model="form.workorderId" placeholder="请输入生产工单ID" />
|
||||
<el-input v-model="form.workorderId" placeholder="请输入生产工单ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="生产工单编码" prop="workorderCode">
|
||||
<el-input v-model="form.workorderCode" placeholder="请输入生产工单编码" />
|
||||
<el-input v-model="form.workorderCode" placeholder="请输入生产工单编码"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="生产工单名称" prop="workorderName">
|
||||
<el-input v-model="form.workorderName" placeholder="请输入生产工单名称" />
|
||||
<el-input v-model="form.workorderName" placeholder="请输入生产工单名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="生产任务ID" prop="taskId">
|
||||
<el-input v-model="form.taskId" placeholder="请输入生产任务ID" />
|
||||
@ -290,7 +290,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listItemconsume, getItemconsume, delItemconsume, addItemconsume, updateItemconsume } from "@/api/mes/wm/itemconsume";
|
||||
import {
|
||||
addItemconsume,
|
||||
delItemconsume,
|
||||
getItemconsume,
|
||||
listItemconsume,
|
||||
updateItemconsume
|
||||
} from "@/api/mes/wm/itemconsume";
|
||||
|
||||
|
||||
export default {
|
||||
|
@ -240,16 +240,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改物料消耗记录行对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="消耗记录ID" prop="recordId">
|
||||
<el-input v-model="form.recordId" placeholder="请输入消耗记录ID" />
|
||||
<el-input v-model="form.recordId" placeholder="请输入消耗记录ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="库存ID" prop="materialStockId">
|
||||
<el-input v-model="form.materialStockId" placeholder="请输入库存ID" />
|
||||
<el-input v-model="form.materialStockId" placeholder="请输入库存ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品物料ID" prop="itemId">
|
||||
<el-input v-model="form.itemId" placeholder="请输入产品物料ID" />
|
||||
<el-input v-model="form.itemId" placeholder="请输入产品物料ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请输入产品物料编码" />
|
||||
@ -309,7 +309,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listItemconsumeline, getItemconsumeline, delItemconsumeline, addItemconsumeline, updateItemconsumeline } from "@/api/mes/wm/itemconsumeline";
|
||||
import {
|
||||
addItemconsumeline,
|
||||
delItemconsumeline,
|
||||
getItemconsumeline,
|
||||
listItemconsumeline,
|
||||
updateItemconsumeline
|
||||
} from "@/api/mes/wm/itemconsumeline";
|
||||
|
||||
export default {
|
||||
name: "Itemconsumeline",
|
||||
|
@ -94,7 +94,7 @@
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="itemrecptList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column align="center" type="selection" width="55"/>
|
||||
<el-table-column label="入库单编号" align="center" width="180px" prop="recptCode" >
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
@ -105,14 +105,14 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="入库单名称" align="center" prop="recptName" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="供应商名称" align="center" prop="vendorName" :show-overflow-tooltip="true"/>
|
||||
<el-table-column :show-overflow-tooltip="true" align="center" label="供应商名称" prop="vendorName"/>
|
||||
<el-table-column label="入库日期" align="center" prop="recptDate" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.recptDate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="采购订单号" align="center" prop="poCode" />
|
||||
<el-table-column label="单据状态" align="center" prop="status" >
|
||||
<el-table-column align="center" label="单据状态" prop="status">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.mes_order_status" :value="scope.row.status"/>
|
||||
</template>
|
||||
@ -156,20 +156,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改物料入库单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="1000px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="入库单编号" prop="recptCode">
|
||||
<el-input v-model="form.recptCode" placeholder="请输入入库单编号" />
|
||||
<el-input v-model="form.recptCode" placeholder="请输入入库单编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'">
|
||||
v-if="optType != 'view' && form.status =='PREPARE'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -183,10 +183,10 @@
|
||||
<el-col :span="8">
|
||||
<el-form-item label="入库日期" prop="recptDate">
|
||||
<el-date-picker clearable
|
||||
v-model="form.recptDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择入库日期">
|
||||
v-model="form.recptDate"
|
||||
placeholder="请选择入库日期"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -220,9 +220,9 @@
|
||||
<el-col :span="8">
|
||||
<el-form-item label="入库仓库">
|
||||
<el-cascader v-model="warehouseInfo"
|
||||
:options="warehouseOptions"
|
||||
:props="warehouseProps"
|
||||
@change="handleWarehouseChanged"
|
||||
:options="warehouseOptions"
|
||||
:props="warehouseProps"
|
||||
@change="handleWarehouseChanged"
|
||||
>
|
||||
</el-cascader>
|
||||
</el-form-item>
|
||||
@ -245,7 +245,8 @@
|
||||
</el-card>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="cancel" v-if="optType =='view' || form.status !='PREPARE' ">返回</el-button>
|
||||
<el-button type="primary" @click="submitForm" v-if="form.status =='PREPARE' && optType !='view' ">保 存</el-button>
|
||||
<el-button v-if="form.status =='PREPARE' && optType !='view' " type="primary" @click="submitForm">保 存
|
||||
</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@ -253,12 +254,20 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listItemrecpt, getItemrecpt, delItemrecpt, addItemrecpt, updateItemrecpt, confirmItemrecpt,execute } from "@/api/mes/wm/itemrecpt";
|
||||
import {
|
||||
addItemrecpt,
|
||||
delItemrecpt,
|
||||
execute,
|
||||
getItemrecpt,
|
||||
listItemrecpt,
|
||||
updateItemrecpt
|
||||
} from "@/api/mes/wm/itemrecpt";
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import VendorSelect from "@/components/vendorSelect/single.vue";
|
||||
import IqcSelect from "@/components/iqcSelect/single.vue";
|
||||
import Itemrecptline from "./line.vue";
|
||||
|
||||
export default {
|
||||
name: "Itemrecpt",
|
||||
dicts:['mes_order_status'],
|
||||
@ -352,20 +361,21 @@ export default {
|
||||
});
|
||||
},
|
||||
getWarehouseList(){
|
||||
getTreeList().then( response =>{
|
||||
if(response.data){
|
||||
this.warehouseOptions = response.data.filter((el) =>{
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});;
|
||||
getTreeList().then(response => {
|
||||
if (response.data) {
|
||||
this.warehouseOptions = response.data.filter((el) => {
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});
|
||||
;
|
||||
}
|
||||
this.warehouseOptions.map(w =>{
|
||||
w.children.map(l =>{
|
||||
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
this.warehouseOptions.map(w => {
|
||||
w.children.map(l => {
|
||||
let lstr = JSON.stringify(l.children).replace(/locationId/g, 'lId').replace(/areaId/g, 'pId').replace(/areaName/g, 'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
});
|
||||
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g, 'wId').replace(/locationId/g, 'pId').replace(/locationName/g, 'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
|
||||
});
|
||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||
|
@ -76,16 +76,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改物料入库单行对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" readonly="readonly" placeholder="请选择物料编码" >
|
||||
<el-form-item label="物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请选择物料编码" readonly="readonly">
|
||||
<el-button slot="append" @click="handleSelectProduct" icon="el-icon-search"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<ItemSelect ref="itemSelect" @onSelected="onItemSelected" > </ItemSelect>
|
||||
<ItemSelect ref="itemSelect" @onSelected="onItemSelected"></ItemSelect>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料名称" prop="itemName">
|
||||
@ -176,10 +176,17 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listItemrecptline, getItemrecptline, delItemrecptline, addItemrecptline, updateItemrecptline } from "@/api/mes/wm/itemrecptline";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import {
|
||||
addItemrecptline,
|
||||
delItemrecptline,
|
||||
getItemrecptline,
|
||||
listItemrecptline,
|
||||
updateItemrecptline
|
||||
} from "@/api/mes/wm/itemrecptline";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import IqcSelect from "@/components/iqcSelect/single.vue";
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
|
||||
export default {
|
||||
name: "Itemrecptline",
|
||||
dicts: ['sys_yes_no'],
|
||||
@ -272,21 +279,22 @@ export default {
|
||||
});
|
||||
},
|
||||
getWarehouseList(){
|
||||
getTreeList().then( response =>{
|
||||
if(response.data){
|
||||
this.warehouseOptions = response.data.filter((el) =>{
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});;
|
||||
getTreeList().then(response => {
|
||||
if (response.data) {
|
||||
this.warehouseOptions = response.data.filter((el) => {
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});
|
||||
;
|
||||
}
|
||||
this.warehouseOptions.map(w =>{
|
||||
this.warehouseOptions.map(w => {
|
||||
debugger;
|
||||
w.children.map(l =>{
|
||||
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
w.children.map(l => {
|
||||
let lstr = JSON.stringify(l.children).replace(/locationId/g, 'lId').replace(/areaId/g, 'pId').replace(/areaName/g, 'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
});
|
||||
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g, 'wId').replace(/locationId/g, 'pId').replace(/locationName/g, 'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
|
||||
});
|
||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||
|
@ -104,17 +104,17 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改库区设置对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="140px">
|
||||
<el-row>
|
||||
<el-col :span="14">
|
||||
<el-row>
|
||||
<el-col :span="16">
|
||||
<el-form-item label="库区编码" prop="locationCode">
|
||||
<el-input v-model="form.locationCode" placeholder="请输入库区编码" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-row>
|
||||
<el-col :span="14">
|
||||
<el-row>
|
||||
<el-col :span="16">
|
||||
<el-form-item label="库区编码" prop="locationCode">
|
||||
<el-input v-model="form.locationCode" placeholder="请输入库区编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
@ -165,17 +165,25 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!--选择库房-->
|
||||
<el-dialog :visible.sync="selectWareHouseVisible" title="选择库房">
|
||||
<el-dialog :close-on-click-modal="false" :visible.sync="selectWareHouseVisible" title="选择库房">
|
||||
<select-ware-house-cmps v-if="selectWareHouseVisible" @select="selectWareHouseHandle"></select-ware-house-cmps>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listLocation, getLocation, delLocation, addLocation, updateLocation, changeFrozenState} from "@/api/mes/wm/location";
|
||||
import {
|
||||
addLocation,
|
||||
changeFrozenState,
|
||||
delLocation,
|
||||
getLocation,
|
||||
listLocation,
|
||||
updateLocation
|
||||
} from "@/api/mes/wm/location";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import BarcodeImg from "@/components/barcodeImg/index.vue"
|
||||
import SelectWareHouseCmps from "@/components/wm/SelectWareHouseCmps.vue";
|
||||
|
||||
export default {
|
||||
name: "Location",
|
||||
dicts: ['sys_yes_no'],
|
||||
|
@ -138,20 +138,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改外协领料单头对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="发料单编号" prop="issueCode">
|
||||
<el-input v-model="form.issueCode" placeholder="请输入发料单编号" />
|
||||
<el-input v-model="form.issueCode" placeholder="请输入发料单编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'">
|
||||
v-if="optType != 'view' && form.status =='PREPARE'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -211,8 +211,8 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="供应商名称" >
|
||||
<el-input v-model="form.vendorName" placeholder="请选择外协工单" >
|
||||
<el-form-item label="供应商名称">
|
||||
<el-input v-model="form.vendorName" placeholder="请选择外协工单">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -227,11 +227,13 @@
|
||||
</el-form>
|
||||
<el-divider v-if="form.issueId !=null" content-position="center">物料信息</el-divider>
|
||||
<el-card shadow="always" v-if="form.issueId !=null" class="box-card">
|
||||
<Issueline ref="line" :issueId="form.issueId" :warehouseId="form.warehouseId" :locationId="form.locationId" :areaId="form.areaId" :optType="optType"></Issueline>
|
||||
<Issueline ref="line" :areaId="form.areaId" :issueId="form.issueId" :locationId="form.locationId"
|
||||
:optType="optType" :warehouseId="form.warehouseId"></Issueline>
|
||||
</el-card>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="cancel" v-if="optType =='view' || form.status !='PREPARE' ">返回</el-button>
|
||||
<el-button type="primary" @click="submitForm" v-if="form.status =='PREPARE' && optType !='view' ">保 存</el-button>
|
||||
<el-button v-if="optType =='view' || form.status !='PREPARE' " type="primary" @click="cancel">返回</el-button>
|
||||
<el-button v-if="form.status =='PREPARE' && optType !='view' " type="primary" @click="submitForm">保 存
|
||||
</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@ -239,11 +241,19 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listOutsourceissue, getOutsourceissue, delOutsourceissue, addOutsourceissue, updateOutsourceissue, execute } from "@/api/mes/wm/outsourceissue";
|
||||
import {
|
||||
addOutsourceissue,
|
||||
delOutsourceissue,
|
||||
execute,
|
||||
getOutsourceissue,
|
||||
listOutsourceissue,
|
||||
updateOutsourceissue
|
||||
} from "@/api/mes/wm/outsourceissue";
|
||||
import WorkorderSelect from "@/components/workorderSelect/single.vue"
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import Issueline from "./line.vue";
|
||||
|
||||
export default {
|
||||
name: "Outsourceissue",
|
||||
dicts: ['mes_order_status'],
|
||||
@ -286,19 +296,35 @@ export default {
|
||||
issueCode: null,
|
||||
issueName: null,
|
||||
workorderId: null,
|
||||
workorderCode: null, vendorId: null, vendorCode: null, vendorName: null, vendorNick: null, warehouseId: null, warehouseCode: null, warehouseName: null, locationId: null, locationCode: null, locationName: null, areaId: null, areaCode: null, areaName: null, issueDate: null, status: null, },
|
||||
workorderCode: null,
|
||||
vendorId: null,
|
||||
vendorCode: null,
|
||||
vendorName: null,
|
||||
vendorNick: null,
|
||||
warehouseId: null,
|
||||
warehouseCode: null,
|
||||
warehouseName: null,
|
||||
locationId: null,
|
||||
locationCode: null,
|
||||
locationName: null,
|
||||
areaId: null,
|
||||
areaCode: null,
|
||||
areaName: null,
|
||||
issueDate: null,
|
||||
status: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
issueCode: [
|
||||
{ required: true, message: "发料单编号不能为空", trigger: "blur" }
|
||||
{required: true, message: "发料单编号不能为空", trigger: "blur"}
|
||||
],
|
||||
issueName: [
|
||||
{ required: true, message: "发料单名称不能为空", trigger: "blur" }
|
||||
{required: true, message: "发料单名称不能为空", trigger: "blur"}
|
||||
],
|
||||
workorderCode: [
|
||||
{ required: true, message: "请选择外协工单", trigger: "blur" }
|
||||
{required: true, message: "请选择外协工单", trigger: "blur"}
|
||||
]
|
||||
}
|
||||
};
|
||||
@ -318,20 +344,21 @@ export default {
|
||||
});
|
||||
},
|
||||
getWarehouseList(){
|
||||
getTreeList().then( response =>{
|
||||
if(response.data){
|
||||
this.warehouseOptions = response.data.filter((el) =>{
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});;
|
||||
getTreeList().then(response => {
|
||||
if (response.data) {
|
||||
this.warehouseOptions = response.data.filter((el) => {
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});
|
||||
;
|
||||
}
|
||||
this.warehouseOptions.map(w =>{
|
||||
w.children.map(l =>{
|
||||
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
this.warehouseOptions.map(w => {
|
||||
w.children.map(l => {
|
||||
let lstr = JSON.stringify(l.children).replace(/locationId/g, 'lId').replace(/areaId/g, 'pId').replace(/areaName/g, 'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
});
|
||||
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g, 'wId').replace(/locationId/g, 'pId').replace(/locationName/g, 'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
|
||||
});
|
||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||
|
@ -79,17 +79,18 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改生产领料单行对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" readonly="readonly" placeholder="请选择产品物料编码" >
|
||||
<el-button slot="append" @click="handleSelectStock" icon="el-icon-search"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<StockSelect ref="stockSelect" :batchCode="form.batchCode" :vendorId="form.vendorId" @onSelected="onStockSelected"></StockSelect>
|
||||
</el-col>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请选择产品物料编码" readonly="readonly">
|
||||
<el-button slot="append" icon="el-icon-search" @click="handleSelectStock"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<StockSelect ref="stockSelect" :batchCode="form.batchCode" :vendorId="form.vendorId"
|
||||
@onSelected="onStockSelected"></StockSelect>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品物料名称" prop="itemName">
|
||||
<el-input v-model="form.itemName" readonly="readonly" />
|
||||
@ -157,7 +158,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listOutsourceissueline, getOutsourceissueline, delOutsourceissueline, addOutsourceissueline, updateOutsourceissueline } from "@/api/mes/wm/outsourceissueline";
|
||||
import {
|
||||
addOutsourceissueline,
|
||||
delOutsourceissueline,
|
||||
getOutsourceissueline,
|
||||
listOutsourceissueline,
|
||||
updateOutsourceissueline
|
||||
} from "@/api/mes/wm/outsourceissueline";
|
||||
import StockSelect from "@/components/stockSelect/single.vue"
|
||||
|
||||
export default {
|
||||
|
@ -87,16 +87,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改外协入库单行对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" readonly="readonly" placeholder="请选择物料编码" >
|
||||
<el-form-item label="物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请选择物料编码" readonly="readonly">
|
||||
<el-button slot="append" @click="handleSelectProduct" icon="el-icon-search"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<ItemSelect ref="itemSelect" @onSelected="onItemSelected" > </ItemSelect>
|
||||
<ItemSelect ref="itemSelect" @onSelected="onItemSelected"></ItemSelect>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料名称" prop="itemName">
|
||||
@ -187,10 +187,17 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listOursourcerecptline, getOursourcerecptline, delOursourcerecptline, addOursourcerecptline, updateOursourcerecptline } from "@/api/mes/wm/oursourcerecptline";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import {
|
||||
addOursourcerecptline,
|
||||
delOursourcerecptline,
|
||||
getOursourcerecptline,
|
||||
listOursourcerecptline,
|
||||
updateOursourcerecptline
|
||||
} from "@/api/mes/wm/oursourcerecptline";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import IqcSelect from "@/components/iqcSelect/single.vue";
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
|
||||
export default {
|
||||
name: "Oursourcerecptline",
|
||||
dicts: ['sys_yes_no'],
|
||||
@ -257,10 +264,10 @@ export default {
|
||||
// 表单校验
|
||||
rules: {
|
||||
itemCode: [
|
||||
{ required: true, message: "产品物料不能为空", trigger: "blur" }
|
||||
{required: true, message: "产品物料不能为空", trigger: "blur"}
|
||||
],
|
||||
quantityRecived: [
|
||||
{ required: true, message: "入库数量不能为空", trigger: "blur" }
|
||||
{required: true, message: "入库数量不能为空", trigger: "blur"}
|
||||
],
|
||||
warehouseId:[
|
||||
{ required: true, message: "请选择入库的仓库" }
|
||||
@ -283,21 +290,22 @@ export default {
|
||||
});
|
||||
},
|
||||
getWarehouseList(){
|
||||
getTreeList().then( response =>{
|
||||
if(response.data){
|
||||
this.warehouseOptions = response.data.filter((el) =>{
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});;
|
||||
getTreeList().then(response => {
|
||||
if (response.data) {
|
||||
this.warehouseOptions = response.data.filter((el) => {
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});
|
||||
;
|
||||
}
|
||||
this.warehouseOptions.map(w =>{
|
||||
this.warehouseOptions.map(w => {
|
||||
debugger;
|
||||
w.children.map(l =>{
|
||||
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
w.children.map(l => {
|
||||
let lstr = JSON.stringify(l.children).replace(/locationId/g, 'lId').replace(/areaId/g, 'pId').replace(/areaName/g, 'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
});
|
||||
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g, 'wId').replace(/locationId/g, 'pId').replace(/locationName/g, 'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
|
||||
});
|
||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||
@ -306,8 +314,8 @@ export default {
|
||||
});
|
||||
},
|
||||
//选择仓库、库区、库位
|
||||
handleWarehouseChanged(obj){
|
||||
if(obj !=null){
|
||||
handleWarehouseChanged(obj) {
|
||||
if (obj != null) {
|
||||
this.form.warehouseId = obj[0];
|
||||
this.form.locationId = obj[1];
|
||||
this.form.areaId = obj[2];
|
||||
@ -344,7 +352,15 @@ export default {
|
||||
iqcId: null,
|
||||
iqcCode: null,
|
||||
remark: null,
|
||||
attr1: null, attr2: null, attr3: null, attr4: null, createBy: null, createTime: null, updateBy: null, updateTime: null };
|
||||
attr1: null,
|
||||
attr2: null,
|
||||
attr3: null,
|
||||
attr4: null,
|
||||
createBy: null,
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null
|
||||
};
|
||||
|
||||
|
||||
this.resetForm("form");
|
||||
|
@ -130,14 +130,14 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改装箱单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="料箱编码" prop="code">
|
||||
<el-input v-model="form.code" placeholder="请输入料箱编码" />
|
||||
<el-input v-model="form.code" placeholder="请输入料箱编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -167,14 +167,15 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listPackage, getPackage, delPackage, addPackage, updatePackage } from "@/api/mes/wm/package";
|
||||
import {addPackage, delPackage, getPackage, listPackage, updatePackage} from "@/api/mes/wm/package";
|
||||
import ClientSelect from "@/components/clientSelect/single.vue";
|
||||
import Packageline from "./line.vue";
|
||||
import SubPackage from "./subpackge.vue";
|
||||
import { listAllUnitmeasure} from "@/api/mes/md/unitmeasure";
|
||||
import {listAllUnitmeasure} from "@/api/mes/md/unitmeasure";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
|
||||
export default {
|
||||
name: "Package",
|
||||
dicts: ['mes_order_status'],
|
||||
|
@ -34,7 +34,7 @@
|
||||
<el-table-column label="单位" align="center" prop="unitOfMeasure" />
|
||||
<el-table-column label="装箱数量" align="center" prop="quantityPackage" />
|
||||
<el-table-column label="生产工单编号" width="150px" align="center" prop="workorderCode" />
|
||||
<el-table-column label="批次号" align="center" prop="batchCode" />
|
||||
<el-table-column align="center" label="批次号" prop="batchCode"/>
|
||||
<el-table-column label="有效期" align="center" prop="expireDate" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.expireDate, '{y}-{m}-{d}') }}</span>
|
||||
@ -69,12 +69,12 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改装箱明细对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="生产工单编号" prop="workorderCode">
|
||||
<el-input v-model="form.workorderCode" placeholder="请输入生产工单编号" >
|
||||
<el-input v-model="form.workorderCode" placeholder="请输入生产工单编号">
|
||||
<el-button slot="append" icon="el-icon-search" @click="handleWorkorderSelect"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
@ -132,8 +132,15 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listPackageline, getPackageline, delPackageline, addPackageline, updatePackageline } from "@/api/mes/wm/packageline";
|
||||
import {
|
||||
addPackageline,
|
||||
delPackageline,
|
||||
getPackageline,
|
||||
listPackageline,
|
||||
updatePackageline
|
||||
} from "@/api/mes/wm/packageline";
|
||||
import WorkorderSelect from "@/components/workorderSelect/single.vue"
|
||||
|
||||
export default {
|
||||
name: "Packageline",
|
||||
components: {
|
||||
|
@ -222,16 +222,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改产品产出记录对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="生产工单ID" prop="workorderId">
|
||||
<el-input v-model="form.workorderId" placeholder="请输入生产工单ID" />
|
||||
<el-input v-model="form.workorderId" placeholder="请输入生产工单ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="生产工单编码" prop="workorderCode">
|
||||
<el-input v-model="form.workorderCode" placeholder="请输入生产工单编码" />
|
||||
<el-input v-model="form.workorderCode" placeholder="请输入生产工单编码"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="生产工单名称" prop="workorderName">
|
||||
<el-input v-model="form.workorderName" placeholder="请输入生产工单名称" />
|
||||
<el-input v-model="form.workorderName" placeholder="请输入生产工单名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="生产任务ID" prop="taskId">
|
||||
<el-input v-model="form.taskId" placeholder="请输入生产任务ID" />
|
||||
@ -290,7 +290,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listProductproduce, getProductproduce, delProductproduce, addProductproduce, updateProductproduce } from "@/api/mes/wm/productproduce";
|
||||
import {
|
||||
addProductproduce,
|
||||
delProductproduce,
|
||||
getProductproduce,
|
||||
listProductproduce,
|
||||
updateProductproduce
|
||||
} from "@/api/mes/wm/productproduce";
|
||||
|
||||
export default {
|
||||
name: "Productproduce",
|
||||
|
@ -231,16 +231,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改产品产出记录行对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="产出记录ID" prop="recordId">
|
||||
<el-input v-model="form.recordId" placeholder="请输入产出记录ID" />
|
||||
<el-input v-model="form.recordId" placeholder="请输入产出记录ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品物料ID" prop="itemId">
|
||||
<el-input v-model="form.itemId" placeholder="请输入产品物料ID" />
|
||||
<el-input v-model="form.itemId" placeholder="请输入产品物料ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请输入产品物料编码" />
|
||||
<el-input v-model="form.itemCode" placeholder="请输入产品物料编码"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品物料名称" prop="itemName">
|
||||
<el-input v-model="form.itemName" placeholder="请输入产品物料名称" />
|
||||
@ -297,7 +297,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listProductproduceline, getProductproduceline, delProductproduceline, addProductproduceline, updateProductproduceline } from "@/api/mes/wm/productproduceline";
|
||||
import {
|
||||
addProductproduceline,
|
||||
delProductproduceline,
|
||||
getProductproduceline,
|
||||
listProductproduceline,
|
||||
updateProductproduceline
|
||||
} from "@/api/mes/wm/productproduceline";
|
||||
|
||||
export default {
|
||||
name: "Productproduceline",
|
||||
|
@ -33,7 +33,8 @@
|
||||
@click="handleDelete"
|
||||
v-if="optType != 'view'"
|
||||
v-hasPermi="['mes:wm:productrecpt:remove']"
|
||||
>删除</el-button>
|
||||
>删除
|
||||
</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
@ -80,15 +81,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改产品入库记录行对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请输入产品物料编码" >
|
||||
<el-input v-model="form.itemCode" placeholder="请输入产品物料编码">
|
||||
<el-button slot="append" @click="handleSelectStock" icon="el-icon-search"></el-button>
|
||||
</el-input>
|
||||
<StockSelect ref="stockSelect" :workorderId="workorderId" :itemId="itemId" warehouseCode="XBK_VIRTUAL" @onSelected="onStockSelected"></StockSelect>
|
||||
<StockSelect ref="stockSelect" :itemId="itemId" :workorderId="workorderId" warehouseCode="XBK_VIRTUAL"
|
||||
@onSelected="onStockSelected"></StockSelect>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
@ -148,9 +150,16 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listProductrecptline, getProductrecptline, delProductrecptline, addProductrecptline, updateProductrecptline } from "@/api/mes/wm/productrecptline";
|
||||
import {
|
||||
addProductrecptline,
|
||||
delProductrecptline,
|
||||
getProductrecptline,
|
||||
listProductrecptline,
|
||||
updateProductrecptline
|
||||
} from "@/api/mes/wm/productrecptline";
|
||||
import StockSelect from "@/components/stockSelect/single.vue"
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
|
||||
export default {
|
||||
name: "Productrecptline",
|
||||
components:{
|
||||
@ -243,16 +252,16 @@ export default {
|
||||
});
|
||||
},
|
||||
getWarehouseList(){
|
||||
getTreeList().then( response =>{
|
||||
getTreeList().then(response => {
|
||||
this.warehouseOptions = response.data;
|
||||
this.warehouseOptions.map(w =>{
|
||||
w.children.map(l =>{
|
||||
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
this.warehouseOptions.map(w => {
|
||||
w.children.map(l => {
|
||||
let lstr = JSON.stringify(l.children).replace(/locationId/g, 'lId').replace(/areaId/g, 'pId').replace(/areaName/g, 'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
});
|
||||
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g, 'wId').replace(/locationId/g, 'pId').replace(/locationName/g, 'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
|
||||
});
|
||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||
@ -385,8 +394,8 @@ export default {
|
||||
}
|
||||
},
|
||||
//选择默认的仓库、库区、库位
|
||||
handleWarehouseChanged(obj){
|
||||
if(obj !=null){
|
||||
handleWarehouseChanged(obj) {
|
||||
if (obj != null) {
|
||||
this.form.warehouseId = obj[0];
|
||||
this.form.locationId = obj[1];
|
||||
this.form.areaId = obj[2];
|
||||
|
@ -99,7 +99,7 @@
|
||||
<el-table-column label="出库单名称" width="150px" align="center" prop="salseName" />
|
||||
<el-table-column label="销售订单编号" width="120px" align="center" prop="soCode" />
|
||||
<el-table-column label="客户编码" align="center" prop="clientCode" />
|
||||
<el-table-column label="客户名称" align="center" prop="clientName" />
|
||||
<el-table-column align="center" label="客户名称" prop="clientName"/>
|
||||
<el-table-column label="出库日期" align="center" prop="salseDate" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.salseDate, '{y}-{m}-{d}') }}</span>
|
||||
@ -150,20 +150,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改销售出库单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="出库单编号" prop="salseCode">
|
||||
<el-input v-model="form.salseCode" placeholder="请输入出库单编号" />
|
||||
<el-input v-model="form.salseCode" placeholder="请输入出库单编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'">
|
||||
v-if="optType != 'view' && form.status =='PREPARE'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -221,7 +221,7 @@
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
<el-input v-model="form.remark" placeholder="请输入内容" type="textarea"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -240,12 +240,20 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listProductsalse, getProductsalse, delProductsalse, addProductsalse, updateProductsalse,execute } from "@/api/mes/wm/productsalse";
|
||||
import {
|
||||
addProductsalse,
|
||||
delProductsalse,
|
||||
execute,
|
||||
getProductsalse,
|
||||
listProductsalse,
|
||||
updateProductsalse
|
||||
} from "@/api/mes/wm/productsalse";
|
||||
import Productsalseline from "./line.vue"
|
||||
import OqcSelectSingle from "@/components/oqcSelect/single.vue"
|
||||
import ClientSelect from "@/components/clientSelect/single.vue";
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
|
||||
export default {
|
||||
name: "Productsalse",
|
||||
dicts: ['mes_order_status'],
|
||||
@ -340,16 +348,16 @@ export default {
|
||||
},
|
||||
//获取仓库信息
|
||||
getWarehouseList(){
|
||||
getTreeList().then( response =>{
|
||||
getTreeList().then(response => {
|
||||
this.warehouseOptions = response.data;
|
||||
this.warehouseOptions.map(w =>{
|
||||
w.children.map(l =>{
|
||||
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
this.warehouseOptions.map(w => {
|
||||
w.children.map(l => {
|
||||
let lstr = JSON.stringify(l.children).replace(/locationId/g, 'lId').replace(/areaId/g, 'pId').replace(/areaName/g, 'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
});
|
||||
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g, 'wId').replace(/locationId/g, 'pId').replace(/locationName/g, 'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
|
||||
});
|
||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||
@ -357,8 +365,8 @@ export default {
|
||||
});
|
||||
},
|
||||
//选择默认的仓库、库区、库位
|
||||
handleWarehouseChanged(obj){
|
||||
if(obj !=null){
|
||||
handleWarehouseChanged(obj) {
|
||||
if (obj != null) {
|
||||
this.form.warehouseId = obj[0];
|
||||
this.form.locationId = obj[1];
|
||||
this.form.areaId = obj[2];
|
||||
|
@ -77,16 +77,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改产品销售出库行对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请选择库存物资" >
|
||||
<el-input v-model="form.itemCode" placeholder="请选择库存物资">
|
||||
<el-button slot="append" @click="handleSelectStock" icon="el-icon-search"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<StockSelect ref="stockSelect" @onSelected="onStockSelected"></StockSelect>
|
||||
<StockSelect ref="stockSelect" @onSelected="onStockSelected"></StockSelect>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品名称" prop="itemName">
|
||||
@ -102,7 +102,7 @@
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="规格型号" prop="specification">
|
||||
<el-input v-model="form.specification" type="textarea" placeholder="请输入内容" />
|
||||
<el-input v-model="form.specification" placeholder="请输入内容" type="textarea"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -186,9 +186,16 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listProductsalseline, getProductsalseline, delProductsalseline, addProductsalseline, updateProductsalseline } from "@/api/mes/wm/productsalseline";
|
||||
import {
|
||||
addProductsalseline,
|
||||
delProductsalseline,
|
||||
getProductsalseline,
|
||||
listProductsalseline,
|
||||
updateProductsalseline
|
||||
} from "@/api/mes/wm/productsalseline";
|
||||
import StockSelect from "@/components/stockSelect/single.vue"
|
||||
import OqcSelectSingle from "@/components/oqcSelect/single.vue"
|
||||
|
||||
export default {
|
||||
name: "Productsalseline",
|
||||
dicts: ['sys_yes_no'],
|
||||
|
@ -132,20 +132,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改生产退料单头对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="退料单编号" prop="rtCode">
|
||||
<el-input v-model="form.rtCode" placeholder="请输入退料单编号" />
|
||||
<el-input v-model="form.rtCode" placeholder="请输入退料单编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'">
|
||||
v-if="optType != 'view' && form.status =='PREPARE'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -188,7 +188,7 @@
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
<el-input v-model="form.remark" placeholder="请输入内容" type="textarea"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -198,8 +198,9 @@
|
||||
<Rtissueline :rtId="form.rtId" :optType="optType"></Rtissueline>
|
||||
</el-card>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="cancel" v-if="optType =='view' || form.status !='PREPARE' ">返回</el-button>
|
||||
<el-button type="primary" @click="submitForm" v-if="form.status =='PREPARE' && optType !='view' ">保 存</el-button>
|
||||
<el-button v-if="optType =='view' || form.status !='PREPARE' " type="primary" @click="cancel">返回</el-button>
|
||||
<el-button v-if="form.status =='PREPARE' && optType !='view' " type="primary" @click="submitForm">保 存
|
||||
</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@ -207,11 +208,12 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listRtissue, getRtissue, delRtissue, addRtissue, updateRtissue, execute } from "@/api/mes/wm/rtissue";
|
||||
import {addRtissue, delRtissue, execute, getRtissue, listRtissue, updateRtissue} from "@/api/mes/wm/rtissue";
|
||||
import WorkorderSelect from "@/components/workorderSelect/single.vue"
|
||||
import Rtissueline from "./line.vue";
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
|
||||
export default {
|
||||
name: "Rtissue",
|
||||
dicts: ['mes_order_status'],
|
||||
@ -295,20 +297,21 @@ export default {
|
||||
});
|
||||
},
|
||||
getWarehouseList(){
|
||||
getTreeList().then( response =>{
|
||||
if(response.data){
|
||||
this.warehouseOptions = response.data.filter((el) =>{
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});;
|
||||
getTreeList().then(response => {
|
||||
if (response.data) {
|
||||
this.warehouseOptions = response.data.filter((el) => {
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});
|
||||
;
|
||||
}
|
||||
this.warehouseOptions.map(w =>{
|
||||
w.children.map(l =>{
|
||||
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
this.warehouseOptions.map(w => {
|
||||
w.children.map(l => {
|
||||
let lstr = JSON.stringify(l.children).replace(/locationId/g, 'lId').replace(/areaId/g, 'pId').replace(/areaName/g, 'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
});
|
||||
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g, 'wId').replace(/locationId/g, 'pId').replace(/locationName/g, 'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
|
||||
});
|
||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||
@ -464,8 +467,8 @@ export default {
|
||||
}, `rtissue_${new Date().getTime()}.xlsx`)
|
||||
},
|
||||
//选择默认的仓库、库区、库位
|
||||
handleWarehouseChanged(obj){
|
||||
if(obj !=null){
|
||||
handleWarehouseChanged(obj) {
|
||||
if (obj != null) {
|
||||
this.form.warehouseId = obj[0];
|
||||
this.form.locationId = obj[1];
|
||||
this.form.areaId = obj[2];
|
||||
|
@ -37,7 +37,7 @@
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="rtissuelineList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column align="center" type="selection" width="55"/>
|
||||
<el-table-column label="物料编码" width="120px" align="center" prop="itemCode" />
|
||||
<el-table-column label="物料名称" width="150px" align="center" prop="itemName" />
|
||||
<el-table-column label="规格型号" align="center" prop="specification" :show-overflow-tooltip="true"/>
|
||||
@ -78,12 +78,12 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改生产退料单行对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请选择退料物料" >
|
||||
<el-input v-model="form.itemCode" placeholder="请选择退料物料">
|
||||
<el-button slot="append" @click="handleSelectStock" icon="el-icon-search"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
@ -139,9 +139,16 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listRtissueline, getRtissueline, delRtissueline, addRtissueline, updateRtissueline } from "@/api/mes/wm/rtissueline";
|
||||
import {
|
||||
addRtissueline,
|
||||
delRtissueline,
|
||||
getRtissueline,
|
||||
listRtissueline,
|
||||
updateRtissueline
|
||||
} from "@/api/mes/wm/rtissueline";
|
||||
import StockSelect from "@/components/stockSelect/single.vue"
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
|
||||
export default {
|
||||
name: "Rtissueline",
|
||||
components: {StockSelect},
|
||||
@ -231,20 +238,21 @@ export default {
|
||||
});
|
||||
},
|
||||
getWarehouseList(){
|
||||
getTreeList().then( response =>{
|
||||
if(response.data){
|
||||
this.warehouseOptions = response.data.filter((el) =>{
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});;
|
||||
getTreeList().then(response => {
|
||||
if (response.data) {
|
||||
this.warehouseOptions = response.data.filter((el) => {
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});
|
||||
;
|
||||
}
|
||||
this.warehouseOptions.map(w =>{
|
||||
w.children.map(l =>{
|
||||
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
this.warehouseOptions.map(w => {
|
||||
w.children.map(l => {
|
||||
let lstr = JSON.stringify(l.children).replace(/locationId/g, 'lId').replace(/areaId/g, 'pId').replace(/areaName/g, 'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
});
|
||||
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g, 'wId').replace(/locationId/g, 'pId').replace(/locationName/g, 'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
|
||||
});
|
||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||
@ -368,7 +376,7 @@ export default {
|
||||
},
|
||||
//物料选择弹出框
|
||||
onStockSelected(obj){
|
||||
if(obj != undefined && obj != null){
|
||||
if(obj != undefined && obj != null) {
|
||||
this.form.materialStockId = obj.materialStockId;
|
||||
this.form.itemId = obj.itemId;
|
||||
this.form.itemCode = obj.itemCode;
|
||||
@ -381,8 +389,8 @@ export default {
|
||||
}
|
||||
},
|
||||
//选择默认的仓库、库区、库位
|
||||
handleWarehouseChanged(obj){
|
||||
if(obj !=null){
|
||||
handleWarehouseChanged(obj) {
|
||||
if (obj != null) {
|
||||
debugger;
|
||||
this.form.warehouseId = obj[0];
|
||||
this.form.locationId = obj[1];
|
||||
|
@ -156,20 +156,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改产品销售退货单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="退货单编号" prop="rtCode">
|
||||
<el-input v-model="form.rtCode" placeholder="请输入退货单编号" />
|
||||
<el-input v-model="form.rtCode" placeholder="请输入退货单编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'">
|
||||
v-if="optType != 'view' && form.status =='PREPARE'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -254,7 +254,8 @@
|
||||
</el-card>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="cancel" v-if="optType =='view' || form.status !='PREPARE' ">返回</el-button>
|
||||
<el-button type="primary" @click="submitForm" v-if="form.status =='PREPARE' && optType !='view' ">确 定</el-button>
|
||||
<el-button v-if="form.status =='PREPARE' && optType !='view' " type="primary" @click="submitForm">确 定
|
||||
</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@ -262,11 +263,12 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listRtsalse, getRtsalse, delRtsalse, addRtsalse, updateRtsalse ,execute} from "@/api/mes/wm/rtsalse";
|
||||
import {addRtsalse, delRtsalse, execute, getRtsalse, listRtsalse, updateRtsalse} from "@/api/mes/wm/rtsalse";
|
||||
import Rtsalseline from "./line.vue";
|
||||
import ClientSelectSingle from "@/components/clientSelect/single.vue"
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
|
||||
export default {
|
||||
name: "Rtsalse",
|
||||
dicts: ['mes_order_status'],
|
||||
@ -368,20 +370,21 @@ export default {
|
||||
});
|
||||
},
|
||||
getWarehouseList(){
|
||||
getTreeList().then( response =>{
|
||||
if(response.data){
|
||||
this.warehouseOptions = response.data.filter((el) =>{
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});;
|
||||
getTreeList().then(response => {
|
||||
if (response.data) {
|
||||
this.warehouseOptions = response.data.filter((el) => {
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});
|
||||
;
|
||||
}
|
||||
this.warehouseOptions.map(w =>{
|
||||
w.children.map(l =>{
|
||||
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
this.warehouseOptions.map(w => {
|
||||
w.children.map(l => {
|
||||
let lstr = JSON.stringify(l.children).replace(/locationId/g, 'lId').replace(/areaId/g, 'pId').replace(/areaName/g, 'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
});
|
||||
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g, 'wId').replace(/locationId/g, 'pId').replace(/locationName/g, 'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
|
||||
});
|
||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||
|
@ -26,7 +26,7 @@
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="rtsalselineList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column align="center" type="selection" width="55"/>
|
||||
<el-table-column label="产品编码" width="120" align="center" prop="itemCode" />
|
||||
<el-table-column label="产品名称" width="150" align="center" prop="itemName" />
|
||||
<el-table-column label="规格型号" width="150" align="center" prop="specification" :show-overflow-tooltip="true"/>
|
||||
@ -71,25 +71,25 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改产品销售退货行对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" readonly="readonly" placeholder="请选择产品" >
|
||||
<el-form-item label="产品编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请选择产品" readonly="readonly">
|
||||
<el-button slot="append" @click="handleSelectProduct" icon="el-icon-search"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<ItemSelect ref="itemSelect" @onSelected="onItemSelected" > </ItemSelect>
|
||||
<ItemSelect ref="itemSelect" @onSelected="onItemSelected"></ItemSelect>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品名称" prop="itemName">
|
||||
<el-input v-model="form.itemName" placeholder="请输入产品物料名称" />
|
||||
<el-input v-model="form.itemName" placeholder="请输入产品物料名称"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="单位" prop="unitOfMeasure">
|
||||
<el-input v-model="form.unitOfMeasure" placeholder="请输入单位" />
|
||||
<el-input v-model="form.unitOfMeasure" placeholder="请输入单位"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -132,9 +132,16 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listRtsalseline, getRtsalseline, delRtsalseline, addRtsalseline, updateRtsalseline } from "@/api/mes/wm/rtsalseline";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import {
|
||||
addRtsalseline,
|
||||
delRtsalseline,
|
||||
getRtsalseline,
|
||||
listRtsalseline,
|
||||
updateRtsalseline
|
||||
} from "@/api/mes/wm/rtsalseline";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
|
||||
export default {
|
||||
name: "Rtsalseline",
|
||||
components: {ItemSelect},
|
||||
@ -223,20 +230,21 @@ export default {
|
||||
});
|
||||
},
|
||||
getWarehouseList(){
|
||||
getTreeList().then( response =>{
|
||||
if(response.data){
|
||||
this.warehouseOptions = response.data.filter((el) =>{
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});;
|
||||
getTreeList().then(response => {
|
||||
if (response.data) {
|
||||
this.warehouseOptions = response.data.filter((el) => {
|
||||
return el.warehouseCode.indexOf('VIR') == -1;
|
||||
});
|
||||
;
|
||||
}
|
||||
this.warehouseOptions.map(w =>{
|
||||
w.children.map(l =>{
|
||||
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
this.warehouseOptions.map(w => {
|
||||
w.children.map(l => {
|
||||
let lstr = JSON.stringify(l.children).replace(/locationId/g, 'lId').replace(/areaId/g, 'pId').replace(/areaName/g, 'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
});
|
||||
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g, 'wId').replace(/locationId/g, 'pId').replace(/locationName/g, 'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
|
||||
});
|
||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||
@ -244,8 +252,8 @@ export default {
|
||||
});
|
||||
},
|
||||
//选择默认的仓库、库区、库位
|
||||
handleWarehouseChanged(obj){
|
||||
if(obj !=null){
|
||||
handleWarehouseChanged(obj) {
|
||||
if (obj != null) {
|
||||
this.form.warehouseId = obj[0];
|
||||
this.form.locationId = obj[1];
|
||||
this.form.areaId = obj[2];
|
||||
|
@ -86,20 +86,21 @@
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="rtvendorList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="退货单编号" align="center" prop="rtCode" >
|
||||
<el-table-column align="center" type="selection" width="55"/>
|
||||
<el-table-column align="center" label="退货单编号" prop="rtCode">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['mes:wm:rtvendor:query']"
|
||||
>{{scope.row.rtCode}}</el-button>
|
||||
>{{ scope.row.rtCode }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="退货单名称" align="center" prop="rtName" />
|
||||
<el-table-column label="采购订单编号" align="center" prop="poCode" />
|
||||
<el-table-column align="center" label="采购订单编号" prop="poCode"/>
|
||||
<el-table-column label="供应商编码" align="center" prop="vendorCode" />
|
||||
<el-table-column label="供应商名称" align="center" width="150px" prop="vendorName" :show-overflow-tooltip="true"/>
|
||||
<el-table-column :show-overflow-tooltip="true" align="center" label="供应商名称" prop="vendorName" width="150px"/>
|
||||
<el-table-column label="退货日期" align="center" prop="rtDate" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.rtDate, '{y}-{m}-{d}') }}</span>
|
||||
@ -149,20 +150,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改供应商退货对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="退货单编号" prop="rtCode">
|
||||
<el-input v-model="form.rtCode" placeholder="请输入退货单编号" />
|
||||
<el-input v-model="form.rtCode" placeholder="请输入退货单编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'">
|
||||
v-if="optType != 'view' && form.status =='PREPARE'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -230,7 +231,8 @@
|
||||
</el-card>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="cancel" v-if="optType =='view' || form.status !='PREPARE' ">返回</el-button>
|
||||
<el-button type="primary" @click="submitForm" v-if="form.status =='PREPARE' && optType !='view' ">保 存</el-button>
|
||||
<el-button v-if="form.status =='PREPARE' && optType !='view' " type="primary" @click="submitForm">保 存
|
||||
</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@ -238,10 +240,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listRtvendor, getRtvendor, delRtvendor, addRtvendor, updateRtvendor,execute } from "@/api/mes/wm/rtvendor";
|
||||
import {addRtvendor, delRtvendor, execute, getRtvendor, listRtvendor, updateRtvendor} from "@/api/mes/wm/rtvendor";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import VendorSelect from "@/components/vendorSelect/single.vue";
|
||||
import Rtvendorline from "./line.vue"
|
||||
|
||||
export default {
|
||||
name: "Rtvendor",
|
||||
components:{VendorSelect,Rtvendorline},
|
||||
|
@ -66,17 +66,18 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改供应商退货行对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" readonly="readonly" placeholder="请选择产品物料编码" >
|
||||
<el-button slot="append" @click="handleSelectStock" icon="el-icon-search"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<StockSelect ref="stockSelect" :batchCode="batchCode" :vendorId="vendorId" @onSelected="onStockSelected"></StockSelect>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请选择产品物料编码" readonly="readonly">
|
||||
<el-button slot="append" icon="el-icon-search" @click="handleSelectStock"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<StockSelect ref="stockSelect" :batchCode="batchCode" :vendorId="vendorId"
|
||||
@onSelected="onStockSelected"></StockSelect>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品物料名称" prop="itemName">
|
||||
<el-input v-model="form.itemName" readonly="readonly" />
|
||||
@ -144,8 +145,15 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listRtvendorline, getRtvendorline, delRtvendorline, addRtvendorline, updateRtvendorline } from "@/api/mes/wm/rtvendorline";
|
||||
import {
|
||||
addRtvendorline,
|
||||
delRtvendorline,
|
||||
getRtvendorline,
|
||||
listRtvendorline,
|
||||
updateRtvendorline
|
||||
} from "@/api/mes/wm/rtvendorline";
|
||||
import StockSelect from "@/components/stockSelect/single.vue"
|
||||
|
||||
export default {
|
||||
name: "Rtvendorline",
|
||||
components:{StockSelect},
|
||||
|
@ -113,16 +113,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改SN码对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" readonly="readonly" placeholder="请选择物料编码" >
|
||||
<el-form-item label="物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请选择物料编码" readonly="readonly">
|
||||
<el-button slot="append" @click="handleSelectProduct" icon="el-icon-search"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<ItemSelect ref="itemSelect" @onSelected="onItemSelected" > </ItemSelect>
|
||||
<ItemSelect ref="itemSelect" @onSelected="onItemSelected"></ItemSelect>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="物料名称" prop="itemName">
|
||||
@ -159,8 +159,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listSn,list, getSn, delSn, addSn, updateSn } from "@/api/mes/wm/sn";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import {addSn, delSn, getSn, listSn} from "@/api/mes/wm/sn";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
|
||||
export default {
|
||||
name: "Sn",
|
||||
components :{ItemSelect},
|
||||
|
@ -23,7 +23,7 @@
|
||||
<el-table-column label="产品名称" align="center" prop="itemName" />
|
||||
<el-table-column label="规格型号" align="center" prop="specification" />
|
||||
<el-table-column label="单位" align="center" prop="unitOfMeasure" />
|
||||
<el-table-column label="批次号" align="center" prop="batchCode" />
|
||||
<el-table-column align="center" label="批次号" prop="batchCode"/>
|
||||
<el-table-column label="生成时间" align="center" prop="genDate" width="120">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.rtDate, '{y}-{m}-{d} {h}:{mi}:{s}') }}</span>
|
||||
@ -40,16 +40,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改SN码对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" readonly="readonly" placeholder="请选择物料编码" >
|
||||
<el-form-item label="物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请选择物料编码" readonly="readonly">
|
||||
<el-button slot="append" @click="handleSelectProduct" icon="el-icon-search"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<ItemSelect ref="itemSelect" @onSelected="onItemSelected" > </ItemSelect>
|
||||
<ItemSelect ref="itemSelect" @onSelected="onItemSelected"></ItemSelect>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="物料名称" prop="itemName">
|
||||
@ -85,10 +85,11 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listSn,list, getSn, delSn, addSn, updateSn } from "@/api/mes/wm/sn";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
export default {
|
||||
<script>
|
||||
import {addSn, delSn, getSn, listSn} from "@/api/mes/wm/sn";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
|
||||
export default {
|
||||
name: "Sn",
|
||||
components :{ItemSelect},
|
||||
data() {
|
||||
@ -232,4 +233,3 @@
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
@ -90,17 +90,17 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改库存盘点记录对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="盘点单编号" prop="takingCode">
|
||||
<el-input v-model="form.takingCode" placeholder="请输入盘点单编号" />
|
||||
<el-input v-model="form.takingCode" placeholder="请输入盘点单编号"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="盘点单名称" prop="takingName">
|
||||
<el-input v-model="form.takingName" placeholder="请输入盘点单名称" />
|
||||
<el-input v-model="form.takingName" placeholder="请输入盘点单名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="盘点日期" prop="takingDate">
|
||||
<el-date-picker clearable
|
||||
v-model="form.takingDate"
|
||||
v-model="form.takingDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择盘点日期">
|
||||
@ -140,7 +140,7 @@
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-tabs type="border-card" v-if="form.takingId != null">
|
||||
<el-tabs v-if="form.takingId != null" type="border-card">
|
||||
<el-tab-pane v-if="form.takingType=='OPEN'" label="盘点清单">
|
||||
<TakingLine></TakingLine>
|
||||
</el-tab-pane>
|
||||
@ -157,9 +157,17 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listStocktaking, getStocktaking, delStocktaking, addStocktaking, updateStocktaking ,execute} from "@/api/mes/wm/stocktaking";
|
||||
import {
|
||||
addStocktaking,
|
||||
delStocktaking,
|
||||
execute,
|
||||
getStocktaking,
|
||||
listStocktaking,
|
||||
updateStocktaking
|
||||
} from "@/api/mes/wm/stocktaking";
|
||||
import TakingLine from './line.vue';
|
||||
import TakingResult from './result.vue';
|
||||
|
||||
export default {
|
||||
name: "Stocktaking",
|
||||
components: {TakingLine,TakingResult},
|
||||
|
@ -255,16 +255,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改库存盘点明细对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="报废单ID" prop="takingId">
|
||||
<el-input v-model="form.takingId" placeholder="请输入报废单ID" />
|
||||
<el-input v-model="form.takingId" placeholder="请输入报废单ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="库存ID" prop="materialStockId">
|
||||
<el-input v-model="form.materialStockId" placeholder="请输入库存ID" />
|
||||
<el-input v-model="form.materialStockId" placeholder="请输入库存ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品物料ID" prop="itemId">
|
||||
<el-input v-model="form.itemId" placeholder="请输入产品物料ID" />
|
||||
<el-input v-model="form.itemId" placeholder="请输入产品物料ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请输入产品物料编码" />
|
||||
@ -332,7 +332,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listStocktakingline, getStocktakingline, delStocktakingline, addStocktakingline, updateStocktakingline } from "@/api/mes/wm/stocktakingline";
|
||||
import {
|
||||
addStocktakingline,
|
||||
delStocktakingline,
|
||||
getStocktakingline,
|
||||
listStocktakingline,
|
||||
updateStocktakingline
|
||||
} from "@/api/mes/wm/stocktakingline";
|
||||
|
||||
export default {
|
||||
name: "Stocktakingline",
|
||||
|
@ -164,16 +164,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改库存盘点结果对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="盘点单ID" prop="takingId">
|
||||
<el-input v-model="form.takingId" placeholder="请输入盘点单ID" />
|
||||
<el-input v-model="form.takingId" placeholder="请输入盘点单ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品物料ID" prop="itemId">
|
||||
<el-input v-model="form.itemId" placeholder="请输入产品物料ID" />
|
||||
<el-input v-model="form.itemId" placeholder="请输入产品物料ID"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品物料编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请输入产品物料编码" />
|
||||
<el-input v-model="form.itemCode" placeholder="请输入产品物料编码"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品物料名称" prop="itemName">
|
||||
<el-input v-model="form.itemName" placeholder="请输入产品物料名称" />
|
||||
@ -208,7 +208,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listStocktakingresult, getStocktakingresult, delStocktakingresult, addStocktakingresult, updateStocktakingresult } from "@/api/mes/wm/stocktakingresult";
|
||||
import {
|
||||
addStocktakingresult,
|
||||
delStocktakingresult,
|
||||
getStocktakingresult,
|
||||
listStocktakingresult,
|
||||
updateStocktakingresult
|
||||
} from "@/api/mes/wm/stocktakingresult";
|
||||
|
||||
export default {
|
||||
name: "Stocktakingresult",
|
||||
|
@ -169,20 +169,20 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改转移单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="转移单编号" prop="transferCode">
|
||||
<el-input v-model="form.transferCode" placeholder="请输入转移单编号" />
|
||||
<el-input v-model="form.transferCode" placeholder="请输入转移单编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label-width="80">
|
||||
<el-form-item label-width="80">
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'">
|
||||
v-if="optType != 'view' && form.status =='PREPARE'"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成" @change="handleAutoGenChange(autoGenFlag)">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -278,7 +278,8 @@
|
||||
</el-card>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="cancel" v-if="optType =='view' || form.status !='PREPARE' ">返回</el-button>
|
||||
<el-button type="primary" @click="submitForm" v-if="form.status =='PREPARE' && optType !='view' ">确 定</el-button>
|
||||
<el-button v-if="form.status =='PREPARE' && optType !='view' " type="primary" @click="submitForm">确 定
|
||||
</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@ -286,10 +287,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listTransfer, getTransfer, delTransfer, addTransfer, updateTransfer, execute} from "@/api/mes/wm/transfer";
|
||||
import {addTransfer, delTransfer, execute, getTransfer, listTransfer, updateTransfer} from "@/api/mes/wm/transfer";
|
||||
import {listWarehouse} from "@/api/mes/wm/warehouse";
|
||||
import {genCode} from "@/api/system/autocode/rule";
|
||||
import Transferline from "./line.vue";
|
||||
|
||||
export default {
|
||||
name: "Transfer",
|
||||
components: {Transferline},
|
||||
@ -297,7 +299,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
//自动生成编码
|
||||
autoGenFlag:false,
|
||||
autoGenFlag: false,
|
||||
optType: undefined,
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
@ -328,19 +330,19 @@ export default {
|
||||
// 表单校验
|
||||
rules: {
|
||||
transferCode: [
|
||||
{ required: true, message: "转移单编号不能为空", trigger: "blur" }
|
||||
{required: true, message: "转移单编号不能为空", trigger: "blur"}
|
||||
],
|
||||
transferName: [
|
||||
{ required: true, message: "转移单名称不能为空", trigger: "blur" }
|
||||
{required: true, message: "转移单名称不能为空", trigger: "blur"}
|
||||
],
|
||||
transferType: [
|
||||
{ required: true, message: "转移单类型不能为空", trigger: "blur" }
|
||||
{required: true, message: "转移单类型不能为空", trigger: "blur"}
|
||||
],
|
||||
transferDate: [
|
||||
{ required: true, message: "请选择转移时间", trigger: "blur" }
|
||||
{required: true, message: "请选择转移时间", trigger: "blur"}
|
||||
],
|
||||
fromWarehouseId: [
|
||||
{ required: true, message: "请选择转出仓库", trigger: "blur" }
|
||||
{required: true, message: "请选择转出仓库", trigger: "blur"}
|
||||
],
|
||||
toWarehouseId: [
|
||||
{ required: true, message: "请选择转入仓库", trigger: "blur" }
|
||||
|
@ -29,23 +29,24 @@
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="transferlineList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="产品物料编码" width="120px" align="center" prop="itemCode" />
|
||||
<el-table-column label="产品物料名称" width="150px" align="center" prop="itemName" />
|
||||
<el-table-column label="规格型号" align="center" prop="specification" />
|
||||
<el-table-column label="单位" align="center" prop="unitOfMeasure" />
|
||||
<el-table-column label="转移数量" align="center" prop="quantityTransfer" />
|
||||
<el-table-column label="生产工单" align="center" prop="workorderCode" />
|
||||
<el-table-column label="供应商编码" width="100px" align="center" prop="vendorCode" />
|
||||
<el-table-column label="供应商简称" width="100px" align="center" prop="vendorNick" />
|
||||
<el-table-column label="批次号" width="150px" align="center" prop="batchCode" />
|
||||
<el-table-column label="移出仓库" align="center" prop="fromWarehouseName" />
|
||||
<el-table-column label="移出库区" width="120px" align="center" prop="fromLocationName" />
|
||||
<el-table-column label="移出库位" align="center" prop="fromAreaName" />
|
||||
<el-table-column label="移入仓库" align="center" prop="toWarehouseName" />
|
||||
<el-table-column label="移入库区" width="120px" align="center" prop="toLocationName" />
|
||||
<el-table-column label="移入库位" align="center" prop="toAreaName" />
|
||||
<el-table-column label="操作" v-if="optType != 'view'" width="120px" align="center" class-name="small-padding fixed-width">
|
||||
<el-table-column align="center" type="selection" width="55"/>
|
||||
<el-table-column align="center" label="产品物料编码" prop="itemCode" width="120px"/>
|
||||
<el-table-column align="center" label="产品物料名称" prop="itemName" width="150px"/>
|
||||
<el-table-column align="center" label="规格型号" prop="specification"/>
|
||||
<el-table-column align="center" label="单位" prop="unitOfMeasure"/>
|
||||
<el-table-column align="center" label="转移数量" prop="quantityTransfer"/>
|
||||
<el-table-column align="center" label="生产工单" prop="workorderCode"/>
|
||||
<el-table-column align="center" label="供应商编码" prop="vendorCode" width="100px"/>
|
||||
<el-table-column align="center" label="供应商简称" prop="vendorNick" width="100px"/>
|
||||
<el-table-column align="center" label="批次号" prop="batchCode" width="150px"/>
|
||||
<el-table-column align="center" label="移出仓库" prop="fromWarehouseName"/>
|
||||
<el-table-column align="center" label="移出库区" prop="fromLocationName" width="120px"/>
|
||||
<el-table-column align="center" label="移出库位" prop="fromAreaName"/>
|
||||
<el-table-column align="center" label="移入仓库" prop="toWarehouseName"/>
|
||||
<el-table-column align="center" label="移入库区" prop="toLocationName" width="120px"/>
|
||||
<el-table-column align="center" label="移入库位" prop="toAreaName"/>
|
||||
<el-table-column v-if="optType != 'view'" align="center" class-name="small-padding fixed-width" label="操作"
|
||||
width="120px">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
@ -53,7 +54,8 @@
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['mes:wm:transfer:edit']"
|
||||
>修改</el-button>
|
||||
>修改
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@ -74,16 +76,16 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改转移单行对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品物料" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="选择库存物资" >
|
||||
<el-button slot="append" @click="handleSelectStock" icon="el-icon-search"></el-button>
|
||||
<el-input v-model="form.itemCode" placeholder="选择库存物资">
|
||||
<el-button slot="append" icon="el-icon-search" @click="handleSelectStock"></el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<StockSelect ref="stockSelect" :warehouseId="fromWarehouseId" @onSelected="onStockSelected"></StockSelect>
|
||||
<StockSelect ref="stockSelect" :warehouseId="fromWarehouseId" @onSelected="onStockSelected"></StockSelect>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品物料名称" prop="itemName">
|
||||
@ -159,9 +161,16 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listTransferline, getTransferline, delTransferline, addTransferline, updateTransferline } from "@/api/mes/wm/transferline";
|
||||
import {
|
||||
addTransferline,
|
||||
delTransferline,
|
||||
getTransferline,
|
||||
listTransferline,
|
||||
updateTransferline
|
||||
} from "@/api/mes/wm/transferline";
|
||||
import StockSelect from "@/components/stockSelect/single.vue"
|
||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||
|
||||
export default {
|
||||
name: "Transferline",
|
||||
components: {
|
||||
@ -217,7 +226,7 @@ export default {
|
||||
workorderId: null,
|
||||
workorderCode: null,
|
||||
batchCode: null,
|
||||
fromWarehouseId:null,
|
||||
fromWarehouseId: null,
|
||||
fromWarehouseCode: null,
|
||||
fromWarehouseName: null,
|
||||
fromLocationId: null,
|
||||
@ -246,14 +255,15 @@ export default {
|
||||
// 表单校验
|
||||
rules: {
|
||||
itemCode: [
|
||||
{ required: true, message: "请选择移出的物资", trigger: "blur" }
|
||||
{required: true, message: "请选择移出的物资", trigger: "blur"}
|
||||
],
|
||||
toWarehouseId: [
|
||||
{ required: true, message: "请指定移入仓库", trigger: "blur" }
|
||||
{required: true, message: "请指定移入仓库", trigger: "blur"}
|
||||
],
|
||||
quantityTransfer: [
|
||||
{ required: true, message: "转移数量不能为空", trigger: "blur" }
|
||||
], }
|
||||
{required: true, message: "转移数量不能为空", trigger: "blur"}
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@ -271,16 +281,16 @@ export default {
|
||||
});
|
||||
},
|
||||
getWarehouseList(){
|
||||
getTreeList().then( response =>{
|
||||
getTreeList().then(response => {
|
||||
this.warehouseOptions = response.data;
|
||||
this.warehouseOptions.map(w =>{
|
||||
w.children.map(l =>{
|
||||
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
this.warehouseOptions.map(w => {
|
||||
w.children.map(l => {
|
||||
let lstr = JSON.stringify(l.children).replace(/locationId/g, 'lId').replace(/areaId/g, 'pId').replace(/areaName/g, 'pName');
|
||||
l.children = JSON.parse(lstr);
|
||||
});
|
||||
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g, 'wId').replace(/locationId/g, 'pId').replace(/locationName/g, 'pName');
|
||||
w.children = JSON.parse(wstr);
|
||||
|
||||
});
|
||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||
@ -370,7 +380,7 @@ export default {
|
||||
const lineId = row.lineId || this.ids
|
||||
getTransferline(lineId).then(response => {
|
||||
this.form = response.data;
|
||||
this.fromWarehouse = response.data.fromWarehouseName+" / "+response.data.fromLocationName+" / "+response.data.fromAreaName;
|
||||
this.fromWarehouse = response.data.fromWarehouseName + " / " + response.data.fromLocationName + " / " + response.data.fromAreaName;
|
||||
this.warehouseInfo[0] = response.data.toWarehouseId;
|
||||
this.warehouseInfo[1] = response.data.toLocationId;
|
||||
this.warehouseInfo[2] = response.data.toAreaId;
|
||||
@ -441,12 +451,12 @@ export default {
|
||||
this.form.vendorName = obj.vendorName;
|
||||
this.form.workorderId = obj.workorderId;
|
||||
this.form.workorderCode = obj.workorderCode;
|
||||
this.fromWarehouse = obj.warehouseName +" / "+ obj.locationName +" / "+ obj.areaName;
|
||||
this.fromWarehouse = obj.warehouseName + " / " + obj.locationName + " / " + obj.areaName;
|
||||
}
|
||||
},
|
||||
//选择默认的仓库、库区、库位
|
||||
handleToWarehouseChanged(obj){
|
||||
if(obj !=null){
|
||||
handleToWarehouseChanged(obj) {
|
||||
if (obj != null) {
|
||||
this.form.toWarehouseId = obj[0];
|
||||
this.form.toLocationId = obj[1];
|
||||
this.form.toAreaId = obj[2];
|
||||
|
@ -116,14 +116,14 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改库房设置对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="960px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-row>
|
||||
<el-col :span="14">
|
||||
<el-row>
|
||||
<el-col :span="16">
|
||||
<el-form-item label="库房编码" prop="warehouseCode">
|
||||
<el-input v-model="form.warehouseCode" placeholder="请输入库房编码" />
|
||||
<el-input v-model="form.warehouseCode" placeholder="请输入库房编码"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
@ -183,17 +183,25 @@
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog :visible.sync="selectWareHouseVisible" title="选择类型">
|
||||
<el-dialog :close-on-click-modal="false" :visible.sync="selectWareHouseVisible" title="选择类型">
|
||||
<in-out-type-cmps v-if="selectWareHouseVisible" @selectType="selectType"></in-out-type-cmps>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listWarehouse, getWarehouse, delWarehouse, addWarehouse, updateWarehouse,changeFrozenState } from "@/api/mes/wm/warehouse";
|
||||
import {
|
||||
addWarehouse,
|
||||
changeFrozenState,
|
||||
delWarehouse,
|
||||
getWarehouse,
|
||||
listWarehouse,
|
||||
updateWarehouse
|
||||
} from "@/api/mes/wm/warehouse";
|
||||
import {genCode} from "@/api/system/autocode/rule"
|
||||
import BarcodeImg from "@/components/barcodeImg/index.vue"
|
||||
import InOutTypeCmps from "@/components/wm/InOutTypeCmps.vue";
|
||||
|
||||
export default {
|
||||
name: "Warehouse",
|
||||
components: {InOutTypeCmps, BarcodeImg } ,
|
||||
|
@ -100,7 +100,7 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改入库计划明细实体对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@ -113,10 +113,10 @@
|
||||
|
||||
<script>
|
||||
import {
|
||||
listWmsInPlanDetailsEntity,
|
||||
getWmsInPlanDetailsEntity,
|
||||
delWmsInPlanDetailsEntity,
|
||||
addWmsInPlanDetailsEntity,
|
||||
delWmsInPlanDetailsEntity,
|
||||
getWmsInPlanDetailsEntity,
|
||||
listWmsInPlanDetailsEntity,
|
||||
updateWmsInPlanDetailsEntity
|
||||
} from "@/api/mes/wm/wmsInPlanDetailsEntity";
|
||||
|
||||
|
@ -119,7 +119,7 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改入库任务对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="状态">
|
||||
<el-radio-group v-model="form.planInStatus">
|
||||
@ -142,15 +142,14 @@
|
||||
|
||||
<script>
|
||||
import {
|
||||
listWmsInTask,
|
||||
getWmsInTask,
|
||||
delWmsInTask,
|
||||
addWmsInTask,
|
||||
updateWmsInTask,
|
||||
issueBatchWmsInTask
|
||||
delWmsInTask,
|
||||
getWmsInTask,
|
||||
issueBatchWmsInTask,
|
||||
listWmsInTask,
|
||||
updateWmsInTask
|
||||
} from "@/api/mes/wm/wmsInTask";
|
||||
import {listTYPE} from "@/api/md/TYPE";
|
||||
import {addBaseKnife} from "@/api/mes/md/baseKnife";
|
||||
|
||||
export default {
|
||||
name: "WmsInTask",
|
||||
|
@ -96,11 +96,11 @@
|
||||
/>
|
||||
|
||||
<!-- 添加或修改料箱管理对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" append-to-body width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="料箱状态:0-正常,1-绑定,2-解绑" prop="type">
|
||||
<el-select v-model="form.type" placeholder="请选择料箱状态:0-正常,1-绑定,2-解绑">
|
||||
<el-option label="请选择字典生成" value="" />
|
||||
<el-option label="请选择字典生成" value=""/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@ -113,7 +113,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listCtBase, getCtBase, delCtBase, addCtBase, updateCtBase } from "@/api/wm/ctBase";
|
||||
import {addCtBase, delCtBase, getCtBase, listCtBase, updateCtBase} from "@/api/wm/ctBase";
|
||||
|
||||
export default {
|
||||
name: "CtBase",
|
||||
|
Loading…
Reference in New Issue
Block a user