|
@@ -131,20 +131,29 @@
|
|
|
<span>{{ row.invoiceRealAmount }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" width="280" fixed="right">
|
|
|
+ <el-table-column label="送达状态" align="center" width="150">
|
|
|
<template slot-scope="{row}">
|
|
|
- <el-button type="success" size="mini" @click="orderDetail(row)">查看</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="openShouldAmountDialog(row)">订单应收款</el-button>
|
|
|
- <el-button v-if="row.reportNo !== null" type="success" size="mini"
|
|
|
- @click="openProShouldAmountDialog(row)">产品应收款</el-button>
|
|
|
- <el-button v-if="row.currentNodeCode === 'REPORT_OUT_APPLY'" type="danger" size="mini"
|
|
|
- @click="openRepertoryOutWarehouse(row)">
|
|
|
- 申请提前出库
|
|
|
- </el-button>
|
|
|
- <!-- <el-button v-if="row.currentNodeCode === 'REPORT_OUT_APPLY'" type="text"
|
|
|
+ <el-tag v-if="row.reportDelivery" type='success'>已送达</el-tag>
|
|
|
+ <el-button type="danger" size="mini"
|
|
|
+ v-if="(!row.reportDelivery || row.reportDelivery == null) && row.reportRepertoryState">标记送达</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" align="center" :min-width="dynamicWidth" fixed="right">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <div class="optionDiv" style="white-space: nowrap; display: inline-block">
|
|
|
+ <el-button type="success" size="mini" @click="orderDetail(row)">查看</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="openShouldAmountDialog(row)">订单应收款</el-button>
|
|
|
+ <el-button v-if="row.reportNo !== null" type="success" size="mini"
|
|
|
+ @click="openProShouldAmountDialog(row)">产品应收款</el-button>
|
|
|
+ <el-button v-if="row.currentNodeCode === 'REPORT_OUT_APPLY'" type="danger" size="mini"
|
|
|
+ @click="openRepertoryOutWarehouse(row)">
|
|
|
+ 申请提前出库
|
|
|
+ </el-button>
|
|
|
+ <!-- <el-button v-if="row.currentNodeCode === 'REPORT_OUT_APPLY'" type="text"
|
|
|
@click="canceladdRepertoryOutWarehouse(row)">
|
|
|
撤销出库申请
|
|
|
- </el-button> -->
|
|
|
+ </el-button> -->
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</parentTable>
|
|
@@ -224,16 +233,18 @@
|
|
|
import YPageListLayout from '@/components/YPageListLayout'
|
|
|
import Breadcrumb from '@/components/Breadcrumb'
|
|
|
import PermissionButton from '@/components/PermissionButton/PermissionButton'
|
|
|
+import { getOperatorWidth } from '@/utils/tableUtil.js'
|
|
|
|
|
|
export default {
|
|
|
name: 'AssetsAllList',
|
|
|
components: {
|
|
|
Breadcrumb,
|
|
|
YPageListLayout,
|
|
|
- PermissionButton,
|
|
|
+ PermissionButton
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ dynamicWidth: 0,
|
|
|
pageData: { records: [] },
|
|
|
listLoading: false,
|
|
|
listQuery: {
|
|
@@ -313,6 +324,9 @@ export default {
|
|
|
// 获取我的资产业务订单
|
|
|
this.selectMyOrderPage();
|
|
|
},
|
|
|
+ updated() {
|
|
|
+ this.dynamicWidth = getOperatorWidth();
|
|
|
+ },
|
|
|
methods: {
|
|
|
// 无条件分页查询
|
|
|
selectMyOrderPage() {
|
|
@@ -387,7 +401,6 @@ export default {
|
|
|
} else {
|
|
|
this.productionFundFrom.productionType = 'STATEMENT'
|
|
|
}
|
|
|
- this.productionFundFrom.productionType = row.productionType;
|
|
|
this.productionFundFrom.productionShouldAmount = row.productionShouldAmount;
|
|
|
this.productionFundFrom.remark = row.remark;
|
|
|
} else {
|
|
@@ -485,6 +498,7 @@ export default {
|
|
|
});
|
|
|
this.commitNode('PASS', this.outWarehouse.remark);
|
|
|
this.repertoryOutWarehouseVisible = false;
|
|
|
+ this.selectMyOrderPage();
|
|
|
} else {
|
|
|
this.$notify({
|
|
|
title: '失败',
|
|
@@ -565,6 +579,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 保存产品应收款
|
|
|
saveProShouldAmount() {
|
|
|
this.$refs.productionFundFrom.validate(valid => {
|
|
|
if (valid) {
|
|
@@ -612,6 +627,19 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ },
|
|
|
+ // 标记产品送达
|
|
|
+ markDelivery(row) {
|
|
|
+ this.$api.assets.markDelivery(row.reportNo).then(res => {
|
|
|
+ if (res.code === 200 && res.data) {
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '标记送达成功!',
|
|
|
+ type: 'success',
|
|
|
+ duration: 1000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
</script>
|