From aa963091956e9d3f9a4a0f1a19809f56344ba988 Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期三, 31 五月 2023 22:37:26 +0800 Subject: [PATCH] 出入库优化-称重实现粮食产地 --- igds-web/src/main/resources/static/admin/inout/in-weight.js | 138 --------------------------------------------- 1 files changed, 1 insertions(+), 137 deletions(-) diff --git a/igds-web/src/main/resources/static/admin/inout/in-weight.js b/igds-web/src/main/resources/static/admin/inout/in-weight.js index 0f061eb..86e82ee 100644 --- a/igds-web/src/main/resources/static/admin/inout/in-weight.js +++ b/igds-web/src/main/resources/static/admin/inout/in-weight.js @@ -517,140 +517,4 @@ //鏄剧ず璐ㄦ淇℃伅 function showCheck() { alertError("璋冩暣"); -} - - -// ---------------------------閫氱煡鍗�-寮�濮� -------------------// -// 寮瑰嚭寰�鏉ュ崟浣嶄笅鎷夋 -function showNotice() { - var index = layer.load(); - var param = { - type: type - }; - // 娓叉煋寰�鏉ュ崟浣嶅垪琛� - table.render({ - elem: '#tableNotice', - url: '../../basic/inout/list-notice鈥攊n', - page: false, - // skin : "nob", - // size : 'sm', - even: true, - method: 'POST', - contentType: "application/json;charset=UTF-8", - cols: [[{ - field: 'name', - title: '閫氱煡鍗曞悕绉�', - width: '15%' - }, { - field: 'customerName', - title: '閫佽揣鍗曚綅' - }, { - field: 'foodVarietyName', - title: '绮鍝佺', - width: '10%' - }, { - field: 'year', - title: '骞翠唤', - width: '8%' - }, { - field: 'unitName', - title: '鏀惰揣鍗曚綅' - }, { - field: 'contractName', - title: '鎵�灞炲悎鍚�' - }]], - where: param, - parseData: function (res) { - if ("0000" == res.code) { - return { - "code": "0", - "msg": res.msg, - "data": res.data - } - } else { - return { - "code": "1", - "msg": res.msg - } - } - }, - done: function (res) { - layer.close(index); - } - }); - - //鍙屽嚮鏄剧ず閫変腑鏁版嵁 - table.on('rowDouble(tableNotice)', function (obj) { - var data = obj.data; - form.val("form-data", { - customerId: data.customerId, - customerName: data.customerName, - noticeId: data.id - }); - // 鍏抽棴 - layer.closeAll(); - }); - - // 寮瑰嚭瀵硅瘽妗� - layer.open({ - type: 1, - offset: ['100px', '250px'], - title: "鍏ュ簱閫氱煡鍗�", - area: ['900px', '600px'], - shade: 0, - content: $('#listNotice'), - btn: 0, - btn: ['鍙栨秷'], - yes: function () { - layer.closeAll(); - }, - closeBtn: 0 - }); -} - -// ---------------------------閫氱煡鍗� -缁撴潫 -------------------// -//-------------------------閬撻椄鎿嶄綔--------------------------// - -function gateCtrl() { - layer.open({ - type: 1, - title: '璁惧鎿嶄綔-' + domSelectDevice.attr("name"), - area: ['450px', '210px'], - shade: 0, - content: $('#control-gate'), - btn: 0, - closeBtn: 2 - }); -} - -function controlGate(targetStatus) { - if (gateDto) { - var data = { - "companyId": companyId - , "deptId": deptId - , "bizType": type - , "confId": gateDto.id - , "targetStatus": targetStatus - , "sort": gateDto.sort - }; - $.ajax({ - type: "POST", - url: "../../basic/inout/gate-ctrl", - dataType: "json", - contentType: "application/json;charset=UTF-8", - data: JSON.stringify(data), - success: function (result) { - if (result.code != "0000") { - layer.msg("鎿嶄綔澶辫触锛�" + result.msg); - } else { - layer.msg("鎿嶄綔鎴愬姛"); - } - }, - error: function () { - layer.alert("鎿嶄綔澶辫触锛岃閲嶆柊灏濊瘯锛侊紒"); - } - }); - } else { - layer.msg("娌℃湁鑾峰彇鍒拌澶囷紒"); - } -} +} \ No newline at end of file -- Gitblit v1.9.3