|
@@ -10,6 +10,7 @@
|
|
|
<by-tool :propConfig="toolConfig" @clickHandle="insideTools" />
|
|
|
<div class="box-shadow">
|
|
|
<by-form :propConfig="detailConfig" ref="addFormId"></by-form>
|
|
|
+ <by-table :propConfig="tableConfig" ref="table"></by-table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -268,12 +269,12 @@
|
|
|
},
|
|
|
{
|
|
|
width: 200,
|
|
|
- title: '货物总重量,单位kg',
|
|
|
+ title: '货物总重量',
|
|
|
field: 'tmsTotalWeight',
|
|
|
},
|
|
|
{
|
|
|
width: 200,
|
|
|
- title: '货物总体积,单位立方米',
|
|
|
+ title: '货物总体积',
|
|
|
field: 'tmsTotalVolume',
|
|
|
},
|
|
|
{
|
|
@@ -281,16 +282,6 @@
|
|
|
title: '承运商名称',
|
|
|
field: 'tmsCarrierName',
|
|
|
},
|
|
|
- {
|
|
|
- width: 200,
|
|
|
- title: '承运商id',
|
|
|
- field: 'tmsCarrierInfoId',
|
|
|
- },
|
|
|
- {
|
|
|
- width: 200,
|
|
|
- title: '上游规则id',
|
|
|
- field: 'tmsRuleUpId',
|
|
|
- },
|
|
|
{
|
|
|
width: 200,
|
|
|
title: '车型要求',
|
|
@@ -662,7 +653,60 @@
|
|
|
}
|
|
|
]
|
|
|
]
|
|
|
-
|
|
|
+ }
|
|
|
+ tableConfig = {
|
|
|
+ attr: {
|
|
|
+ size: 'mini',
|
|
|
+ align: 'left',
|
|
|
+ readonly: true
|
|
|
+ },
|
|
|
+ columns:
|
|
|
+ [{
|
|
|
+ width: 250,
|
|
|
+ title: '物料名称',
|
|
|
+ field: 'tmsGoodsName',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 180,
|
|
|
+ title: '物料编码',
|
|
|
+ field: 'tmsGoodsCode',
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // width: 180,
|
|
|
+ // title: '物料型号',
|
|
|
+ // field: 'tmsGoodsModel',
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ width: 180,
|
|
|
+ title: '单价',
|
|
|
+ field: 'tmsGoodsPrice',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 180,
|
|
|
+ title: '数量',
|
|
|
+ field: 'tmsQuantity',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 180,
|
|
|
+ title: '数量单位',
|
|
|
+ field: 'tmsQuantityUnit',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 180,
|
|
|
+ title: '小计',
|
|
|
+ field: 'tmsGoodsTotalPrice',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 180,
|
|
|
+ title: '重量',
|
|
|
+ field: 'tmsWeight',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 180,
|
|
|
+ title: '体积',
|
|
|
+ field: 'tmsVolume',
|
|
|
+ },
|
|
|
+ ]
|
|
|
}
|
|
|
mounted() {
|
|
|
this.timer = setInterval(() => {
|
|
@@ -689,11 +733,12 @@
|
|
|
let loading = this.$loading({ target: '.main-container' });
|
|
|
getSingleData({ id: e.id }).then((res : any) => {
|
|
|
if (res.code === 200) {
|
|
|
- let data = res.data;
|
|
|
- // data.tmsOrderStatus === 0 ? data.tmsOrderStatus = "0" : "";
|
|
|
this.isShow = 'detail';
|
|
|
loading.close();
|
|
|
- this.$nextTick(() => (this as any).$refs.addFormId.setValue(data));
|
|
|
+ this.$nextTick(() => {
|
|
|
+ (this as any).$refs.addFormId.setValue(res.data);
|
|
|
+ (this as any).$refs.table.setValue(res.data.subItemList);
|
|
|
+ });
|
|
|
} else loading.close();
|
|
|
}).catch(() => loading.close());
|
|
|
}
|