Quellcode durchsuchen

上传账单提示调整

lzm vor 3 Jahren
Ursprung
Commit
1be353afe8
1 geänderte Dateien mit 6 neuen und 3 gelöschten Zeilen
  1. 6 3
      sp-admin/sa-view/tb-invoice-order/tb-invoice-order-add.html

+ 6 - 3
sp-admin/sa-view/tb-invoice-order/tb-invoice-order-add.html

@@ -83,13 +83,16 @@
 						// 开始增加或修改
 						if(this.id <= 0) {	// 添加
 							sa.ajax('/TbInvoiceOrder/add', m, function(res){
-								console.log("执行了");
 								if(res.msg === 'ok'){
 									sa.alert('增加成功', this.clean);
 								}else if(res.msg === 'fail'){
-									console.log("执行了");
 									this.idShow = 1;
-									sa.alert('失败:截图无法识别,或不存在与该账单关联的业务订单,请填写截图中的交易单号。');
+									if(this.m.transactionId === ''){
+										sa.alert('失败:截图无法识别,或不存在与该账单关联的业务订,请填写截图中的交易单号。');
+									}else {
+										sa.alert('失败:不存在与该交易单号关联的业务订单');
+									}
+
 								}
 							}.bind(this));
 						}