|
@@ -39,8 +39,12 @@
|
|
|
{{ scope.row.createFreight == 1 ? '是' : '否' }}
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="menu">
|
|
|
- <el-button type="text" icon="el-icon-delete" size="small" @click.stop="createPlant(scope.row, scope.index)"
|
|
|
- :disabled="scope.row.status > 0 || scope.row.createFreight == 1">生成工厂发货
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ size="small"
|
|
|
+ @click.stop="createPlant(scope.row, scope.index)"
|
|
|
+ :disabled="scope.row.status > 0 || scope.row.createFreight == 1">生成工厂发货
|
|
|
</el-button>
|
|
|
<!-- <el-button-->
|
|
|
<!-- type="text"-->
|
|
@@ -580,6 +584,9 @@ export default {
|
|
|
delete res.data.data.orderItemsList
|
|
|
delete res.data.data.corpName
|
|
|
delete res.data.data.belongToCorpList
|
|
|
+ res.data.data.deliveryAmount = res.data.data.debitAmount
|
|
|
+ delete res.data.data.debitAmount
|
|
|
+ res.data.data.deliveryItemsList.forEach(item=>item.deliveryAmount = item.amount)
|
|
|
genfactory(res.data.data).then(() => {
|
|
|
this.$message.success('生成工厂发货成功')
|
|
|
this.onLoad(this.page, this.search);
|