刘帅私聊改动创建领料单和质检情况检测数量限制
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
{{ scope.row.姓名 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="质检数量" align="center" width="120px">
|
||||
<el-table-column label="检测数量" align="center" width="120px">
|
||||
<template slot-scope="scope">
|
||||
<template v-if="scope.row.edit">
|
||||
<el-input-number v-model="scope.row.数量" :min="0" :max="scope.row.零件数量" :step="1" style="width: 90%" size="mini"/>
|
||||
@@ -134,7 +134,7 @@
|
||||
</template>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="是否合格" align="center" width="120px">
|
||||
<el-table-column label="检测结果" align="center" width="120px">
|
||||
<template slot-scope="scope">
|
||||
<template v-if="scope.row.edit">
|
||||
<el-select v-model="scope.row.是否合格" placeholder="请选择" filterable size="mini" style="width: 100%">
|
||||
@@ -156,7 +156,7 @@
|
||||
<el-input-number v-model="scope.row.不合格数量" :min="0" :max="scope.row.数量" :step="1" style="width: 90%" size="mini"/>
|
||||
</template>
|
||||
<template v-else-if="scope.row.是否合格 === 1">
|
||||
{{ scope.row.不合格数量 =0 }}
|
||||
{{ scope.row.不合格数量 = '' }}
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ scope.row.不合格数量 }}
|
||||
@@ -636,7 +636,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="检测数" prop="检测数">
|
||||
<el-input-number v-model="form2.检测数" :min="0" :step="1" placeholder="检测数" style="width:150px" size="small" clearable/>
|
||||
<el-input-number v-model="form2.检测数" :min="0" :max="proceductnummax" :step="1" placeholder="检测数" style="width:150px" size="small" clearable/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -685,7 +685,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { initProject, searchgroup, selecttable, QualityType, searchPic, searchTableDetail, searchData, searchData1, processingStatus, initPerson, Prohibit, initDisqualificationTreatment, initReasonsForNonconformity, searchparts, searchprocedure, searchoperators, submitTable, confirmEdit } from '@/api/Assembly/QualityInspectionInformationInquiry'
|
||||
import { initProject, searchgroup, selecttable, QualityType, searchPic, searchTableDetail, searchData, searchData1, processingStatus, initPerson, Prohibit, initDisqualificationTreatment, initReasonsForNonconformity, searchparts, searchprocedure, searchoperators, submitTable, confirmEdit, searchproceductnum } from '@/api/Assembly/QualityInspectionInformationInquiry'
|
||||
import { readFile } from '@/utils/request'
|
||||
import { mapGetters } from 'vuex'
|
||||
// import { mapGetters } from 'vuex'
|
||||
@@ -756,7 +756,8 @@ export default {
|
||||
total: 0, // 总条数
|
||||
pageSize: 10, // 每页显示条数
|
||||
pageCurrent: 1, // 后台获取页
|
||||
dialogmethod: false // false新增 true 编辑
|
||||
dialogmethod: false, // false新增 true 编辑
|
||||
proceductnummax: 0
|
||||
// total1: 0, // 总条数
|
||||
// pageSize1: 10, // 每页显示条数
|
||||
// pageCurrent1: 1, // 后台获取页
|
||||
@@ -1029,6 +1030,9 @@ export default {
|
||||
partChange() {
|
||||
this.form2.工序 = ''
|
||||
this.procedureNum = []
|
||||
searchproceductnum(this.form2.零件图号).then(response => {
|
||||
this.proceductnummax = response.data[0].批次数量
|
||||
})
|
||||
searchprocedure(this.form2.零件图号).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.procedureNum.push({
|
||||
|
||||
Reference in New Issue
Block a user