优化1.6 拆分费用bug

This commit is contained in:
wuxw 2024-01-09 17:08:35 +08:00
parent 5cd9a1bde4
commit da2160d6ea
2 changed files with 18 additions and 13 deletions

View File

@ -41,7 +41,7 @@
resourceStores.forEach((newItem, newIndex) => { resourceStores.forEach((newItem, newIndex) => {
newItem.rsId = ''; newItem.rsId = '';
newItem.timesId = ''; newItem.timesId = '';
if(newItem.times && newItem.times.length >0){ if (newItem.times && newItem.times.length > 0) {
newItem.timesId = newItem.times[0].timesId; newItem.timesId = newItem.times[0].timesId;
} }
oldList.forEach((oldItem) => { oldList.forEach((oldItem) => {
@ -50,7 +50,6 @@
} }
}) })
}) })
})
// 合并已有商品和新添加商品 // 合并已有商品和新添加商品
resourceStores.push.apply(resourceStores, oldList); resourceStores.push.apply(resourceStores, oldList);
// 过滤空元素 // 过滤空元素
@ -107,7 +106,7 @@
}, },
_loadResourceSuppliers() { _loadResourceSuppliers() {
let param = { let param = {
params: {page: 1, row: 50} params: { page: 1, row: 50 }
}; };
//发送get请求 //发送get请求
vc.http.apiGet('/resourceSupplier.listResourceSuppliers', vc.http.apiGet('/resourceSupplier.listResourceSuppliers',
@ -196,7 +195,7 @@
} }
let _data = _staffInfo.data; let _data = _staffInfo.data;
vc.copyObject(_data[0], $that.addItemOutInfo.audit); vc.copyObject(_data[0], $that.addItemOutInfo.audit);
if(!_data[0].assignee.startsWith('-')){ if (!_data[0].assignee.startsWith('-')) {
$that.addItemOutInfo.audit.staffId = $that.addItemOutInfo.audit.assignee; $that.addItemOutInfo.audit.staffId = $that.addItemOutInfo.audit.assignee;
} }
}, },

View File

@ -128,6 +128,9 @@
<th class="text-center"> <th class="text-center">
<vc:i18n name="房屋号" namespace="listOwnerCar"></vc:i18n> <vc:i18n name="房屋号" namespace="listOwnerCar"></vc:i18n>
</th> </th>
<th data-hide="phone" class="text-center">
<vc:i18n name="车牌类型" namespace="listOwnerCar"></vc:i18n>
</th>
<th data-hide="phone" class="text-center"> <th data-hide="phone" class="text-center">
<vc:i18n name="车辆类型" namespace="listOwnerCar"></vc:i18n> <vc:i18n name="车辆类型" namespace="listOwnerCar"></vc:i18n>
</th> </th>
@ -210,6 +213,9 @@
@click="_viewIotStateRemark(car)">{{car.iotStateName}}</a>) @click="_viewIotStateRemark(car)">{{car.iotStateName}}</a>)
</span> </span>
</td> </td>
<td class="text-center">
{{car.remark || '-'}}
</td>
<td class="text-center"> <td class="text-center">
<div class="btn-group" v-if="car.state != '3003' "> <div class="btn-group" v-if="car.state != '3003' ">
<button class="btn-white btn btn-xs" <button class="btn-white btn btn-xs"