|
|
|
|
@ -196,63 +196,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 数量退料弹窗 -->
|
|
|
|
|
<el-dialog :title="title" :visible.sync="openNum" width="1200px" append-to-body>
|
|
|
|
|
<div v-if="dialogData.typeMange == 1">
|
|
|
|
|
<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 v-if="dialogData.typeMange == 2">
|
|
|
|
|
<div style="margin-bottom: 30px">
|
|
|
|
|
接收抱杆类型:{{ dialogData.typeName }},型号:{{ dialogData.typeCode }},付数:{{ returnNum }}。接收明细如下
|
|
|
|
|
</div>
|
|
|
|
|
@ -311,6 +255,63 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</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>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -320,6 +321,7 @@ import {
|
|
|
|
|
receiveView,
|
|
|
|
|
getBackMachine,
|
|
|
|
|
backReceiveRecordWeb,
|
|
|
|
|
backReceiveRecordWebPt,
|
|
|
|
|
setNumBack,
|
|
|
|
|
setCodeBack,
|
|
|
|
|
getRecord,
|
|
|
|
|
@ -517,7 +519,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
backReceiveRecordWeb(param).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.title = '查看'
|
|
|
|
|
this.title = '查看1'
|
|
|
|
|
this.openNum = true
|
|
|
|
|
this.dialogIsView = true
|
|
|
|
|
this.numList = res.data.rows
|
|
|
|
|
@ -544,7 +546,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else if (row.manageType == '0') {
|
|
|
|
|
this.title = '查看'
|
|
|
|
|
this.title = '查看0'
|
|
|
|
|
this.openCode = true
|
|
|
|
|
this.resetForm('codeQuery')
|
|
|
|
|
this.codeQuery.parentId = row.id
|
|
|
|
|
@ -665,9 +667,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
//获取退料编码查看列表
|
|
|
|
|
getCodeViewList() {
|
|
|
|
|
backReceiveRecordWeb(this.codeQuery).then(response => {
|
|
|
|
|
backReceiveRecordWebPt(this.codeQuery).then(response => {
|
|
|
|
|
this.codeList = response.data.rows
|
|
|
|
|
this.codeList
|
|
|
|
|
// this.codeList
|
|
|
|
|
this.codeList.forEach(item => {
|
|
|
|
|
item.typeModelName = item.typeCode
|
|
|
|
|
if (item.backStatus == '1') {
|
|
|
|
|
|