更新-仓库-工序
This commit is contained in:
vanhempi
02ac7ee486
commit
6b6eb66145
@ -2,7 +2,7 @@
|
||||
* @Author: gtz
|
||||
* @Date: 2021-03-04 16:13:51
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2022-03-09 14:24:45
|
||||
* @LastEditTime: 2022-03-09 15:14:15
|
||||
* @Description: file content
|
||||
*/
|
||||
export default {
|
||||
@ -320,6 +320,7 @@ export default {
|
||||
LocationCode: 'Location Code',
|
||||
PerformTaskManual: 'Perform Task Manual',
|
||||
processStorageLink: 'Process Storage Link',
|
||||
SelectStorageType: 'Select Storage Type'
|
||||
SelectStorageType: 'Select Storage Type',
|
||||
LocationStorageSetting: 'Location Storage Setting'
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
* @Author: gtz
|
||||
* @Date: 2021-03-04 16:13:51
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2022-03-09 14:24:03
|
||||
* @LastEditTime: 2022-03-09 15:14:07
|
||||
*/
|
||||
export default {
|
||||
visual: {
|
||||
@ -334,6 +334,7 @@ export default {
|
||||
LocationCode: '库位编码',
|
||||
PerformTaskManual: '手动执行任务',
|
||||
processStorageLink: '工序关联库位',
|
||||
SelectStorageType: '选择库位类型'
|
||||
SelectStorageType: '选择库位类型',
|
||||
LocationStorageSetting: '库位存储箱设置'
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
* @Author: gtz
|
||||
* @Date: 2022-03-03 09:16:10
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2022-03-09 14:30:59
|
||||
* @LastEditTime: 2022-03-09 15:17:46
|
||||
* @Description: file content
|
||||
* @FilePath: \mt-ck-wms-ui\src\views\dashboard\index.vue
|
||||
-->
|
||||
@ -355,11 +355,8 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
setStorageList(id, type) {
|
||||
const obj = {
|
||||
id,
|
||||
type
|
||||
}
|
||||
setStorageList(id, dataForm) {
|
||||
const obj = Object.assign({ id }, dataForm)
|
||||
this.selectStorageList.push(obj)
|
||||
},
|
||||
handleChange(v) {
|
||||
|
@ -2,17 +2,37 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2020-12-29 16:37:56
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2022-03-09 11:18:51
|
||||
* @LastEditTime: 2022-03-09 15:14:20
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
<el-dialog
|
||||
:title="$t('module.basicData.Warehouse.SelectStorageType') | i18nFilter"
|
||||
:title="$t('module.basicData.Warehouse.LocationStorageSetting') | i18nFilter"
|
||||
:visible.sync="visible"
|
||||
>
|
||||
<el-radio v-model="storageType" :label="1">Working Port</el-radio>
|
||||
<el-radio v-model="storageType" :label="2">Buffer Port</el-radio>
|
||||
<el-radio v-model="storageType" :label="3">Exception Port</el-radio>
|
||||
<el-form
|
||||
ref="dataForm"
|
||||
:model="dataForm"
|
||||
size="medium"
|
||||
label-width="110px"
|
||||
label-position="left"
|
||||
>
|
||||
<el-form-item :label="$t('module.basicData.Warehouse.SelectStorageType')" prop="storageType">
|
||||
<el-radio v-model="dataForm.storageType" :label="1">Working Port</el-radio>
|
||||
<el-radio v-model="dataForm.storageType" :label="2">Buffer Port</el-radio>
|
||||
<el-radio v-model="dataForm.storageType" :label="3">Exception Port</el-radio>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('module.basicData.storageBox.name')" prop="storageBoxName">
|
||||
<el-select v-model="dataForm.storageBoxName" filterable :placeholder="$i18nForm(['placeholder.input', $t('module.basicData.storageBox.name')])" clearable>
|
||||
<el-option
|
||||
v-for="item in storageBoxArr"
|
||||
:key="item.id"
|
||||
:label="item.storageBoxName"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="visible = false">{{ 'btn.cancel' | i18nFilter }}</el-button>
|
||||
<el-button type="primary" @click="dataFormSubmit()">{{ 'btn.confirm' | i18nFilter }}</el-button>
|
||||
@ -21,24 +41,40 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { storageBoxList } from '@/api/basicData/Cache/storageBox'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
storageId: '',
|
||||
storageType: 1
|
||||
dataForm: {
|
||||
storageType: 1,
|
||||
storageBoxName: ''
|
||||
},
|
||||
storageBoxArr: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
init(id) {
|
||||
this.storageId = id
|
||||
const listQuery = {
|
||||
current: 1,
|
||||
size: 999
|
||||
}
|
||||
storageBoxList(listQuery).then(response => {
|
||||
if (response.data.records) {
|
||||
this.storageBoxArr = response.data.records
|
||||
} else {
|
||||
this.storageBoxArr.splice(0, this.list.length)
|
||||
}
|
||||
})
|
||||
this.visible = true
|
||||
},
|
||||
// 表单提交
|
||||
dataFormSubmit() {
|
||||
this.visible = false
|
||||
this.$emit('refreshDataList', this.storageId, this.storageType)
|
||||
this.$emit('refreshDataList', this.storageId, this.dataForm)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Ladataan…
Viittaa uudesa ongelmassa
Block a user