|
|
@@ -40,14 +40,11 @@
|
|
|
<script lang="ts">
|
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
-import { Ermcp3ContractRsp, QueryChangeLogReq } from '@/services/go/ermcp/spot-contract/interface';
|
|
|
-import { queryResultLoadingAndInfo, requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
+import { Ermcp3ContractRsp } from '@/services/go/ermcp/spot-contract/interface';
|
|
|
+import { queryResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
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 { QueryBusinessJs } from '@/services/go/ermcp/business-review';
|
|
|
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 { ErmcpLoginUserEx } from '@/services/go/ermcp/account/interface';
|
|
|
import InfoDetail from '../infoDetail/index.vue';
|
|
|
@@ -86,7 +83,6 @@ export default defineComponent({
|
|
|
|
|
|
function tabClick() {
|
|
|
const relatedid = props.selectedRow.spotcontractid;
|
|
|
- console.log('activeKey.value', activeKey.value);
|
|
|
switch (activeKey.value) {
|
|
|
case 1:
|
|
|
break;
|
|
|
@@ -128,75 +124,9 @@ export default defineComponent({
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- function submit() {
|
|
|
- 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: props.selectedRow.spotcontractid,
|
|
|
- inouttype: '1,3',
|
|
|
- };
|
|
|
- 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');
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
return {
|
|
|
visible,
|
|
|
cancel,
|
|
|
- submit,
|
|
|
loading,
|
|
|
maskClosableFlag: false,
|
|
|
activeKey,
|