|
@@ -35,12 +35,13 @@
|
|
>
|
|
>
|
|
默认定金比例</el-button
|
|
默认定金比例</el-button
|
|
>
|
|
>
|
|
- <WinseaContentModal
|
|
|
|
- v-model="outerVisibleDefaultEdit"
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ width="25%"
|
|
title="设置默认定金比例"
|
|
title="设置默认定金比例"
|
|
- @on-cancel="handleClose"
|
|
|
|
|
|
+ :visible.sync="outerVisibleDefaultEdit"
|
|
|
|
+ :append-to-body="true"
|
|
>
|
|
>
|
|
- <div style="width: 90%">
|
|
|
|
|
|
+ <div style="width: 50%">
|
|
<div class="dingjin">定金比例(元/吨)</div>
|
|
<div class="dingjin">定金比例(元/吨)</div>
|
|
<el-input
|
|
<el-input
|
|
type="textarea"
|
|
type="textarea"
|
|
@@ -50,43 +51,22 @@
|
|
>
|
|
>
|
|
</el-input>
|
|
</el-input>
|
|
</div>
|
|
</div>
|
|
- <div class="dialog-footer">
|
|
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
<el-button @click="outerVisibleDefaultEdit = false"
|
|
<el-button @click="outerVisibleDefaultEdit = false"
|
|
>取 消</el-button
|
|
>取 消</el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="editDepositRatio()"
|
|
|
|
- >确定</el-button
|
|
|
|
|
|
+ <el-button type="primary" @click="editDefaultDepositRatio()"
|
|
|
|
+ >确 定</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
- </WinseaContentModal>
|
|
|
|
-
|
|
|
|
- <!--修改定金比例-->
|
|
|
|
- <WinseaContentModal
|
|
|
|
- v-model="outerVisibleEdit"
|
|
|
|
- title="修改定金比例"
|
|
|
|
- @on-cancel="handleClose"
|
|
|
|
- >
|
|
|
|
- <div style="width: 90%" class="xiugai">
|
|
|
|
- <el-input
|
|
|
|
- type="textarea"
|
|
|
|
- :rows="2"
|
|
|
|
- maxlength="30"
|
|
|
|
- placeholder="请输入定金比例"
|
|
|
|
- v-model="depositRatio"
|
|
|
|
- >
|
|
|
|
- </el-input>
|
|
|
|
- </div>
|
|
|
|
- <div class="dialog-footer">
|
|
|
|
- <el-button @click="outerVisibleEdit = false">取 消</el-button>
|
|
|
|
- <el-button type="primary" @click="editPrice(0)">确定</el-button>
|
|
|
|
- </div>
|
|
|
|
- </WinseaContentModal>
|
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
|
<!--增加定金-->
|
|
<!--增加定金-->
|
|
- <WinseaContentModal
|
|
|
|
- v-model="outerVisibleAdd"
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ width="30%"
|
|
title="增加定金"
|
|
title="增加定金"
|
|
- @on-cancel="handleClose"
|
|
|
|
|
|
+ :visible.sync="outerVisibleAdd"
|
|
|
|
+ :append-to-body="true"
|
|
>
|
|
>
|
|
<div class="addprice">
|
|
<div class="addprice">
|
|
已付定金
|
|
已付定金
|
|
@@ -95,7 +75,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="addpricejine">增加金额</div>
|
|
<div class="addpricejine">增加金额</div>
|
|
- <div style="width: 90%" class="zengjia">
|
|
|
|
|
|
+ <div style="width: 50%" class="zengjia">
|
|
<el-input
|
|
<el-input
|
|
type="textarea"
|
|
type="textarea"
|
|
:rows="2"
|
|
:rows="2"
|
|
@@ -106,17 +86,18 @@
|
|
</el-input>
|
|
</el-input>
|
|
<div class="yuan">元</div>
|
|
<div class="yuan">元</div>
|
|
</div>
|
|
</div>
|
|
- <div class="dialog-footer">
|
|
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
<el-button @click="outerVisibleAdd = false">取 消</el-button>
|
|
<el-button @click="outerVisibleAdd = false">取 消</el-button>
|
|
- <el-button type="primary" @click="editPrice(1)">确定</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="editPrice(1)">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
- </WinseaContentModal>
|
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
|
<!--退回定金-->
|
|
<!--退回定金-->
|
|
- <WinseaContentModal
|
|
|
|
- v-model="outerVisibleReturn"
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ width="30%"
|
|
title="退回定金"
|
|
title="退回定金"
|
|
- @on-cancel="handleClose"
|
|
|
|
|
|
+ :visible.sync="outerVisibleReturn"
|
|
|
|
+ :append-to-body="true"
|
|
>
|
|
>
|
|
<div class="returnprice">
|
|
<div class="returnprice">
|
|
可退定金
|
|
可退定金
|
|
@@ -127,7 +108,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="returnpricejine">退回金额</div>
|
|
<div class="returnpricejine">退回金额</div>
|
|
- <div style="width: 90%" class="tuihui">
|
|
|
|
|
|
+ <div style="width: 50%" class="tuihui">
|
|
<el-input
|
|
<el-input
|
|
type="textarea"
|
|
type="textarea"
|
|
:rows="2"
|
|
:rows="2"
|
|
@@ -138,11 +119,11 @@
|
|
</el-input>
|
|
</el-input>
|
|
<div class="yuan">元</div>
|
|
<div class="yuan">元</div>
|
|
</div>
|
|
</div>
|
|
- <div class="dialog-footer">
|
|
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
<el-button @click="outerVisibleReturn = false">取 消</el-button>
|
|
<el-button @click="outerVisibleReturn = false">取 消</el-button>
|
|
- <el-button type="primary" @click="editPrice(2)">确定</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="editPrice(2)">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
- </WinseaContentModal>
|
|
|
|
|
|
+ </el-dialog>
|
|
</template>
|
|
</template>
|
|
</BaseHeaderLayout>
|
|
</BaseHeaderLayout>
|
|
<div>
|
|
<div>
|
|
@@ -196,19 +177,41 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="freezingDeposit" label="冻结定金(元)">
|
|
<el-table-column prop="freezingDeposit" label="冻结定金(元)">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="depositRatio" label="定金比例(元/吨)">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ class="table_td"
|
|
|
|
+ prop="depositRatio"
|
|
|
|
+ label="定金比例(元/吨)"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ scope.row.depositRatio }}
|
|
|
|
|
|
+ <div class="inputChenge">
|
|
|
|
+ <!-- readonly -->
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="scope.row.depositRatio"
|
|
|
|
+ v-if="scope.row.identification == 'true'"
|
|
|
|
+ ></el-input>
|
|
|
|
+ <div v-if="scope.row.identification == 'false'" class="inputs">
|
|
|
|
+ {{ scope.row.depositRatio }}
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<img
|
|
<img
|
|
width="17"
|
|
width="17"
|
|
height="18"
|
|
height="18"
|
|
style="vertical-align: text-top; position: relative; top: -1px"
|
|
style="vertical-align: text-top; position: relative; top: -1px"
|
|
src="../../../public/img/edit.png"
|
|
src="../../../public/img/edit.png"
|
|
- @click="editClick(0, scope.row)"
|
|
|
|
|
|
+ @click="whether(scope.row)"
|
|
|
|
+ v-if="scope.row.identification == 'false'"
|
|
alt=""
|
|
alt=""
|
|
/>
|
|
/>
|
|
|
|
+ <i
|
|
|
|
+ class="el-icon-check"
|
|
|
|
+ style="line-height: 29px; margin-left: 10px"
|
|
|
|
+ v-if="scope.row.identification == 'true'"
|
|
|
|
+ @click="varietyClick(scope.row)"
|
|
|
|
+ ></i>
|
|
|
|
+ <!-- <div>—</div> -->
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+
|
|
<el-table-column prop="updateDate" label="更新时间"> </el-table-column>
|
|
<el-table-column prop="updateDate" label="更新时间"> </el-table-column>
|
|
<el-table-column prop="seller" label="操作" width="280">
|
|
<el-table-column prop="seller" label="操作" width="280">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -352,6 +355,7 @@ export default {
|
|
}
|
|
}
|
|
return fmt
|
|
return fmt
|
|
},
|
|
},
|
|
|
|
+
|
|
handleClose() {
|
|
handleClose() {
|
|
this.accessoryTFs = false
|
|
this.accessoryTFs = false
|
|
},
|
|
},
|
|
@@ -369,6 +373,66 @@ export default {
|
|
this.searchType = state
|
|
this.searchType = state
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
|
|
+ //修改定金比例
|
|
|
|
+ varietyClick(row) {
|
|
|
|
+ if (
|
|
|
|
+ row.depositRatio < 0 ||
|
|
|
|
+ row.depositRatio > 100000 ||
|
|
|
|
+ (String(row.depositRatio).indexOf('.') != -1 &&
|
|
|
|
+ String(row.depositRatio).length -
|
|
|
|
+ (String(row.depositRatio).indexOf('.') + 1) >
|
|
|
|
+ 2)
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '定金比例输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (row.depositRatio) {
|
|
|
|
+ if (isNaN(row.depositRatio)) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '定金比例非数字!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (!row.depositRatio) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '定金比例不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ this.$confirm(`确定要修改定金比例?`, {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ editCustomerInfo({
|
|
|
|
+ flag: 0,
|
|
|
|
+ depositRatio: row.depositRatio,
|
|
|
|
+ id: row.id,
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$notify.success({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '修改成功',
|
|
|
|
+ })
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
|
|
+ .catch((response) => {})
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ return false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ whether(row) {
|
|
|
|
+ row.identification = 'true'
|
|
|
|
+ },
|
|
//列表查询
|
|
//列表查询
|
|
getList() {
|
|
getList() {
|
|
getList({
|
|
getList({
|
|
@@ -380,17 +444,20 @@ export default {
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
|
|
+ for (var i = 0; i < response.records.length; i++) {
|
|
|
|
+ response.records[i].identification = 'false'
|
|
|
|
+ }
|
|
|
|
+ this.customerList = response
|
|
this.deptCircularPage.currentPage = response.current
|
|
this.deptCircularPage.currentPage = response.current
|
|
this.deptCircularPage.pageSize = response.size
|
|
this.deptCircularPage.pageSize = response.size
|
|
this.deptBudgetTotal = response.total
|
|
this.deptBudgetTotal = response.total
|
|
- this.customerList = response
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//设置默认定金比例
|
|
//设置默认定金比例
|
|
installRatio() {
|
|
installRatio() {
|
|
this.outerVisibleDefaultEdit = true
|
|
this.outerVisibleDefaultEdit = true
|
|
},
|
|
},
|
|
- editDepositRatio() {
|
|
|
|
|
|
+ editDefaultDepositRatio() {
|
|
if (
|
|
if (
|
|
this.depositRatio < 1 ||
|
|
this.depositRatio < 1 ||
|
|
this.depositRatio > 100000 ||
|
|
this.depositRatio > 100000 ||
|
|
@@ -439,13 +506,8 @@ export default {
|
|
this.totalDeposit = row.totalDeposit
|
|
this.totalDeposit = row.totalDeposit
|
|
this.freezingDeposit = row.freezingDeposit
|
|
this.freezingDeposit = row.freezingDeposit
|
|
|
|
|
|
- //更改定金比例
|
|
|
|
- if (index == 0) {
|
|
|
|
- this.outerVisibleEdit = true
|
|
|
|
- this.customerInfo.flag = 0
|
|
|
|
- }
|
|
|
|
//增加定金
|
|
//增加定金
|
|
- else if (index == 1) {
|
|
|
|
|
|
+ if (index == 1) {
|
|
this.outerVisibleAdd = true
|
|
this.outerVisibleAdd = true
|
|
this.customerInfo.flag = 1
|
|
this.customerInfo.flag = 1
|
|
}
|
|
}
|
|
@@ -462,41 +524,9 @@ export default {
|
|
this.customerInfo.money = this.money
|
|
this.customerInfo.money = this.money
|
|
this.customerInfo.totalDeposit = this.totalDeposit
|
|
this.customerInfo.totalDeposit = this.totalDeposit
|
|
this.customerInfo.freezingDeposit = this.freezingDeposit
|
|
this.customerInfo.freezingDeposit = this.freezingDeposit
|
|
- //修改定金比例
|
|
|
|
- if (asdf == 0) {
|
|
|
|
- if (
|
|
|
|
- this.depositRatio < 0 ||
|
|
|
|
- this.depositRatio > 100000 ||
|
|
|
|
- (String(this.depositRatio).indexOf('.') != -1 &&
|
|
|
|
- String(this.depositRatio).length -
|
|
|
|
- (String(this.depositRatio).indexOf('.') + 1) >
|
|
|
|
- 2)
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '定金比例输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.depositRatio) {
|
|
|
|
- if (isNaN(this.depositRatio)) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '定金比例非数字!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if (!this.depositRatio) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '定金比例不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
//增加定金
|
|
//增加定金
|
|
- else if (asdf == 1) {
|
|
|
|
|
|
+ if (asdf == 1) {
|
|
if (
|
|
if (
|
|
this.money < 0 ||
|
|
this.money < 0 ||
|
|
this.money > 100000000 ||
|
|
this.money > 100000000 ||
|
|
@@ -573,12 +603,9 @@ export default {
|
|
this.outerVisibleReturn = false
|
|
this.outerVisibleReturn = false
|
|
this.outerVisibleEdit = false
|
|
this.outerVisibleEdit = false
|
|
this.getList()
|
|
this.getList()
|
|
- //修改定金比例
|
|
|
|
- if (asdf == 0) {
|
|
|
|
- this.$message.success('修改定金比例成功')
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
//增加定金
|
|
//增加定金
|
|
- else if (asdf == 1) {
|
|
|
|
|
|
+ if (asdf == 1) {
|
|
this.$message.success('增加成功')
|
|
this.$message.success('增加成功')
|
|
}
|
|
}
|
|
//退回定金
|
|
//退回定金
|
|
@@ -727,7 +754,7 @@ export default {
|
|
}
|
|
}
|
|
/deep/.zengjia .el-textarea__inner {
|
|
/deep/.zengjia .el-textarea__inner {
|
|
display: block;
|
|
display: block;
|
|
- padding: 13px 17px;
|
|
|
|
|
|
+ padding: 13px 9px;
|
|
line-height: 0.5;
|
|
line-height: 0.5;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
width: 80%;
|
|
width: 80%;
|
|
@@ -737,8 +764,8 @@ export default {
|
|
background-image: none;
|
|
background-image: none;
|
|
border: 1px solid #dcdfe6;
|
|
border: 1px solid #dcdfe6;
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
- transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
|
|
margin-left: 180px;
|
|
margin-left: 180px;
|
|
|
|
+ margin-top: 10px;
|
|
}
|
|
}
|
|
|
|
|
|
/deep/.xiugai .el-textarea__inner {
|
|
/deep/.xiugai .el-textarea__inner {
|
|
@@ -754,12 +781,12 @@ export default {
|
|
border: 1px solid #dcdfe6;
|
|
border: 1px solid #dcdfe6;
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
- margin-left: 0px;
|
|
|
|
|
|
+ margin-left: 95px;
|
|
}
|
|
}
|
|
|
|
|
|
/deep/.tuihui .el-textarea__inner {
|
|
/deep/.tuihui .el-textarea__inner {
|
|
display: block;
|
|
display: block;
|
|
- padding: 13px 17px;
|
|
|
|
|
|
+ padding: 13px 9px;
|
|
line-height: 0.5;
|
|
line-height: 0.5;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
width: 80%;
|
|
width: 80%;
|
|
@@ -769,8 +796,8 @@ export default {
|
|
background-image: none;
|
|
background-image: none;
|
|
border: 1px solid #dcdfe6;
|
|
border: 1px solid #dcdfe6;
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
- transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
|
|
margin-left: 180px;
|
|
margin-left: 180px;
|
|
|
|
+ margin-top: 10px;
|
|
}
|
|
}
|
|
/deep/.dingjin {
|
|
/deep/.dingjin {
|
|
width: 98px;
|
|
width: 98px;
|
|
@@ -791,7 +818,8 @@ export default {
|
|
border: 1px solid #dcdfe6;
|
|
border: 1px solid #dcdfe6;
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
- margin-left: 180px;
|
|
|
|
|
|
+ margin-left: 155px;
|
|
|
|
+ margin-top: 10px;
|
|
}
|
|
}
|
|
/deep/.addprice {
|
|
/deep/.addprice {
|
|
width: 98px;
|
|
width: 98px;
|
|
@@ -803,8 +831,8 @@ export default {
|
|
}
|
|
}
|
|
/deep/.yuan {
|
|
/deep/.yuan {
|
|
width: 10px;
|
|
width: 10px;
|
|
- margin-left: 1400px;
|
|
|
|
- margin-top: -36px;
|
|
|
|
|
|
+ margin-left: 150%;
|
|
|
|
+ margin-top: -32px;
|
|
}
|
|
}
|
|
/deep/.addpricejine {
|
|
/deep/.addpricejine {
|
|
width: 98px;
|
|
width: 98px;
|
|
@@ -824,11 +852,18 @@ export default {
|
|
/deep/.yifudingjin {
|
|
/deep/.yifudingjin {
|
|
margin-left: 135px;
|
|
margin-left: 135px;
|
|
width: 70px;
|
|
width: 70px;
|
|
- margin-top: -31px;
|
|
|
|
|
|
+ margin-top: -19px;
|
|
|
|
+}
|
|
|
|
+.inputChenge {
|
|
|
|
+ width: 50%;
|
|
|
|
+ display: inline-flex;
|
|
|
|
+}
|
|
|
|
+.inputs {
|
|
|
|
+ margin: 0 auto;
|
|
}
|
|
}
|
|
/deep/.ketuidingjin {
|
|
/deep/.ketuidingjin {
|
|
margin-left: 135px;
|
|
margin-left: 135px;
|
|
width: 70px;
|
|
width: 70px;
|
|
- margin-top: -31px;
|
|
|
|
|
|
+ margin-top: -19px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|