diff --git a/index.html b/index.html
index fb04551..864514b 100644
--- a/index.html
+++ b/index.html
@@ -256,7 +256,7 @@
const params = {
"username": 'sa',
// "password": '3NBzZK7qxhMhrmvi63FnuQ==',
- "password": 'ebbd6ea34bbab2b0813afcf59c8c9556',
+ "password": '44b572eb0784cccd96cde6f09e724e58',
}
// alert(params.username);
diff --git a/js/aq_demand_plan/child/send_out_detail.js b/js/aq_demand_plan/child/send_out_detail.js
index 7276515..93ce8b9 100644
--- a/js/aq_demand_plan/child/send_out_detail.js
+++ b/js/aq_demand_plan/child/send_out_detail.js
@@ -40,14 +40,55 @@ function getPurchaseDetails() {
}, null);
// 基本数据表格赋值
function setTableData(obj) {
- $('#planCode').html(obj.planCode);
- $('#cgNum').html(obj.cgNum);
- $('#money').html(formatMoney(obj.money));
- $('#lkNum').html(obj.lkNum);
- $('#fhDay').html(obj.fhDay);
- $('#jbUser').html(obj.jbUser);
- $('#address').html(obj.address);
- $('#remark').html(obj.remark);
+ const $dataBody = $('#dataBody');
+ $dataBody.empty();
+
+ if(obj.length > 0){
+ for (let i = 0; i < obj.length; i++) {
+ const dataList = obj[i];
+ const trHtml = `
+
+ | ${dataList.planCode || '--'} |
+ ${dataList.cgNum || '--'} |
+ ${formatMoney(dataList.money)} |
+ ${dataList.lkNum || '--'} |
+ ${dataList.fhDay || '--'} |
+ ${dataList.jbUser || '--'} |
+ ${dataList.address || '--'} |
+
+
+ |
+
+ `;
+ $dataBody.append(trHtml);
+ }
+
+ $('#remark').html(obj[0].remark);
+ }else{
+ const trHtml = `
+
+ | ${obj.planCode || '--'} |
+ ${obj.cgNum || '--'} |
+ ${formatMoney(obj.money)} |
+ ${obj.lkNum || '--'} |
+ ${obj.fhDay || '--'} |
+ ${obj.jbUser || '--'} |
+ ${obj.address || '--'} |
+
+
+ |
+
+ `;
+ $dataBody.append(trHtml);
+ // $('#planCode').html(obj.planCode);
+ // $('#cgNum').html(obj.cgNum);
+ // $('#money').html(formatMoney(obj.money));
+ // $('#lkNum').html(obj.lkNum);
+ // $('#fhDay').html(obj.fhDay);
+ // $('#jbUser').html(obj.jbUser);
+ // $('#address').html(obj.address);
+ $('#remark').html(obj.remark);
+ }
// 供应商信息
setSubInfos(obj.supInfoList);
// 附件文档
diff --git a/page/aq_demand_plan/child/send_out_detail.html b/page/aq_demand_plan/child/send_out_detail.html
index 6f6b001..448be77 100644
--- a/page/aq_demand_plan/child/send_out_detail.html
+++ b/page/aq_demand_plan/child/send_out_detail.html
@@ -78,7 +78,8 @@
-
+
+
| 需求计划编号 |
采购数量 |
采购金额 |
@@ -86,8 +87,11 @@
采购发货时间 |
经办人 |
收货地址 |
+ 操作 |
-
+
+
+
+
+
+ | 备注 |
- | 备注 |
-
-
-
+
+