Commit c5024339 authored by 黄奎's avatar 黄奎

页面修改

parent aafde2f3
...@@ -99,12 +99,12 @@ ...@@ -99,12 +99,12 @@
field: 'Account', field: 'Account',
align: 'left' align: 'left'
}, },
{ // {
name: 'CustomerState', // name: 'CustomerState',
label: '账号状态', // label: '账号状态',
field: 'CustomerState', // field: 'CustomerState',
align: 'left' // align: 'left'
}, // },
{ {
name: 'ApproveState', name: 'ApproveState',
label: '审核状态', label: '审核状态',
......
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
</div> </div>
<div class="col-6"> <div class="col-6">
<q-input filled stack-label :dense="false" v-model="objOption.Address" ref="Address" class="col-6 q-pb-lg" <q-input filled stack-label :dense="false" v-model="objOption.Address" ref="Address" class="col-6 q-pb-lg"
label="详细地址" :rules="[val => !!val || '请输入地址']" /> label="详细地址" />
</div> </div>
</div> </div>
<div class="row wrap"> <div class="row wrap">
......
...@@ -29,19 +29,20 @@ ...@@ -29,19 +29,20 @@
.info_Item { .info_Item {
margin: 20px 0; margin: 20px 0;
} }
.customHeader{
.customHeader {
display: inline-block; display: inline-block;
width:55px; width: 55px;
height:55px; height: 55px;
} }
</style> </style>
<template> <template>
<q-dialog v-model="persistent" maximized full-height seamless position="right" @hide="closeperForm"> <q-dialog v-model="persistent" maximized full-height seamless position="right" @hide="closeAuditCustomerForm">
<q-card style="margin-top:61px;width:600px" class="no-border-radius customRightDialog"> <q-card style="margin-top:61px;width:600px" class="no-border-radius customRightDialog">
<div class="drawerTop"> <div class="drawerTop">
<div style="display: flex; align-items: center"> <div style="display: flex; align-items: center">
<div class="className"> <div class="className">
<div class="classFirst">客户审批</div> <div class="classFirst">{{customerObj.Type==1?"客户审批":"客户详情"}}</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -111,16 +112,33 @@ ...@@ -111,16 +112,33 @@
</span> </span>
</div> </div>
</div> </div>
<!--审批-->
<template v-if="customerObj.Type==1">
<div style="display: flex;justify-content: space-between;align-items: center;margin-top: 20px;">
<div>审批意见</div>
<div>
<q-radio v-model="AuditMsg.ApproveState" :val="1" label="通过" />
<q-radio v-model="AuditMsg.ApproveState" :val="2" label="驳回" />
</div>
</div>
<q-input filled stack-label :dense="false" v-model="AuditMsg.ApproveContent" type="textarea" label="审批意见" />
</template>
<!--已审批-->
<template v-else-if="objOption.ApproveState!=0">
<div style="display: flex;justify-content: space-between;align-items: center;margin-top: 20px;"> <div style="display: flex;justify-content: space-between;align-items: center;margin-top: 20px;">
<div>审批意见</div> <div>审批意见</div>
<div> <div>
<q-radio v-model="AuditMsg.ApproveState" :disable="customerObj.Type==2" :val="1" label="通过" /> <q-chip color="teal" text-color="white" size="sm" v-if="objOption.ApproveState==1">
<q-radio v-model="AuditMsg.ApproveState" :disable="customerObj.Type==2" :val="2" label="驳回" /> {{objOption.ApproveStateStr}}
</q-chip>
<q-chip color="red" text-color="white" size="sm" v-else>
{{objOption.ApproveStateStr}}
</q-chip>
</div> </div>
</div> </div>
<q-input filled stack-label :dense="false" :disable="customerObj.Type==2" v-model="AuditMsg.ApproveContent" <q-input filled stack-label :dense="false" :disable="true" v-model="AuditMsg.ApproveContent" type="textarea"
type="textarea" label="审批意见" /> label="审批意见" />
<div class="row info_Item" v-if="customerObj.Type==2"> <div class="row info_Item" v-if="customerObj.Type==2">
<div class="col-6"> <div class="col-6">
<span class="backInfo_Title">审批人:</span> <span class="backInfo_Title">审批人:</span>
...@@ -133,13 +151,15 @@ ...@@ -133,13 +151,15 @@
<span class="backOtherInfo">{{ objOption.ApproveTimeStr }}</span> <span class="backOtherInfo">{{ objOption.ApproveTimeStr }}</span>
</div> </div>
</div> </div>
</template>
</div> </div>
<div style="margin:30px 10px 0 0;text-align:right;"> <div style="margin:30px 10px 0 0;text-align:right;">
<q-btn class="q-mr-md" label="关闭" @click="closeperForm()" /> <q-btn class="q-mr-md" label="关闭" @click="closeAuditCustomerForm()" />
<q-btn color="accent" v-if="customerObj.Type==1" class="q-mr-md" label="保存" @click="saveConfig()" /> <q-btn color="accent" v-if="customerObj.Type==1" class="q-mr-md" label="保存" @click="SaveAuditCustomer()" />
</div> </div>
</q-card> </q-card>
<div class="dialog-out-close" @click="closeperForm" <div class="dialog-out-close" @click="closeAuditCustomerForm"
style="height:40px !important;border-top-left-radius: 4px !important;border-bottom-left-radius: 4px !important;"> style="height:40px !important;border-top-left-radius: 4px !important;border-bottom-left-radius: 4px !important;">
<q-icon name="iconfont icon-jujue1" size="26px" /> <q-icon name="iconfont icon-jujue1" size="26px" />
</div> </div>
...@@ -153,6 +173,8 @@ ...@@ -153,6 +173,8 @@
export default { export default {
components: {}, components: {},
props: { props: {
//customerObj.Type==1--审批
//customerObj.Type==2--详情
customerObj: { customerObj: {
type: Object, type: Object,
default: null default: null
...@@ -183,6 +205,7 @@ ...@@ -183,6 +205,7 @@
CustomerId: this.customerObj.CustomerId CustomerId: this.customerObj.CustomerId
}).then(res => { }).then(res => {
var tempData = res.Data; var tempData = res.Data;
console.log("tempData", tempData);
this.objOption = tempData; this.objOption = tempData;
this.AuditMsg.CustomerId = tempData.CustomerId; this.AuditMsg.CustomerId = tempData.CustomerId;
this.AuditMsg.ApproveState = tempData.ApproveState; this.AuditMsg.ApproveState = tempData.ApproveState;
...@@ -191,8 +214,8 @@ ...@@ -191,8 +214,8 @@
} }
}, },
//保存 //保存
saveConfig() { SaveAuditCustomer() {
if(this.AuditMsg.ApproveState == 0){ if (this.AuditMsg.ApproveState == 0) {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
position: "top", position: "top",
...@@ -218,16 +241,15 @@ ...@@ -218,16 +241,15 @@
position: "top", position: "top",
}); });
this.$emit("success"); this.$emit("success");
this.closeperForm() this.closeAuditCustomerForm()
} }
}) })
}, },
//关闭弹窗 //关闭弹窗
closeperForm() { closeAuditCustomerForm() {
this.$emit('close'); this.$emit('close');
this.persistent = false; this.persistent = false;
}, },
}, },
} }
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment