|
@@ -38,12 +38,12 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="意见书号" align="center" width="250">
|
|
|
<template slot-scope="{row}">
|
|
|
- <span v-if="row.productionType === 'STATEMENT'">{{ row.productionNo }}</span>
|
|
|
+ <span>{{ row.statementNo }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="报告号" align="center" width="250">
|
|
|
<template slot-scope="{row}">
|
|
|
- <span v-if="row.productionType !== 'STATEMENT'">{{ row.productionNo }}</span>
|
|
|
+ <span>{{ row.reportNo }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="项目名称" align="center" width="150">
|
|
@@ -126,10 +126,18 @@
|
|
|
<span>{{ row.invoiceRealAmount }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" width="150" fixed="right">
|
|
|
+ <el-table-column label="操作" align="center" width="200" fixed="right">
|
|
|
<template slot-scope="{row}">
|
|
|
- <el-button round type="primary" @click="orderDetail(row)">详情</el-button>
|
|
|
+ <el-button type="text" @click="orderDetail(row)">详情</el-button>
|
|
|
<el-button type="text" size="small" @click="openShouldAmountDialog(row)">应收款</el-button>
|
|
|
+ <el-button v-if="row.currentNodeCode === 'REPORT_OUT_APPLY'" type="text"
|
|
|
+ @click="openRepertoryOutWarehouse(row)">
|
|
|
+ 申请提前出库
|
|
|
+ </el-button>
|
|
|
+ <!-- <el-button v-if="row.currentNodeCode === 'REPORT_OUT_APPLY'" type="text"
|
|
|
+ @click="canceladdRepertoryOutWarehouse(row)">
|
|
|
+ 撤销出库申请
|
|
|
+ </el-button> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</parentTable>
|
|
@@ -160,6 +168,21 @@
|
|
|
<el-button type="primary" @click="saveShouldAmount()">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog :visible.sync="repertoryOutWarehouseVisible">
|
|
|
+ <el-form ref="outWarehouse" :model="outWarehouse" style="margin-left:40px; margin-right: 200px;">
|
|
|
+ <el-row>
|
|
|
+ <el-col>
|
|
|
+ <el-form-item label="出库原因:" prop="remark" label-width="160px" class="postInfo-container-item">
|
|
|
+ <el-input type="textarea" placeholder="请输入申请提前出库原因" v-model="outWarehouse.remark"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="repertoryOutWarehouseVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="addRepertoryOutWarehouse()">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -221,7 +244,21 @@ export default {
|
|
|
businessSubId: null,
|
|
|
productionFundId: null,
|
|
|
evaluateAmount: null
|
|
|
- }
|
|
|
+ },
|
|
|
+ repertoryOutWarehouseVisible: false,
|
|
|
+ outWarehouse: {
|
|
|
+ id: null,
|
|
|
+ productionFundId: null,
|
|
|
+ reportNo: null,
|
|
|
+ statementNo: null,
|
|
|
+ remark: null,
|
|
|
+ realAmount: null
|
|
|
+ },
|
|
|
+ businessId: null,
|
|
|
+ businessSubId: null,
|
|
|
+ businessMinId: null,
|
|
|
+ recordId: null,
|
|
|
+ currentNodeId: null
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -276,7 +313,7 @@ export default {
|
|
|
this.shouldAmountDialog = true;
|
|
|
this.fund.id = row.orderFundId;
|
|
|
this.fund.businessType = 'ASSET_BUSINESS';
|
|
|
- this.fund.businessId = row.id;
|
|
|
+ this.fund.businessId = row.assetsId;
|
|
|
this.fund.orderFundId = row.orderFundId;
|
|
|
this.fund.shouldAmount = row.shouldAmount;
|
|
|
this.fund.remark = row.remark;
|
|
@@ -291,11 +328,11 @@ export default {
|
|
|
if (res.code === 200 && res.data) {
|
|
|
this.$notify({
|
|
|
title: '成功',
|
|
|
- message: '订单应收款已完善',
|
|
|
+ message: '订单应收款已修改',
|
|
|
type: 'success',
|
|
|
duration: 1000
|
|
|
});
|
|
|
- this.getList();
|
|
|
+ this.selectMyOrderPage();
|
|
|
this.shouldAmountDialog = false;
|
|
|
} else {
|
|
|
this.$notify({
|
|
@@ -315,7 +352,7 @@ export default {
|
|
|
type: 'success',
|
|
|
duration: 1000
|
|
|
});
|
|
|
- this.getList();
|
|
|
+ this.selectMyOrderPage();
|
|
|
this.shouldAmountDialog = false;
|
|
|
} else {
|
|
|
this.$notify({
|
|
@@ -341,6 +378,112 @@ export default {
|
|
|
this.fund.productionFundId = null;
|
|
|
this.fund.remark = null;
|
|
|
this.fund.evaluateAmount = null
|
|
|
+ },
|
|
|
+ openRepertoryOutWarehouse(row) {
|
|
|
+ this.repertoryOutWarehouseVisible = true;
|
|
|
+ this.outWarehouse.reportNo = row.reportNo;
|
|
|
+ this.outWarehouse.businessType = 'ASSET_BUSINESS';
|
|
|
+ this.businessId = row.assetsId;
|
|
|
+ this.businessSubId = row.statementNo;
|
|
|
+ this.businessMinId = row.reportNo;
|
|
|
+ this.recordId = row.recordId;
|
|
|
+ this.currentNodeId = row.currentNodeId;
|
|
|
+ },
|
|
|
+ // 新增出库申请
|
|
|
+ addRepertoryOutWarehouse() {
|
|
|
+ if (this.outWarehouse.remark !== null && this.outWarehouse.remark !== '') {
|
|
|
+ let taskRecordDTO = new Object();
|
|
|
+ taskRecordDTO.recordId = this.recordId;;
|
|
|
+ taskRecordDTO.taskData = this.outWarehouse;
|
|
|
+ this.$api.productionOutWarehouse.add(taskRecordDTO).then(res => {
|
|
|
+ if (res.code === 200 && res.data) {
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '出库申请已提交',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ this.commitNode('PASS', this.outWarehouse.remark);
|
|
|
+ this.repertoryOutWarehouseVisible = false;
|
|
|
+ } else {
|
|
|
+ this.$notify({
|
|
|
+ title: '失败',
|
|
|
+ message: '出库申请提交失败',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$notify({
|
|
|
+ title: '警告',
|
|
|
+ message: '出库原因是必填项',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 撤销出库申请
|
|
|
+ canceladdRepertoryOutWarehouse(row) {
|
|
|
+ this.$confirm('请确认是否撤销此出库申请?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ center: true
|
|
|
+ }).then(() => {
|
|
|
+ this.$api.productionOutWarehouse.detail(row.warehouseId).then(res => {
|
|
|
+ if (res.departmentCheckState !== '审核中') {
|
|
|
+ this.$notify({
|
|
|
+ title: '警告',
|
|
|
+ message: '出库申请'+ res.departmentCheckState +',无法撤销。',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ if (row.id) {
|
|
|
+ this.$api.productionOutWarehouse.cancel(row.id).then(res => {
|
|
|
+ if (res.code === 200 && res.data) {
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '出库申请已撤销',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ // 撤销成功退回节点
|
|
|
+ this.commitNode('REVERSE');
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 提交节点
|
|
|
+ commitNode(state, remark) {
|
|
|
+ let commit = new Object;
|
|
|
+ commit.instanceNodeId = this.currentNodeId;
|
|
|
+ commit.state = state;
|
|
|
+ commit.comments = remark;
|
|
|
+ commit.businessMinId = this.businessMinId;
|
|
|
+ commit.businessSubId = this.businessSubId;
|
|
|
+ this.$api.workflow.commit(commit).then(res => {
|
|
|
+ if (res.code === 200 && res.data) {
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '工作流节点提交成功。',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$notify({
|
|
|
+ title: '失败',
|
|
|
+ message: '工作流节点提交失败,请联系管理员。',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|