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