-
-
-
-
+
仓库信息
diff --git a/ruoyi-admin/src/main/resources/templates/inventory/execution/track.html b/ruoyi-admin/src/main/resources/templates/inventory/execution/track.html
index fad93669..53ce6fc0 100644
--- a/ruoyi-admin/src/main/resources/templates/inventory/execution/track.html
+++ b/ruoyi-admin/src/main/resources/templates/inventory/execution/track.html
@@ -118,7 +118,9 @@
-
+
+
+
@@ -155,6 +157,58 @@
$.modal.openFull("项目详情", ctx + "sip/project/view/" + id)
}
+ function signOrder(orderId,versionCode) {
+ $('#orderId').val(orderId)
+ $('#versionCode').val(versionCode)
+ $('#uploadInput').click()
+ }
+
+ document.getElementById('uploadInput').addEventListener('change', function (event) {
+ const file = event.target.files[0];
+ let data = new FormData()
+ data.append('file', file)
+ data.append('orderId', $('#orderId').val())
+ data.append('versionCode', $('#versionCode').val())
+ var xhr = new XMLHttpRequest(); // 创建XMLHttpRequest对象
+ xhr.open('POST', prefix + '/sign', true); // 设置请求类型和URL
+ // 当请求完成时执行的回调函数
+ xhr.onload = function (res) {
+ let data = JSON.parse(res.currentTarget.response)
+ if (data.code === 0) {
+ $.modal.msgSuccess('上传成功');
+ $.table.refresh()
+ } else {
+ top.layer.alert(data.msg || '导入失败', {
+ icon: 2,
+ title: "系统提示",
+ btn: ['确认'],
+ skin: 'content-br',
+ btnclass: ['btn btn-primary'],
+ });
+
+ }
+ $('#uploadInput').val('')
+
+
+ };
+
+ // 当请求发生错误时执行的回调函数
+ xhr.onerror = function () {
+ console.log('上传过程中发生错误');
+ };
+ //
+ // // 发送数据到服务器
+ xhr.send(data);
+
+
+ });
+ function downloadSign(id,versionCode){
+ window.location.href = prefix + `/sign/download?orderId=` + encodeURI(id) + '&versionCode=' + encodeURI(versionCode);
+
+ }
+
+
+
$(function () {
// $('#content').load(ctx + 'project/order/add');
var urlChina = '/cnarea/select';
@@ -255,9 +309,14 @@
width: 200,
formatter: function (value, row, index) {
var actions = [];
- actions.push('
编辑 ');
- // actions.push('
详情 ');
- actions.push('
删除');
+ actions.push('
编辑 ');
+ if (row.signStatus == '0' && row.deliveryStatus=='2') {
+ actions.push(`
签收`);
+ }
+ if (row.signStatus == '1'){
+ actions.push(`
签收文件`);
+ }
+
return actions.join('');
}
}]
@@ -304,6 +363,7 @@
});
})
+
});