前端问题修改
This commit is contained in:
parent
2b97086406
commit
1bb7cdc10d
|
|
@ -403,15 +403,15 @@ function goOnAddData() {
|
|||
if (parseInt(id) === parseInt(item.id)) {
|
||||
let times = $(this).find('td').eq(7).find('input[name="times"]').val(),
|
||||
needNum = $(this).find('td').eq(6).find('input[name="needNum"]').val(),
|
||||
remark = $(this).find('td').eq(8).find('input[name="remarks"]').val();
|
||||
if (!item.times || item.times === 0) {
|
||||
remarks = $(this).find('td').eq(8).find('input[name="remarks"]').val();
|
||||
if (!item.times || parseInt(item.times) === 0) {
|
||||
item.times = times;
|
||||
}
|
||||
if (!item.needNum || item.needNum === 0) {
|
||||
if (!item.needNum || parseInt(item.needNum) === 0) {
|
||||
item.needNum = needNum;
|
||||
}
|
||||
if (!item.needNum || item.remark === 0) {
|
||||
item.remark = remark;
|
||||
if (!item.remarks) {
|
||||
item.remarks = remarks;
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -338,15 +338,15 @@ function goOnAddData() {
|
|||
if (parseInt(id) === parseInt(item.id)) {
|
||||
let times = $(this).find('td').eq(7).find('input[name="times"]').val(),
|
||||
needNum = $(this).find('td').eq(6).find('input[name="needNum"]').val(),
|
||||
remark = $(this).find('td').eq(8).find('input[name="remarks"]').val();
|
||||
if (!item.times || item.times === 0) {
|
||||
remarks = $(this).find('td').eq(8).find('input[name="remarks"]').val();
|
||||
if (!item.times || parseInt(item.times) === 0) {
|
||||
item.times = times;
|
||||
}
|
||||
if (!item.needNum || item.needNum === 0) {
|
||||
if (!item.needNum || parseInt(item.needNum) === 0) {
|
||||
item.needNum = needNum;
|
||||
}
|
||||
if (!item.needNum || item.remark === 0) {
|
||||
item.remark = remark;
|
||||
if (!item.remarks) {
|
||||
item.remarks = remarks;
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ function getDispatchCarData(id) {
|
|||
'<td>' + item.useAddress + '</td>' +
|
||||
'<td>' + item.planDay + '</td>' +
|
||||
'<td>' + setZlPrice(item) + '</td>' +
|
||||
'<td> ¥ ' + item.dcMoney + '</td>' +
|
||||
'<td> ¥ ' + item.cost + '</td>' +
|
||||
"<td style='color:#409eff'>" + imgNum + "<a style='color:#409eff;margin:0 5px;cursor: pointer;' onclick='viewFileDetail(" + JSON.stringify(item) + ",2)'>查看附件>></a></td>" +
|
||||
'<td>' + supName + '</td>' +
|
||||
'</tr>';
|
||||
|
|
|
|||
|
|
@ -284,7 +284,7 @@ function getDispatchCarData(id) {
|
|||
'<td>' + item.useAddress + '</td>' +
|
||||
'<td>' + item.planDay + '</td>' +
|
||||
'<td>' + setZlPrice(item) + '</td>' +
|
||||
'<td> ¥ ' + item.dcMoney + '</td>' +
|
||||
'<td> ¥ ' + item.cost + '</td>' +
|
||||
"<td style='color:#409eff'>" + imgNum + "<a style='color:#409eff;margin:0 5px;cursor: pointer;' onclick='viewFileDetail(" + JSON.stringify(item) + ",2)'>查看附件>></a></td>" +
|
||||
'<td>' + objParam.supName + '</td>' +
|
||||
'</tr>';
|
||||
|
|
|
|||
|
|
@ -259,8 +259,10 @@ function initTable() {
|
|||
if (!d.supId) {
|
||||
html += "<div class='splitLine'>|</div><a onclick='dispatchCarAllocation(" + JSON.stringify(d) + ")'>派车分配</a>";
|
||||
}
|
||||
html += "<div class='splitLine'>|</div><a onclick='editRecord(" + JSON.stringify(d) + ")'>修改记录</a>";
|
||||
if (d.statusName !== '待派车') {
|
||||
html += "<div class='splitLine'>|</div><a onclick='dispatchCarDetail(" + JSON.stringify(d) + ",2)'>审核</a>";
|
||||
html += "<div class='splitLine'>|</div><a onclick='editRecord(" + JSON.stringify(d) + ")'>修改记录</a>";
|
||||
}
|
||||
return html;
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -280,7 +280,7 @@ function getDispatchCarData(id) {
|
|||
'<td>' + item.useAddress + '</td>' +
|
||||
'<td>' + item.planDay + '</td>' +
|
||||
'<td>' + setZlPrice(item) + '</td>' +
|
||||
'<td> ¥ ' + item.dcMoney + '</td>' +
|
||||
'<td> ¥ ' + item.cost + '</td>' +
|
||||
"<td style='color:#409eff'>" + imgNum + "<a style='color:#409eff;margin:0 5px;cursor: pointer;' onclick='viewFileDetail(" + JSON.stringify(item) + ",2)'>查看附件>></a></td>" +
|
||||
'<td>' + (objParam.supName || dataObj.supName) + '</td>' +
|
||||
'</tr>';
|
||||
|
|
|
|||
|
|
@ -425,15 +425,15 @@ function goOnAddData() {
|
|||
if (parseInt(id) === parseInt(item.id)) {
|
||||
let times = $(this).find('td').eq(7).find('input[name="times"]').val(),
|
||||
needNum = $(this).find('td').eq(6).find('input[name="needNum"]').val(),
|
||||
remark = $(this).find('td').eq(8).find('input[name="remarks"]').val();
|
||||
if (!item.times || item.times === 0) {
|
||||
remarks = $(this).find('td').eq(8).find('input[name="remarks"]').val();
|
||||
if (!item.times || parseInt(item.times) === 0) {
|
||||
item.times = times;
|
||||
}
|
||||
if (!item.needNum || item.needNum === 0) {
|
||||
if (!item.needNum || parseInt(item.needNum) === 0) {
|
||||
item.needNum = needNum;
|
||||
}
|
||||
if (!item.needNum || item.remark === 0) {
|
||||
item.remark = remark;
|
||||
if (!item.remarks) {
|
||||
item.remarks = remarks;
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@ function getDispatchCarData(id) {
|
|||
'<td>' + item.useAddress + '</td>' +
|
||||
'<td>' + item.planDay + '</td>' +
|
||||
'<td>' + setZlPrice(item) + '</td>' +
|
||||
'<td> ¥ ' + item.dcMoney + '</td>' +
|
||||
'<td> ¥ ' + item.cost + '</td>' +
|
||||
"<td style='color:#409eff'>" + imgNum + "<a style='color:#409eff;margin:0 5px;cursor: pointer;' onclick='viewFileDetail(" + JSON.stringify(item) + ",2)'>查看附件>></a></td>" +
|
||||
'<td>' + objParam.supName + '</td>' +
|
||||
'</tr>';
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ function getPayCarDetails() {
|
|||
'<td>' + item.useAddress + '</td>' +
|
||||
'<td>' + item.planDay + '</td>' +
|
||||
'<td>' + setZlPrice(item) + '</td>' +
|
||||
'<td> ¥ ' + item.dcMoney + '</td>' +
|
||||
'<td> ¥ ' + item.cost + '</td>' +
|
||||
"<td style='color:#409eff'>" + imgNum + "<a style='color:#409eff;margin:0 5px;cursor: pointer;' onclick='viewFileDetail(" + JSON.stringify(item) + ",2)'>查看附件>></a></td>" +
|
||||
"<td><a style='color:#409eff;margin:0 5px;cursor: pointer;' onclick='viewPlanDetail(" + JSON.stringify(item) + ")'>" + item.planCode + "</a></td>" +
|
||||
'</tr>';
|
||||
|
|
|
|||
Loading…
Reference in New Issue