|
@@ -230,24 +230,24 @@
|
|
|
if (!data) {
|
|
if (!data) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- let requiredFiled = [
|
|
|
|
|
- {
|
|
|
|
|
- filed: 'singleWeight',
|
|
|
|
|
- name: '单重'
|
|
|
|
|
- }
|
|
|
|
|
- ];
|
|
|
|
|
- let list = [];
|
|
|
|
|
- data?.productList?.forEach((item) => {
|
|
|
|
|
- requiredFiled.forEach((i) => {
|
|
|
|
|
- if (!item[i.filed] && item[i.filed] !== 0) {
|
|
|
|
|
- list.push(i.name);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // let requiredFiled = [
|
|
|
|
|
+ // {
|
|
|
|
|
+ // filed: 'singleWeight',
|
|
|
|
|
+ // name: '单重'
|
|
|
|
|
+ // }
|
|
|
|
|
+ // ];
|
|
|
|
|
+ // let list = [];
|
|
|
|
|
+ // data?.productList?.forEach((item) => {
|
|
|
|
|
+ // requiredFiled.forEach((i) => {
|
|
|
|
|
+ // if (!item[i.filed] && item[i.filed] !== 0) {
|
|
|
|
|
+ // list.push(i.name);
|
|
|
|
|
+ // }
|
|
|
|
|
+ // });
|
|
|
|
|
+ // });
|
|
|
|
|
|
|
|
- if (list.length) {
|
|
|
|
|
- return this.$message.warning('请输入' + list.join(','));
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (list.length) {
|
|
|
|
|
+ // return this.$message.warning('请输入' + list.join(','));
|
|
|
|
|
+ // }
|
|
|
await UpdateInformation(data);
|
|
await UpdateInformation(data);
|
|
|
}
|
|
}
|
|
|
//和销售主管审批
|
|
//和销售主管审批
|