|
@@ -204,11 +204,21 @@
|
|
|
import { defineComponent, PropType, reactive, ref } from 'vue';
|
|
import { defineComponent, PropType, reactive, ref } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
|
|
import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
|
|
|
-import { Ermcp3ContractRsp } from '@/services/go/ermcp/spot-contract/interface';
|
|
|
|
|
|
|
+import {Ermcp3ContractRsp, QueryChangeLogReq} from '@/services/go/ermcp/spot-contract/interface';
|
|
|
import { getStatusName } from '@/common/constants/enumsName';
|
|
import { getStatusName } from '@/common/constants/enumsName';
|
|
|
import { getBizTypeName, getContractStatusName, getContractTypeName, getPriceTypeName } from '@/views/information/spot-contract/setup';
|
|
import { getBizTypeName, getContractStatusName, getContractTypeName, getPriceTypeName } from '@/views/information/spot-contract/setup';
|
|
|
import { formatValue, formatTime } from '@/common/methods/format';
|
|
import { formatValue, formatTime } from '@/common/methods/format';
|
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
|
|
|
+import {requestResultLoadingAndInfo} from "@/common/methods/request/resultInfo";
|
|
|
|
|
+import {QueryAddUserInfoApply} from "@/services/go/ermcp/customInfo";
|
|
|
|
|
+import {QueryBusinessFp, QueryBusinessKx} from "@/services/go/ermcp/finance-review";
|
|
|
|
|
+import {QueryBusinessFpReq, QueryBusinessKxReq} from "@/services/go/ermcp/finance-review/interface";
|
|
|
|
|
+import {QueryBusinessDj, QueryBusinessJs} from "@/services/go/ermcp/business-review";
|
|
|
|
|
+import {QueryBusinessDjReq, QueryBusinessJsReq} from "@/services/go/ermcp/business-review/interface";
|
|
|
|
|
+import {QueryAreaStockApply} from "@/services/go/ermcp/inventory-review";
|
|
|
|
|
+import {QueryAreaStockApplyReq} from "@/services/go/ermcp/inventory-review/interface";
|
|
|
|
|
+import {QueryChangeLog} from "@/services/go/ermcp/spot-contract";
|
|
|
|
|
+import * as Long from "long";
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'spot-contract-detail',
|
|
name: 'spot-contract-detail',
|
|
@@ -219,13 +229,78 @@ export default defineComponent({
|
|
|
default: {},
|
|
default: {},
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
- setup() {
|
|
|
|
|
- const { visible, cancel } = closeModal('detail');
|
|
|
|
|
|
|
+ setup: function (props, context) {
|
|
|
|
|
+ const {visible, cancel} = closeModal('detail');
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
const maskClosableFlag = ref<boolean>(false);
|
|
const maskClosableFlag = ref<boolean>(false);
|
|
|
|
|
+
|
|
|
function submit() {
|
|
function submit() {
|
|
|
cancel();
|
|
cancel();
|
|
|
|
|
+
|
|
|
|
|
+ let kxParam: QueryBusinessKxReq = {
|
|
|
|
|
+ relatedid: props.selectedRow.spotcontractid
|
|
|
|
|
+ }
|
|
|
|
|
+ requestResultLoadingAndInfo(QueryBusinessKx, kxParam, loading, ['款项记录请求成功', '款项记录请求失败:']).then((res) => {
|
|
|
|
|
+ console.log("款项记录请求成功: \n")
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ cancel();
|
|
|
|
|
+ context.emit('refresh');
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ let jsParam: QueryBusinessJsReq = {
|
|
|
|
|
+ relatedid: props.selectedRow.spotcontractid
|
|
|
|
|
+ }
|
|
|
|
|
+ requestResultLoadingAndInfo(QueryBusinessJs, jsParam, loading, ['交收记录请求成功', '交收记录请求失败:']).then((res) => {
|
|
|
|
|
+ console.log("交收记录请求成功: \n")
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ cancel();
|
|
|
|
|
+ context.emit('refresh');
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ let fpParam: QueryBusinessFpReq = {
|
|
|
|
|
+ relatedid: props.selectedRow.spotcontractid
|
|
|
|
|
+ }
|
|
|
|
|
+ requestResultLoadingAndInfo(QueryBusinessFp, fpParam, loading, ['发票记录请求成功', '发票记录请求失败:']).then((res) => {
|
|
|
|
|
+ console.log("发票记录请求成功: \n")
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ cancel();
|
|
|
|
|
+ context.emit('refresh');
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ let djParam: QueryBusinessDjReq = {
|
|
|
|
|
+ relatedid: props.selectedRow.spotcontractid
|
|
|
|
|
+ }
|
|
|
|
|
+ requestResultLoadingAndInfo(QueryBusinessDj, djParam, loading, ['点价记录请求成功', '点价记录请求失败:']).then((res) => {
|
|
|
|
|
+ console.log("点价记录请求成功: \n")
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ cancel();
|
|
|
|
|
+ context.emit('refresh');
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ let StockParam: QueryAreaStockApplyReq = {
|
|
|
|
|
+ spotcontractid: Number(props.selectedRow.spotcontractid),
|
|
|
|
|
+ inouttype: '1,3'
|
|
|
|
|
+ }
|
|
|
|
|
+ debugger
|
|
|
|
|
+ requestResultLoadingAndInfo(QueryAreaStockApply, StockParam, loading, ['入库记录请求成功', '入库记录请求失败:']).then((res) => {
|
|
|
|
|
+ console.log("入库记录请求成功: \n")
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ cancel();
|
|
|
|
|
+ context.emit('refresh');
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ let changParam: QueryChangeLogReq = {
|
|
|
|
|
+ RelatedId: props.selectedRow.spotcontractid
|
|
|
|
|
+ }
|
|
|
|
|
+ requestResultLoadingAndInfo(QueryChangeLog, changParam, loading, ['变更记录请求成功', '变更记录请求失败:']).then((res) => {
|
|
|
|
|
+ console.log("变更记录请求成功: /n")
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ cancel();
|
|
|
|
|
+ context.emit('refresh');
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
const columns = [
|
|
const columns = [
|
|
|
{
|
|
{
|
|
|
title: '序号',
|
|
title: '序号',
|
|
@@ -286,7 +361,7 @@ export default defineComponent({
|
|
|
dataIndex: 'status',
|
|
dataIndex: 'status',
|
|
|
key: 'status',
|
|
key: 'status',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- slots: { customRender: 'status' },
|
|
|
|
|
|
|
+ slots: {customRender: 'status'},
|
|
|
},
|
|
},
|
|
|
];
|
|
];
|
|
|
|
|
|