|
|
@@ -7,16 +7,19 @@
|
|
|
:maskClosable="maskClosableFlag"
|
|
|
@cancel="cancel"
|
|
|
width="890px">
|
|
|
- <template #footer>
|
|
|
- <a-button key="submit"
|
|
|
+ <template #footer>
|
|
|
+ <a-button key="submit"
|
|
|
class="cancelBtn"
|
|
|
@click="refuse">审核拒绝</a-button>
|
|
|
- <a-button key="submit"
|
|
|
+ <a-button key="submit"
|
|
|
type="primary"
|
|
|
:loading="loading"
|
|
|
@click="submit">审核通过</a-button>
|
|
|
</template>
|
|
|
- <a-form class="inlineForm">
|
|
|
+ <a-form class="inlineForm"
|
|
|
+ ref="formRef"
|
|
|
+ :model="formState"
|
|
|
+ :rules="rules">
|
|
|
<fieldset class="formFieldSet">
|
|
|
<legend>基本信息</legend>
|
|
|
<a-row :gutter="24">
|
|
|
@@ -39,28 +42,28 @@
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="采购方">
|
|
|
- <span class="white">{{ formatValue(selectedRow.buyusername) }}</span>
|
|
|
+ <span class="white">{{ formatValue(selectedRow.buyusername) }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
+ </a-row>
|
|
|
+ <a-row :gutter="24">
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="销售方">
|
|
|
- <span class="white">{{ formatValue(selectedRow.sellusername) }}</span>
|
|
|
+ <span class="white">{{ formatValue(selectedRow.sellusername) }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="合同附件">
|
|
|
- <div class="upload">
|
|
|
- <div class="look">{{ formatValue(selectedRow.contracctstatus) }}</div>
|
|
|
- </div>
|
|
|
+ <div class="upload">
|
|
|
+ <div class="look">{{ formatValue(selectedRow.contracctstatus) }}</div>
|
|
|
+ </div>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="24">
|
|
|
<a-form-item label="状态">
|
|
|
- <span class="green">{{ formatValue(getContractStatusName(selectedRow.contracctstatus)) }}</span>
|
|
|
+ <span class="green">{{ formatValue(getContractStatusName(selectedRow.contracctstatus)) }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
@@ -87,11 +90,11 @@
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="标仓系数">
|
|
|
- <span class="white">{{ formatValue(selectedRow.convertfactor) }}</span>
|
|
|
+ <span class="white">{{ formatValue(selectedRow.convertfactor) }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
+ </a-row>
|
|
|
+ <a-row :gutter="24">
|
|
|
<a-col :span="24">
|
|
|
<a-form-item label="商品规格">
|
|
|
<span class="white">{{ formatValue(selectedRow.spotgoodsdesc) }}</span>
|
|
|
@@ -147,15 +150,16 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
- <a-form-item label="业务员">
|
|
|
+ <a-form-item label="业务员"
|
|
|
+ name="SaleUserID">
|
|
|
<a-select class="inlineFormSelect"
|
|
|
+ v-model:value="formState.SaleUserID"
|
|
|
style="width: 200px"
|
|
|
placeholder="请选择业务员">
|
|
|
- <a-select-option value="1">
|
|
|
- 客户一
|
|
|
- </a-select-option>
|
|
|
- <a-select-option value="2">
|
|
|
- 客户二
|
|
|
+ <a-select-option v-for="item in businesserList"
|
|
|
+ :key="item.id"
|
|
|
+ :value="item.id">
|
|
|
+ {{item.name}}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
@@ -163,35 +167,37 @@
|
|
|
</a-row>
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="12">
|
|
|
- <a-form-item label="跟单员">
|
|
|
+ <a-form-item label="跟单员"
|
|
|
+ name="MerUserID">
|
|
|
<a-select class="inlineFormSelect"
|
|
|
+ v-model:value="formState.MerUserID"
|
|
|
style="width: 200px"
|
|
|
placeholder="请选择跟单员">
|
|
|
- <a-select-option value="1">
|
|
|
- 客户一
|
|
|
- </a-select-option>
|
|
|
- <a-select-option value="2">
|
|
|
- 客户二
|
|
|
+ <a-select-option v-for="item in merchandiserList"
|
|
|
+ :key="item.id"
|
|
|
+ :value="item.id">
|
|
|
+ {{item.name}}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
- <a-form-item label="期货账户">
|
|
|
- <a-select class="inlineFormSelect"
|
|
|
+ <a-form-item label="交易用户"
|
|
|
+ name="TradeUserID">
|
|
|
+ <a-select class="inlineFormSelect"
|
|
|
style="width: 200px"
|
|
|
+ v-model:value="formState.TradeUserID"
|
|
|
placeholder="请选择期货账户">
|
|
|
- <a-select-option value="1">
|
|
|
- 客户一
|
|
|
- </a-select-option>
|
|
|
- <a-select-option value="2">
|
|
|
- 客户二
|
|
|
+ <a-select-option v-for="item in traderList"
|
|
|
+ :key="item.id"
|
|
|
+ :value="item.id">
|
|
|
+ {{item.name}}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
+ </a-row>
|
|
|
+ <a-row :gutter="24">
|
|
|
<a-col :span="24">
|
|
|
<a-form-item label="备注">
|
|
|
<span class="white">{{ formatValue(selectedRow.remark) }}</span>
|
|
|
@@ -203,10 +209,12 @@
|
|
|
<legend>审核信息</legend>
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="24">
|
|
|
- <a-form-item label="审核意见">
|
|
|
+ <a-form-item label="审核意见"
|
|
|
+ name="Remark">
|
|
|
<a-input class="dialogInput"
|
|
|
- style="width: 620px"
|
|
|
- placeholder="请输入审核意见" />
|
|
|
+ v-model:value="formState.Remark"
|
|
|
+ style="width: 620px"
|
|
|
+ placeholder="请输入审核意见" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
@@ -216,18 +224,14 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import {defineComponent, PropType, ref} from 'vue';
|
|
|
+import { defineComponent, PropType, reactive, ref } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
-import {
|
|
|
- getBizTypeName,
|
|
|
- getContractStatusName,
|
|
|
- getContractTypeName,
|
|
|
- getPriceTypeName
|
|
|
-} from "@/views/information/spot-contract/setup";
|
|
|
-import {Ermcp3ContractRsp} from "@/services/go/ermcp/spot-contract/interface";
|
|
|
-import {formatTime, formatValue} from "@/common/methods";
|
|
|
-import {changeOrderContract, OrderContractControl} from "@/views/information/spot-contract/components/setup";
|
|
|
-import {Modal} from "ant-design-vue";
|
|
|
+import { getBizTypeName, getContractStatusName, getContractTypeName, getPriceTypeName } from '@/views/information/spot-contract/setup';
|
|
|
+import { Ermcp3ContractRsp } from '@/services/go/ermcp/spot-contract/interface';
|
|
|
+import { formatTime, formatValue, initData } from '@/common/methods';
|
|
|
+import { changeOrderContract, OrderContractControl } from '@/views/information/spot-contract/components/setup';
|
|
|
+import { Modal } from 'ant-design-vue';
|
|
|
+import { handleAccountManager, handleForm } from './setup';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'spot-contract-detail',
|
|
|
@@ -240,7 +244,13 @@ export default defineComponent({
|
|
|
},
|
|
|
setup(props, context) {
|
|
|
const { visible, cancel } = closeModal('spot_contract_btn_check');
|
|
|
- const { loading, orderContractState } = changeOrderContract()
|
|
|
+ // 账号列表: 交易用户 业务员 跟单员
|
|
|
+ const { traderList, businesserList, merchandiserList, getRoleList, getBusinesserList } = handleAccountManager();
|
|
|
+
|
|
|
+ const { loading, orderContractState } = changeOrderContract();
|
|
|
+ // 表单
|
|
|
+ const { rules, formState, formRef } = handleForm();
|
|
|
+
|
|
|
const maskClosableFlag = ref<boolean>(false);
|
|
|
function submit() {
|
|
|
Modal.confirm({
|
|
|
@@ -250,45 +260,45 @@ export default defineComponent({
|
|
|
onOk() {
|
|
|
// 审核通过
|
|
|
orderContractState(props.selectedRow.spotcontractid, 4)
|
|
|
- .then(res => {
|
|
|
- cancel()
|
|
|
- context.emit('refresh')
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
-
|
|
|
+ .then((res) => {
|
|
|
+ cancel();
|
|
|
+ context.emit('refresh');
|
|
|
})
|
|
|
+ .catch((err) => {});
|
|
|
},
|
|
|
onCancel() {
|
|
|
console.log('Cancel');
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
- function refuse(){
|
|
|
+ function refuse() {
|
|
|
Modal.confirm({
|
|
|
title: '是否确认审核拒绝',
|
|
|
okText: '确认审核拒绝',
|
|
|
cancelText: '取消',
|
|
|
onOk() {
|
|
|
// 审核拒绝
|
|
|
- OrderContractControl().orderContractState(props.selectedRow.spotcontractid, 4)
|
|
|
- .then(res => {
|
|
|
- cancel()
|
|
|
- context.emit('refresh')
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
-
|
|
|
+ OrderContractControl()
|
|
|
+ .orderContractState(props.selectedRow.spotcontractid, 4)
|
|
|
+ .then((res) => {
|
|
|
+ cancel();
|
|
|
+ context.emit('refresh');
|
|
|
})
|
|
|
+ .catch((err) => {});
|
|
|
},
|
|
|
onCancel() {
|
|
|
console.log('Cancel');
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
+ initData(() => {
|
|
|
+ getRoleList();
|
|
|
+ getBusinesserList();
|
|
|
+ });
|
|
|
return {
|
|
|
visible,
|
|
|
cancel,
|
|
|
submit,
|
|
|
- loading,
|
|
|
maskClosableFlag,
|
|
|
getContractTypeName,
|
|
|
getBizTypeName,
|
|
|
@@ -297,6 +307,13 @@ export default defineComponent({
|
|
|
formatTime,
|
|
|
getPriceTypeName,
|
|
|
refuse,
|
|
|
+ traderList,
|
|
|
+ businesserList,
|
|
|
+ merchandiserList,
|
|
|
+ loading,
|
|
|
+ formState,
|
|
|
+ rules,
|
|
|
+ formRef,
|
|
|
};
|
|
|
},
|
|
|
});
|