|
@@ -210,6 +210,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
$('#change_form').ajaxSubmit(function (result) {
|
|
|
if ( result.err === 0) {
|
|
|
+ $('.reduction-code').attr('data-code', $('input[name="code"]').val());
|
|
|
toastr.success(result.msg);
|
|
|
} else {
|
|
|
toastr.error(result.msg);
|
|
@@ -497,7 +498,7 @@ $(document).ready(() => {
|
|
|
|
|
|
// 自动编号
|
|
|
$('.reduction-code').click(function () {
|
|
|
- const code = $(this).data('code');
|
|
|
+ const code = $(this).attr('data-code');
|
|
|
$('input[name="code"]').val(code);
|
|
|
});
|
|
|
|