|
@@ -13,7 +13,6 @@ $(document).ready(() => {
|
|
|
gclGatherModel.loadLedgerData(ledger);
|
|
|
gclGatherModel.loadPosData(pos);
|
|
|
const gclGatherData = gclGatherModel.gatherGclData();
|
|
|
- console.log(gclGatherData);
|
|
|
// 先加载台账数据
|
|
|
let listHtml = '';
|
|
|
let list_index = 1;
|
|
@@ -260,13 +259,10 @@ $(document).ready(() => {
|
|
|
const isCheck = $(this).hasClass('table-success') ? true : false;
|
|
|
const data_detail = $(this).attr('data-detail').split('$#$');
|
|
|
const isDeal = $(this).data('gcl') !== undefined ? true : false;
|
|
|
- let codeHtml = '<tr quantity="0"><td colspan="4">自行编辑变更详情</td><td><input type="checkbox"></td></tr>';
|
|
|
+ let codeHtml = '<tr quantity="0"><td colspan="4"></td><td><input type="checkbox"></td></tr>';
|
|
|
if (isDeal) {
|
|
|
const gcl = gclGatherData[$(this).data('gcl')];
|
|
|
- codeHtml = '<tr quantity="0"><td colspan="4">自行编辑变更详情</td><td><input type="checkbox" ';
|
|
|
- // 判断自行编辑变更详情是否已选中
|
|
|
- codeHtml += data_detail.indexOf('0;0') !== -1 && isCheck ? 'checked' : '';
|
|
|
- codeHtml += '></td></tr>';
|
|
|
+ codeHtml = '';
|
|
|
for (const leaf of gcl.leafXmjs) {
|
|
|
const quantity = leaf.quantity !== undefined ? leaf.quantity : 0;
|
|
|
const bwmx = leaf.bwmx !== undefined ? leaf.bwmx : '';
|
|
@@ -279,7 +275,7 @@ $(document).ready(() => {
|
|
|
'></td></tr>';
|
|
|
}
|
|
|
} else if (!isDeal && isCheck) {
|
|
|
- codeHtml = '<tr quantity="0"><td colspan="4">自行编辑变更详情</td><td><input type="checkbox" checked></td></tr>';
|
|
|
+ codeHtml = '<tr quantity="0"><td colspan="4"></td><td><input type="checkbox" checked></td></tr>';
|
|
|
}
|
|
|
$('#code-list').attr('data-index', $(this).children('td').eq(0).text());
|
|
|
$('#code-list').html(codeHtml);
|
|
@@ -339,6 +335,11 @@ $(document).ready(() => {
|
|
|
$('#addlist').modal('hide');
|
|
|
});
|
|
|
|
|
|
+ // 添加空白清单
|
|
|
+ $('#add-white-btn').on('click', function () {
|
|
|
+ maketablelist('addwhite');
|
|
|
+ });
|
|
|
+
|
|
|
// 选中input所有值
|
|
|
$('body').on('focus', ".clist input", function() {
|
|
|
$(this).select();
|