退料接收修改

This commit is contained in:
zzyuan 2024-05-07 17:57:57 +08:00
parent 8ab553727b
commit bb0b4977ab
2 changed files with 70 additions and 62 deletions

View File

@ -174,7 +174,13 @@ export function backReceiveRecordWeb(data) {
data: data data: data
}) })
} }
export function backReceiveRecordWebPt(data) {
return request({
url: 'base/backReceive/backReceiveRecordWebPt ',
method: 'post',
data: data
})
}
// 退料接收 数量接收 // 退料接收 数量接收
export function setNumBack(data) { export function setNumBack(data) {

View File

@ -196,63 +196,7 @@
<!-- 数量退料弹窗 --> <!-- 数量退料弹窗 -->
<el-dialog :title="title" :visible.sync="openNum" width="1200px" append-to-body> <el-dialog :title="title" :visible.sync="openNum" width="1200px" append-to-body>
<div v-if="dialogData.typeMange == 1"> <div v-if="dialogData.typeMange == 2">
<div style="margin-left: 40px; margin-bottom: 10px">退料数量{{ returnNum }}</div>
<el-row :gutter="10" class="mb8" v-if="!dialogIsView">
<el-col :span="1.5">
<el-button type="primary" size="mini" v-if="returnNum > 0" @click="saveNumReturn(dialogData.typeMange)">
保存
</el-button>
</el-col>
</el-row>
<el-table v-loading="loading" :data="numList" height="500">
<el-table-column label="序号" align="center" type="index" />
<el-table-column label="类型名称" align="center" prop="typeName" :show-overflow-tooltip="true" />
<el-table-column label="规格型号" align="center" prop="typeCode" :show-overflow-tooltip="true" />
<el-table-column label="退料数量" align="center" prop="backNum" :show-overflow-tooltip="true" />
<el-table-column label="合格数量" align="center" prop="qualifiedNum" :show-overflow-tooltip="true">
<template slot-scope="scope">
<el-input
v-model.number="scope.row.qualifiedNum"
placeholder="请输入合格数量"
type="number"
:min="0"
clearable
:disabled="dialogIsView"
style="width: 100%"
/>
</template>
</el-table-column>
<el-table-column label="待维修数量" align="center" prop="serviceNum" :show-overflow-tooltip="true">
<template slot-scope="scope">
<el-input
v-model.number="scope.row.serviceNum"
placeholder="请输入待维修数量"
type="number"
:min="0"
clearable
:disabled="dialogIsView"
style="width: 100%"
/>
</template>
</el-table-column>
<el-table-column label="待报废数量" align="center" prop="scrapNum">
<template slot-scope="scope">
<el-input
v-model.number="scope.row.scrapNum"
placeholder="请输入待报废数量"
type="number"
:min="0"
clearable
:disabled="dialogIsView"
style="width: 100%"
/>
</template>
</el-table-column>
<!-- <el-table-column label="报废信息" align="center" prop="" :show-overflow-tooltip="true" /> -->
</el-table>
</div>
<div v-else>
<div style="margin-bottom: 30px"> <div style="margin-bottom: 30px">
接收抱杆类型{{ dialogData.typeName }}型号{{ dialogData.typeCode }}付数{{ returnNum }}接收明细如下 接收抱杆类型{{ dialogData.typeName }}型号{{ dialogData.typeCode }}付数{{ returnNum }}接收明细如下
</div> </div>
@ -311,6 +255,63 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div v-else>
<div style="margin-left: 40px; margin-bottom: 10px">退料数量{{ returnNum }}</div>
<el-row :gutter="10" class="mb8" v-if="!dialogIsView">
<el-col :span="1.5">
<el-button type="primary" size="mini" v-if="returnNum > 0" @click="saveNumReturn(dialogData.typeMange)">
保存
</el-button>
</el-col>
</el-row>
<el-table v-loading="loading" :data="numList" height="500">
<el-table-column label="序号" align="center" type="index" />
<el-table-column label="类型名称" align="center" prop="typeName" :show-overflow-tooltip="true" />
<el-table-column label="规格型号" align="center" prop="typeCode" :show-overflow-tooltip="true" />
<el-table-column label="退料数量" align="center" prop="backNum" :show-overflow-tooltip="true" />
<el-table-column label="合格数量" align="center" prop="qualifiedNum" :show-overflow-tooltip="true">
<template slot-scope="scope">
<el-input
v-model.number="scope.row.qualifiedNum"
placeholder="请输入合格数量"
type="number"
:min="0"
clearable
:disabled="dialogIsView"
style="width: 100%"
/>
</template>
</el-table-column>
<el-table-column label="待维修数量" align="center" prop="serviceNum" :show-overflow-tooltip="true">
<template slot-scope="scope">
<el-input
v-model.number="scope.row.serviceNum"
placeholder="请输入待维修数量"
type="number"
:min="0"
clearable
:disabled="dialogIsView"
style="width: 100%"
/>
</template>
</el-table-column>
<el-table-column label="待报废数量" align="center" prop="scrapNum">
<template slot-scope="scope">
<el-input
v-model.number="scope.row.scrapNum"
placeholder="请输入待报废数量"
type="number"
:min="0"
clearable
:disabled="dialogIsView"
style="width: 100%"
/>
</template>
</el-table-column>
<!-- <el-table-column label="报废信息" align="center" prop="" :show-overflow-tooltip="true" /> -->
</el-table>
</div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -320,6 +321,7 @@ import {
receiveView, receiveView,
getBackMachine, getBackMachine,
backReceiveRecordWeb, backReceiveRecordWeb,
backReceiveRecordWebPt,
setNumBack, setNumBack,
setCodeBack, setCodeBack,
getRecord, getRecord,
@ -517,7 +519,7 @@ export default {
} }
backReceiveRecordWeb(param).then(res => { backReceiveRecordWeb(param).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.title = '查看' this.title = '查看1'
this.openNum = true this.openNum = true
this.dialogIsView = true this.dialogIsView = true
this.numList = res.data.rows this.numList = res.data.rows
@ -544,7 +546,7 @@ export default {
} }
}) })
} else if (row.manageType == '0') { } else if (row.manageType == '0') {
this.title = '查看' this.title = '查看0'
this.openCode = true this.openCode = true
this.resetForm('codeQuery') this.resetForm('codeQuery')
this.codeQuery.parentId = row.id this.codeQuery.parentId = row.id
@ -665,9 +667,9 @@ export default {
}, },
//退 //退
getCodeViewList() { getCodeViewList() {
backReceiveRecordWeb(this.codeQuery).then(response => { backReceiveRecordWebPt(this.codeQuery).then(response => {
this.codeList = response.data.rows this.codeList = response.data.rows
this.codeList // this.codeList
this.codeList.forEach(item => { this.codeList.forEach(item => {
item.typeModelName = item.typeCode item.typeModelName = item.typeCode
if (item.backStatus == '1') { if (item.backStatus == '1') {