|
@@ -13,7 +13,7 @@
|
|
|
|
|
|
<li>
|
|
|
<em>店铺:</em>
|
|
|
-<select name="shop" class="select class">
|
|
|
+<select name="shop" class="select class shopselect">
|
|
|
{loop usershop() as $val}
|
|
|
<option value="{$val['id']}">{$val['shopname']}</option>
|
|
|
{/loop}
|
|
@@ -304,6 +304,44 @@ $(document).on("click", ".scimg .upimg img", function() {
|
|
|
$(document).on("click", ".scimg .upimg video", function() {
|
|
|
$(this).remove();
|
|
|
});
|
|
|
+$("input[name='number']").on('blur',function(){
|
|
|
+ let order_no = $("input[name='number']").val()
|
|
|
+ if(!order_no){
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+ let shop = $(".shopselect").val()
|
|
|
+ $.post("/returns/csao",{
|
|
|
+ shop:shop,
|
|
|
+ number:order_no,
|
|
|
+ },function(res){
|
|
|
+ if(res.code != 1){
|
|
|
+ $(".ts").hide();
|
|
|
+ $(".ts p").html(res.msg);
|
|
|
+ $(".ts").fadeIn();
|
|
|
+ setTimeout('$(".ts").fadeOut()', 800);
|
|
|
+ }
|
|
|
+ },'json')
|
|
|
+
|
|
|
+})
|
|
|
+$(".shopselect").on('change',function(){
|
|
|
+ let shop = $(".shopselect").val()
|
|
|
+ let order_no = $("input[name='number']").val()
|
|
|
+ if(!order_no){
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+ $.post("/returns/csao",{
|
|
|
+ shop:shop,
|
|
|
+ number:order_no,
|
|
|
+ },function(res){
|
|
|
+ if(res.code != 1){
|
|
|
+ $(".ts").hide();
|
|
|
+ $(".ts p").html(res.msg);
|
|
|
+ $(".ts").fadeIn();
|
|
|
+ setTimeout('$(".ts").fadeOut()', 800);
|
|
|
+ }
|
|
|
+ },'json')
|
|
|
+})
|
|
|
+
|
|
|
|
|
|
function getInfo(){
|
|
|
let order_no = $("input[name='number']").val()
|