chenhaozhe
2025-06-11 350ebcb8a94fef6222379d0d2a579fbf5e87022d
WebTM/layuiadmin/layui-common-custom.js
@@ -72,7 +72,7 @@
    }
    let UneditableColStyle = 'background-color: #eeeeee;'
    option.cols[0].forEach(item => {
        if (uneditable.includes(item.field) === true) {
        if (uneditable.includes(item.field) === true || item.title === '序号') {
            item.edit = ''
            if (item.style !== undefined) {
                item.style += ';' + UneditableColStyle
@@ -91,6 +91,30 @@
    return option
}
// 打开手工同步模块
function get_ResCnzManual(layer, HBillType = 0, get_FastQuery) {
    layer.open({
        type: 2
        , skin: "layui-layer-rim" //加上边框
        , title: "手工同步"  //标题
        , closeBtn: 1  //窗体右上角关闭 的 样式
        , shift: 2 //弹出动画
        , area: ["60%", "90%"] //窗体大小
        , maxmin: true //设置最大最小按钮是否显示
        , content: ['../../基础资料/公用基础资料/Gy_ManualSynchronization.html?BillType=' + HBillType, "yes"]
        , btn: ["取消"]
        , btn1: function (index, laero) {
        }
        , end: function () {
            //刷新表格数据
            get_FastQuery();
            //更新表格缓存的数据
            layer.close(index);//关闭弹窗
        }
    })
}
// 页面HTML解析完成后执行
function onCreated(callback) {
    document.addEventListener('DOMContentLoaded', callback)