fix(自动拆包机接口):新增拆包垛位传输
This commit is contained in:
parent
97406f93a2
commit
c5322f1473
@ -102,6 +102,14 @@
|
||||
</el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="拆包垛位" :render-header="addRedStar" width="auto" prop="stackingPosition">
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="scope.row.stackingPosition" clearable>
|
||||
<el-option v-for="item in selectStackingPosition" :key="item.value" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -280,7 +288,7 @@ import {fetchList as getOperationList} from '@/api/mes/prd/operation';
|
||||
import {selectByTypeBin, selectPageList} from '@/api/mes/pms/resrce'
|
||||
import {copyJSON} from "@/util/util";
|
||||
import {getStore} from "@/util/store";
|
||||
import {fetchItemList} from "@/api/admin/dict";
|
||||
import {fetchItemList as fetchItemList} from "@/api/admin/dict";
|
||||
import {itemObj} from "@/views/mes/qms/inspec/init";
|
||||
import {fetchList as getItem} from '@/api/mes/prd/item'
|
||||
import {checkTableRepeat, setSeq} from "@/util/table";
|
||||
@ -360,7 +368,8 @@ export default {
|
||||
label: '描述',
|
||||
},
|
||||
]
|
||||
}
|
||||
},
|
||||
selectStackingPosition: [], // 拆包垛位
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@ -375,9 +384,9 @@ export default {
|
||||
if (response.data.code !== 0) {
|
||||
return this.$message.error(response.data.msg)
|
||||
}
|
||||
if (response.data.data.length === 0) {
|
||||
return this.$message.error('请维护作业规则')
|
||||
}
|
||||
// if (response.data.data.length === 0) {
|
||||
// return this.$message.error('请维护作业规则')
|
||||
// }
|
||||
for (let i = 0; i < response.data.data.length; i++) {
|
||||
if (isBlank(response.data.data[i].optionValue)) {
|
||||
return this.$message.error('作业规则中['+response.data.data[i].optionName+']的值不能为空')
|
||||
@ -412,6 +421,7 @@ export default {
|
||||
.catch((e) => {
|
||||
hideLoading()
|
||||
})
|
||||
this.getDataDictionary("STACKING_POSITION", "selectStackingPosition"); // 拆包垛位
|
||||
},
|
||||
mounted() {
|
||||
this.getDictItemList()
|
||||
@ -430,9 +440,9 @@ export default {
|
||||
if (response.data.code !== 0) {
|
||||
return this.$message.error(response.data.msg)
|
||||
}
|
||||
if (response.data.data.length === 0) {
|
||||
return this.$message.error('请维护作业规则')
|
||||
}
|
||||
// if (response.data.data.length === 0) {
|
||||
// return this.$message.error('请维护作业规则')
|
||||
// }
|
||||
for (let i = 0; i < response.data.data.length; i++) {
|
||||
if (isBlank(response.data.data[i].optionValue)) {
|
||||
return this.$message.error('作业规则中['+response.data.data[i].optionName+']的值不能为空')
|
||||
@ -490,6 +500,9 @@ export default {
|
||||
if (isBlank(row.dropBinNumber)) {
|
||||
return this.$message.error('第['+(i+1)+']投料仓不能为空')
|
||||
}
|
||||
if (isBlank(row.stackingPosition)) {
|
||||
return this.$message.error('第['+(i+1)+']拆包垛位不能为空')
|
||||
}
|
||||
sum = sum + Number(row.splitStandardQty)
|
||||
}
|
||||
if (sum !== qty) {
|
||||
@ -881,6 +894,16 @@ export default {
|
||||
})
|
||||
.catch((err) => {})
|
||||
},
|
||||
// 获取数据字典
|
||||
getDataDictionary(dictType, list) {
|
||||
fetchItemList({
|
||||
current: "1",
|
||||
size: "1000",
|
||||
dictType: dictType,
|
||||
}).then((response) => {
|
||||
this[list] = response.data.data.records
|
||||
});
|
||||
},
|
||||
// 给表头加必填符号*
|
||||
addRedStar(h, { column }) {
|
||||
return [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user