|
|
@@ -1,4 +1,4 @@
|
|
|
-import {copy, danxiangdinge_index, danxiangdinge_index_djcs, renameDingE, extractFuzhu, match_target, azfy, addChildren} from './utils';
|
|
|
+import {copy, danxiangdinge_index, danxiangdinge_index_djcs, renameDingE, extractFuzhu, match_target, azfy, xsazfy, addChildren} from './utils';
|
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
|
class Service{
|
|
|
|
|
|
@@ -2341,7 +2341,14 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
let res = JSON.parse(dinge);
|
|
|
let keys = Object.keys(res['DEBH']);
|
|
|
let key = keys[0];
|
|
|
- let tips = azfy(res['DEBH'][key], res['GCLMC'][key]);
|
|
|
+ let tips = null;
|
|
|
+ if (res['actual_zhuanye'] == 30) {
|
|
|
+ tips = azfy(res['DEBH'][key], res['GCLMC'][key]);
|
|
|
+ }
|
|
|
+ if (res['actual_zhuanye'] == 60) {
|
|
|
+ tips = xsazfy(res['DEBH'][key], res['GCLMC'][key]);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if (tips != null) {
|
|
|
res['rgde'] = tips['rgde'];
|
|
|
@@ -2361,24 +2368,24 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
let sum = Number(sl) * Number(rgf) * Number(res['azfytag'][1]) / Number(100);
|
|
|
dercj.push(['', res['rgde'][0]['CLBH'], res['rgde'][0]['CLMC'], '', '元',
|
|
|
'1', '', '', '1', '', Number(sum) * Number(res['azfytag'][2]) / Number(100), Number(sum) * Number(res['azfytag'][2]) / Number(100),
|
|
|
- '', '', '', '', '', '' ]);
|
|
|
+ '', '', '', '', uuidv4(), '' ]);
|
|
|
dercj.push(['', res['clde'][0]['CLBH'], res['clde'][0]['CLMC'], '', '元',
|
|
|
'1', '', '', '2', '', Number(sum) * Number(res['azfytag'][3]) / Number(100), Number(sum) * Number(res['azfytag'][3]) / Number(100),
|
|
|
- '', '', '', '', '', '' ]);
|
|
|
+ '', '', '', '', uuidv4(), '' ]);
|
|
|
dercj.push(['', res['jxde'][0]['jxbh'], res['jxde'][0]['jxmc'], '', '元',
|
|
|
'1', '', '', '3', '', Number(sum) * Number(res['azfytag'][4]) / Number(100), Number(sum) * Number(res['azfytag'][4]) / Number(100),
|
|
|
- '', '', '', '', '', '' ]);
|
|
|
+ '', '', '', '', uuidv4(), '' ]);
|
|
|
} else if (res['azfytag'][0] == '人工费+机械费') {
|
|
|
let sum = Number(sl) * (Number(jxf) + Number(rgf)) * Number(res['azfytag'][1]) / Number(100);
|
|
|
dercj.push(['', res['rgde'][0]['CLBH'], res['rgde'][0]['CLMC'], '', '元',
|
|
|
'1', '', '', '1', '', Number(sum) * Number(res['azfytag'][2]) / Number(100), Number(sum) * Number(res['azfytag'][2]) / Number(100),
|
|
|
- '', '', '', '', '', '' ]);
|
|
|
+ '', '', '', '', uuidv4(), '' ]);
|
|
|
dercj.push(['', res['clde'][0]['CLBH'], res['clde'][0]['CLMC'], '', '元',
|
|
|
'1', '', '', '2', '', Number(sum) * Number(res['azfytag'][3]) / Number(100), Number(sum) * Number(res['azfytag'][3]) / Number(100),
|
|
|
- '', '', '', '', '', '' ]);
|
|
|
+ '', '', '', '', uuidv4(), '' ]);
|
|
|
dercj.push(['', res['jxde'][0]['jxbh'], res['jxde'][0]['jxmc'], '', '元',
|
|
|
'1', '', '', '3', '', Number(sum) * Number(res['azfytag'][4]) / Number(100), Number(sum) * Number(res['azfytag'][4]) / Number(100),
|
|
|
- '', '', '', '', '', '' ]);
|
|
|
+ '', '', '', '', uuidv4(), '' ]);
|
|
|
|
|
|
}
|
|
|
}
|
|
|
@@ -2545,7 +2552,14 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
let res = copy(dingeclick);
|
|
|
let keys = Object.keys(res['DEBH']);
|
|
|
let key = keys[0];
|
|
|
- let tips = azfy(res['DEBH'][key], res['GCLMC'][key]);
|
|
|
+ let tips = null;
|
|
|
+ if (res['actual_zhuanye'] == 30) {
|
|
|
+ tips = azfy(res['DEBH'][key], res['GCLMC'][key]);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (res['actual_zhuanye'] == 60) {
|
|
|
+ tips = xsazfy(res['DEBH'][key], res['GCLMC'][key]);
|
|
|
+ }
|
|
|
if (tips != null) {
|
|
|
res['rgde'] = tips['rgde'];
|
|
|
res['clde'] = tips['clde'];
|
|
|
@@ -2687,7 +2701,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
'备注': null,
|
|
|
"dercj": [["ID", "人材机编码", "名称", "规格型号", "单位", "单价", "产地",
|
|
|
"供应厂商", "人材机类别", "甲供标志", "含量", "合价", "暂估价标志", "主要材料标志", "主材标志", "设备标志", 'key', 'bc' ],
|
|
|
- ['', bh, mingcheng, '', danwei, '', '', '', '2', '', '1', '', '', '', '', '', '', '' ]
|
|
|
+ ['', bh, mingcheng, '', danwei, '', '', '', '2', '', '1', '', '', '', '', '', uuidv4(), '' ]
|
|
|
],
|
|
|
'key' : uuidv4(),
|
|
|
"fuzhuEnable": false,
|
|
|
@@ -2740,7 +2754,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
'备注': null,
|
|
|
"dercj": [["ID", "人材机编码", "名称", "规格型号", "单位", "单价", "产地",
|
|
|
"供应厂商", "人材机类别", "甲供标志", "含量", "合价", "暂估价标志", "主要材料标志", "主材标志", "设备标志", "key" , "bc" ],
|
|
|
- ['', bh, mingcheng, '', danwei, '', '', '', '2', '', '1', '', '', '', '', '', "", "" ]
|
|
|
+ ['', bh, mingcheng, '', danwei, '', '', '', '2', '', '1', '', '', '', '', '', uuidv4(), "" ]
|
|
|
],
|
|
|
'key' : uuidv4(),
|
|
|
"fuzhuEnable": false
|