|
@@ -3,26 +3,17 @@
|
|
|
<div class="customer-head">
|
|
|
<div class="customer-back">
|
|
|
<el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left"
|
|
|
- @click="backToList(0)">返回列表
|
|
|
+ @click="backToList(0)">返回列表
|
|
|
</el-button>
|
|
|
</div>
|
|
|
<div class="add-customer-btn">
|
|
|
<!-- <el-button class="el-button--small-yh" style="margin-right: 10px" type="primary" size="small" v-if="!editButton"-->
|
|
|
<!-- @click="confirmEditing">编辑-->
|
|
|
<!-- </el-button>-->
|
|
|
- <el-button
|
|
|
- class="el-button--small-yh"
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- @click="editCustomer">保存数据
|
|
|
+ <el-button class="el-button--small-yh" type="primary" size="small" @click="editCustomer">保存数据
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- class="el-button--small-yh"
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- @click="enableNot"
|
|
|
- v-if="form.id">
|
|
|
- {{form.enableOrNot == 0 ?'启用':'禁用'}}
|
|
|
+ <el-button class="el-button--small-yh" type="primary" size="small" @click="enableNot" v-if="form.id">
|
|
|
+ {{ form.enableOrNot == 0 ? '启用' : '禁用' }}
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -36,7 +27,7 @@
|
|
|
|
|
|
<script>
|
|
|
|
|
|
-import {typeSave,detail,editenable} from "@/api/tirePartsMall/basicData/accountManagement";
|
|
|
+import { typeSave, detail, editenable } from "@/api/tirePartsMall/basicData/accountManagement";
|
|
|
|
|
|
export default {
|
|
|
name: "detailsPage",
|
|
@@ -58,11 +49,16 @@ export default {
|
|
|
label: '账户类型',
|
|
|
prop: "accountType",
|
|
|
type: 'select',
|
|
|
- props: {
|
|
|
- label: 'cname',
|
|
|
- value: 'id'
|
|
|
- },
|
|
|
- // dicUrl: '/api/blade-sales-part/brandDesc/currency'
|
|
|
+ dicData: [
|
|
|
+ {
|
|
|
+ label: "人民币",
|
|
|
+ value:"人民币",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "外币",
|
|
|
+ value: "外币",
|
|
|
+ }
|
|
|
+ ],
|
|
|
}, {
|
|
|
label: '开户银行',
|
|
|
prop: "bankDeposit"
|
|
@@ -80,15 +76,20 @@ export default {
|
|
|
prop: "currency",
|
|
|
span: 8,
|
|
|
type: 'select',
|
|
|
- props: {
|
|
|
- label: 'cname',
|
|
|
- value: 'id'
|
|
|
- },
|
|
|
- // dicUrl: '/api/blade-sales-part/brandDesc/currency'
|
|
|
+ dicData: [
|
|
|
+ {
|
|
|
+ label: "CNY",
|
|
|
+ value:"CNY",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "USD",
|
|
|
+ value: "USD",
|
|
|
+ }
|
|
|
+ ],
|
|
|
}, {
|
|
|
label: '账户余额',
|
|
|
prop: "accountBalance"
|
|
|
- }, {
|
|
|
+ }, {
|
|
|
label: '备注',
|
|
|
prop: "remarks",
|
|
|
type: 'textarea',
|
|
@@ -107,13 +108,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async created() {
|
|
|
- if (this.onLoad.id){
|
|
|
+ if (this.onLoad.id) {
|
|
|
this.queryData(this.onLoad.id)
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
//启用禁用
|
|
|
- enableNot(){
|
|
|
+ enableNot() {
|
|
|
let data = this.form
|
|
|
editenable({ id: data.id, enableOrNot: data.enableOrNot ? 0 : 1 }).then(res => {
|
|
|
this.$message({
|
|
@@ -131,7 +132,7 @@ export default {
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
})
|
|
|
- detail({id}).then(res => {
|
|
|
+ detail({ id }).then(res => {
|
|
|
this.form = res.data.data;
|
|
|
loading.close()
|
|
|
}).finally(() => {
|