▋
@@ -396,9 +349,9 @@
width="200" fixed="left" align="center">
- *商品名称
-
+ *商品名称
+
{ return item.productId == data[i].productId && item.unit == data[i].unit })
- if (arrindex == -1) {
- echararr.push(data[i]);
- } else {
- echararr[arrindex].netWeight = this.jnpf.floatAdd(echararr[arrindex].netWeight, data[i].netWeight)
- }
- }
- echararr.forEach(item => {
- const flag = this.dataForm.warehousingStorageProductList.find(e => e.productId == item.productId && e.storageUnit == item.unit && e.storageNumber == item.netWeight)
- if (!flag) {
- this.$message({
- message: '凭证与商品不一致',
- type: 'error',
- duration: 1000
- });
- isOk = false
- return isOk
- }
- })
- return isOk
- },
+ // warehousingstoragepoundlistExist() {
+ // let isOk = true;
+ // for (let i = 0; i < this.dataForm.warehousingStoragePoundlistList.length; i++) {
+ // const e = this.dataForm.warehousingStoragePoundlistList[i];//
+ // if (!e.voucherId) {
+ // this.$message({
+ // message: '关联凭证id不能为空',
+ // type: 'error',
+ // duration: 1000
+ // });
+ // isOk = false
+ // break
+ // }
+ // }
+ // return isOk;
+ // },
+ // warehousingstorageproductExist1() {
+ // let isOk = true;
+ // var data = JSON.parse(JSON.stringify(this.dataForm.warehousingStoragePoundlistList))
+ // var echararr = [];
+ // for (var i = 0; i < data.length; i++) {
+ // var arrindex = echararr.findIndex((item) => { return item.productId == data[i].productId && item.unit == data[i].unit })
+ // if (arrindex == -1) {
+ // echararr.push(data[i]);
+ // } else {
+ // echararr[arrindex].netWeight = this.jnpf.floatAdd(echararr[arrindex].netWeight, data[i].netWeight)
+ // }
+ // }
+ // echararr.forEach(item => {
+ // const flag = this.dataForm.warehousingStorageProductList.find(e => e.productId == item.productId && e.storageUnit == item.unit && e.storageNumber == item.netWeight)
+ // if (!flag) {
+ // this.$message({
+ // message: '凭证与商品不一致',
+ // type: 'error',
+ // duration: 1000
+ // });
+ // isOk = false
+ // return isOk
+ // }
+ // })
+ // return isOk
+ // },
warehousingstorageproductExist() {
let isOk = true;