|
@@ -26,7 +26,7 @@
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
|
<a-form-item label="履约总金额">
|
|
<a-form-item label="履约总金额">
|
|
|
- <span class="white">1000.00元(已冻结履约金额200.00元)</span>
|
|
|
|
|
|
|
+ <span class="white">{{selectedRow.amount.toFixed(2)}}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
@@ -41,7 +41,7 @@
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
|
<a-form-item label="剩余款">
|
|
<a-form-item label="剩余款">
|
|
|
- <span class="white">1000.00</span>
|
|
|
|
|
|
|
+ <span class="white">{{selectedRow.unpaidamount.toFixed(2)}}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
@@ -66,9 +66,13 @@
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
|
-import { WrPosition } from '@/services/go/wrtrade/interface';
|
|
|
|
|
|
|
+import {WrPerformancePlan, WrPosition} from '@/services/go/wrtrade/interface';
|
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
|
|
+import {performanceManualConfirm} from "@/services/proto/performance";
|
|
|
|
|
+import {PerformanceManualConfirmReq} from "@/services/proto/performance/interface";
|
|
|
|
|
+import {requestResultLoadingAndInfo} from "@/common/methods/request/resultInfo";
|
|
|
|
|
+import {HdWRDealOrder} from "@/services/proto/warehousetrade";
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: ModalEnum.performance_information_buy_performance_pay,
|
|
name: ModalEnum.performance_information_buy_performance_pay,
|
|
@@ -76,7 +80,7 @@ export default defineComponent({
|
|
|
emits: ['cancel', 'update'],
|
|
emits: ['cancel', 'update'],
|
|
|
props: {
|
|
props: {
|
|
|
selectedRow: {
|
|
selectedRow: {
|
|
|
- type: Object as PropType<WrPosition>,
|
|
|
|
|
|
|
+ type: Object as PropType<WrPerformancePlan>,
|
|
|
default: {},
|
|
default: {},
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -84,7 +88,16 @@ export default defineComponent({
|
|
|
const { visible, cancel } = _closeModal(context);
|
|
const { visible, cancel } = _closeModal(context);
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
console.log('selectedRow', props.selectedRow);
|
|
console.log('selectedRow', props.selectedRow);
|
|
|
- function submit() {}
|
|
|
|
|
|
|
+ function submit() {
|
|
|
|
|
+ const param: PerformanceManualConfirmReq = {
|
|
|
|
|
+ PerformancePlanStepID: props.selectedRow.curstepid,
|
|
|
|
|
+ PerformanceExecuteSide: 1
|
|
|
|
|
+ }
|
|
|
|
|
+ debugger
|
|
|
|
|
+ requestResultLoadingAndInfo(performanceManualConfirm, param, loading, ['付款成功', '付款失败:']).then(() => {
|
|
|
|
|
+ cancel(true);
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
return {
|
|
return {
|
|
|
visible,
|
|
visible,
|
|
|
cancel,
|
|
cancel,
|