Commit a9a1fac9ddc98004ee948eebbf3a0604b67e235c

Authored by 2c2c2c
1 parent 3447dcb8

电子联单bug 修复,导出联单,打印联单

trash-garbage/src/main/java/com/trash/garbage/pojo/domain/GarOrderMatchAsk.java
@@ -81,8 +81,9 @@ public class GarOrderMatchAsk implements Serializable { @@ -81,8 +81,9 @@ public class GarOrderMatchAsk implements Serializable {
81 @Excel(name = "运输驾驶员手机号") 81 @Excel(name = "运输驾驶员手机号")
82 private String garOrderHandlerTel; 82 private String garOrderHandlerTel;
83 /** 83 /**
84 - * 订单载重 84 + * 车辆载重
85 */ 85 */
  86 + @Excel(name = "车辆载重")
86 private Double garCarryingWeight; 87 private Double garCarryingWeight;
87 88
88 /** 89 /**
@@ -135,7 +136,7 @@ public class GarOrderMatchAsk implements Serializable { @@ -135,7 +136,7 @@ public class GarOrderMatchAsk implements Serializable {
135 /** 136 /**
136 * 接收量 137 * 接收量
137 */ 138 */
138 - @Excel(name = "接收量") 139 +// @Excel(name = "接收量")
139 private Double garReceptionQuantity; 140 private Double garReceptionQuantity;
140 141
141 /** 142 /**
trash-ui/src/views/ask/ask/index.vue
@@ -127,7 +127,7 @@ @@ -127,7 +127,7 @@
127 <span>{{ parseTime(scope.row.garUpdateTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> 127 <span>{{ parseTime(scope.row.garUpdateTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
128 </template> 128 </template>
129 </el-table-column> 129 </el-table-column>
130 - <el-table-column label="接收量(吨)" align="center" prop="garReceptionQuantity" /> 130 + <el-table-column label="车辆载重(吨)" align="center" prop="garCarryingWeight" />
131 <el-table-column label="趟次类型" align="center" prop="garOrderType" > 131 <el-table-column label="趟次类型" align="center" prop="garOrderType" >
132 <template slot-scope="scope"> 132 <template slot-scope="scope">
133 <span v-if="scope.row.garOrderType == 0">正常趟次</span> 133 <span v-if="scope.row.garOrderType == 0">正常趟次</span>
@@ -190,7 +190,7 @@ @@ -190,7 +190,7 @@
190 <td>联系电话</td> 190 <td>联系电话</td>
191 <td>{{ form.garOrderPhone || '-' }}</td> 191 <td>{{ form.garOrderPhone || '-' }}</td>
192 <td>车次</td> 192 <td>车次</td>
193 - <td>{{ form.dropCarNum || '-' }}</td> 193 + <td>{{ dropCarNum }}/{{ form.dropCarNum || '-' }}</td>
194 </tr> 194 </tr>
195 <tr> 195 <tr>
196 <td>投放地址</td> 196 <td>投放地址</td>
@@ -231,8 +231,8 @@ @@ -231,8 +231,8 @@
231 <tr> 231 <tr>
232 <td>接收车牌</td> 232 <td>接收车牌</td>
233 <td>{{ form.garHandlerCarCode || '-' }}</td> 233 <td>{{ form.garHandlerCarCode || '-' }}</td>
234 - <td>接收量(吨)</td>  
235 - <td>{{ form.garReceptionQuantity || '-' }}</td> 234 + <td>载重(吨)</td>
  235 + <td>{{ form.garCarryingWeight || '-' }}</td>
236 </tr> 236 </tr>
237 237
238 <!-- 备注 --> 238 <!-- 备注 -->
@@ -296,7 +296,6 @@ export default { @@ -296,7 +296,6 @@ export default {
296 garUpdateBy: null, 296 garUpdateBy: null,
297 garRemark: null, 297 garRemark: null,
298 garCarryingWeight: null, 298 garCarryingWeight: null,
299 - garReceptionQuantity: null,  
300 dropPointId: null, 299 dropPointId: null,
301 dropPointName: null, 300 dropPointName: null,
302 garOrderType: null, 301 garOrderType: null,
@@ -311,7 +310,8 @@ export default { @@ -311,7 +310,8 @@ export default {
311 // 表单校验 310 // 表单校验
312 rules: { 311 rules: {
313 }, 312 },
314 - isPrint: false 313 + isPrint: false,
  314 + dropCarNum: 0
315 }; 315 };
316 }, 316 },
317 created() { 317 created() {
@@ -380,7 +380,6 @@ export default { @@ -380,7 +380,6 @@ export default {
380 garUpdateBy: null, 380 garUpdateBy: null,
381 garRemark: null, 381 garRemark: null,
382 garCarryingWeight: null, 382 garCarryingWeight: null,
383 - garReceptionQuantity: null,  
384 dropPointId: null, 383 dropPointId: null,
385 dropPointName: null, 384 dropPointName: null,
386 garOrderType: null, 385 garOrderType: null,
@@ -411,7 +410,15 @@ export default { @@ -411,7 +410,15 @@ export default {
411 /** 修改按钮操作 */ 410 /** 修改按钮操作 */
412 handleUpdate(row) { 411 handleUpdate(row) {
413 this.reset(); 412 this.reset();
  413 + this.dropCarNum = 0;
414 const garId = row.garId || this.ids 414 const garId = row.garId || this.ids
  415 + listAsk({"garOrderId":row.garOrderId}).then(response => {
  416 + for(let i = 0;i<response.rows.length;i++){
  417 + if(response.rows[i].garHandlerCarCode!=null && response.rows[i].garHandlerCarCode !== ''){
  418 + this.dropCarNum++;
  419 + }
  420 + }
  421 + });
415 getAsk(garId).then(response => { 422 getAsk(garId).then(response => {
416 this.form = response.data; 423 this.form = response.data;
417 this.open = true; 424 this.open = true;