From ecd6a75f8202be4db7513b67eac6b48dedf9c039 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期三, 26 六月 2024 13:45:24 +0800
Subject: [PATCH] 删除单据前,判断是否含有拣货单
---
src/main/webapp/static/js/pla/productionInfo.js | 44 +++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 43 insertions(+), 1 deletions(-)
diff --git a/src/main/webapp/static/js/pla/productionInfo.js b/src/main/webapp/static/js/pla/productionInfo.js
index db2fd0a..960585d 100644
--- a/src/main/webapp/static/js/pla/productionInfo.js
+++ b/src/main/webapp/static/js/pla/productionInfo.js
@@ -18,6 +18,7 @@
,{field: 'line', align: 'center',title: '鐢熶骇绾�', edit: true}
,{field: 'packageType', align: 'center',title: '鍖呰绫诲瀷', edit: true}
,{field: 'zpalletType', align: 'center',title: '鎵樼洏绫诲瀷', edit: true}
+ ,{field: 'filmWrap', align: 'center',title: '缂犺啘', edit: true}
];
return cols;
}
@@ -32,6 +33,8 @@
var form = layui.form;
var admin = layui.admin;
+ initSelector();
+
tableIns = table.render({
elem: '#productionInfoTable',
data: [],
@@ -45,6 +48,46 @@
}
});
+
+ function initSelector(){
+ $('#package').append('<option value="value">Text</option>');
+
+ var selectDom = $('#package');
+ $.ajax({
+ url: baseUrl+"/configTypeQuery/auth",
+ headers: {'token': localStorage.getItem('token')},
+ data: {condition: ',packageType'},
+ method: 'POST',
+ traditional:true,
+ success: function (res) {
+ if (res.code === 200){
+ var list = res.data;
+ for (var i=0;i<list.length;i++){
+ var option = new Option(list[i].value, i);
+ selectDom.append($("<option></option>").attr("value",option["value"]));
+ }
+
+ } else if (res.code === 403){
+
+ }else {
+ layer.msg(res.msg, {icon: 2})
+ }
+ }
+ })
+ $('#packageCheck').val();
+ }
+
+ form.on('select(selectDemo1)', function (data) {
+ debugger
+ console.log(data.elem);
+ var elem = $(data.elem);
+ var trElem = elem.parents('tr');
+ console.log(trElem);
+ var tableData = table.cache.productionInfoTable; // 涓簍able id
+ console.log(tableData);
+ // 鏇存柊鍒拌〃鏍肩殑缂撳瓨鏁版嵁涓紝鎵嶈兘鍦ㄨ幏寰楅�変腑琛岀瓑绛夊叾浠栫殑鏂规硶涓緱鍒版洿鏂颁箣鍚庣殑鍊�
+ tableData[trElem.data('index')][elem.attr('name')] = data.value;
+ });
// 閲嶇疆浜嬩欢
form.on('submit(reset)', function (data) {
@@ -62,7 +105,6 @@
function tableReload() {
tableIns.reload({data: matCodeData});
}
-
$(document).on('click','#add', function () {
--
Gitblit v1.9.1