|
|
@@ -163,16 +163,7 @@ export default function Qingdan({name, bh, bt, rgde, jxde, clde, beizhu/*后台
|
|
|
React.useEffect(
|
|
|
() => {
|
|
|
Service.generateQingdanmingxi(name, bh, bt).then(x=>{
|
|
|
- //console.log(x);
|
|
|
- //let y = x.map(t=>{
|
|
|
- // t["操作"]=`<div style="text-align:center"> <button>全部删除</button></div>`;
|
|
|
- // return t;
|
|
|
- //});
|
|
|
- /*
|
|
|
- let y = [{'操作' : '', '序号' : '', '清单编码' : '', '名称' : '', '项目特征' : '', '计算规则' : '', '单位' : '',
|
|
|
- '数量' : '', '综合单价' : '', '合价' : '', '人工费' : '', '主材费' : '', '设备费' : '',
|
|
|
- '辅材费' : '', '材料费' : '', '机械费' : '', '管理费' : '', '利润' : '',
|
|
|
- '暂估价' : '', '综合人工工日' : '', '备注' : '', 'key' : '1'}]; */
|
|
|
+ //切换清单将重置缓存和操作栈
|
|
|
|
|
|
setDetail(x);
|
|
|
detailRef.current = x;
|
|
|
@@ -654,17 +645,105 @@ export default function Qingdan({name, bh, bt, rgde, jxde, clde, beizhu/*后台
|
|
|
|
|
|
}
|
|
|
},
|
|
|
- { dataIndex: '综合单价' , title : '综合单价' , key : '综合单价' , width : 100 },
|
|
|
- { dataIndex: '合价' , title : '合价' , key : '合价' , width : 100 },
|
|
|
- { dataIndex: '人工费' , title : '人工费' , key : '人工费' , width : 100 },
|
|
|
- { dataIndex: '主材费' , title : '主材费' , key : '主材费' , width : 100 },
|
|
|
- { dataIndex: '设备费' , title : '设备费' , key : '设备费' , width : 100 },
|
|
|
- { dataIndex: '辅材费' , title : '辅材费' , key : '辅材费' , width : 100 },
|
|
|
- { dataIndex: '材料费' , title : '材料费' , key : '材料费' , width : 100 },
|
|
|
- { dataIndex: '机械费' , title : '机械费' , key : '机械费' , width : 100 },
|
|
|
- { dataIndex: '管理费' , title : '管理费' , key : '管理费' , width : 100 },
|
|
|
- { dataIndex: '利润' , title : '利润' , key : '利润' , width : 100 },
|
|
|
- { dataIndex: '暂估价' , title : '暂估价' , key : '暂估价' , width : 100 },
|
|
|
+ { dataIndex: '综合单价' , title : '综合单价' , key : '综合单价' , width : 100 ,
|
|
|
+ render: (text, record) => {
|
|
|
+ let temp = Number(text);
|
|
|
+ let temp2 = temp.toFixed(2);
|
|
|
+ let temp3 = temp2.toString();
|
|
|
+ return ( <plaintext>{temp3}</plaintext> );
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { dataIndex: '合价' , title : '合价' , key : '合价' , width : 100 ,
|
|
|
+ render: (text, record) => {
|
|
|
+ let temp = Number(text);
|
|
|
+ let temp2 = temp.toFixed(2);
|
|
|
+ let temp3 = temp2.toString();
|
|
|
+ return ( <plaintext>{temp3}</plaintext> );
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { dataIndex: '人工费' , title : '人工费' , key : '人工费' , width : 100 ,
|
|
|
+ render: (text, record) => {
|
|
|
+ let temp = Number(text);
|
|
|
+ let temp2 = temp.toFixed(2);
|
|
|
+ let temp3 = temp2.toString();
|
|
|
+ return ( <plaintext>{temp3}</plaintext> );
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { dataIndex: '主材费' , title : '主材费' , key : '主材费' , width : 100 ,
|
|
|
+ render: (text, record) => {
|
|
|
+ let temp = Number(text);
|
|
|
+ let temp2 = temp.toFixed(2);
|
|
|
+ let temp3 = temp2.toString();
|
|
|
+ return ( <plaintext>{temp3}</plaintext> );
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { dataIndex: '设备费' , title : '设备费' , key : '设备费' , width : 100 ,
|
|
|
+ render: (text, record) => {
|
|
|
+ let temp = Number(text);
|
|
|
+ let temp2 = temp.toFixed(2);
|
|
|
+ let temp3 = temp2.toString();
|
|
|
+ return ( <plaintext>{temp3}</plaintext> );
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { dataIndex: '辅材费' , title : '辅材费' , key : '辅材费' , width : 100 ,
|
|
|
+ render: (text, record) => {
|
|
|
+ let temp = Number(text);
|
|
|
+ let temp2 = temp.toFixed(2);
|
|
|
+ let temp3 = temp2.toString();
|
|
|
+ return ( <plaintext>{temp3}</plaintext> );
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { dataIndex: '材料费' , title : '材料费' , key : '材料费' , width : 100 ,
|
|
|
+ render: (text, record) => {
|
|
|
+ let temp = Number(text);
|
|
|
+ let temp2 = temp.toFixed(2);
|
|
|
+ let temp3 = temp2.toString();
|
|
|
+ return ( <plaintext>{temp3}</plaintext> );
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { dataIndex: '机械费' , title : '机械费' , key : '机械费' , width : 100 ,
|
|
|
+ render: (text, record) => {
|
|
|
+ let temp = Number(text);
|
|
|
+ let temp2 = temp.toFixed(2);
|
|
|
+ let temp3 = temp2.toString();
|
|
|
+ return ( <plaintext>{temp3}</plaintext> );
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { dataIndex: '管理费' , title : '管理费' , key : '管理费' , width : 100 ,
|
|
|
+ render: (text, record) => {
|
|
|
+ let temp = Number(text);
|
|
|
+ let temp2 = temp.toFixed(2);
|
|
|
+ let temp3 = temp2.toString();
|
|
|
+ return ( <plaintext>{temp3}</plaintext> );
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { dataIndex: '利润' , title : '利润' , key : '利润' , width : 100 ,
|
|
|
+ render: (text, record) => {
|
|
|
+ let temp = Number(text);
|
|
|
+ let temp2 = temp.toFixed(2);
|
|
|
+ let temp3 = temp2.toString();
|
|
|
+ return ( <plaintext>{temp3}</plaintext> );
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { dataIndex: '暂估价' , title : '暂估价' , key : '暂估价' , width : 100 ,
|
|
|
+ render: (text, record) => {
|
|
|
+ let temp = Number(text);
|
|
|
+ let temp2 = temp.toFixed(2);
|
|
|
+ let temp3 = temp2.toString();
|
|
|
+ return ( <plaintext>{temp3}</plaintext> );
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
{ dataIndex: '综合人工工日', title : '综合人工工日', key : '综合人工工日', width : 100 },
|
|
|
{ dataIndex: '备注' , title : '备注' , key : '备注' , width : 100 },
|
|
|
|