|
@@ -57,15 +57,16 @@
|
|
|
:prop="'datasource.' + scope.$index + '.' + countObj.countKey"
|
|
:prop="'datasource.' + scope.$index + '.' + countObj.countKey"
|
|
|
>
|
|
>
|
|
|
{{ scope.row[countObj.countKey] }}
|
|
{{ scope.row[countObj.countKey] }}
|
|
|
|
|
+ {{ scope.row[countObj.unitKey] }}
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
- <template v-slot:saleUnit="scope">
|
|
|
|
|
|
|
+ <!-- <template v-slot:saleUnit="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
:prop="'datasource.' + scope.$index + '.' + countObj.unitKey"
|
|
:prop="'datasource.' + scope.$index + '.' + countObj.unitKey"
|
|
|
>
|
|
>
|
|
|
{{ scope.row[countObj.unitKey] }}
|
|
{{ scope.row[countObj.unitKey] }}
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- </template>
|
|
|
|
|
|
|
+ </template> -->
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
|
<div class="headbox">
|
|
<div class="headbox">
|
|
@@ -272,14 +273,14 @@
|
|
|
headerSlot: 'headerTotalCount',
|
|
headerSlot: 'headerTotalCount',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- width: 150,
|
|
|
|
|
- prop: 'saleUnit',
|
|
|
|
|
- label: '单位',
|
|
|
|
|
- slot: 'saleUnit',
|
|
|
|
|
- headerSlot: 'headerTotalCount',
|
|
|
|
|
- align: 'center'
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // {
|
|
|
|
|
+ // width: 150,
|
|
|
|
|
+ // prop: 'saleUnit',
|
|
|
|
|
+ // label: '单位',
|
|
|
|
|
+ // slot: 'saleUnit',
|
|
|
|
|
+ // headerSlot: 'headerTotalCount',
|
|
|
|
|
+ // align: 'center'
|
|
|
|
|
+ // },
|
|
|
{
|
|
{
|
|
|
width: 120,
|
|
width: 120,
|
|
|
prop: 'packingSpecification',
|
|
prop: 'packingSpecification',
|
|
@@ -292,22 +293,32 @@
|
|
|
prop: 'totalCount',
|
|
prop: 'totalCount',
|
|
|
label: '计量数量',
|
|
label: '计量数量',
|
|
|
slot: 'totalCount',
|
|
slot: 'totalCount',
|
|
|
|
|
+ formatter: (row, column) => {
|
|
|
|
|
+ if (row.totalCount) {
|
|
|
|
|
+ return row.totalCount + ' ' + row.measuringUnit;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
headerSlot: 'headerTotalCount',
|
|
headerSlot: 'headerTotalCount',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- width: 120,
|
|
|
|
|
- prop: 'measuringUnit',
|
|
|
|
|
- label: '计量单位',
|
|
|
|
|
- slot: 'measuringUnit',
|
|
|
|
|
- align: 'center'
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // {
|
|
|
|
|
+ // width: 120,
|
|
|
|
|
+ // prop: 'measuringUnit',
|
|
|
|
|
+ // label: '计量单位',
|
|
|
|
|
+ // slot: 'measuringUnit',
|
|
|
|
|
+ // align: 'center'
|
|
|
|
|
+ // },
|
|
|
this.pageName == 'send'
|
|
this.pageName == 'send'
|
|
|
? {
|
|
? {
|
|
|
minWidth: 110,
|
|
minWidth: 110,
|
|
|
prop: 'sendTotalCount',
|
|
prop: 'sendTotalCount',
|
|
|
label: '已发货数量',
|
|
label: '已发货数量',
|
|
|
slot: 'sendTotalCount',
|
|
slot: 'sendTotalCount',
|
|
|
|
|
+ formatter: (row, column) => {
|
|
|
|
|
+ if (row.sendTotalCount) {
|
|
|
|
|
+ return row.sendTotalCount + ' ' + row.measuringUnit;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
}
|
|
}
|
|
|
: {
|
|
: {
|
|
@@ -319,6 +330,11 @@
|
|
|
prop: 'notSendTotalCount',
|
|
prop: 'notSendTotalCount',
|
|
|
label: '未发货数量',
|
|
label: '未发货数量',
|
|
|
slot: 'notSendTotalCount',
|
|
slot: 'notSendTotalCount',
|
|
|
|
|
+ formatter: (row, column) => {
|
|
|
|
|
+ if (row.notSendTotalCount) {
|
|
|
|
|
+ return row.notSendTotalCount + ' ' + row.measuringUnit;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
}
|
|
}
|
|
|
: {
|
|
: {
|
|
@@ -329,6 +345,11 @@
|
|
|
prop: 'singleWeight',
|
|
prop: 'singleWeight',
|
|
|
label: '单重',
|
|
label: '单重',
|
|
|
slot: 'singleWeight',
|
|
slot: 'singleWeight',
|
|
|
|
|
+ formatter: (row, column) => {
|
|
|
|
|
+ if (row.singleWeight) {
|
|
|
|
|
+ return row.singleWeight + ' ' + row.weightUnit;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
headerSlot: 'headerSingleWeight',
|
|
headerSlot: 'headerSingleWeight',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
@@ -337,15 +358,20 @@
|
|
|
prop: 'totalWeight',
|
|
prop: 'totalWeight',
|
|
|
label: '总重',
|
|
label: '总重',
|
|
|
slot: 'totalWeight',
|
|
slot: 'totalWeight',
|
|
|
|
|
+ formatter: (row, column) => {
|
|
|
|
|
+ if (row.totalWeight) {
|
|
|
|
|
+ return row.totalWeight + ' ' + row.weightUnit;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- width: 120,
|
|
|
|
|
- prop: 'weightUnit',
|
|
|
|
|
- label: '重量单位',
|
|
|
|
|
- slot: 'weightUnit',
|
|
|
|
|
- align: 'center'
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // {
|
|
|
|
|
+ // width: 120,
|
|
|
|
|
+ // prop: 'weightUnit',
|
|
|
|
|
+ // label: '重量单位',
|
|
|
|
|
+ // slot: 'weightUnit',
|
|
|
|
|
+ // align: 'center'
|
|
|
|
|
+ // },
|
|
|
// {
|
|
// {
|
|
|
// width: 160,
|
|
// width: 160,
|
|
|
// prop: 'pricingWay',
|
|
// prop: 'pricingWay',
|