退料接收修改2
This commit is contained in:
parent
9d072eea63
commit
06655c5eff
|
|
@ -94,7 +94,7 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="预领数量"
|
label="预领数量"
|
||||||
align="center"
|
align="center"
|
||||||
prop="partNum"
|
prop="num"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -103,7 +103,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="规格型号" align="center" prop="typeCode" :show-overflow-tooltip="true" />
|
<el-table-column label="规格型号" align="center" prop="typeCode" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="申请数量" align="center" prop="preNum" :show-overflow-tooltip="true" />
|
<el-table-column label="申请数量" align="center" prop="preNum" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="退料数量" align="center" prop="partNum" :show-overflow-tooltip="true" />
|
<el-table-column label="退料数量" align="center" prop="num" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="300">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="300">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
|
|
@ -120,19 +120,19 @@
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleCodeReturn(scope.row)"
|
@click="handleCodeReturn(scope.row)"
|
||||||
v-if="!isView&&scope.row.manageType=='0'&&scope.row.partNum>0"
|
v-if="!isView&&scope.row.manageType=='0'&&scope.row.num>0"
|
||||||
>编码退料</el-button>
|
>编码退料</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleNumReturn(scope.row)"
|
@click="handleNumReturn(scope.row)"
|
||||||
v-if="!isView&&(scope.row.manageType=='1'||'2')&&scope.row.partNum>0"
|
v-if="!isView&&(scope.row.manageType=='1'||'2')&&scope.row.num>0"
|
||||||
>数量退料</el-button>
|
>数量退料</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
icon="el-icon-zoom-in"
|
icon="el-icon-zoom-in"
|
||||||
@click="handleBackup(scope.row)"
|
@click="handleBackup(scope.row)"
|
||||||
v-if="!isView&&scope.row.partNum<scope.row.preNum"
|
v-if="!isView&&scope.row.num<scope.row.preNum"
|
||||||
>撤回</el-button>
|
>撤回</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -612,7 +612,7 @@ export default {
|
||||||
this.codeQuery.parentId = row.id
|
this.codeQuery.parentId = row.id
|
||||||
this.codeQuery.typeId = row.modelId
|
this.codeQuery.typeId = row.modelId
|
||||||
this.dialogIsView = true
|
this.dialogIsView = true
|
||||||
this.returnNum = Number(row.partNum)
|
this.returnNum = Number(row.num)
|
||||||
this.handleCodeQuery()
|
this.handleCodeQuery()
|
||||||
} else if (row.manageType == '2') {
|
} else if (row.manageType == '2') {
|
||||||
this.handleNumReturn(row)
|
this.handleNumReturn(row)
|
||||||
|
|
@ -656,7 +656,7 @@ export default {
|
||||||
this.codeQuery.taskId = row.taskId
|
this.codeQuery.taskId = row.taskId
|
||||||
this.codeQuery.typeId = row.modelId
|
this.codeQuery.typeId = row.modelId
|
||||||
this.dialogIsView = false
|
this.dialogIsView = false
|
||||||
this.returnNum = Number(row.partNum)
|
this.returnNum = Number(row.num)
|
||||||
this.handleCodeQuery()
|
this.handleCodeQuery()
|
||||||
},
|
},
|
||||||
//数量退料
|
//数量退料
|
||||||
|
|
@ -664,8 +664,8 @@ export default {
|
||||||
this.title = '数量退料'
|
this.title = '数量退料'
|
||||||
this.openNum = true
|
this.openNum = true
|
||||||
this.dialogIsView = false
|
this.dialogIsView = false
|
||||||
this.$set(row, 'backNum', row.partNum) //退料数量
|
this.$set(row, 'backNum', row.num) //退料数量
|
||||||
this.returnNum = Number(row.partNum)
|
this.returnNum = Number(row.num)
|
||||||
this.dialogData.typeMange = row.manageType
|
this.dialogData.typeMange = row.manageType
|
||||||
this.dialogData.typeName = row.typeName
|
this.dialogData.typeName = row.typeName
|
||||||
this.dialogData.typeCode = row.typeCode
|
this.dialogData.typeCode = row.typeCode
|
||||||
|
|
@ -751,7 +751,7 @@ export default {
|
||||||
let arr = []
|
let arr = []
|
||||||
for (const item of data) {
|
for (const item of data) {
|
||||||
let sumUnmber = (item.qualifiedNum || 0) + (item.serviceNum || 0) + (item.scrapNum || 0)
|
let sumUnmber = (item.qualifiedNum || 0) + (item.serviceNum || 0) + (item.scrapNum || 0)
|
||||||
if (sumUnmber > item.partNum) {
|
if (sumUnmber > item.partNum&&sumUnmber > item.num) {
|
||||||
this.$modal.msgError('退料总量已大于待退料数量!')
|
this.$modal.msgError('退料总量已大于待退料数量!')
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue