|
@@ -110,9 +110,9 @@ $(function () {
|
|
|
});
|
|
|
});
|
|
|
|
|
|
- $('#start-btn').click(function () {
|
|
|
+ $('body').on('click', '#start-btn', function () {
|
|
|
// 判断是否已选择审签人,有则提交
|
|
|
- const username = $('#show-shenpi span').text();
|
|
|
+ const username = $('#show-shenpi span').text() || $('#show-shenpi-input').val();
|
|
|
if (username == '') {
|
|
|
toastr.error('请选择审签人再提交');
|
|
|
return false;
|
|
@@ -123,18 +123,23 @@ $(function () {
|
|
|
});
|
|
|
|
|
|
$('#edit-start').click(function () {
|
|
|
- $('#edit-end').show();
|
|
|
- $('#edit-start').hide();
|
|
|
- $('.edit-input').removeAttr('readonly');
|
|
|
- $('.edit-textarea').removeAttr('readonly');
|
|
|
+ // $('#edit-end').show();
|
|
|
+ $('#edit-start').hide();
|
|
|
+ $('.edit-input').removeAttr('readonly');
|
|
|
+ $('.edit-textarea').removeAttr('readonly');
|
|
|
+ $(this).siblings('span').hide();
|
|
|
+ $(this).parents('.title-main').append('<a href="javascript:void(0);" id="start-btn" class="btn btn-sm btn-primary pull-right mr-2">提交审签</a>');
|
|
|
+ postData('/construction/' + tender_id + '/log/' + log_id + '/save', { type: 'checkNo' }, function (result) {
|
|
|
+ // window.location.reload();
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
- $('#edit-end').click(function () {
|
|
|
- $('#edit-start').show();
|
|
|
- $('#edit-end').hide();
|
|
|
- $('.edit-input').attr('readonly', true);
|
|
|
- $('.edit-textarea').attr('readonly', true);
|
|
|
- });
|
|
|
+ // $('#edit-end').click(function () {
|
|
|
+ // $('#edit-start').show();
|
|
|
+ // $('#edit-end').hide();
|
|
|
+ // $('.edit-input').attr('readonly', true);
|
|
|
+ // $('.edit-textarea').attr('readonly', true);
|
|
|
+ // });
|
|
|
|
|
|
$('#check-btn').click(function () {
|
|
|
postData('/construction/' + tender_id + '/log/' + log_id + '/save', { type: 'checked' }, function (result) {
|