Commit 6f21924c authored by tanjunxin's avatar tanjunxin

fix: 1.生产领料增加编排单号查询条件; 2.生产工单增加产品编码查询条件; 3.某些细节的优化

parent f84b06ae
...@@ -23,19 +23,17 @@ ...@@ -23,19 +23,17 @@
<el-form-item label="来源单据" prop="sourceCode"> <el-form-item label="来源单据" prop="sourceCode">
<el-input v-model="queryParams.sourceCode" placeholder="请输入来源单据" clearable @keyup.enter.native="handleQuery" /> <el-input v-model="queryParams.sourceCode" placeholder="请输入来源单据" clearable @keyup.enter.native="handleQuery" />
</el-form-item> </el-form-item>
<el-form-item label="产品名称" prop="productName">
<!-- <el-form-item label="产品编号" prop="productCode"> <el-input v-model="queryParams.productName" placeholder="请输入产品名称" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="产品编号" prop="productCode">
<el-input <el-input
v-model="queryParams.productCode" v-model="queryParams.productCode"
placeholder="请输入产品编号" placeholder="请输入产品编号"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> -->
<el-form-item label="产品名称" prop="productName">
<el-input v-model="queryParams.productName" placeholder="请输入产品名称" clearable @keyup.enter.native="handleQuery" />
</el-form-item> </el-form-item>
<!-- <el-form-item label="客户编码" prop="clientCode"> <!-- <el-form-item label="客户编码" prop="clientCode">
<el-input <el-input
v-model="queryParams.clientCode" v-model="queryParams.clientCode"
...@@ -119,6 +117,11 @@ ...@@ -119,6 +117,11 @@
v-hasPermi="['mes:pro:workorder:edit']">导入 v-hasPermi="['mes:pro:workorder:edit']">导入
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-plus" size="mini" :disabled="single" @click="handleTurnWorry">
转急单
</el-button>
</el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-plus" size="mini" :disabled="multiple" @click="handleToolNumCheck" <el-button type="warning" plain icon="el-icon-plus" size="mini" :disabled="multiple" @click="handleToolNumCheck"
v-hasPermi="['mes:pro:workorder:dofinish']">刀模版具齐套检查 v-hasPermi="['mes:pro:workorder:dofinish']">刀模版具齐套检查
...@@ -129,11 +132,6 @@ ...@@ -129,11 +132,6 @@
v-hasPermi="['pro:combination:add']">订单组合 v-hasPermi="['pro:combination:add']">订单组合
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-plus" size="mini" :disabled="single" @click="handleTurnWorry">
转急单
</el-button>
</el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-edit" size="mini" @click="()=>handleCombination('del')" :disabled="combinationDisable" <el-button type="warning" plain icon="el-icon-edit" size="mini" @click="()=>handleCombination('del')" :disabled="combinationDisable"
>取消组合 >取消组合
......
...@@ -17,6 +17,14 @@ ...@@ -17,6 +17,14 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="编排单号" prop="arrangeCode">
<el-input
v-model="queryParams.arrangeCode"
placeholder="请输入编排单号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间"> <el-form-item label="创建时间">
<el-date-picker <el-date-picker
v-model="daterangePurchaseDate" v-model="daterangePurchaseDate"
...@@ -101,8 +109,8 @@ ...@@ -101,8 +109,8 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建人" align="center" prop="createBy" /> <el-table-column label="创建人" align="center" prop="createBy" />
<el-table-column label="领料日期" align="center" prop="issueDate" width="180"> <el-table-column label="领料日期" align="center" prop="issueDate" width="180">
<!-- <template slot-scope="scope">width="180" <!-- <template slot-scope="scope">width="180"
<span>{{ parseTime(scope.row.issueDate, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.issueDate, '{y}-{m}-{d}') }}</span>
...@@ -142,7 +150,7 @@ ...@@ -142,7 +150,7 @@
</template> </template>
</el-table-column> --> </el-table-column> -->
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
...@@ -165,7 +173,7 @@ ...@@ -165,7 +173,7 @@
<el-switch v-model="autoGenFlag" <el-switch v-model="autoGenFlag"
active-color="#13ce66" active-color="#13ce66"
active-text="自动生成" active-text="自动生成"
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'"> @change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'">
</el-switch> </el-switch>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -188,13 +196,13 @@ ...@@ -188,13 +196,13 @@
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<el-divider v-if="form.issueId !=null" content-position="center">物料信息</el-divider> <el-divider v-if="form.issueId !=null" content-position="center">物料信息</el-divider>
<el-card shadow="always" v-if="form.issueId !=null" class="box-card"> <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" :issueId="form.issueId" :warehouseId="form.warehouseId" :locationId="form.locationId" :areaId="form.areaId" :optType="optType"></Issueline>
</el-card> </el-card>
<div slot="footer" class="dialog-footer"> <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="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="primary" @click="submitForm" v-if="form.status =='PREPARE' && optType !='view' ">确 定</el-button>
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
</div> </div>
</el-dialog> </el-dialog>
...@@ -237,7 +245,7 @@ export default { ...@@ -237,7 +245,7 @@ export default {
total: 0, total: 0,
// 生产领料单头表格数据 // 生产领料单头表格数据
issueheaderList: [], issueheaderList: [],
daterangePurchaseDate: [], daterangePurchaseDate: [],
// 弹出层标题 // 弹出层标题
title: "", title: "",
...@@ -267,6 +275,7 @@ export default { ...@@ -267,6 +275,7 @@ export default {
issueDate: null, issueDate: null,
status: 'PREPARE', status: 'PREPARE',
applyNo: null, applyNo: null,
arrangeCode: null,
}, },
// 表单参数 // 表单参数
form: {}, form: {},
...@@ -307,7 +316,7 @@ export default { ...@@ -307,7 +316,7 @@ export default {
}); });
}, },
getWarehouseList(){ getWarehouseList(){
getTreeList().then( response =>{ getTreeList().then( response =>{
if(response.data){ if(response.data){
this.warehouseOptions = response.data.filter((el) =>{ this.warehouseOptions = response.data.filter((el) =>{
return el.warehouseCode.indexOf('VIR') == -1; return el.warehouseCode.indexOf('VIR') == -1;
...@@ -315,12 +324,12 @@ export default { ...@@ -315,12 +324,12 @@ export default {
} }
this.warehouseOptions.map(w =>{ this.warehouseOptions.map(w =>{
w.children.map(l =>{ w.children.map(l =>{
let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName'); let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName');
l.children = JSON.parse(lstr); l.children = JSON.parse(lstr);
}); });
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName'); let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
w.children = JSON.parse(wstr); w.children = JSON.parse(wstr);
}); });
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName'); let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
...@@ -371,7 +380,7 @@ export default { ...@@ -371,7 +380,7 @@ export default {
updateTime: null, updateTime: null,
applyNo: null, applyNo: null,
}; };
this.autoGenFlag = false; this.autoGenFlag = false;
this.resetForm("form"); this.resetForm("form");
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
...@@ -405,9 +414,9 @@ export default { ...@@ -405,9 +414,9 @@ export default {
getIssueheader(issueId).then(response => { getIssueheader(issueId).then(response => {
debugger; debugger;
this.form = response.data; this.form = response.data;
this.warehouseInfo[0] = response.data.warehouseId; this.warehouseInfo[0] = response.data.warehouseId;
this.warehouseInfo[1] = response.data.locationId; this.warehouseInfo[1] = response.data.locationId;
this.warehouseInfo[2] = response.data.areaId; this.warehouseInfo[2] = response.data.areaId;
this.open = true; this.open = true;
this.title = "修改生产领料单"; this.title = "修改生产领料单";
this.optType = "edit"; this.optType = "edit";
...@@ -419,9 +428,9 @@ export default { ...@@ -419,9 +428,9 @@ export default {
const issueIds = row.issueId const issueIds = row.issueId
getIssueheader(issueIds).then(response => { getIssueheader(issueIds).then(response => {
this.form = response.data; this.form = response.data;
this.warehouseInfo[0] = response.data.warehouseId; this.warehouseInfo[0] = response.data.warehouseId;
this.warehouseInfo[1] = response.data.locationId; this.warehouseInfo[1] = response.data.locationId;
this.warehouseInfo[2] = response.data.areaId; this.warehouseInfo[2] = response.data.areaId;
this.open = true; this.open = true;
this.title = "查看领料单信息"; this.title = "查看领料单信息";
this.optType = "view"; this.optType = "view";
...@@ -474,7 +483,7 @@ export default { ...@@ -474,7 +483,7 @@ export default {
}, `issueheader_${new Date().getTime()}.xlsx`) }, `issueheader_${new Date().getTime()}.xlsx`)
}, },
//选择默认的仓库、库区、库位 //选择默认的仓库、库区、库位
handleWarehouseChanged(obj){ handleWarehouseChanged(obj){
if(obj !=null){ if(obj !=null){
this.form.warehouseId = obj[0]; this.form.warehouseId = obj[0];
this.form.locationId = obj[1]; this.form.locationId = obj[1];
......
<template> <template>
<div class="app-container"> <div class="app-container">
<el-row v-if="optType != 'view'" :gutter="10" class="mb8"> <el-row v-if="optType != 'view'" :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
...@@ -40,12 +40,13 @@ ...@@ -40,12 +40,13 @@
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="产品物料编码" width="120px" align="center" prop="itemCode" /> <el-table-column label="产品物料编码" width="120px" align="center" prop="itemCode" />
<el-table-column label="产品物料名称" width="120px" align="center" prop="itemName" :show-overflow-tooltip="true"/> <el-table-column label="产品物料名称" width="120px" align="center" prop="itemName" :show-overflow-tooltip="true"/>
<el-table-column label="生产工单" align="center" prop="workorderCode" /> <el-table-column label="生产工单" align="center" prop="workorderCode" />
<el-table-column label="申请单号" align="center" prop="applyNo" /> <el-table-column label="申请单号" align="center" prop="applyNo" />
<el-table-column label="规格型号" align="center" prop="specification" :show-overflow-tooltip="true"/> <el-table-column label="规格型号" align="center" prop="specification" :show-overflow-tooltip="true"/>
<el-table-column label="单位" align="center" prop="unitOfMeasure" /> <el-table-column label="单位" align="center" prop="unitOfMeasure" />
<el-table-column label="领料数量" align="center" prop="quantityIssued" /> <el-table-column label="领料数量" align="center" prop="quantityIssued" />
<el-table-column label="批次号" align="center" prop="batchCode" /> <el-table-column label="批次号" align="center" prop="batchCode" />
<el-table-column width="200" label="PL号" align="center" prop="plNum" />
<el-table-column label="仓库名称" align="center" prop="warehouseName" /> <el-table-column label="仓库名称" align="center" prop="warehouseName" />
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true"/> <el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true"/>
<el-table-column label="操作" align="center" v-if="optType != 'view'" width="100px" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" v-if="optType != 'view'" width="100px" class-name="small-padding fixed-width">
...@@ -69,7 +70,7 @@ ...@@ -69,7 +70,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
...@@ -350,7 +351,7 @@ export default { ...@@ -350,7 +351,7 @@ export default {
this.form.itemCode = obj.itemCode; this.form.itemCode = obj.itemCode;
this.form.itemName = obj.itemName; this.form.itemName = obj.itemName;
this.form.specification = obj.specification; this.form.specification = obj.specification;
this.form.unitOfMeasure = obj.unitOfMeasure; this.form.unitOfMeasure = obj.unitOfMeasure;
this.form.batchCode = obj.batchCode; this.form.batchCode = obj.batchCode;
this.form.warehouseId = obj.warehouseId; this.form.warehouseId = obj.warehouseId;
this.form.warehouseCode = obj.warehouseCode; this.form.warehouseCode = obj.warehouseCode;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment