LAPTOP-R6EHHS26\86155 6 months ago
commit bbbeef3a39

@ -18,7 +18,26 @@ export function addOdsProductEmbryoInventory(data) {
contentType:'application/json',
});
}
// 调整成品盘点单
export function AdjustInventoryList(data) {
return request({
url: '/wms/systemFinished/AdjustInventoryList',
method: 'post',
data: data,
contentType:'application/json',
});
}
// 审核
export function approve(data) {
return request({
url: '/wms/systemFinished/approve',
method: 'post',
data: data,
contentType:'application/json',
});
}
// 查询成品盘点单详细
export function getSystemFinished(ID) {
return request({
@ -27,6 +46,16 @@ export function getSystemFinished(ID) {
});
}
// 获取盘点单的关联信息
export function selectObtainTheAssociated(data) {
return request({
url: '/wms/systemFinished/selectObtainTheAssociated',
method: 'post',
data: data
});
}
// 新增成品盘点单
export function addSystemFinished(data) {
return request({

@ -138,134 +138,106 @@
<h2>成品检验报告</h2>
</el-col>
</el-row>
<el-row>
<el-col :span="16">
<el-form-item label="产品名称" prop="materialName">
<el-input v-model="form.materialName" disabled />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="产品编码" prop="materialCode">
<el-input v-model="form.materialCode" disabled />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="生产数量" prop="quality">
<el-input type="number" v-model="form.quality" disabled/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="单位" prop="unit" >
<el-input v-model="form.unit" disabled/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="检验编号" prop="checkNo">
<el-input v-model="form.checkNo" disabled/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="生产批号" prop="incomeBatchNo">
<el-input v-model="form.incomeBatchNo" disabled/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="抽样地点" prop="checkLoc">
<el-input v-model="form.checkLoc" disabled/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="检验依据" prop="standardNo">
<el-input v-model="form.standardNo" disabled/>
</el-form-item>
<el-descriptions title="" border :column="3" :contentStyle="content_style" :label-style="label_style">
<el-descriptions-item label="产品名称" class="my-description-item1">{{form.materialName}}</el-descriptions-item>
<el-descriptions-item label="生产数量" class="my-description-item2">{{form.quality}}</el-descriptions-item>
<el-descriptions-item label="检验编码" class="my-description-item3">{{form.checkNo}}</el-descriptions-item>
<el-descriptions-item label="产品编码" class="my-description-item1">{{form.materialCode}}</el-descriptions-item>
<el-descriptions-item label="抽样地点" class="my-description-item2">{{form.checkLoc}}</el-descriptions-item>
<el-descriptions-item label="报检日期" class="my-description-item3">{{form.createTime}}</el-descriptions-item>
<el-descriptions-item label="生产批号" class="my-description-item1">{{form.incomeBatchNo}}</el-descriptions-item>
<el-descriptions-item label="检验依据" class="my-description-item2">{{form.standardNo}}</el-descriptions-item>
<el-descriptions-item label="检验日期" class="my-description-item3">{{form.checkTime}}</el-descriptions-item>
</el-descriptions>
<el-row class="border-row">
<el-col :span="24">
包装检验项目
</el-col>
<el-col :span="24">
<!-- 检验项目明细 -->
<el-table v-loading="loading" :data="checkProjectList" border>
<el-table-column label="序号" align="center" type="index" width="50"/>
<el-table-column label="检验项目" align="center" prop="ruleName" width="100"/>
<el-table-column label="标准要求" align="center" prop="checkStandard"/>
<el-table-column label="抽检数" align="center" prop="samplePlan" width="60"/>
<!--<el-table-column label="单位" align="center" prop="unitCode" width="50"/>-->
<el-table-column label="实测结果及判定" align="center">
<el-table-column label="实测结果" align="center" prop="actualValue" width="120"/>
<el-table-column label="判定" align="center" prop="status" width="110"/>
</el-table-column>
<!--
<el-table-column label="不良类型" align="center" prop="defectCode" width="80">
<template slot-scope="scope">
<span v-if="scope.row.defectCode">{{ getCodeValue(scope.row.defectCode) }}</span>
</template>
</el-table-column>
<el-table-column label="不良数量" align="center" prop="defectQuality" width="50"/>
<el-table-column label="附件" align="center" prop="files" width="120">
<template slot-scope="scope">
<el-image v-for="(item,index) in scope.row.files" :key="index"
:src="item.fileAddress"
style="width: 100px; height: 100px"
:fit="fit" />
</template>
</el-table-column>
-->
</el-table>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="报检日期" prop="createTime">
<el-input v-model="form.checkTime" placeholder="请输入报检日期" disabled>
{{ parseTime(form.checkTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="检验日期" prop="checkTime">
<el-input v-model="form.checkTime" placeholder="请输入检验日期" disabled>
{{ parseTime(form.checkTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="产品提报人" prop="checkManName">
<el-input v-model="form.checkManName" placeholder="请输入OEM产品提报人" disabled/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-row class="border-row">
<el-col :span="24">
内容物分析项目
</el-col>
<el-col :span="24">
<!-- 检验项目明细 -->
<el-table v-loading="loading" :data="checkProjectList" >
<el-table-column type="selection" width="50" align="center" />
<el-table v-loading="loading" :data="checkProjectList0" border>
<el-table-column label="序号" align="center" type="index" width="50"/>
<el-table-column label="检验项目" align="center" prop="ruleName" />
<el-table-column label="标准要求" align="center" prop="checkStandard" width="160"/>
<el-table-column label="抽检数" align="center" prop="sampleNum" width="60"/>
<el-table-column label="单位" align="center" prop="unitCode" width="50"/>
<el-table-column label="实测结果" align="center" prop="actualValue" width="160"/>
<el-table-column label="判定" align="center" prop="status" width="70">
<template slot-scope="scope">
<dict-tag :options="dict.type.check_result" :value="scope.row.status"/>
</template>
</el-table-column>
<el-table-column label="不良类型" align="center" prop="defectCode" width="80">
<template slot-scope="scope">
<span v-if="scope.row.defectCode">{{ getCodeValue(scope.row.defectCode) }}</span>
</template>
</el-table-column>
<el-table-column label="不良数量" align="center" prop="defectQuality" width="50"/>
<el-table-column label="附件" align="center" prop="files" width="120">
<template slot-scope="scope">
<el-image v-for="(item,index) in scope.row.files" :key="index"
:src="item.fileAddress"
style="width: 100px; height: 100px"
:fit="fit" />
</template>
<el-table-column label="检验项目" align="center" prop="ruleName" width="100"/>
<el-table-column label="标准要求" align="center" prop="checkStandard"/>
<el-table-column label="抽检数" align="center" prop="samplePlan" width="60"/>
<el-table-column label="实测结果及判定" align="center">
<el-table-column label="实测结果" align="center" prop="actualValue" width="120"/>
<el-table-column label="判定" align="center" prop="status" width="110"/>
</el-table-column>
</el-table>
</el-col>
</el-row>
<el-row>
<el-col>
<el-form-item label="综合检验结论" label-width="100px">
<el-col offset="6" span="6">
<el-checkbox disabled>合格</el-checkbox>
</el-col>
<el-col offset="3" span="6">
<el-checkbox disabled>不合格</el-checkbox>
</el-col>
</el-form-item>
</el-col>
</el-row>
<el-descriptions title="" border :column="1">
<el-descriptions-item label="综合检验结论">
<el-col offset="1" span="6">
<el-checkbox-group v-model="form.checkedValues">
<el-checkbox label="Y">合格</el-checkbox>
<el-checkbox label="N">不合格</el-checkbox>
</el-checkbox-group>
</el-col>
<el-col span="8">
判定合格打不合格打×
</el-col>
</el-descriptions-item>
</el-descriptions>
<!--
<el-row>
<el-col :span="20">
<el-form-item label="备注:" label-width="100px">
<el-input type="textarea" disabled/>
</el-form-item>
</el-col>
</el-row>
</el-row>-->
<el-row>
<el-col :span="20">
<el-col :span="10">
<el-form-item label="品检主管:" label-width="100px">
<el-input disabled/>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item label="品管员:" >
<el-input disabled/>
<el-col :span="10">
<el-form-item label="检验员:" >
{{form.checkManName}}
</el-form-item>
</el-col>
</el-row>
@ -358,13 +330,27 @@ export default {
factoryCode: null,
},
//
form: {},
form: {checkedValues:[]},
checkTypes:[],
//
rules: {
/* incomeBatchNo: [
{ required: true, message: "来料批次号不能为空", trigger: "blur" }
], */
},
content_style: {
'text-align': 'center',
'min-width': '200px',
'word-break': 'break-all'
},
label_style: {
'color': '#000',
'text-align': 'center',
'font-weight': '600',
'height': '40px',
'background-color': '#d6dbe1',
'min-width': '100px',
'word-break': 'keep-all'
}
};
},
@ -481,6 +467,9 @@ export default {
this.queryParams.recordId = recordId;
getProduct(recordId).then(response => {
this.form = response.data;
let checkedValues0 =[];
checkedValues0.push(response.data.checkResult)
this.form.checkedValues = ['Y'];
this.form.printable = 'printFrom'; //
this.form.ignore = ['no-print'];//
this.open = true;
@ -529,7 +518,18 @@ export default {
getCheckedProjectList(){
this.loading = true;
getCkeckProjectList(this.queryParams).then((response) => {
this.checkProjectList = response.rows;
const itemType1s=[];
const itemType0s=[];
response.rows.forEach(item=>{
if (item.itemType == '1') {
itemType1s.push(item);
}else if(item.itemType == '0'){
itemType0s.push(item);
}
})
this.checkProjectList = itemType1s;
this.checkProjectList0 = itemType0s;
this.total = response.total;
this.loading = false;
this.form.standardNo = this.checkProjectList[0].standardNo;
@ -576,4 +576,18 @@ export default {
margin-left: 15px;
height: 38px;
}
.my-description-item1 {
width: 280px; /* 或者你想要的任何宽度 */
}
.my-description-item2 {
width: 120px; /* 或者你想要的任何宽度 */
}
.my-description-item3 {
width: 80px; /* 或者你想要的任何宽度 */
}
.border-row {
border: 1px solid #d3dce6; /* 边框颜色可以根据需要自定义 */
text-align:center;
}
</style>

@ -458,9 +458,6 @@ export default {
form: {},
//
rules: {
incomeBatchNo: [
{ required: true, message: "批次号不能为空", trigger: "blur" }
],
orderNo: [
{ required: true, message: "订单号不能为空", trigger: "blur" }
],

@ -189,7 +189,7 @@
label="设备编码"
align="center"
prop="equipmentCode"
width="150"
width="100"
fixed="left"
>
<template slot-scope="scope">
@ -205,7 +205,7 @@
label="设备名称"
align="center"
prop="equipmentName"
width="300"
width="200"
/>
<el-table-column
label="是否启用"
@ -315,7 +315,7 @@
width="100"
/>
<el-table-column
label="单台能力工时"
label="标准产能(时)"
align="center"
prop="unitWorkingHours"
width="100"
@ -566,7 +566,7 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="单台能力工时" prop="unitWorkingHours">
<el-form-item label="标准产能(时)" prop="unitWorkingHours">
<el-input-number
:min="0"
:step="1"
@ -939,7 +939,7 @@
<el-descriptions-item label="工段">{{
form.workshopSection
}}</el-descriptions-item>
<el-descriptions-item label="单台能力工时">{{
<el-descriptions-item label="标准产能(时)">{{
form.unitWorkingHours
}}</el-descriptions-item>
<el-descriptions-item label="工时单价">{{
@ -951,9 +951,12 @@
<el-descriptions-item label="sap线体名称">{{
form.sapName
}}</el-descriptions-item>
<el-descriptions-item label="设备类别">{{
form.equipmentCategory
}}</el-descriptions-item>
<el-descriptions-item label="设备类别">
<dict-tag
:options="dict.type.equipment_category"
:value="form.equipmentCategory"
/>
</el-descriptions-item>
<el-descriptions-item label="工厂车间">{{
form.factoryWorkshop
}}</el-descriptions-item>
@ -966,9 +969,12 @@
:contentStyle="CS"
:label-style="LS"
>
<el-descriptions-item label="设备状态">{{
form.status
}}</el-descriptions-item>
<el-descriptions-item label="设备状态">
<dict-tag
:options="dict.type.equipment_status"
:value="form.equipmentStatus"
/>
</el-descriptions-item>
<el-descriptions-item label="使用部门">{{
form.department
}}</el-descriptions-item>

@ -93,7 +93,7 @@
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
@click="handleUpdateTWO"
v-hasPermi="['systemFinished:systemFinished:edit']"
>审核
</el-button>
@ -311,6 +311,146 @@
</div>
</el-dialog>
<!-- 盘点调整框 -->
<el-dialog :title="title" :visible.sync="openTWO" width="1232px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-row>
<el-col :span="10" align="left">
<el-form-item label="盘点单号" prop="orderCode">
<el-input v-model="form.orderCode" placeholder="自动生成" :readonly="true"/>
</el-form-item>
</el-col>
<el-col :span="10"align="left">
<el-form-item label="盘点仓库" prop="userDefined1">
<el-select v-model="form.userDefined1" placeholder="请选择盘点仓库">
<el-option
v-for="item in Optionlistck"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="10" align="left">
<el-form-item label="盘点人" prop="userDefined2">
<el-input v-model="form.userDefined2" />
</el-form-item>
</el-col>
<el-col :span="10" align="left">
<el-form-item label="盘点时间" prop="userDefined5">
<el-input v-model="form.userDefined5" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-table :data="associatedData" @selection-change="handleSelectionChange1">
<el-table-column type="selection" width="55" align="center" :index="indexMethod" />
<el-table-column label="序号" type="index"> </el-table-column>
<el-table-column label="库位" align="center" prop="locCode" />
<el-table-column label="托盘号" align="center" prop="userDefined2" />
<!-- <el-table-column label="批次号" align="center" prop="incomeBatchNo" />-->
<el-table-column label="产品编码" align="center" prop="materialCode" />
<el-table-column label="产品名称" align="center" prop="materialDesc" />
<el-table-column label="单位" align="center" prop="unit" />
<el-table-column label="应盘数量" align="center" prop="locNumber" />
<el-table-column label="实际盘点数量" align="center" prop="realityNumber" />
<el-table-column label="盈亏" align="center">
<template slot-scope="scope">
{{ scope.row.locNumber > scope.row.realityNumber ? '盘亏' : (scope.row.locNumber < scope.row.realityNumber ? '盘盈' : '无') }}
</template>
</el-table-column>
<el-table-column label="盘点调整数量" align="center" width="180">
<template slot-scope="scope">
<el-input v-model="scope.row.adjustmentAmount" size="mini" placeholder="请输入调整数量" @change="handleAdjustment(scope.row)"></el-input>
</template>
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitFormTWO"></el-button>
<el-button @click="cancelTWO"></el-button>
</div>
</el-dialog>
<!-- 盘点审核框 -->
<el-dialog :title="title" :visible.sync="openTEM" width="1232px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-row>
<el-col :span="10" align="left">
<el-form-item label="盘点单号" prop="orderCode">
<el-input v-model="form.orderCode" placeholder="自动生成" :readonly="true"/>
</el-form-item>
</el-col>
<el-col :span="10"align="left">
<el-form-item label="盘点仓库" prop="userDefined1">
<el-select v-model="form.userDefined1" placeholder="请选择盘点仓库">
<el-option
v-for="item in Optionlistck"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="10" align="left">
<el-form-item label="盘点人" prop="userDefined2">
<el-input v-model="form.userDefined2" />
</el-form-item>
</el-col>
<el-col :span="10" align="left">
<el-form-item label="盘点时间" prop="userDefined5">
<el-input v-model="form.userDefined5" />
</el-form-item>
</el-col>
<el-col :span="10" align="left">
<el-form-item label="盘点调整人:" prop="userDefined6">
<el-input v-model="form.userDefined6" />
</el-form-item>
</el-col>
<el-col :span="10" align="left">
<el-form-item label="盘点调整时间:" prop="userDefined7">
<el-input v-model="form.userDefined7" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-table :data="associatedData" @selection-change="handleSelectionChange1">
<el-table-column type="selection" width="55" align="center" :index="indexMethod" />
<el-table-column label="序号" type="index"> </el-table-column>
<el-table-column label="库位" align="center" prop="locCode" />
<el-table-column label="托盘号" align="center" prop="userDefined2" />
<!-- <el-table-column label="批次号" align="center" prop="incomeBatchNo" />-->
<el-table-column label="产品编码" align="center" prop="materialCode" />
<el-table-column label="产品名称" align="center" prop="materialDesc" />
<el-table-column label="单位" align="center" prop="unit" />
<el-table-column label="应盘数量" align="center" prop="locNumber" />
<el-table-column label="实际盘点数量" align="center" prop="realityNumber" />
<el-table-column label="盈亏" align="center">
<template slot-scope="scope">
{{ scope.row.locNumber > scope.row.realityNumber ? '盘亏' : (scope.row.locNumber < scope.row.realityNumber ? '盘盈' : '无') }}
</template>
</el-table-column>
<el-table-column label="盘点调整数量" align="center" prop="adjustmentAmount" />
<!-- -->
</el-table>
<el-input type="textarea" v-model="form.userDefined4" placeholder="审核意见"></el-input>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitFormTEM"></el-button>
<el-button type="primary" @click="submitFormBOH"></el-button>
<el-button @click="cancelTEM"></el-button>
</div>
</el-dialog>
<!--订单选择弹窗-----------在父组件中接收选择的数据并将其添加到 selectedItemsList -->
<ItemSelectWorkOrderk
ref="ItemSelectWorkOrderk"
@ -333,6 +473,9 @@
listSystemFinished,
getSystemFinished,
addOdsProductEmbryoInventory,
AdjustInventoryList,
approve,
selectObtainTheAssociated,
delSystemFinished,
addSystemFinished,
updateSystemFinished } from "@/api/systemFinished/systemFinished";
@ -354,6 +497,7 @@
showFlags:false,
//
addoutorderList:[],
associatedData:[],
//
ids: [],
//
@ -374,6 +518,8 @@
title: "",
//
open: false,
openTWO: false,
openTEM: false,
//
queryParams: {
pageNum: 1,
@ -476,6 +622,8 @@
return '驳回';
case "3":
return '已完成';
case "4":
return '待审核';
default:
return '';
}
@ -490,6 +638,17 @@
default:
return '';
}
},
cancelTEM() {
this.openTEM = false;
this.associatedData = []; //
this.reset();
},
cancelTWO() {
this.openTWO = false;
this.associatedData = []; //
this.reset();
},
//
cancel() {
@ -566,6 +725,69 @@
// });
//
// },
submitFormTEM() {
this.$refs["form"].validate(valid => {
if (valid) {
// formDataform
const formData = Object.assign({}, this.form);
// // addoutorderListformData
// formData.odsProductEmbryoInventoryCorrelationList = this.associatedData;
formData.orderStatus = "3";
//
console.log("Merged Data:", formData);
const jsonData = JSON.stringify(formData);
//
approve(jsonData).then(response => {
//
}).catch(error => {
//
});
}
});
},
submitFormTWO() {
this.$refs["form"].validate(valid => {
if (valid) {
// formDataform
const formData = Object.assign({}, this.form);
// addoutorderListformData
formData.odsProductEmbryoInventoryCorrelationList = this.associatedData;
//
console.log("Merged Data:", formData);
const jsonData = JSON.stringify(formData);
//
AdjustInventoryList(jsonData).then(response => {
//
}).catch(error => {
//
});
}
});
},
submitFormBOH() {
this.$refs["form"].validate(valid => {
if (valid) {
// formDataform
const formData = Object.assign({}, this.form);
// // addoutorderListformData
// formData.odsProductEmbryoInventoryCorrelationList = this.associatedData;
formData.orderStatus = "2";
//
console.log("Merged Data:", formData);
const jsonData = JSON.stringify(formData);
//
approve(jsonData).then(response => {
//
}).catch(error => {
//
});
}
});
},
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
@ -599,7 +821,8 @@
this.open = true;
this.title = "盘点新增";
this.selectfactoryCodelist();
this.form.siteCode = '1000';
let factoryCode = localStorage.getItem('USER_POOL_NAME_CURRENT').substring(3)
this.form.siteCode = factoryCode;
this.getselect();
},
getselect() {
@ -627,10 +850,52 @@
row.id || this.ids
getSystemFinished(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改成品盘点单";
this.openTWO = true;
this.title = "盘点单调整";
const tem = { orderCode: response.data.orderCode };
console.log("orderCodeorderCodeorderCodeorderCode---"+row.orderCode)
const data = JSON.stringify(tem);
this.getAssociatedData(data)
});
this.getselect();
},
handleUpdateTWO(row) {
this.reset();
const id =
row.id || this.ids
getSystemFinished(id).then(response => {
this.form = response.data;
this.openTEM = true;
this.title = "盘点单审核";
const tem = { orderCode: response.data.orderCode };
console.log("orderCodeorderCodeorderCodeorderCode---"+row.orderCode)
const data = JSON.stringify(tem);
this.getAssociatedData(data)
});
this.getselect();
},
getAssociatedData(data) {
selectObtainTheAssociated(data).then(response => {
this.associatedData = response.data;
}).catch(error => {
console.error('获取数据失败:', error);
});
},
handleAdjustment(row) {
//
console.log('调整数量为:', row.adjustmentAmount);
//
// row.adjustmentAmount =
// this.$set(row, 'adjustmentAmount', )
row.adjustmentAmount = parseFloat(row.adjustmentAmount); //
console.log('调整数量为:', row.adjustmentAmount);
//
// this.$axios.post('/api/adjust', { id: row.id, amount: row.adjustmentAmount })
},
handleDeleteRW(row) {
console.log("Row Object:", row);

Loading…
Cancel
Save