diff --git a/ruoyi-admin/src/main/resources/templates/manage/order/add.html b/ruoyi-admin/src/main/resources/templates/manage/order/add.html
index baf05d34..5288099d 100644
--- a/ruoyi-admin/src/main/resources/templates/manage/order/add.html
+++ b/ruoyi-admin/src/main/resources/templates/manage/order/add.html
@@ -86,7 +86,11 @@
@@ -94,7 +98,8 @@
@@ -225,12 +230,48 @@
};
$.table.init(options);
});
-
+ function selectDeptTree() {
+ var deptId = $.common.isEmpty($("#treeId").val()) ? "100" : $("#treeId").val();
+ console.log(deptId)
+ var url = ctx + "system/user/selectDeptTree/" + deptId;
+ var options = {
+ title: '选择部门',
+ width: "380",
+ url: url,
+ callBack: doSubmit
+ };
+ $.modal.openOptions(options);
+ }
+ function doSubmit(index, layero){
+ var body = $.modal.getChildFrame(index);
+ $("#treeId").val(body.find('#treeId').val());
+ $("#treeName").val(body.find('#treeName').val());
+ $.modal.close(index);
+ }
+ function selectDeptTreePartener() {
+ var deptId = $.common.isEmpty($("#treeId1").val()) ? "100" : $("#treeId1").val();
+ console.log(deptId)
+ var url = ctx + "system/user/selectDeptTree/" + deptId;
+ var options = {
+ title: '选择部门',
+ width: "380",
+ url: url,
+ callBack: doSubmitPartener
+ };
+ $.modal.openOptions(options);
+ }
+ function doSubmitPartener(index, layero){
+ var body = $.modal.getChildFrame(index);
+ $("#treeId1").val(body.find('#treeId').val());
+ $("#treeName1").val(body.find('#treeName').val());
+ $.modal.close(index);
+ }
function addRow() {
var count = $("#" + table.options.id).bootstrapTable('getData').length;
var row = {
index: $.table.serialNumber(count),
productId: "",
+ productCode: "",
quantity: "",
price: "",
amount: "",
diff --git a/ruoyi-sip/src/main/resources/mapper/manage/OrderInfoMapper.xml b/ruoyi-sip/src/main/resources/mapper/manage/OrderInfoMapper.xml
index b6ae7040..052c54ab 100644
--- a/ruoyi-sip/src/main/resources/mapper/manage/OrderInfoMapper.xml
+++ b/ruoyi-sip/src/main/resources/mapper/manage/OrderInfoMapper.xml
@@ -232,7 +232,7 @@
- update order_list set status=1,delete_at=now() where order_id in
+ update order_list set status=1,deleted_at=now() where order_id in
#{orderId}