|
@@ -46,7 +46,6 @@ $(document).ready(() => {
|
|
|
for (const ggd in gclGatherData) {
|
|
|
gclGatherData[ggd].code = gclGatherData[ggd].b_code;
|
|
|
}
|
|
|
- console.log(gclGatherData);
|
|
|
// 数组去重
|
|
|
for (const db of gclGatherData) {
|
|
|
const exist_index = dealBillList.findIndex(function (item) {
|
|
@@ -68,6 +67,7 @@ $(document).ready(() => {
|
|
|
const unit_price = gcl.unit_price !== null && gcl.unit_price !== undefined ? gcl.unit_price : 0;
|
|
|
let gclhtml = gcl.leafXmjs !== undefined && gcl.leafXmjs !== null ? ' data-gcl="' + gcl_index + '"': '';
|
|
|
gcl_index = gclhtml !== '' ? ++gcl_index : gcl_index;
|
|
|
+ // const lid = gcl.leafXmjs !== undefined && gcl.leafXmjs !== null ? gcl.leafXmjs[0].gcl_id : gcl.id;
|
|
|
listHtml += '<tr data-lid="' + list_index + '"'+ gclhtml +' data-index="' + list_index + '" data-bwmx="">' +
|
|
|
'<td>' + list_index + '</td>' +
|
|
|
'<td>' + gcl.code + '</td>' +
|
|
@@ -592,7 +592,7 @@ function tableDataRemake(changeListData) {
|
|
|
if (changeList.length > 0 && changeList[0]) {
|
|
|
for (const cl of changeList) {
|
|
|
const clinfo = cl.split(';');
|
|
|
- // console.log(clinfo);
|
|
|
+ console.log(clinfo);
|
|
|
const listinfo = changeListData[clinfo[8] - 1];
|
|
|
// const listinfo = changeListData.find(function (item) {
|
|
|
// return item.b_code === clinfo[0] && item.name === clinfo[1] && item.unit_price === parseFloat(clinfo[4])
|
|
@@ -601,7 +601,7 @@ function tableDataRemake(changeListData) {
|
|
|
// toastr.warning('台账清单列表已不存在'+ clinfo[0] +',故删除之');
|
|
|
// continue;
|
|
|
// }
|
|
|
- // console.log(listinfo);
|
|
|
+ console.log(listinfo);
|
|
|
$('#table-list-select tr[data-index="'+ clinfo[8] +'"]').addClass('table-success');
|
|
|
let pushbwmx = '0;0';
|
|
|
if (listinfo.leafXmjs !== undefined) {
|