|
|
@@ -11,12 +11,18 @@ export default function Rcjhz({id, bh, tiaojiaCallback}) {
|
|
|
const myTable = React.useRef(null);
|
|
|
const myRef = React.useRef(null);
|
|
|
const [detail, setDetail] = React.useState([]);
|
|
|
- var editCheck = function(cell){
|
|
|
+
|
|
|
+ var editCheckRcj = function(cell){
|
|
|
//cell - the cell component for the editable cell
|
|
|
|
|
|
//get row data
|
|
|
//console.log(cell);
|
|
|
- if(cell._cell.row.data['序号']) return false;
|
|
|
+
|
|
|
+
|
|
|
+ if (cell._cell.row.getData()['编码'].includes('000FE')) {//安装费用
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
@@ -50,7 +56,7 @@ export default function Rcjhz({id, bh, tiaojiaCallback}) {
|
|
|
{title:"数量", field:"数量", width:100, headerSort:true, sorter:"number", formatter:"money", formatterParams:{
|
|
|
precision:4,
|
|
|
} },
|
|
|
- {title:"单价", field:"单价", width:100, headerSort:true, sorter:"number", formatter:"money", editor: "input"},
|
|
|
+ {title:"单价", field:"单价", width:100, headerSort:true, sorter:"number", formatter:"money", editor: "input", editable: editCheckRcj },
|
|
|
{title:"合价", field:"合价", width:100, headerSort:true, sorter:"number", formatter:"money"},
|
|
|
{title:"产地", field:"产地", width:50, headerSort:false, },
|
|
|
{title:"供应厂商", field:"供应厂商", width:80, headerSort:false, },
|