|
@@ -183,20 +183,20 @@
|
|
|
bordered
|
|
|
:pagination="false"
|
|
|
>
|
|
|
- <template slot="CNYfreighForward" slot-scope="text, record, index">
|
|
|
+ <template slot="CNYfreighForward" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="CNYfreighForward" :rules="rules.CNYfreighForward" >
|
|
|
- {{record.freightForwarder}}
|
|
|
+ <a-input placeholder="请输入货代" v-model="record.freightForwarder" />
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="CNYmoney" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="CNYmoney" :rules="rules.CNYmoney" >
|
|
|
- {{record.amount}}
|
|
|
+ <a-input placeholder="请输入金额" v-model="record.amount" />
|
|
|
</a-form-model-item>
|
|
|
- </template>
|
|
|
+ </template>
|
|
|
<!-- CNY项目列 -->
|
|
|
<template slot="CNYProjectList" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="CNYProjectList" :rules="rules.CNYProjectList">
|
|
|
- <a-select v-model="record.itemColumn" style="width:100%" placeholder="请输入项目列" :disabled="disabled">
|
|
|
+ <a-select v-model="record.itemColumn" style="width:100%" placeholder="请输入项目列" >
|
|
|
<a-select-option value="1">项目列1</a-select-option>
|
|
|
<a-select-option value="2">项目列2</a-select-option>
|
|
|
</a-select>
|
|
@@ -218,18 +218,18 @@
|
|
|
>
|
|
|
<template slot="USDfreighForward" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="USDfreighForward" :rules="rules.USDfreighForward" >
|
|
|
- {{record.freightForwarder}}
|
|
|
+ <a-input placeholder="请输入货代" v-model="record.freightForwarder" />
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<template slot="USDmoney" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="USDmoney" :rules="rules.USDmoney" >
|
|
|
- {{record.amount}}
|
|
|
+ <a-input placeholder="请输入金额" v-model="record.amount" />
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
<!-- USD项目列 -->
|
|
|
<template slot="USDProjectList" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="USDProjectList" :rules="rules.USDProjectList">
|
|
|
- <a-select v-model="record.itemColumn" style="width:100%" :disabled="disabled">
|
|
|
+ <a-select v-model="record.itemColumn" style="width:100%" >
|
|
|
<a-select-option value="1">项目列1</a-select-option>
|
|
|
<a-select-option value="2">项目列2</a-select-option>
|
|
|
</a-select>
|
|
@@ -255,9 +255,9 @@
|
|
|
zIndex: 999
|
|
|
}"
|
|
|
>
|
|
|
- <a-popconfirm title="确定放弃新增?" @confirm="handleCancel" okText="确定" cancelText="取消">
|
|
|
- <a-button :style="{ marginRight: '8px' }">关闭</a-button>
|
|
|
- </a-popconfirm>
|
|
|
+ <a-button :style="{ marginRight: '8px' }" @click="handleCancel">关闭</a-button>
|
|
|
+ <a-button :style="{ marginRight: '8px' }" @click="editMoney">保存</a-button>
|
|
|
+
|
|
|
</div>
|
|
|
</a-drawer>
|
|
|
</div>
|
|
@@ -267,6 +267,7 @@
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
import moment from 'moment'
|
|
|
+import {editMoney} from '@api/document/book.js'
|
|
|
|
|
|
export default {
|
|
|
name: 'AddBookDrawer', // 新增 托书
|
|
@@ -397,13 +398,15 @@ export default {
|
|
|
title: '货代',
|
|
|
dataIndex: 'freightForwarder',
|
|
|
width: 60,
|
|
|
- className: 'replacecolor'
|
|
|
+ className: 'replacecolor',
|
|
|
+ scopedSlots: { customRender: 'CNYfreighForward' },
|
|
|
},
|
|
|
{
|
|
|
title: '金额',
|
|
|
dataIndex: 'amount',
|
|
|
width: 60,
|
|
|
- className: 'replacecolor'
|
|
|
+ className: 'replacecolor',
|
|
|
+ scopedSlots: { customRender: 'CNYmoney' },
|
|
|
},
|
|
|
{
|
|
|
title: '项目列',
|
|
@@ -475,6 +478,21 @@ export default {
|
|
|
this.close()
|
|
|
},
|
|
|
|
|
|
+ editMoney(){
|
|
|
+ var param = {
|
|
|
+ id:this.addBook.id
|
|
|
+ }
|
|
|
+ param.rmbList = this.rmbList
|
|
|
+ param.usdList = this.usdList
|
|
|
+ editMoney(param).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ this.close()
|
|
|
+ }else {
|
|
|
+ this.$message.error(res.message);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
close() {
|
|
|
this.$emit('close')
|
|
|
this.addBook ={}
|