Explorar el Código

上传账单提示调整

lzm hace 3 años
padre
commit
1be353afe8
Se han modificado 1 ficheros con 6 adiciones y 3 borrados
  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));
 						}