feat: 🚀 奇数转换2件装提示语
This commit is contained in:
@@ -30,7 +30,16 @@ const handleBtnClick = () => {
|
||||
});
|
||||
if (isSome.length) {
|
||||
let specifications = isSome[0].specifications;
|
||||
useMsg("warning", `${specifications}序列码存在已使用, 不支持转两件装 !`);
|
||||
useMsg("warning", `${specifications}(规格型号)序列码存在已使用, 不支持转两件装 !`);
|
||||
return;
|
||||
}
|
||||
|
||||
let isNumber = props.selectionList.filter((item: any) => {
|
||||
return item.number % 2 === 1;
|
||||
});
|
||||
if (isNumber.length) {
|
||||
let specifications = isNumber[0].specifications;
|
||||
useMsg("warning", `${specifications}(规格型号)条码个数为单数, 不支持转两件装 !`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -77,8 +77,8 @@ export const FORM_DATA: FormItem[] = [
|
||||
export const RULE_FORM = {
|
||||
pageNo: 1,
|
||||
pageSize: 50,
|
||||
orgCode: 0,
|
||||
createUser: ""
|
||||
orgCode: 0
|
||||
// createUser: ""
|
||||
};
|
||||
export const DOWN_FORM_DATA: any[] = [
|
||||
{
|
||||
|
||||
@@ -143,7 +143,7 @@ if (SHOW_BTBS["antiCode"] && SHOW_BTBS["antiCode"].length) {
|
||||
}
|
||||
|
||||
// 获取用户信息(组织id)
|
||||
const userStore = useUserStore();
|
||||
const userStore: any = useUserStore();
|
||||
|
||||
// 数据源
|
||||
const datas = reactive<any>({
|
||||
@@ -164,10 +164,9 @@ const datas = reactive<any>({
|
||||
downSelectionList: [] //防伪码下载列表选中
|
||||
});
|
||||
|
||||
datas.ruleForm.createUser = userStore.userInfo.nickname;
|
||||
datas.initParam.createUser = userStore.userInfo.nickname;
|
||||
datas.ruleForm.createUser = userStore?.userInfo?.nickname;
|
||||
datas.initParam.createUser = userStore?.userInfo?.nickname;
|
||||
|
||||
console.log(datas.ruleForm.createUser, "=datas.ruleForm.createUser=");
|
||||
// input输入验证
|
||||
const valueVerify = () => {
|
||||
datas.numberRuleForm.number = integerRexg(datas.numberRuleForm.number);
|
||||
|
||||
Reference in New Issue
Block a user