Browse Source

盘点+其他功能

dev
常熟吴彦祖 2 weeks ago
parent
commit
e9f1f19692
  1. 2
      src/api/haianAutoWarehouse/palletAssembly.js
  2. 65
      src/views/modules/haianAutoWarehouse/haianEmptyPalletAssembly.vue
  3. 87
      src/views/modules/haianAutoWarehouse/haianPalletAssembly.vue

2
src/api/haianAutoWarehouse/palletAssembly.js

@ -33,5 +33,5 @@ export const getAreaOptionsForChange = data => createAPI(`/haiAnWcsIntegration/g
// 海安-直接组盘页:调用空托盘 - rqrq // 海安-直接组盘页:调用空托盘 - rqrq
export const callEmptyPalletToStation = data => createAPI(`/haiAnWcsIntegration/callEmptyPalletToStation`, 'post', data) export const callEmptyPalletToStation = data => createAPI(`/haiAnWcsIntegration/callEmptyPalletToStation`, 'post', data)
// 海安-直接组盘页:推送组盘到入库口(入库口1/2)- rqrq
// 海安-直接组盘页:推送组盘到固定入库口 - rqrq
export const pushPalletAssemblyToInboundPort = data => createAPI(`/haiAnWcsIntegration/pushPalletAssemblyToInboundPort`, 'post', data) export const pushPalletAssemblyToInboundPort = data => createAPI(`/haiAnWcsIntegration/pushPalletAssemblyToInboundPort`, 'post', data)

65
src/views/modules/haianAutoWarehouse/haianEmptyPalletAssembly.vue

@ -91,32 +91,6 @@
</div> </div>
</div> </div>
</div> </div>
<!-- 通知入库口选择弹窗必须明确选择入库口1/2后才允许提交 - rqrq -->
<el-dialog
title="请选择入库口"
:visible.sync="inboundPortDialogVisible"
width="90%"
:close-on-click-modal="false"
:show-close="false"
:append-to-body="true"
>
<div class="input-group">
<label class="input-label">入库口</label>
<el-select v-model="selectedInboundPort" placeholder="请选择入库口" style="width: 100%;">
<el-option
v-for="option in inboundPortOptions"
:key="option.value"
:label="option.label"
:value="option.value"
/>
</el-select>
</div>
<div slot="footer" class="dialog-footer">
<button class="action-btn secondary" @click="cancelInboundPortDialog">取消</button>
<button class="action-btn primary" @click="confirmNotifyInbound">确认</button>
</div>
</el-dialog>
</div> </div>
</template> </template>
@ -148,13 +122,6 @@ export default {
currentPalletType: '', currentPalletType: '',
palletTypeOptions: [], palletTypeOptions: [],
count: 1, count: 1,
// 1/2 - rqrq
inboundPortDialogVisible: false,
selectedInboundPort: '',
inboundPortOptions: [
{ label: '入库口1', value: 'INBOUND_PORT_1' },
{ label: '入库口2', value: 'INBOUND_PORT_2' }
],
// - rqrq // - rqrq
notifyLoading: false, notifyLoading: false,
transportLoading: false transportLoading: false
@ -298,30 +265,8 @@ export default {
if (!this.validateNotifyInboundPalletStatus()) { if (!this.validateNotifyInboundPalletStatus()) {
return; return;
} }
// - rqrq
this.selectedInboundPort = '';
this.inboundPortDialogVisible = true;
},
// - rqrq
cancelInboundPortDialog() {
this.inboundPortDialogVisible = false;
this.selectedInboundPort = '';
},
// - rqrq
confirmNotifyInbound() {
if (!this.selectedInboundPort) {
this.$alert('请选择入库口', '提示', {
confirmButtonText: '确定'
});
return;
}
if (!this.validateNotifyInboundPalletStatus()) {
return;
}
this.inboundPortDialogVisible = false;
this.$confirm('确定要执行通知入库操作吗?', '确认操作', {
// - rqrq
this.$confirm('确定要执行通知入库操作吗?目标点位固定为入库口。', '确认操作', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
@ -332,12 +277,10 @@ export default {
site: this.site, site: this.site,
palletId: this.palletCode, palletId: this.palletCode,
transportFlag: 'N', transportFlag: 'N',
count: Number(this.count),
inboundPort: this.selectedInboundPort,
count: Number(this.count)
}).then(({ data }) => { }).then(({ data }) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message.success('通知入库成功'); this.$message.success('通知入库成功');
// - rqrq
this.resetPage(true); this.resetPage(true);
} else { } else {
this.$alert(data.msg || '通知入库失败', '错误', { this.$alert(data.msg || '通知入库失败', '错误', {
@ -421,8 +364,6 @@ export default {
this.currentPalletType = ''; this.currentPalletType = '';
this.palletTypeOptions = []; this.palletTypeOptions = [];
this.count = 1; this.count = 1;
this.inboundPortDialogVisible = false;
this.selectedInboundPort = '';
if (needFocus) { if (needFocus) {
this.$nextTick(() => { this.$nextTick(() => {

87
src/views/modules/haianAutoWarehouse/haianPalletAssembly.vue

@ -304,30 +304,6 @@
<button class="action-btn secondary" style="margin-left: 8px;" @click="callEmptyModalVisible = false" :disabled="interfaceBusy || callEmptyLoading">取消</button> <button class="action-btn secondary" style="margin-left: 8px;" @click="callEmptyModalVisible = false" :disabled="interfaceBusy || callEmptyLoading">取消</button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 直接组盘推送弹窗必须选择入库口1/入库口2待确认站点实际编码当前仍用旧值 - rqrq -->
<el-dialog
title="请选择入库口"
:visible.sync="pushAssemblyDialogVisible"
width="90%"
:close-on-click-modal="false"
:show-close="false"
:append-to-body="true"
>
<div class="input-group">
<label class="input-label">入库口</label>
<el-select v-model="selectedInboundPort" placeholder="请选择入库口" style="width: 100%;">
<el-option label="入库口1" value="INBOUND_PORT_1"></el-option>
<el-option label="入库口2" value="INBOUND_PORT_2"></el-option>
</el-select>
</div>
<div slot="footer" class="dialog-footer">
<button class="action-btn primary" @click="submitPushAssembly" :disabled="interfaceBusy || !selectedInboundPort">
{{ pushAssemblyLoading ? '处理中...' : '确认推送' }}
</button>
<button class="action-btn secondary" style="margin-left: 8px;" @click="closePushAssemblyDialog" :disabled="interfaceBusy">取消</button>
</div>
</el-dialog>
</div> </div>
</template> </template>
@ -397,9 +373,6 @@ export default {
stationCode: '', stationCode: '',
palletType: '' palletType: ''
}, },
// - rqrq
pushAssemblyDialogVisible: false,
selectedInboundPort: '',
// - rqrq // - rqrq
palletScanLoading: false, palletScanLoading: false,
palletConfigLoading: false, palletConfigLoading: false,
@ -514,8 +487,6 @@ export default {
stationCode: '', stationCode: '',
palletType: '' palletType: ''
} }
this.pushAssemblyDialogVisible = false
this.selectedInboundPort = ''
this.palletScanLoading = false this.palletScanLoading = false
this.palletConfigLoading = false this.palletConfigLoading = false
this.scanRequestLoading = false this.scanRequestLoading = false
@ -983,7 +954,7 @@ export default {
this.callEmptyLoading = false this.callEmptyLoading = false
}) })
}, },
// area/location - rqrq
// - rqrq
openPushAssemblyDialog() { openPushAssemblyDialog() {
if (!this.ensureSite() || this.interfaceBusy) { if (!this.ensureSite() || this.interfaceBusy) {
return return
@ -1000,48 +971,34 @@ export default {
this.$alert('推送组盘仅允许未绑定站点的栈板,当前栈板area或location_code存在值', '提示', { confirmButtonText: '确定' }) this.$alert('推送组盘仅允许未绑定站点的栈板,当前栈板area或location_code存在值', '提示', { confirmButtonText: '确定' })
return return
} }
this.selectedInboundPort = ''
this.pushAssemblyDialogVisible = true
},
closePushAssemblyDialog() {
if (this.interfaceBusy) {
return
}
this.pushAssemblyDialogVisible = false
this.selectedInboundPort = ''
},
// - rqrq
submitPushAssembly() {
if (!this.selectedInboundPort) {
this.$alert('请选择入库口', '提示', { confirmButtonText: '确定' })
return
}
this.$confirm('确认推送组盘数据吗?', '提示', {
this.$confirm('确认推送组盘到入库口吗?', '提示', {
confirmButtonText: '确认', confirmButtonText: '确认',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.pushAssemblyLoading = true
pushPalletAssemblyToInboundPort({
site: this.site,
palletId: this.palletCode,
inboundPort: this.selectedInboundPort
}).then(({ data }) => {
if (data && data.code === 0) {
this.$message.success('推送组盘成功')
this.pushAssemblyDialogVisible = false
this.resetPage(true)
} else {
this.$alert((data && data.msg) || '推送组盘失败', '错误', { confirmButtonText: '确定' })
}
}).catch((error) => {
this.$alert(error.message || '推送组盘失败', '错误', { confirmButtonText: '确定' })
}).finally(() => {
this.pushAssemblyLoading = false
})
this.submitPushAssembly()
}).catch(() => { }).catch(() => {
// 便 - rqrq // 便 - rqrq
}) })
},
// - rqrq
submitPushAssembly() {
this.pushAssemblyLoading = true
pushPalletAssemblyToInboundPort({
site: this.site,
palletId: this.palletCode
}).then(({ data }) => {
if (data && data.code === 0) {
this.$message.success('推送组盘成功')
this.resetPage(true)
} else {
this.$alert((data && data.msg) || '推送组盘失败', '错误', { confirmButtonText: '确定' })
}
}).catch((error) => {
this.$alert(error.message || '推送组盘失败', '错误', { confirmButtonText: '确定' })
}).finally(() => {
this.pushAssemblyLoading = false
})
} }
}, },
activated() { activated() {

Loading…
Cancel
Save