feat(wms): 新增发货相关功能及优化钢卷选择逻辑
- 新增发货计划钢卷操作记录页面 - 新增发货分级管理页面 - 新增我的钢卷管理页面 - 在钢卷发货页面增加质量状态校验 - 在基础面板组件中增加质量状态选择功能 - 优化钢卷选择器筛选参数
This commit is contained in:
@@ -213,6 +213,7 @@ export default {
|
||||
// 钢卷选择器筛选参数
|
||||
coilFilters: {
|
||||
dataType: 1,
|
||||
materialType: '成品'
|
||||
},
|
||||
coilSelectorVisible: false,
|
||||
loading: false,
|
||||
@@ -301,6 +302,16 @@ export default {
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
// 判断是否选择了钢卷
|
||||
if (!this.form.coilId) {
|
||||
this.$message.warning('请选择钢卷');
|
||||
return;
|
||||
}
|
||||
// 判断钢卷的质量状态,必须是A+, A,A-, B+其中之一
|
||||
if (!['A+', 'A', 'A-', 'B+'].includes(this.form.qualityStatus)) {
|
||||
this.$message.warning('钢卷质量状态需在B+及以上');
|
||||
return;
|
||||
}
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
this.buttonLoading = true;
|
||||
|
||||
Reference in New Issue
Block a user