|
@@ -6,8 +6,8 @@
|
|
|
<y-page-list-layout :page-list="pageData" :page-para="listQuery" :get-page-list="getList">
|
|
|
<template slot="left">
|
|
|
<PermissionButton menu-code="_views_major_order" class-name="filter-item" type="danger"
|
|
|
- icon="el-icon-circle-plus-outline" :page-jump="true" round style="position: absolute;left:1100px;z-index:9"
|
|
|
- :page-query="{ 'couldEdit': true, 'couldBack': true}" />
|
|
|
+ icon="el-icon-circle-plus-outline" :page-jump="true" round style="position: absolute;left:1100px;z-index:9"
|
|
|
+ :page-query="{ 'couldEdit': true, 'couldBack': true }" />
|
|
|
<MoreSearchBar business="MAJOR_BUSINESS" @fliterSearch="fliterSearch" @resetParams="resetParams"
|
|
|
:listQuery="listQuery" :nodeCode="false" :financial="false" :clientManager="false" :businessObjectType="false"
|
|
|
:department="false"></MoreSearchBar>
|
|
@@ -82,7 +82,8 @@
|
|
|
<template slot-scope="{row}">
|
|
|
<div>
|
|
|
<PermissionButton menu-code="_views_myOrder_detail" class-name="filter-item" type="text" :page-jump="true"
|
|
|
- size="mini" :page-query="{ 'couldEdit': false, 'id': row.id, 'back': '/major/my/order', 'recall': true, 'couldBack': true }" />
|
|
|
+ size="mini"
|
|
|
+ :page-query="{ 'couldEdit': false, 'id': row.id, 'back': '/major/my/order', 'recall': true, 'couldBack': true }" />
|
|
|
<el-button type="text" size="small" @click="openShouldAmountDialog(row)">应收款</el-button>
|
|
|
<el-button type="text" size="small" @click="openAllotProductionDialog(row)">实收款分配</el-button>
|
|
|
</div>
|
|
@@ -367,17 +368,15 @@
|
|
|
<el-card style="margin-top:20px" shadow="hover">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<!-- <span style="font-size:16px;font-weight:bold;">{{aliasProductionType(r.production)}}</span> -->
|
|
|
- <span
|
|
|
- style="margin-left:30px;font-size:16px;font-weight:bold; color:red">实收款金额:{{ r.realAmount != null ? r.realAmount : 0 }}¥</span>
|
|
|
+ <span style="margin-left:30px;font-size:16px;font-weight:bold; color:red">实收款金额:{{ r.realAmount != null ?
|
|
|
+ r.realAmount : 0 }}¥</span>
|
|
|
<el-button
|
|
|
v-if="(r.productionNo === reportNo && r.production != 'STATEMENT' && r.repertoryState != null && !r.repertoryState)"
|
|
|
style="float: right; padding: 3px 0;margin-left:10px" type="text"
|
|
|
@click="openApplyOutWarehouseList(r)">出库申请</el-button>
|
|
|
- <el-button
|
|
|
- v-if="r.productionNo === statementNo && !r.delivery && r.production === 'STATEMENT'"
|
|
|
+ <el-button v-if="r.productionNo === statementNo && !r.delivery && r.production === 'STATEMENT'"
|
|
|
style="float: right; padding: 3px 0;" type="text" @click="confirmDelivery(r.id)">确认送达</el-button>
|
|
|
- <el-button
|
|
|
- v-if="!r.delivery && r.production != 'STATEMENT' && r.repertoryState"
|
|
|
+ <el-button v-if="!r.delivery && r.production != 'STATEMENT' && r.repertoryState"
|
|
|
style="float: right; padding: 3px 0;" type="text" @click="noTaskConfirmDelivery(r.id)">确认送达</el-button>
|
|
|
</div>
|
|
|
<el-form :model="r">
|
|
@@ -916,14 +915,24 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
openApplyOutWarehouseList(row) {
|
|
|
- this.getListByBizTypeProductionId('MAJOR_BUSINESS', row.id);
|
|
|
- this.outWarehouseListDialog = true;
|
|
|
- this.outWarehouse.productionFundId = row.productionFundId;
|
|
|
- this.outWarehouse.realAmount = row.realAmount
|
|
|
- this.outWarehouse.ifProductionFund = row.realAmount != null
|
|
|
- this.outWarehouse.id = row.id;
|
|
|
- this.outWarehouse.businessType = 'MAJOR_BUSINESS';
|
|
|
- this.outWarehouse.standardAmount = row.standardAmount;
|
|
|
+ if (row.orderShouldAmount) {
|
|
|
+ this.getListByBizTypeProductionId('MAJOR_BUSINESS', row.id);
|
|
|
+ this.outWarehouseListDialog = true;
|
|
|
+ this.outWarehouse.productionFundId = row.productionFundId;
|
|
|
+ this.outWarehouse.realAmount = row.realAmount
|
|
|
+ this.outWarehouse.ifProductionFund = row.realAmount != null
|
|
|
+ this.outWarehouse.id = row.id;
|
|
|
+ this.outWarehouse.businessType = 'MAJOR_BUSINESS';
|
|
|
+ this.outWarehouse.standardAmount = row.standardAmount;
|
|
|
+ } else {
|
|
|
+ this.$notify({
|
|
|
+ title: '失败',
|
|
|
+ message: '请先填写应收款',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
openOutWarehouseDialog() {
|
|
|
if (this.outApllyList.length > 0) {
|
|
@@ -1037,31 +1046,31 @@ export default {
|
|
|
}
|
|
|
return name;
|
|
|
},
|
|
|
- noTaskConfirmDelivery(id){
|
|
|
+ noTaskConfirmDelivery(id) {
|
|
|
this.$confirm('确认执行产品送达操作?', '提示', {
|
|
|
confirmButtonText: '确认送达',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning',
|
|
|
center: true
|
|
|
}).then(() => {
|
|
|
- this.$api.majorProduction.noTaskConfirmDelivery(id).then(res=>{
|
|
|
- if (res.code === 200 && res.data) {
|
|
|
- this.$notify({
|
|
|
- title: '成功',
|
|
|
- message: '产品送达状态修改成功',
|
|
|
- type: 'success',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
- this.productionListDialog = false;
|
|
|
- }else {
|
|
|
+ this.$api.majorProduction.noTaskConfirmDelivery(id).then(res => {
|
|
|
+ if (res.code === 200 && res.data) {
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '产品送达状态修改成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ this.productionListDialog = false;
|
|
|
+ } else {
|
|
|
this.$notify({
|
|
|
title: '失败',
|
|
|
message: '产品送达状态修改失败',
|
|
|
type: 'error',
|
|
|
duration: 2000
|
|
|
});
|
|
|
- }
|
|
|
- })
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
confirmDelivery(id) {
|
|
@@ -1122,7 +1131,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
openAllotProductionDialog(row) {
|
|
|
if (!row.orderFundId) {
|
|
|
this.$notify({
|