apply-clients 3.4.28 → 3.4.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
<th class="textNoLineBreak">材料数量</th>
|
|
11
11
|
<th class="textNoLineBreak">材料金额</th>
|
|
12
12
|
<th class="textNoLineBreak">材料备注</th>
|
|
13
|
+
<th class="textNoLineBreak">材料总金额:{{$parent.$parent.summoney}}</th>
|
|
14
|
+
<th class="textNoLineBreak" v-if="$parent.$parent.selectdata.defname=='通气点火'">点火材料金额:{{$parent.$parent.twomoney}}</th>
|
|
13
15
|
<th class="textNoLineBreak">
|
|
14
16
|
<button class="button_new button_spacing" type="button" @click="$parent.$parent.openMaterialModal()">添加</button>
|
|
15
17
|
<button type="button" class="btn btn-info head-but" v-if="$parent.$parent.mark === 0"
|
|
@@ -40,11 +42,11 @@
|
|
|
40
42
|
<nobr>{{row.f_material_money}}</nobr>
|
|
41
43
|
</td>
|
|
42
44
|
<td style="text-align: center;">
|
|
43
|
-
<nobr>{{row.
|
|
45
|
+
<nobr>{{row.f_operator}}</nobr>
|
|
44
46
|
</td>
|
|
45
47
|
<td style="text-align: center;">
|
|
46
|
-
<button type="button" class="button_search button_spacing" @click="$parent.$parent.updateMaterial($index,row)">修改</button>
|
|
47
|
-
<button type="button" class="button_delete button_spacing" @click="$parent.$parent.deleteMaterial(row)">删除</button>
|
|
48
|
+
<button type="button" class="button_search button_spacing" :disabled="row.f_operator==this.$login.f.name ? false : true" @click="$parent.$parent.updateMaterial($index,row)">修改</button>
|
|
49
|
+
<button type="button" class="button_delete button_spacing":disabled="row.f_operator==this.$login.f.name ? false : true" @click="$parent.$parent.deleteMaterial(row)">删除</button>
|
|
48
50
|
</td>
|
|
49
51
|
</tr>
|
|
50
52
|
</template>
|
|
@@ -188,8 +190,10 @@
|
|
|
188
190
|
rows: []
|
|
189
191
|
},
|
|
190
192
|
title:'新增',
|
|
193
|
+
summoney:0,
|
|
191
194
|
showMaterialModal:false,
|
|
192
195
|
eticket_show:false,
|
|
196
|
+
twomoney:0,
|
|
193
197
|
materials:[
|
|
194
198
|
{
|
|
195
199
|
material:'',
|
|
@@ -208,8 +212,22 @@
|
|
|
208
212
|
},
|
|
209
213
|
ready(){
|
|
210
214
|
this.getOnetoManyData()
|
|
215
|
+
console.log('打印登陆人',this.$login.f.name)
|
|
211
216
|
},
|
|
212
217
|
methods: {
|
|
218
|
+
sumMaterialzong(materials){
|
|
219
|
+
debugger
|
|
220
|
+
this.summoney=0
|
|
221
|
+
for(var i=0;i<materials.length; i++){
|
|
222
|
+
this.summoney =parseFloat(parseFloat(materials[i].f_material_money)+ parseFloat(this.summoney)).toFixed(2)
|
|
223
|
+
}
|
|
224
|
+
this.twomoney= parseFloat(parseFloat(this.summoney)- parseFloat(this.selectdata.f_sumtwo_money)).toFixed(2)
|
|
225
|
+
console.log('打印材料总金额',this.summoney)
|
|
226
|
+
if(this.selectdata.defname=='工程施工'){
|
|
227
|
+
this.selectdata.f_sumtwo_money = this.summoney
|
|
228
|
+
console.log('打印首次材料金额',this.selectdata.f_sumtwo_money)
|
|
229
|
+
}
|
|
230
|
+
},
|
|
213
231
|
sumMaterialmoney(index){
|
|
214
232
|
debugger
|
|
215
233
|
this.materials[index].f_material_money = this.materials[index].f_material_price * this.materials[index].f_material_number
|
|
@@ -226,6 +244,7 @@
|
|
|
226
244
|
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
227
245
|
)
|
|
228
246
|
this.onetomany.rows = res.data
|
|
247
|
+
this.sumMaterialzong(this.onetomany.rows)
|
|
229
248
|
},
|
|
230
249
|
async openMaterialModal () {
|
|
231
250
|
this.getMateralNames()
|
|
@@ -321,28 +340,23 @@
|
|
|
321
340
|
)
|
|
322
341
|
debugger
|
|
323
342
|
// if(res.data == 200){
|
|
324
|
-
//
|
|
325
|
-
//
|
|
326
|
-
//
|
|
327
|
-
//
|
|
328
|
-
//
|
|
329
|
-
//
|
|
330
|
-
//
|
|
331
|
-
//
|
|
332
|
-
//
|
|
333
|
-
// }
|
|
334
|
-
// let
|
|
335
|
-
//
|
|
336
|
-
//
|
|
337
|
-
//
|
|
338
|
-
// }
|
|
339
|
-
//
|
|
340
|
-
//
|
|
341
|
-
// 'POST',
|
|
342
|
-
// `rs/logic/saveReplenishContract`,
|
|
343
|
-
// {data: data},
|
|
344
|
-
// {resolveMsg: null, rejectMsg: '补充协议成功!!!'}
|
|
345
|
-
// )
|
|
343
|
+
//
|
|
344
|
+
// // let contractbu={
|
|
345
|
+
// // f_contract_money:money,
|
|
346
|
+
// // f_contract_type:'材料合同'
|
|
347
|
+
// // }
|
|
348
|
+
// // let data ={
|
|
349
|
+
// // contract:contractbu,
|
|
350
|
+
// // selectdata: this.selectdata,
|
|
351
|
+
// // user: this.$login.f,
|
|
352
|
+
// // }
|
|
353
|
+
// // let http1 = new HttpResetClass()
|
|
354
|
+
// // let res = await http1.load(
|
|
355
|
+
// // 'POST',
|
|
356
|
+
// // `rs/logic/saveReplenishContract`,
|
|
357
|
+
// // {data: data},
|
|
358
|
+
// // {resolveMsg: null, rejectMsg: '补充协议成功!!!'}
|
|
359
|
+
// // )
|
|
346
360
|
// }
|
|
347
361
|
this.closeMaterials()
|
|
348
362
|
},
|