diff --git a/js/accessory/child/accessory_store_form.js b/js/accessory/child/accessory_store_form.js index 86157c9..fe7f685 100644 --- a/js/accessory/child/accessory_store_form.js +++ b/js/accessory/child/accessory_store_form.js @@ -1,4 +1,4 @@ -let idParam, objParam, fileList = new Array(), imgListUp = new Array(); +let idParam, objParam, fileList = new Array(), imgListUp = new Array(),userName; let form, laydate, layer, upload, table, util; let pageNum = 1, tableIns; // 定义分页 let jjDataArr = []; // 入库配件数据 @@ -13,8 +13,24 @@ function setParams(obj) { upload = layui.upload; table = layui.table; util = layui.util; + var userData = JSON.parse(sessionStorage.getItem("us")); - $('#inputUser').val(userData.username); + var userId = userData.id; + let params = { + encryptedData: JSON.stringify({ + 'userId': userId + }) + }; + let url = dataUrl + 'backstage/partInput/getUserName'; + ajaxRequest(url, "POST", params, false, function () { + }, function (result) { + if (result.code === 200) { + $('#inputUser').val(result.data.userName); + } + }, function (xhr, status, error) { + errorFn(xhr, status, error) + }, null); + // $('#inputUser').val(userData.username); laydate.render({ elem: '#inputDay' }); diff --git a/page/accessory/child/accessory_store_detail.html b/page/accessory/child/accessory_store_detail.html index d63a42f..c30ef33 100644 --- a/page/accessory/child/accessory_store_detail.html +++ b/page/accessory/child/accessory_store_detail.html @@ -87,7 +87,7 @@
-

附件文档

+

供货方货单文档

diff --git a/page/accessory/child/accessory_store_edit_form.html b/page/accessory/child/accessory_store_edit_form.html index 7cb517b..00aac96 100644 --- a/page/accessory/child/accessory_store_edit_form.html +++ b/page/accessory/child/accessory_store_edit_form.html @@ -45,7 +45,7 @@
-

附件证明*

+

供货方货单*

diff --git a/page/accessory/child/accessory_store_form.html b/page/accessory/child/accessory_store_form.html index 64dc0f1..40d719d 100644 --- a/page/accessory/child/accessory_store_form.html +++ b/page/accessory/child/accessory_store_form.html @@ -44,7 +44,7 @@
-

附件证明*

+

供货方货单*