|
@@ -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"-->
|
|
@@ -144,7 +148,7 @@ export default {
|
|
|
this.option = await this.getColumnData(this.getColumnName(17), option);
|
|
|
this.getWorkDicts("payment_term").then(res => {
|
|
|
this.findObject(this.option.column, "paymentType").dicData =
|
|
|
- res.data.data;
|
|
|
+ res.data.data;
|
|
|
});
|
|
|
gainUser().then(res => {
|
|
|
this.findObject(this.option.column, "createUser").dicData = res.data.data;
|
|
@@ -192,6 +196,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+ console.log(this.option.column.length)
|
|
|
},
|
|
|
activated() {
|
|
|
if (this.$route.query.check) {
|
|
@@ -580,6 +585,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);
|