懒羊羊
2023-11-14 4ad58b3dbd72e7ca266318f24a203210da5b24d7
guns-vip-main/src/main/webapp/assets/modular/pm/workOrder/bulletBox/productListing.js
@@ -31,7 +31,23 @@
            {field: 'id', hide: true, title: '主键id'},
            {field: 'materialCode', sort: true, title: '产品编号'},
            {field: 'materialName', sort: true, title: '产品名称'},
            {field: 'typeL', sort: true, title: '类型'},
            {
                field: 'typeL', align: "center", title: '类型', templet: function (d) {
                    console.log(d.typeL)
                    switch(d.typeL){
                        case "PRODUCE" :
                            return "产品";
                            break;
                        case "SEMIFINISHEDPRODUCTS" :
                            return "半成品";
                            break;
                        case "COMPONENTSANDPARTS" :
                            return "零部件";
                            break;
                        default :
                    }
                }
            },
        ]];
    };