|
@@ -8,9 +8,9 @@
|
|
v-model="form.name"
|
|
v-model="form.name"
|
|
placeholder="请输入合同名称"
|
|
placeholder="请输入合同名称"
|
|
style="width: 500px"
|
|
style="width: 500px"
|
|
- @input="getContractNo"
|
|
|
|
clearable
|
|
clearable
|
|
- ></el-input>
|
|
|
|
|
|
+ @input="getContractNo"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<p>合同编号</p>
|
|
<p>合同编号</p>
|
|
@@ -19,7 +19,7 @@
|
|
placeholder="请输入合同编号"
|
|
placeholder="请输入合同编号"
|
|
style="width: 500px"
|
|
style="width: 500px"
|
|
disabled
|
|
disabled
|
|
- ></el-input>
|
|
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -35,13 +35,13 @@
|
|
:on-change="handlepics"
|
|
:on-change="handlepics"
|
|
:file-list="form.pics"
|
|
:file-list="form.pics"
|
|
>
|
|
>
|
|
- <i slot="default" class="el-icon-plus"></i>
|
|
|
|
|
|
+ <i slot="default" class="el-icon-plus" />
|
|
<div slot="file" slot-scope="{ file }">
|
|
<div slot="file" slot-scope="{ file }">
|
|
<img
|
|
<img
|
|
class="el-upload-list__item-thumbnail"
|
|
class="el-upload-list__item-thumbnail"
|
|
:src="file.url"
|
|
:src="file.url"
|
|
alt=""
|
|
alt=""
|
|
- />
|
|
|
|
|
|
+ >
|
|
<!-- <span class="el-upload-list__item-actions">
|
|
<!-- <span class="el-upload-list__item-actions">
|
|
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
|
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
|
<i class="el-icon-zoom-in"></i>
|
|
<i class="el-icon-zoom-in"></i>
|
|
@@ -57,7 +57,7 @@
|
|
</div>
|
|
</div>
|
|
</el-upload>
|
|
</el-upload>
|
|
<el-dialog :visible.sync="dialogVisible">
|
|
<el-dialog :visible.sync="dialogVisible">
|
|
- <img width="100%" :src="form.pics" alt="" />
|
|
|
|
|
|
+ <img width="100%" :src="form.pics" alt="">
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
<div class="titlesa">
|
|
<div class="titlesa">
|
|
@@ -72,13 +72,13 @@
|
|
:on-change="handleinvoicePics"
|
|
:on-change="handleinvoicePics"
|
|
:file-list="form.invoicePics"
|
|
:file-list="form.invoicePics"
|
|
>
|
|
>
|
|
- <i slot="default" class="el-icon-plus"></i>
|
|
|
|
|
|
+ <i slot="default" class="el-icon-plus" />
|
|
<div slot="file" slot-scope="{ file }">
|
|
<div slot="file" slot-scope="{ file }">
|
|
<img
|
|
<img
|
|
class="el-upload-list__item-thumbnail"
|
|
class="el-upload-list__item-thumbnail"
|
|
:src="file.url"
|
|
:src="file.url"
|
|
alt=""
|
|
alt=""
|
|
- />
|
|
|
|
|
|
+ >
|
|
<!-- <span class="el-upload-list__item-actions">
|
|
<!-- <span class="el-upload-list__item-actions">
|
|
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
|
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
|
<i class="el-icon-zoom-in"></i>
|
|
<i class="el-icon-zoom-in"></i>
|
|
@@ -93,7 +93,7 @@
|
|
</div>
|
|
</div>
|
|
</el-upload>
|
|
</el-upload>
|
|
<el-dialog :visible.sync="dialogVisible">
|
|
<el-dialog :visible.sync="dialogVisible">
|
|
- <img width="100%" :src="form.invoicePics" alt="" />
|
|
|
|
|
|
+ <img width="100%" :src="form.invoicePics" alt="">
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
<div class="titlesa">
|
|
<div class="titlesa">
|
|
@@ -108,44 +108,44 @@
|
|
:on-change="handletradePics"
|
|
:on-change="handletradePics"
|
|
:file-list="form.tradePics"
|
|
:file-list="form.tradePics"
|
|
>
|
|
>
|
|
- <i slot="default" class="el-icon-plus"></i>
|
|
|
|
|
|
+ <i slot="default" class="el-icon-plus" />
|
|
<div slot="file" slot-scope="{ file }">
|
|
<div slot="file" slot-scope="{ file }">
|
|
<img
|
|
<img
|
|
class="el-upload-list__item-thumbnail"
|
|
class="el-upload-list__item-thumbnail"
|
|
:src="file.url"
|
|
:src="file.url"
|
|
alt=""
|
|
alt=""
|
|
- />
|
|
|
|
|
|
+ >
|
|
<span class="el-upload-list__item-actions">
|
|
<span class="el-upload-list__item-actions">
|
|
<span
|
|
<span
|
|
class="el-upload-list__item-preview"
|
|
class="el-upload-list__item-preview"
|
|
@click="handlePictureCardPreview(file)"
|
|
@click="handlePictureCardPreview(file)"
|
|
>
|
|
>
|
|
- <i class="el-icon-zoom-in"></i>
|
|
|
|
|
|
+ <i class="el-icon-zoom-in" />
|
|
</span>
|
|
</span>
|
|
<span
|
|
<span
|
|
v-if="!disabled"
|
|
v-if="!disabled"
|
|
class="el-upload-list__item-delete"
|
|
class="el-upload-list__item-delete"
|
|
@click="handleDownload(file)"
|
|
@click="handleDownload(file)"
|
|
>
|
|
>
|
|
- <i class="el-icon-download"></i>
|
|
|
|
|
|
+ <i class="el-icon-download" />
|
|
</span>
|
|
</span>
|
|
<span
|
|
<span
|
|
v-if="!disabled"
|
|
v-if="!disabled"
|
|
class="el-upload-list__item-delete"
|
|
class="el-upload-list__item-delete"
|
|
@click="handleRemove(file)"
|
|
@click="handleRemove(file)"
|
|
>
|
|
>
|
|
- <i class="el-icon-delete"></i>
|
|
|
|
|
|
+ <i class="el-icon-delete" />
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</el-upload>
|
|
</el-upload>
|
|
<el-dialog :visible.sync="dialogVisible">
|
|
<el-dialog :visible.sync="dialogVisible">
|
|
- <img width="100%" :src="form.tradePics" alt="" />
|
|
|
|
|
|
+ <img width="100%" :src="form.tradePics" alt="">
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
|
- <div class="form" v-for="(item, index) in form.contractDrafts">
|
|
|
|
|
|
+ <div v-for="(item, index) in form.contractDrafts" class="form">
|
|
<el-button type="primary" @click="deletedraft(index)">删除汇票</el-button>
|
|
<el-button type="primary" @click="deletedraft(index)">删除汇票</el-button>
|
|
<el-form ref="form" :model="item" label-width="90px">
|
|
<el-form ref="form" :model="item" label-width="90px">
|
|
<el-form-item label="汇票名称">
|
|
<el-form-item label="汇票名称">
|
|
@@ -166,8 +166,7 @@
|
|
changeE;
|
|
changeE;
|
|
xpectDiscountDate($event, index);
|
|
xpectDiscountDate($event, index);
|
|
"
|
|
"
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="出票日期">
|
|
<el-form-item label="出票日期">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
@@ -175,8 +174,7 @@
|
|
type="date"
|
|
type="date"
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
class="ipwidth"
|
|
class="ipwidth"
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="承兑日期">
|
|
<el-form-item label="承兑日期">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
@@ -184,16 +182,14 @@
|
|
type="date"
|
|
type="date"
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
@change="changeIssueDate($event, index)"
|
|
@change="changeIssueDate($event, index)"
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="到期日期">
|
|
<el-form-item label="到期日期">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="item.expireDate"
|
|
v-model="item.expireDate"
|
|
type="date"
|
|
type="date"
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-form ref="form" :model="form" label-width="100px">
|
|
<el-form ref="form" :model="form" label-width="100px">
|
|
@@ -244,27 +240,25 @@
|
|
<el-select v-model="form.drawersName" placeholder="请选择出票人">
|
|
<el-select v-model="form.drawersName" placeholder="请选择出票人">
|
|
<el-option
|
|
<el-option
|
|
label="新增出票人"
|
|
label="新增出票人"
|
|
- @click.native="addDrawer"
|
|
|
|
value=""
|
|
value=""
|
|
style="color: darkorange"
|
|
style="color: darkorange"
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
- <el-option
|
|
|
|
|
|
+ @click.native="addDrawer"
|
|
|
|
+ />
|
|
|
|
+ <!-- <el-option
|
|
v-for="item in drawersName"
|
|
v-for="item in drawersName"
|
|
:label="item"
|
|
:label="item"
|
|
:value="item"
|
|
:value="item"
|
|
- ></el-option>
|
|
|
|
|
|
+ /> -->
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="承兑人">
|
|
<el-form-item label="承兑人">
|
|
<el-select v-model="form.acceptorName" placeholder="请选择承兑人">
|
|
<el-select v-model="form.acceptorName" placeholder="请选择承兑人">
|
|
- <el-option
|
|
|
|
|
|
+ <!-- <el-option
|
|
v-for="val in acceptorName"
|
|
v-for="val in acceptorName"
|
|
:label="val"
|
|
:label="val"
|
|
:value="val"
|
|
:value="val"
|
|
@click.native="getRate"
|
|
@click.native="getRate"
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
|
|
+ /> -->
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
@@ -292,9 +286,9 @@
|
|
<el-col style="margin: 0 auto">
|
|
<el-col style="margin: 0 auto">
|
|
<div class="titlesa">
|
|
<div class="titlesa">
|
|
<span>附件</span>
|
|
<span>附件</span>
|
|
- <span style="color: #d05c39"
|
|
|
|
- >*支持上传pdf、jpg/jpeg、png格式</span
|
|
|
|
- >
|
|
|
|
|
|
+ <span
|
|
|
|
+ style="color: #d05c39"
|
|
|
|
+ >*支持上传pdf、jpg/jpeg、png格式</span>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<el-upload
|
|
<el-upload
|
|
@@ -307,10 +301,10 @@
|
|
:before-upload="beforeUpload"
|
|
:before-upload="beforeUpload"
|
|
:on-change="handlepicUrls"
|
|
:on-change="handlepicUrls"
|
|
>
|
|
>
|
|
- <i class="el-icon-plus"></i>
|
|
|
|
|
|
+ <i class="el-icon-plus" />
|
|
</el-upload>
|
|
</el-upload>
|
|
<el-dialog :visible.sync="dialogVisible">
|
|
<el-dialog :visible.sync="dialogVisible">
|
|
- <img width="100%" :src="form.contractDrafts.picUrls" alt="" />
|
|
|
|
|
|
+ <img width="100%" :src="form.contractDrafts.picUrls" alt="">
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -327,7 +321,7 @@
|
|
type="warning"
|
|
type="warning"
|
|
style="width: 180px; height: 45px; font-size: 16px"
|
|
style="width: 180px; height: 45px; font-size: 16px"
|
|
@click="onSubmit"
|
|
@click="onSubmit"
|
|
- >确认上传
|
|
|
|
|
|
+ >确认上传
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -348,135 +342,127 @@ export default {
|
|
acceptorName: [],
|
|
acceptorName: [],
|
|
// 出票人列表
|
|
// 出票人列表
|
|
drawersName: [],
|
|
drawersName: [],
|
|
- contractNo: "",
|
|
|
|
|
|
+ contractNo: '',
|
|
supplierId: 2,
|
|
supplierId: 2,
|
|
- name: "",
|
|
|
|
- invoicePics: [
|
|
|
|
- // "https:\/\/easygolf.oss-ap-southeast-6.aliyuncs.com\/golf\/2022-03\/18\/88df7532ff7de229b617.jpg",
|
|
|
|
- // "https:\/\/easygolf.oss-ap-southeast-6.aliyuncs.com\/golf\/2022-03\/18\/ab37cbd176e12cef2f82.jpg"
|
|
|
|
- ],
|
|
|
|
- pics: [
|
|
|
|
- // "https:\/\/easygolf.oss-ap-southeast-6.aliyuncs.com\/golf\/2022-03\/18\/88df7532ff7de229b617.jpg",
|
|
|
|
- // "https:\/\/easygolf.oss-ap-southeast-6.aliyuncs.com\/golf\/2022-03\/18\/ab37cbd176e12cef2f82.jpg"
|
|
|
|
- ],
|
|
|
|
- tradePics: [
|
|
|
|
- // "https:\/\/easygolf.oss-ap-southeast-6.aliyuncs.com\/golf\/2022-03\/18\/88df7532ff7de229b617.jpg"
|
|
|
|
- ],
|
|
|
|
|
|
+ name: '',
|
|
|
|
+ invoicePics: [],
|
|
|
|
+ pics: [],
|
|
|
|
+ tradePics: [],
|
|
contractDrafts: [
|
|
contractDrafts: [
|
|
{
|
|
{
|
|
- name: "",
|
|
|
|
- draftNo: "HP20220709-0958-02356",
|
|
|
|
- acceptorId: "",
|
|
|
|
- drawersId: "",
|
|
|
|
- money: "",
|
|
|
|
- acceptDate: "",
|
|
|
|
- loanLimit: "",
|
|
|
|
- serviceRate: "",
|
|
|
|
- serviceMoney: "",
|
|
|
|
- interestRate: "",
|
|
|
|
- interest: "",
|
|
|
|
|
|
+ name: '',
|
|
|
|
+ draftNo: 'HP20220709-0958-02356',
|
|
|
|
+ acceptorId: '',
|
|
|
|
+ drawersId: '',
|
|
|
|
+ money: '',
|
|
|
|
+ acceptDate: '',
|
|
|
|
+ loanLimit: '',
|
|
|
|
+ serviceRate: '',
|
|
|
|
+ serviceMoney: '',
|
|
|
|
+ interestRate: '',
|
|
|
|
+ interest: '',
|
|
picUrls: [
|
|
picUrls: [
|
|
- "https://easygolf.oss-ap-southeast-6.aliyuncs.com/golf/2022-03/18/88df7532ff7de229b617.jpg",
|
|
|
|
|
|
+ 'https://easygolf.oss-ap-southeast-6.aliyuncs.com/golf/2022-03/18/88df7532ff7de229b617.jpg'
|
|
],
|
|
],
|
|
- expectDiscountDate: "",
|
|
|
|
- issueDate: "",
|
|
|
|
- expireDate: "",
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ expectDiscountDate: '',
|
|
|
|
+ issueDate: '',
|
|
|
|
+ expireDate: ''
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
},
|
|
},
|
|
pickerOptions: {
|
|
pickerOptions: {
|
|
disabledDate(time) {
|
|
disabledDate(time) {
|
|
- return time.getTime() > Date.now();
|
|
|
|
|
|
+ return time.getTime() > Date.now()
|
|
},
|
|
},
|
|
shortcuts: [
|
|
shortcuts: [
|
|
{
|
|
{
|
|
- text: "今天",
|
|
|
|
|
|
+ text: '今天',
|
|
onClick(picker) {
|
|
onClick(picker) {
|
|
- picker.$emit("pick", new Date());
|
|
|
|
- },
|
|
|
|
|
|
+ picker.$emit('pick', new Date())
|
|
|
|
+ }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- text: "昨天",
|
|
|
|
|
|
+ text: '昨天',
|
|
onClick(picker) {
|
|
onClick(picker) {
|
|
- const date = new Date();
|
|
|
|
- date.setTime(date.getTime() - 3600 * 1000 * 24);
|
|
|
|
- picker.$emit("pick", date);
|
|
|
|
- },
|
|
|
|
|
|
+ const date = new Date()
|
|
|
|
+ date.setTime(date.getTime() - 3600 * 1000 * 24)
|
|
|
|
+ picker.$emit('pick', date)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- text: "一周前",
|
|
|
|
|
|
+ text: '一周前',
|
|
onClick(picker) {
|
|
onClick(picker) {
|
|
- const date = new Date();
|
|
|
|
- date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
|
- picker.$emit("pick", date);
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- };
|
|
|
|
|
|
+ const date = new Date()
|
|
|
|
+ date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
|
|
|
|
+ picker.$emit('pick', date)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
this.$request({
|
|
this.$request({
|
|
- url: "/api/Contract/search",
|
|
|
|
- method: "post",
|
|
|
|
|
|
+ url: '/api/Contract/search',
|
|
|
|
+ method: 'post',
|
|
data: {
|
|
data: {
|
|
pageIndex: 1,
|
|
pageIndex: 1,
|
|
- pageSize: 100,
|
|
|
|
- },
|
|
|
|
|
|
+ pageSize: 100
|
|
|
|
+ }
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- this.contractList = res.data.result;
|
|
|
|
- });
|
|
|
|
|
|
+ this.contractList = res.data.result
|
|
|
|
+ })
|
|
this.$request({
|
|
this.$request({
|
|
- url: "/api/Acceptor/search",
|
|
|
|
- method: "post",
|
|
|
|
|
|
+ url: '/api/Acceptor/search',
|
|
|
|
+ method: 'post',
|
|
data: {
|
|
data: {
|
|
pageIndex: 1,
|
|
pageIndex: 1,
|
|
- pageSize: 100,
|
|
|
|
- },
|
|
|
|
|
|
+ pageSize: 100
|
|
|
|
+ }
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- this.acceptorList = res.data.result;
|
|
|
|
- this.acceptorName = Array.from(this.acceptorList, ({ name }) => name);
|
|
|
|
- console.log(this.acceptorName);
|
|
|
|
|
|
+ this.acceptorList = res.data.result
|
|
|
|
+ this.acceptorName = Array.from(this.acceptorList, ({ name }) => name)
|
|
|
|
+ console.log(this.acceptorName)
|
|
// 去除重复的承兑人
|
|
// 去除重复的承兑人
|
|
// for (var i = 0; i < this.acceptorName.length; i++) { // 首次遍历数组
|
|
// for (var i = 0; i < this.acceptorName.length; i++) { // 首次遍历数组
|
|
// for (var j = i + 1; j < this.acceptorName.length; j++) { // 再次遍历数组
|
|
// for (var j = i + 1; j < this.acceptorName.length; j++) { // 再次遍历数组
|
|
- // if (this.acceptorName[i] == this.acceptorName[j]) { // 判断连个值是否相等
|
|
|
|
|
|
+ // if (this.acceptorName[i] === this.acceptorName[j]) { // 判断连个值是否相等
|
|
// this.acceptorName.splice(j, 1); // 相等删除后者
|
|
// this.acceptorName.splice(j, 1); // 相等删除后者
|
|
// j--;
|
|
// j--;
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
// console.log(this.acceptorName)
|
|
// console.log(this.acceptorName)
|
|
- });
|
|
|
|
|
|
+ })
|
|
this.$request({
|
|
this.$request({
|
|
- url: "/api/Drawer/search",
|
|
|
|
- method: "post",
|
|
|
|
|
|
+ url: '/api/Drawer/search',
|
|
|
|
+ method: 'post',
|
|
data: {
|
|
data: {
|
|
pageIndex: 1,
|
|
pageIndex: 1,
|
|
- pageSize: 100,
|
|
|
|
- },
|
|
|
|
|
|
+ pageSize: 100
|
|
|
|
+ }
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- this.drawersList = res.data.result;
|
|
|
|
- this.drawersName = Array.from(this.drawersList, ({ name }) => name);
|
|
|
|
|
|
+ this.drawersList = res.data.result
|
|
|
|
+ this.drawersName = Array.from(this.drawersList, ({ name }) => name)
|
|
// 去除重复的出票人
|
|
// 去除重复的出票人
|
|
for (var i = 0; i < this.drawersName.length; i++) {
|
|
for (var i = 0; i < this.drawersName.length; i++) {
|
|
// 首次遍历数组
|
|
// 首次遍历数组
|
|
for (var j = i + 1; j < this.drawersName.length; j++) {
|
|
for (var j = i + 1; j < this.drawersName.length; j++) {
|
|
// 再次遍历数组
|
|
// 再次遍历数组
|
|
- if (this.drawersName[i] == this.drawersName[j]) {
|
|
|
|
|
|
+ if (this.drawersName[i] === this.drawersName[j]) {
|
|
// 判断连个值是否相等
|
|
// 判断连个值是否相等
|
|
- this.drawersName.splice(j, 1); // 相等删除后者
|
|
|
|
- j--;
|
|
|
|
|
|
+ this.drawersName.splice(j, 1) // 相等删除后者
|
|
|
|
+ j--
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- console.log(this.drawersName);
|
|
|
|
- });
|
|
|
|
|
|
+ console.log(this.drawersName)
|
|
|
|
+ })
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
onSubmit() {
|
|
onSubmit() {
|
|
- console.log(this.form);
|
|
|
|
|
|
+ console.log(this.form)
|
|
// this.$request({
|
|
// this.$request({
|
|
// url: '/api/Contract',
|
|
// url: '/api/Contract',
|
|
// method: 'post',
|
|
// method: 'post',
|
|
@@ -490,101 +476,99 @@ export default {
|
|
// })
|
|
// })
|
|
},
|
|
},
|
|
handlepics(file, fileList) {
|
|
handlepics(file, fileList) {
|
|
- console.log(file, fileList);
|
|
|
|
|
|
+ console.log(file, fileList)
|
|
// this.form.pics.push(file)
|
|
// this.form.pics.push(file)
|
|
- this.form.pics = fileList;
|
|
|
|
- console.log(this.form.pics);
|
|
|
|
|
|
+ this.form.pics = fileList
|
|
|
|
+ console.log(this.form.pics)
|
|
},
|
|
},
|
|
handleinvoicePics(file, fileList) {
|
|
handleinvoicePics(file, fileList) {
|
|
// this.form.invoicePics.push(file)
|
|
// this.form.invoicePics.push(file)
|
|
- this.form.invoicePics = fileList;
|
|
|
|
- console.log(this.form.invoicePics);
|
|
|
|
|
|
+ this.form.invoicePics = fileList
|
|
|
|
+ console.log(this.form.invoicePics)
|
|
},
|
|
},
|
|
handletradePics(file, fileList) {
|
|
handletradePics(file, fileList) {
|
|
// this.form.tradePics.push(file)
|
|
// this.form.tradePics.push(file)
|
|
- this.form.tradePics = fileList;
|
|
|
|
- console.log(this.form.tradePics);
|
|
|
|
|
|
+ this.form.tradePics = fileList
|
|
|
|
+ console.log(this.form.tradePics)
|
|
},
|
|
},
|
|
handlepicUrls(file, fileList, index) {
|
|
handlepicUrls(file, fileList, index) {
|
|
// this.form.contractDrafts[0].picUrls.push(file)
|
|
// this.form.contractDrafts[0].picUrls.push(file)
|
|
- console.log(this.form.contractDrafts[index].picUrls);
|
|
|
|
|
|
+ console.log(this.form.contractDrafts[index].picUrls)
|
|
},
|
|
},
|
|
getContractNo() {
|
|
getContractNo() {
|
|
- let temporaryList = this.contractList.filter(
|
|
|
|
- (item) => item.name == this.form.name
|
|
|
|
- );
|
|
|
|
- if (this.form.name == "" || temporaryList == "") {
|
|
|
|
- this.form.contractNo = "";
|
|
|
|
|
|
+ const temporaryList = this.contractList.filter(
|
|
|
|
+ (item) => item.name === this.form.name
|
|
|
|
+ )
|
|
|
|
+ if (this.form.name === '' || temporaryList === '') {
|
|
|
|
+ this.form.contractNo = ''
|
|
} else {
|
|
} else {
|
|
- this.form.contractNo = temporaryList[0].contractNo;
|
|
|
|
|
|
+ this.form.contractNo = temporaryList[0].contractNo
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getRate() {
|
|
getRate() {
|
|
- let list = this.acceptorList.filter(
|
|
|
|
- (item) => item.name == this.form.acceptorName
|
|
|
|
- );
|
|
|
|
- this.form.contractDrafts[0].interestRate = list[0].interest;
|
|
|
|
- this.form.contractDrafts[0].serviceRate = list[0].serviceRate;
|
|
|
|
|
|
+ const list = this.acceptorList.filter(
|
|
|
|
+ (item) => item.name === this.form.acceptorName
|
|
|
|
+ )
|
|
|
|
+ this.form.contractDrafts[0].interestRate = list[0].interest
|
|
|
|
+ this.form.contractDrafts[0].serviceRate = list[0].serviceRate
|
|
},
|
|
},
|
|
computed() {
|
|
computed() {
|
|
- console.log(this.form.contractDrafts[0].money);
|
|
|
|
|
|
+ console.log(this.form.contractDrafts[0].money)
|
|
},
|
|
},
|
|
addDrawer() {
|
|
addDrawer() {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- path: "/form/addTicketdrawer",
|
|
|
|
- });
|
|
|
|
|
|
+ path: '/form/addTicketdrawer'
|
|
|
|
+ })
|
|
},
|
|
},
|
|
adddraft() {
|
|
adddraft() {
|
|
- console.log(this.form.contractDrafts[0].money);
|
|
|
|
this.form.contractDrafts.push({
|
|
this.form.contractDrafts.push({
|
|
- name: "",
|
|
|
|
- draftNo: "HP20220709-0958-02356",
|
|
|
|
- acceptorId: "",
|
|
|
|
- drawersId: "",
|
|
|
|
- money: "",
|
|
|
|
- acceptDate: "",
|
|
|
|
- loanLimit: "",
|
|
|
|
- serviceRate: "",
|
|
|
|
- serviceMoney: "",
|
|
|
|
- interestRate: "",
|
|
|
|
- interest: "",
|
|
|
|
|
|
+ name: '',
|
|
|
|
+ draftNo: 'HP20220709-0958-02356',
|
|
|
|
+ acceptorId: '',
|
|
|
|
+ drawersId: '',
|
|
|
|
+ money: '',
|
|
|
|
+ acceptDate: '',
|
|
|
|
+ loanLimit: '',
|
|
|
|
+ serviceRate: '',
|
|
|
|
+ serviceMoney: '',
|
|
|
|
+ interestRate: '',
|
|
|
|
+ interest: '',
|
|
picUrls: [
|
|
picUrls: [
|
|
- "https://easygolf.oss-ap-southeast-6.aliyuncs.com/golf/2022-03/18/88df7532ff7de229b617.jpg",
|
|
|
|
|
|
+ 'https://easygolf.oss-ap-southeast-6.aliyuncs.com/golf/2022-03/18/88df7532ff7de229b617.jpg'
|
|
],
|
|
],
|
|
- expectDiscountDate: "",
|
|
|
|
- issueDate: "",
|
|
|
|
- expireDate: "",
|
|
|
|
- });
|
|
|
|
|
|
+ expectDiscountDate: '',
|
|
|
|
+ issueDate: '',
|
|
|
|
+ expireDate: ''
|
|
|
|
+ })
|
|
},
|
|
},
|
|
|
|
|
|
deletedraft(index) {
|
|
deletedraft(index) {
|
|
- const contractDraftsLength = this.form.contractDrafts.length;
|
|
|
|
|
|
+ const contractDraftsLength = this.form.contractDrafts.length
|
|
if (contractDraftsLength > 1) {
|
|
if (contractDraftsLength > 1) {
|
|
- this.form.contractDrafts.splice(index, 1);
|
|
|
|
|
|
+ this.form.contractDrafts.splice(index, 1)
|
|
} else {
|
|
} else {
|
|
- this.$message.error("至少一个");
|
|
|
|
|
|
+ this.$message.error('至少一个')
|
|
}
|
|
}
|
|
- console.log(this.form.contractDrafts[0].money);
|
|
|
|
|
|
+ console.log(this.form.contractDrafts[0].money)
|
|
},
|
|
},
|
|
// 服务费率
|
|
// 服务费率
|
|
inputServiceRate(val, index) {
|
|
inputServiceRate(val, index) {
|
|
- console.log(val, index);
|
|
|
|
- // this.form.contractDrafts[index].money = val;
|
|
|
|
|
|
+ console.log(val, index)
|
|
},
|
|
},
|
|
// 利率
|
|
// 利率
|
|
inputInterestRate(val, index) {
|
|
inputInterestRate(val, index) {
|
|
- console.log(val, index);
|
|
|
|
|
|
+ console.log(val, index)
|
|
},
|
|
},
|
|
// 预计贴现日
|
|
// 预计贴现日
|
|
changeExpectDiscountDate(val, index) {
|
|
changeExpectDiscountDate(val, index) {
|
|
- console.log(val, index);
|
|
|
|
|
|
+ console.log(val, index)
|
|
},
|
|
},
|
|
// 承兑日期
|
|
// 承兑日期
|
|
changeIssueDate(val, index) {
|
|
changeIssueDate(val, index) {
|
|
- console.log(val, index);
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
-};
|
|
|
|
|
|
+ console.log(val, index)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|