Browse Source

no message

feature/v2.1
xpz2018 4 years ago
parent
commit
235c840828
1 changed files with 2 additions and 2 deletions
  1. 4
      pages/process/outside-add/index.js

4
pages/process/outside-add/index.js

@ -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

Loading…
Cancel
Save