From 2ddd165f63f582146e1f2c061a4cf15ace9e921c Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Wed, 23 Apr 2025 13:15:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E4=BB=B6=E5=85=A5=E5=BA=93=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=AD=E6=96=87=E5=90=8D=EF=BC=8C=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/accessory/child/accessory_store_form.js | 20 +++++++++++++++++-- .../child/accessory_store_detail.html | 2 +- .../child/accessory_store_edit_form.html | 2 +- .../accessory/child/accessory_store_form.html | 2 +- 4 files changed, 21 insertions(+), 5 deletions(-) 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 @@
附件文档
+供货方货单文档