|
@@ -252,7 +252,7 @@ export default function Qingdan3({name, bh, bt, rgde, jxde, clde, beizhu/*后台
|
|
|
//get row data
|
|
//get row data
|
|
|
//console.log(cell);
|
|
//console.log(cell);
|
|
|
if(isQdrcj.current) return false;
|
|
if(isQdrcj.current) return false;
|
|
|
- if (cell._cell.row.getData()['人材机编码'] == '410000F') {
|
|
|
|
|
|
|
+ if (cell._cell.row.getData()['人材机编码'].includes('10000F')) {
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
if (cell._cell.row.getData()['人材机编码'].includes('000FE')) {
|
|
if (cell._cell.row.getData()['人材机编码'].includes('000FE')) {
|
|
@@ -270,7 +270,7 @@ export default function Qingdan3({name, bh, bt, rgde, jxde, clde, beizhu/*后台
|
|
|
//get row data
|
|
//get row data
|
|
|
//console.log(cell);
|
|
//console.log(cell);
|
|
|
if(isQdrcj.current) return false;
|
|
if(isQdrcj.current) return false;
|
|
|
- if (cell._cell.row.getData()['人材机编码'] == '410000F') {
|
|
|
|
|
|
|
+ if (cell._cell.row.getData()['人材机编码'].includes('10000F')) {
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
if (cell._cell.row.getData()['人材机编码'].includes('000FE')) {
|
|
if (cell._cell.row.getData()['人材机编码'].includes('000FE')) {
|
|
@@ -702,10 +702,12 @@ export default function Qingdan3({name, bh, bt, rgde, jxde, clde, beizhu/*后台
|
|
|
const handleClick = () => {
|
|
const handleClick = () => {
|
|
|
const id = uuidv4();
|
|
const id = uuidv4();
|
|
|
let a = [];
|
|
let a = [];
|
|
|
|
|
+ let temp = debmRef.current;
|
|
|
|
|
+ let temp2 = temp.split('-')[0];
|
|
|
setRcjrows((oldRows) => {
|
|
setRcjrows((oldRows) => {
|
|
|
a = [
|
|
a = [
|
|
|
...oldRows,
|
|
...oldRows,
|
|
|
- { id, '人材机编码': '410000F', '名称': '', '规格型号': '', '单位': '', '单价':'0','产地': '', '供应厂商': '', '人材机类别':'2',
|
|
|
|
|
|
|
+ { id, '人材机编码': temp2.concat('10000F'), '名称': '', '规格型号': '', '单位': '', '单价':'0','产地': '', '供应厂商': '', '人材机类别':'2',
|
|
|
'甲供标志':'', '含量':'1', '暂估价标志':'', '主要材料标志':'true', '主材标志':'true', '设备标志':'' },
|
|
'甲供标志':'', '含量':'1', '暂估价标志':'', '主要材料标志':'true', '主材标志':'true', '设备标志':'' },
|
|
|
];
|
|
];
|
|
|
return a;
|
|
return a;
|
|
@@ -1160,7 +1162,7 @@ export default function Qingdan3({name, bh, bt, rgde, jxde, clde, beizhu/*后台
|
|
|
//row - row component
|
|
//row - row component
|
|
|
|
|
|
|
|
var data = row.getData();
|
|
var data = row.getData();
|
|
|
- if (data['人材机编码'] == '410000F') {
|
|
|
|
|
|
|
+ if (data['人材机编码'].includes('10000F')) {
|
|
|
row.getElement().style.backgroundColor = "#ffff00";
|
|
row.getElement().style.backgroundColor = "#ffff00";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1195,7 +1197,7 @@ export default function Qingdan3({name, bh, bt, rgde, jxde, clde, beizhu/*后台
|
|
|
rcjTable.current.on("cellDblClick", function(e, cell){
|
|
rcjTable.current.on("cellDblClick", function(e, cell){
|
|
|
//e - the click event object
|
|
//e - the click event object
|
|
|
//cell - cell component
|
|
//cell - cell component
|
|
|
- let determine = cell._cell.row.getData()['人材机编码'] != '410000F';
|
|
|
|
|
|
|
+ let determine = !cell._cell.row.getData()['人材机编码'].includes('10000F');
|
|
|
let determine2 = !cell._cell.row.getData()['人材机编码'].includes('000FE');
|
|
let determine2 = !cell._cell.row.getData()['人材机编码'].includes('000FE');
|
|
|
let determine3 = !cell._cell.row.getData()['人材机编码'].startsWith('D');
|
|
let determine3 = !cell._cell.row.getData()['人材机编码'].startsWith('D');
|
|
|
if(cell._cell.column.getPosition() == 2 && !isQdrcj.current && determine && determine2 && determine3) {
|
|
if(cell._cell.column.getPosition() == 2 && !isQdrcj.current && determine && determine2 && determine3) {
|
|
@@ -1412,16 +1414,16 @@ export default function Qingdan3({name, bh, bt, rgde, jxde, clde, beizhu/*后台
|
|
|
<CheckCell dataKey="id" checkedKeys={checkedKeys} onChange={handleCheck} disabled={!fuzhuEnable}></CheckCell>
|
|
<CheckCell dataKey="id" checkedKeys={checkedKeys} onChange={handleCheck} disabled={!fuzhuEnable}></CheckCell>
|
|
|
</Column>
|
|
</Column>
|
|
|
<Column width={80} align="center">
|
|
<Column width={80} align="center">
|
|
|
- <HeaderCell style={{ "font-size": "0.875rem" }}>序号</HeaderCell>
|
|
|
|
|
- <Cell dataKey="序号" style={{ "font-size": "0.875rem" }}></Cell>
|
|
|
|
|
|
|
+ <HeaderCell style={{ "fontSize": "0.875rem" }}>序号</HeaderCell>
|
|
|
|
|
+ <Cell dataKey="序号" style={{ "fontSize": "0.875rem" }}></Cell>
|
|
|
</Column>
|
|
</Column>
|
|
|
<Column width={120} align="center">
|
|
<Column width={120} align="center">
|
|
|
- <HeaderCell style={{ "font-size": "0.875rem" }}>编号</HeaderCell>
|
|
|
|
|
- <Cell dataKey="编号" style={{ "font-size": "0.875rem" }}></Cell>
|
|
|
|
|
|
|
+ <HeaderCell style={{ "fontSize": "0.875rem" }}>编号</HeaderCell>
|
|
|
|
|
+ <Cell dataKey="编号" style={{ "fontSize": "0.875rem" }}></Cell>
|
|
|
</Column>
|
|
</Column>
|
|
|
<Column fullText width={650} align="center">
|
|
<Column fullText width={650} align="center">
|
|
|
- <HeaderCell style={{ "font-size": "0.875rem" }}>说明</HeaderCell>
|
|
|
|
|
- <Cell dataKey="说明" style={{ "font-size": "0.875rem" }}></Cell>
|
|
|
|
|
|
|
+ <HeaderCell style={{ "fontSize": "0.875rem" }}>说明</HeaderCell>
|
|
|
|
|
+ <Cell dataKey="说明" style={{ "fontSize": "0.875rem" }}></Cell>
|
|
|
</Column>
|
|
</Column>
|
|
|
</Table>
|
|
</Table>
|
|
|
</CustomProvider>
|
|
</CustomProvider>
|