修复订单数据
This commit is contained in:
parent
466a803253
commit
3a8b106f90
|
|
@ -195,10 +195,18 @@ export default {
|
||||||
orderType: data.types,
|
orderType: data.types,
|
||||||
state: data.status,
|
state: data.status,
|
||||||
retainageMoney: data.moneyb,
|
retainageMoney: data.moneyb,
|
||||||
images: prototype.$utils.isType(data.img, "array") ? data.img : [],
|
|
||||||
worker: {},
|
worker: {},
|
||||||
workerList: [],
|
workerList: [],
|
||||||
};
|
};
|
||||||
|
if (options.listType == 't1') {
|
||||||
|
order.images = [];
|
||||||
|
data.goods.forEach(item => {
|
||||||
|
order.images.push(item.thumbnail);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (options.listType == 't2') {
|
||||||
|
order.images = prototype.$utils.isType(data.img, "array") ? data.img : [];
|
||||||
|
}
|
||||||
// 地址
|
// 地址
|
||||||
order.address = {
|
order.address = {
|
||||||
id: data.address.id,
|
id: data.address.id,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue