违禁品校验
This commit is contained in:
		| @ -1145,7 +1145,11 @@ export class SupplyManagementBulkPublishComponent implements OnInit { | |||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
|   checkGoodsName() { |   checkGoodsName() { | ||||||
|     this.service.request(this.service.$api_checkGoodsName, this.sf3.value.goodsName1).subscribe(res => { |     const name = this.sf3.getValue('/goodsName1'); | ||||||
|  |     if (!name || name.trim().length === 0) { | ||||||
|  |       return; | ||||||
|  |     } | ||||||
|  |     this.service.request(this.service.$api_checkGoodsName, name).subscribe(res => { | ||||||
|       if (res === false) { |       if (res === false) { | ||||||
|         const modalRef = this.modalService.error({ |         const modalRef = this.modalService.error({ | ||||||
|           nzTitle: '货物名称含有违禁词,请重新输入!', |           nzTitle: '货物名称含有违禁词,请重新输入!', | ||||||
|  | |||||||
| @ -1469,7 +1469,11 @@ export class SupplyManagementOnecarPublishComponent implements OnInit { | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   checkGoodsName() { |   checkGoodsName() { | ||||||
|     this.service.request(this.service.$api_checkGoodsName, this.sf3.value.goodsName1).subscribe(res => { |     const name = this.sf3.getValue('/goodsName1'); | ||||||
|  |     if (!name || name.trim().length === 0) { | ||||||
|  |       return; | ||||||
|  |     } | ||||||
|  |     this.service.request(this.service.$api_checkGoodsName, name).subscribe(res => { | ||||||
|       if (res === false) { |       if (res === false) { | ||||||
|         const modalRef = this.modalService.error({ |         const modalRef = this.modalService.error({ | ||||||
|           nzTitle: '货物名称含有违禁词,请重新输入!', |           nzTitle: '货物名称含有违禁词,请重新输入!', | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user