wxw
2025-03-27 ee4806a4b2ec94ec63b4cb9b58447d9863baebe5
HTML/views/WareHouseSetting/Area.html
@@ -43,10 +43,11 @@
                     <div class="layui-input-inline" >
                        <select name="Type" id="Type" lay-filter="Type" lay-search>
                           <option value=""></option>
                           <option value="1">成品区</option>
                           <option value="2">原料区</option>
                           <option value="3">包材区</option>
                           <option value="4">空托区</option>
                           <option value="0">净桶区</option>
                           <option value="1">预混区</option>
                           <option value="2">半成品区</option>
                           <option value="3">脏桶区</option>
                           <option value="4">设备区</option>
                        </select>
                     </div>
                  </div>
@@ -197,7 +198,7 @@
                     },{
                        field: 'WareHouseName',
                        title: '所属仓库',
                        width: 120,
                        width: 160,
                        align: 'center',
                        templet: function(d) {
@@ -213,6 +214,11 @@
                     }, {
                        field: 'AreaName',
                        title: '区域名称', 
                        align: 'center'
                     }, {
                        field: 'DeviceCode',
                        title: '设备编码',
                        align: 'center'
                        
                     }, {
@@ -309,8 +315,9 @@
                              console.log(field)
                              //提交 Ajax 成功后,静态更新表格中的数据
                              var param = {
                                            // AreaNo: field.AreaNo, //区域编码
                                            AreaNo: field.AreaNo, //区域编码
                                            AreaName: field.AreaName, //区域名称
                                 DeviceCode:field.DeviceCode,//设备编码
                                            WareHouseNo: field.WareHouseNo, //所属仓库
                                            Status: field.Status, //是否启用 0
                                            Priority: parseInt(field.Priority), //优先级
@@ -327,7 +334,7 @@
                                                        time: 2000 //2秒关闭(如果不配置,默认是3秒)
                                                    }, function() {
                                                        layer.close(index); //关闭弹层
                                                        // refreshTable($("#CategoryName").val(),$("#AreaNo").val());
                                                        refreshTable($("#CategoryName").val(),$("#AreaNo").val());
                                                        doing = true;
                                                    });
                                                }
@@ -408,7 +415,7 @@
                        title: '区域管理信息',
                        content: 'AreaFrom.html?id=' +  cusId,
                        maxmin: true,
                        area: ['445px', '340px'],
                        area: ['445px', '380px'],
                        btn: ['确定', '取消'],
                        yes: function(index, layero){
                          var iframeWindow = window['layui-layer-iframe'+ index]
@@ -425,6 +432,7 @@
                              Priority: parseInt(field.Priority),
                              Type:field.Type,
                              Temperature:field.Temperature,  
                              DeviceCode:field.DeviceCode
                           };
                           sendData(IP + "/Sys/EditStorageArea", param, 'post', function(res) {
                              console.log(res);