|
@@ -47,7 +47,8 @@
|
|
|
<a-row :gutter="24">
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<a-form-item label="合同签署量">
|
|
<a-form-item label="合同签署量">
|
|
|
- <span class="white">{{ formatValue(selectedRow.qty + selectedRow.enumdicname) }}</span>
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ class="white">{{ formatValue(selectedRow.qty + selectedRow.enumdicname) }}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
@@ -74,7 +75,8 @@
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<a-form-item label="调整金额">
|
|
<a-form-item label="调整金额">
|
|
|
- <span class="white">{{ selectedRow.reckonadjustamount + selectedRow.currencyname }}</span>
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ class="white">{{ selectedRow.reckonadjustamount + selectedRow.currencyname }}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
@@ -84,7 +86,8 @@
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
|
<a-form-item label="其他费用">
|
|
<a-form-item label="其他费用">
|
|
|
- <span class="white">{{ selectedRow.reckonotheramount + selectedRow.currencyname }}</span>
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ class="white">{{ selectedRow.reckonotheramount + selectedRow.currencyname }}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
@@ -113,7 +116,8 @@
|
|
|
style="width: 200px"
|
|
style="width: 200px"
|
|
|
placeholder="请输入交收量"
|
|
placeholder="请输入交收量"
|
|
|
suffix="单位" />
|
|
suffix="单位" />
|
|
|
- <div class="tip mt10"><span>待交收量:{{selectedRow.unsureqty}}吨</span><a class="blue fr"
|
|
|
|
|
|
|
+ <div class="tip mt10"><span>待交收量:{{selectedRow.unsureqty}}吨</span><a
|
|
|
|
|
+ class="blue fr"
|
|
|
@click="formState.ReckonRealQty=selectedRow.unsureqty">全部登记</a></div>
|
|
@click="formState.ReckonRealQty=selectedRow.unsureqty">全部登记</a></div>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
<a-form-item class="relative"
|
|
<a-form-item class="relative"
|
|
@@ -123,7 +127,8 @@
|
|
|
style="width: 200px"
|
|
style="width: 200px"
|
|
|
placeholder="请输入交收量"
|
|
placeholder="请输入交收量"
|
|
|
suffix="单位" />
|
|
suffix="单位" />
|
|
|
- <div class="tip mt10"><span class="fl">未定价量:--吨</span><a class="blue fr">全部登记</a></div>
|
|
|
|
|
|
|
+ <div class="tip mt10"><span class="fl">未定价量:--吨</span><a class="blue fr">全部登记</a>
|
|
|
|
|
+ </div>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
@@ -157,7 +162,8 @@
|
|
|
<template #label>
|
|
<template #label>
|
|
|
<a-checkbox value="调整保证金"
|
|
<a-checkbox value="调整保证金"
|
|
|
v-model:checked="checkedObj.margin"
|
|
v-model:checked="checkedObj.margin"
|
|
|
- @change="()=>checkedObj.margin = !checkedObj.margin">调整保证金</a-checkbox>
|
|
|
|
|
|
|
+ @change="()=>checkedObj.margin = !checkedObj.margin">调整保证金
|
|
|
|
|
+ </a-checkbox>
|
|
|
</template>
|
|
</template>
|
|
|
<a-form-item class="relative"
|
|
<a-form-item class="relative"
|
|
|
v-if="checkedObj.margin">
|
|
v-if="checkedObj.margin">
|
|
@@ -220,7 +226,8 @@
|
|
|
<template #label>
|
|
<template #label>
|
|
|
<a-checkbox value="调整金额"
|
|
<a-checkbox value="调整金额"
|
|
|
v-model:checked="checkedObj.justAmount"
|
|
v-model:checked="checkedObj.justAmount"
|
|
|
- @change="()=>checkedObj.justAmount = !checkedObj.justAmount">调整金额</a-checkbox>
|
|
|
|
|
|
|
+ @change="()=>checkedObj.justAmount = !checkedObj.justAmount">调整金额
|
|
|
|
|
+ </a-checkbox>
|
|
|
</template>
|
|
</template>
|
|
|
<a-form-item class="relative"
|
|
<a-form-item class="relative"
|
|
|
v-if="checkedObj.justAmount">
|
|
v-if="checkedObj.justAmount">
|
|
@@ -229,11 +236,13 @@
|
|
|
<a-row style="width: 200px">
|
|
<a-row style="width: 200px">
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<a-radio :value="1"
|
|
<a-radio :value="1"
|
|
|
- @focus="()=>{formState.ReckonAdjustAmount ?formState.ReckonAdjustAmount= Math.abs(formState.ReckonAdjustAmount):0}">增加</a-radio>
|
|
|
|
|
|
|
+ @focus="()=>{formState.ReckonAdjustAmount ?formState.ReckonAdjustAmount= Math.abs(formState.ReckonAdjustAmount):0}">
|
|
|
|
|
+ 增加</a-radio>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<a-radio :value="2"
|
|
<a-radio :value="2"
|
|
|
- @focus="()=>{formState.ReckonAdjustAmount ?formState.ReckonAdjustAmount= -1* Math.abs(formState.ReckonAdjustAmount):0}">减少</a-radio>
|
|
|
|
|
|
|
+ @focus="()=>{formState.ReckonAdjustAmount ?formState.ReckonAdjustAmount= -1* Math.abs(formState.ReckonAdjustAmount):0}">
|
|
|
|
|
+ 减少</a-radio>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
@@ -298,17 +307,18 @@
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { defineComponent, PropType, ref, unref } from 'vue';
|
|
import { defineComponent, PropType, ref, unref } from 'vue';
|
|
|
-import { closeModal } from '@/common/setup/modal/index';
|
|
|
|
|
import { Ermcp3SellBuyContract } from '@/services/go/ermcp/purchase/interface';
|
|
import { Ermcp3SellBuyContract } from '@/services/go/ermcp/purchase/interface';
|
|
|
import { SettlementReq } from '@/services/proto/contract/interface';
|
|
import { SettlementReq } from '@/services/proto/contract/interface';
|
|
|
import { settlementReq } from '@/views/business/purchase/components/setup';
|
|
import { settlementReq } from '@/views/business/purchase/components/setup';
|
|
|
import { handleForm } from '@/views/business/purchase/components/settlement/setup';
|
|
import { handleForm } from '@/views/business/purchase/components/settlement/setup';
|
|
|
import { formatValue } from '@/common/methods';
|
|
import { formatValue } from '@/common/methods';
|
|
|
import { getPriceTypeName } from '@/common/constants/enumsName';
|
|
import { getPriceTypeName } from '@/common/constants/enumsName';
|
|
|
|
|
+import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'sell_pending_settlement',
|
|
name: 'sell_pending_settlement',
|
|
|
components: {},
|
|
components: {},
|
|
|
|
|
+ emits: ['cancel'],
|
|
|
props: {
|
|
props: {
|
|
|
selectedRow: {
|
|
selectedRow: {
|
|
|
type: Object as PropType<Ermcp3SellBuyContract>,
|
|
type: Object as PropType<Ermcp3SellBuyContract>,
|
|
@@ -316,7 +326,7 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
setup(props, context) {
|
|
setup(props, context) {
|
|
|
- const { visible, cancel } = closeModal('sell_pending_settlement');
|
|
|
|
|
|
|
+ const { visible, cancel } = _closeModal(context);
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
const { rules, formState, formRef, checkedObj } = handleForm();
|
|
const { rules, formState, formRef, checkedObj } = handleForm();
|
|
|
function submit() {
|
|
function submit() {
|
|
@@ -362,8 +372,7 @@ export default defineComponent({
|
|
|
// 发出交收请求
|
|
// 发出交收请求
|
|
|
settlementReq(props.selectedRow.spotcontractid, param, loading)
|
|
settlementReq(props.selectedRow.spotcontractid, param, loading)
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
- cancel();
|
|
|
|
|
- context.emit('refresh');
|
|
|
|
|
|
|
+ cancel(true);
|
|
|
})
|
|
})
|
|
|
.catch((err) => {});
|
|
.catch((err) => {});
|
|
|
});
|
|
});
|