Browse Source

运输bug 界面优化

master
常熟吴彦祖 2 months ago
parent
commit
7fcb94d6ae
  1. 48
      src/views/modules/automatedWarehouse/palletAssembly.vue
  2. 51
      src/views/modules/automatedWarehouse/palletPacking.vue
  3. 48
      src/views/modules/automatedWarehouse/palletSorting.vue

48
src/views/modules/automatedWarehouse/palletAssembly.vue

@ -87,23 +87,17 @@
</el-checkbox>
</div>
<!-- 第三行筛选条件 (扫描栈板后显示) -->
<!-- 第三行当前栈板站点显示 (扫描栈板后显示) - rqrq -->
<div v-if="palletScanned" class="input-group">
<label class="input-label">位置</label>
<label class="input-label">当前站点</label>
<div style="display: flex; gap: 8px;">
<el-select
v-model="selectedPosition"
placeholder="请选择位置"
style="flex: 0.75;"
>
<el-option label="ALL" value=""></el-option>
<el-option
v-for="position in positionOptions"
:key="position"
:label="position"
:value="position"
/>
</el-select>
<el-input
v-model="currentPalletStation"
placeholder="栈板当前站点"
class="form-input"
readonly
style="flex: 0.75;">
</el-input>
<button
class="action-btn secondary"
style="flex: 0.25; margin: 0; white-space: nowrap;"
@ -530,6 +524,7 @@ export default {
selectedLayer: '',
positionOptions: [],
layerOptions: [],
currentPalletStation: '', // - rqrq
// - rqrq
scanModalVisible: false,
@ -608,6 +603,7 @@ export default {
this.selectedLayer = '';
this.positionOptions = [];
this.layerOptions = [];
this.currentPalletStation = ''; // - rqrq
//
this.detailList = [];
@ -717,6 +713,28 @@ export default {
this.currentPalletFamily = palletInfo.palletFamily || '';
this.currentPalletType = palletInfo.palletType || '';
this.currentAutoSort = palletInfo.autoSort || 'N';
this.currentPalletStation = palletInfo.locationCode || ''; // - rqrq
// R1/R2/R3/R4 - rqrq
const forbiddenStations = ['R1', 'R2', 'R3', 'R4'];
if (this.currentPalletStation && forbiddenStations.includes(this.currentPalletStation)) {
this.$alert(
`空托盘组盘功能不能在R1/R2/R3/R4站点使用,当前栈板站点为:${this.currentPalletStation}`,
'站点错误',
{
confirmButtonText: '确定',
callback: () => {
this.resetPage();
this.$nextTick(() => {
if (this.$refs.palletInput) {
this.$refs.palletInput.focus();
}
});
}
}
);
return;
}
// sore_Type=3 - rqrq
const soreType = palletInfo.soreType;

51
src/views/modules/automatedWarehouse/palletPacking.vue

@ -87,23 +87,17 @@
</el-checkbox>
</div>
<!-- 第三行筛选条件 (扫描栈板后显示) -->
<!-- 第三行当前栈板站点显示 (扫描栈板后显示) - rqrq -->
<div v-if="palletScanned" class="input-group">
<label class="input-label">位置</label>
<label class="input-label">当前站点</label>
<div style="display: flex; gap: 8px;">
<el-select
v-model="selectedPosition"
placeholder="请选择位置"
style="flex: 0.75;"
>
<el-option label="ALL" value=""></el-option>
<el-option
v-for="position in positionOptions"
:key="position"
:label="position"
:value="position"
/>
</el-select>
<el-input
v-model="currentPalletStation"
placeholder="栈板当前站点"
class="form-input"
readonly
style="flex: 0.75;">
</el-input>
<button
class="action-btn secondary"
style="flex: 0.25; margin: 0; white-space: nowrap;"
@ -596,6 +590,7 @@ export default {
selectedLayer: '',
positionOptions: [],
layerOptions: [],
currentPalletStation: '', // - rqrq
// - rqrq
scanModalVisible: false,
@ -680,6 +675,7 @@ export default {
this.selectedLayer = '';
this.positionOptions = [];
this.layerOptions = [];
this.currentPalletStation = ''; // - rqrq
//
this.detailList = [];
@ -793,6 +789,28 @@ export default {
this.currentPalletFamily = palletInfo.palletFamily || '';
this.currentPalletType = palletInfo.palletType || '';
this.currentAutoSort = palletInfo.autoSort || 'N';
this.currentPalletStation = palletInfo.locationCode || ''; // - rqrq
// R1/R2/R3/R4 - rqrq
const forbiddenStations = ['R1', 'R2', 'R3', 'R4'];
if (this.currentPalletStation && forbiddenStations.includes(this.currentPalletStation)) {
this.$alert(
`组盘功能不能在R1/R2/R3/R4站点使用,当前栈板站点为:${this.currentPalletStation}`,
'站点错误',
{
confirmButtonText: '确定',
callback: () => {
this.resetPage();
this.$nextTick(() => {
if (this.$refs.palletInput) {
this.$refs.palletInput.focus();
}
});
}
}
);
return;
}
// sore_Type=3 - rqrq
const soreType = palletInfo.soreType;
@ -1583,7 +1601,8 @@ export default {
callPalletToStationWithUpdateZuPan({
site: this.site,
startStation: this.currentPalletStation,
targetArea: this.selectedTargetArea
targetArea: this.selectedTargetArea,
palletId: this.palletCode
}).then(({ data }) => {
if (data.code === 0) {
this.$message.success('栈板运输任务创建成功');

48
src/views/modules/automatedWarehouse/palletSorting.vue

@ -90,23 +90,17 @@
</el-checkbox>
</div>
<!-- 第三行筛选条件 (扫描栈板后显示) -->
<!-- 第三行当前栈板站点显示 (扫描栈板后显示) - rqrq -->
<div v-if="palletScanned" class="input-group">
<label class="input-label">位置</label>
<label class="input-label">当前站点</label>
<div style="display: flex; gap: 8px;">
<el-select
v-model="selectedPosition"
placeholder="请选择位置"
style="flex: 0.75;"
>
<el-option label="ALL" value=""></el-option>
<el-option
v-for="position in positionOptions"
:key="position"
:label="position"
:value="position"
/>
</el-select>
<el-input
v-model="currentPalletStation"
placeholder="栈板当前站点"
class="form-input"
readonly
style="flex: 0.75;">
</el-input>
<button
class="action-btn secondary"
style="flex: 0.25; margin: 0; white-space: nowrap;"
@ -463,6 +457,7 @@ export default {
selectedLayer: '',
positionOptions: [],
layerOptions: [],
currentPalletStation: '', // - rqrq
// - rqrq
scanModalVisible: false,
@ -541,6 +536,7 @@ export default {
this.selectedLayer = '';
this.positionOptions = [];
this.layerOptions = [];
this.currentPalletStation = ''; // - rqrq
//
this.detailList = [];
@ -650,6 +646,28 @@ export default {
this.currentPalletFamily = palletInfo.palletFamily || '';
this.currentPalletType = palletInfo.palletType || '';
this.currentAutoSort = palletInfo.autoSort || 'N';
this.currentPalletStation = palletInfo.locationCode || ''; // - rqrq
// R1/R2/R3/R4 - rqrq
const allowedStations = ['R1', 'R2', 'R3', 'R4'];
if (!allowedStations.includes(this.currentPalletStation)) {
this.$alert(
`分拣功能只能在R1/R2/R3/R4站点使用,当前栈板站点为:${this.currentPalletStation || '空'}`,
'站点错误',
{
confirmButtonText: '确定',
callback: () => {
this.resetPage();
this.$nextTick(() => {
if (this.$refs.palletInput) {
this.$refs.palletInput.focus();
}
});
}
}
);
return;
}
// sore_Type=3 - rqrq
const soreType = palletInfo.soreType;

Loading…
Cancel
Save