...
|
...
|
@@ -120,12 +120,24 @@ function getRefundCompute() { |
|
|
});
|
|
|
}
|
|
|
|
|
|
function syncRefundMode(code) {
|
|
|
function syncRefundMode() {
|
|
|
var skns = [];
|
|
|
|
|
|
if (!defaultArea) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
$goodsTable.find('input[type="checkbox"]:checked').each(function() {
|
|
|
skns.push($(this).siblings('input[name="skn"]').val());
|
|
|
});
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/home/returns/getDelivery',
|
|
|
data: {
|
|
|
areaCode: code
|
|
|
orderCode: orderCode,
|
|
|
areaCode: defaultArea,
|
|
|
skns: skns.join(',')
|
|
|
}
|
|
|
}).then(function(jsonData) {
|
|
|
var _html = '';
|
...
|
...
|
@@ -224,7 +236,7 @@ if ($refundInfo.length) { |
|
|
}
|
|
|
});
|
|
|
} else if (defaultArea) {
|
|
|
syncRefundMode(defaultArea);
|
|
|
syncRefundMode();
|
|
|
}
|
|
|
|
|
|
defaultArea = defaultArea ? defaultArea : '';
|
...
|
...
|
@@ -282,6 +294,7 @@ $checkBox.change(function() { |
|
|
$par.next().hide();
|
|
|
}
|
|
|
|
|
|
syncRefundMode();
|
|
|
getRefundCompute();
|
|
|
});
|
|
|
|
...
|
...
|
@@ -373,11 +386,9 @@ function fileChangeEvent() { |
|
|
fileChangeEvent();// 初始化上传图片事件
|
|
|
|
|
|
$exchange.on('change', '#streets', function() {
|
|
|
var code = $(this).val() * 1;
|
|
|
defaultArea = $(this).val() * 1;
|
|
|
|
|
|
if (code) {
|
|
|
syncRefundMode(code);
|
|
|
}
|
|
|
syncRefundMode();
|
|
|
});
|
|
|
|
|
|
$refundType.change(function() {
|
...
|
...
|
|