|
@@ -272,6 +272,23 @@
|
|
|
<el-button @click="payeeDialog = false ">关 闭</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ append-to-body
|
|
|
+ class="el-dialogDeep"
|
|
|
+ :visible.sync="applySettlementDialog"
|
|
|
+ width="60%"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :destroy-on-close="true"
|
|
|
+ :close-on-press-escape="false"
|
|
|
+ v-dialog-drag
|
|
|
+ >
|
|
|
+ <apply-payment
|
|
|
+ :billType="billType"
|
|
|
+ :billData="billData"
|
|
|
+ @choceFun="choceFun"
|
|
|
+ >
|
|
|
+ </apply-payment>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -295,6 +312,8 @@ import uploadFile from "@/components/upload-file/main";
|
|
|
import { contrastObj,contrastList } from "@/util/contrastData";
|
|
|
import _ from "lodash";
|
|
|
import option from "./config/mainList.json";
|
|
|
+//账单组件
|
|
|
+import ApplyPayment from "../../../components/finance/applyPayment";
|
|
|
|
|
|
export default {
|
|
|
name: "detailsPage",
|
|
@@ -307,6 +326,7 @@ export default {
|
|
|
return {
|
|
|
disabled: false,
|
|
|
dialogCommodity: false,
|
|
|
+ applySettlementDialog:false,
|
|
|
dialogVisible: false,
|
|
|
form: {},
|
|
|
orderFeesList:[],
|
|
@@ -314,6 +334,8 @@ export default {
|
|
|
currencyDic:[],
|
|
|
contractDic:[],
|
|
|
selectKind:-1,
|
|
|
+ billType:"销售",
|
|
|
+ billData:{},
|
|
|
configuration:{
|
|
|
multipleChoices:false,
|
|
|
multiple:false,
|
|
@@ -683,6 +705,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
+ ApplyPayment,
|
|
|
feeInfo,
|
|
|
uploadFile
|
|
|
},
|
|
@@ -738,6 +761,19 @@ export default {
|
|
|
row.amount =_.multiply(row.invoiceWeight,row.price).toFixed(2);
|
|
|
}
|
|
|
},
|
|
|
+ beforeBillData(type){
|
|
|
+ this.billData = {
|
|
|
+ srcOrderno:this.form.orderNo,
|
|
|
+ itemType:"销售",
|
|
|
+ accDate:this.form.businesDate,
|
|
|
+ currency:this.form.currency,
|
|
|
+ exchangeRate:this.form.exchangeRate,
|
|
|
+ srcParentId:this.form.id,
|
|
|
+ }
|
|
|
+ if(type){ //申请货款
|
|
|
+ this.billData.srcId = -1
|
|
|
+ }
|
|
|
+ },
|
|
|
//申请结算
|
|
|
applySettlement(){
|
|
|
if(contrastObj(this.form,this.oldForm) || contrastList(this.importInventoryData,this.oldInventoryData)
|
|
@@ -751,27 +787,29 @@ export default {
|
|
|
this.editCustomer();
|
|
|
})
|
|
|
}else{
|
|
|
- this.$confirm("是否确认申请结算!", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(() => {
|
|
|
- if(this.$store.getters.takeStatus){
|
|
|
- this.$alert("结算页面已存在,请关闭收货单再进行操作", "温馨提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- type: 'warning',
|
|
|
- callback: action => {
|
|
|
- }
|
|
|
- });
|
|
|
- }else{
|
|
|
- //关闭一下存在的列表页 跳转
|
|
|
- this.$router.$avueRouter.closeTag('/receipt_settle');
|
|
|
- this.$router.push({
|
|
|
- path: "/receipt_settle",
|
|
|
- query: {params: this.form.id},
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
+ this.beforeBillData(true)
|
|
|
+ this.applySettlementDialog = true;
|
|
|
+ // this.$confirm("是否确认申请结算!", {
|
|
|
+ // confirmButtonText: "确定",
|
|
|
+ // cancelButtonText: "取消",
|
|
|
+ // type: "warning"
|
|
|
+ // }).then(() => {
|
|
|
+ // if(this.$store.getters.takeStatus){
|
|
|
+ // this.$alert("结算页面已存在,请关闭收货单再进行操作", "温馨提示", {
|
|
|
+ // confirmButtonText: "确定",
|
|
|
+ // type: 'warning',
|
|
|
+ // callback: action => {
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }else{
|
|
|
+ // //关闭一下存在的列表页 跳转
|
|
|
+ // this.$router.$avueRouter.closeTag('/receipt_settle');
|
|
|
+ // this.$router.push({
|
|
|
+ // path: "/receipt_settle",
|
|
|
+ // query: {params: this.form.id},
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // })
|
|
|
}
|
|
|
},
|
|
|
//修改
|
|
@@ -846,6 +884,9 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ choceFun(){
|
|
|
+ this.applySettlementDialog = false
|
|
|
+ },
|
|
|
//刷新
|
|
|
payeeRefreshChange(){
|
|
|
|