|
|
|
@ -116,8 +116,8 @@ Scene({ |
|
|
|
this.setData({ visible: false, ['form.predictDeliveryToFactoryTime']: (detail.value[0] + ' ' + detail.value[1]) }) |
|
|
|
} else { |
|
|
|
var nowItem = this.data.paperList[detail.index] |
|
|
|
for (var i = 0; i < this.data.form.productCategoryInfos.length; i++) { |
|
|
|
if (this.data.form.productCategoryInfos[i].productId == nowItem.id){ |
|
|
|
for (var index = 0; index < this.data.form.productCategoryInfos.length; index++) { |
|
|
|
if (this.data.form.productCategoryInfos[index].productId == nowItem.id && this.data.cateIndex != index){ |
|
|
|
this.setData({ visible: false }) |
|
|
|
util.showToast('纸品已经存在,请不要重复添加') |
|
|
|
return |
|
|
|
|