Commit 0821bb5e by 无尘

fix: 修改确认弹窗

parent 9040422f
......@@ -4,10 +4,10 @@
* @Author: 无尘
* @Date: 2020-11-09 10:40:12
* @LastEditors: 无尘
* @LastEditTime: 2020-11-09 10:41:18
* @LastEditTime: 2020-12-24 17:01:50
-->
<template>
<div class="common-app-right">
<div class="common-app-right" v-loading="loading">
<el-alert
show-icon
:closable="false">
......@@ -92,7 +92,7 @@
</el-form-item>
<el-form-item label="">
<el-button type="primary" @click="confirm" :loading="loading">保存</el-button>
<el-button type="primary" @click="confirm" >保存</el-button>
</el-form-item>
</el-form>
......@@ -226,6 +226,7 @@ export default {
// 编辑回显
callback({ year, storeInfoId }) {
const { staffId, wxEnterpriseId } = JSON.parse(localStorage.getItem('haoBanUser'));
this.loading = true;
let params = {
storeInfoId,
wxEnterpriseId,
......@@ -239,7 +240,7 @@ export default {
this.form = { ...this.form, ...res.result };
addMemebrValue && (this.addMemberCallback = JSON.parse(addMemebrValue));
performanceValue && (this.performanceCallback = JSON.parse(performanceValue));
});
}).finally(() => this.loading = false);
},
// 获取组件的值
checkGroupIds(val) {
......@@ -347,4 +348,4 @@ export default {
color: #606266;
font-size: 12px;
}
</style>
\ No newline at end of file
</style>
......@@ -4,10 +4,10 @@
* @Author: 无尘
* @Date: 2020-11-12 10:47:17
* @LastEditors: 无尘
* @LastEditTime: 2020-12-03 17:27:07
* @LastEditTime: 2020-12-24 16:52:15
-->
<template>
<div class="common-app-right" style="padding: 20px 0;color: #303133">
<div class="common-app-right" style="padding: 20px 0;color: #303133" v-loading="loading">
<el-form :model="form" label-width="110px">
<el-form-item label="门店名称">
<span v-if="isAll">全部门店</span>
......@@ -64,7 +64,7 @@
</ul>
</div>
<el-button type="primary" :loading="loading" :disabled="$route.query.performanceSubType == 2 && totalDayTarget != form.performanceValue || disableSetting" style="margin-left:20px" @click="confirm">保存</el-button>
<el-button type="primary" :disabled="$route.query.performanceSubType == 2 && totalDayTarget != form.performanceValue || disableSetting" style="margin-left:20px" @click="confirm">保存</el-button>
<el-dialog
title="修改指标"
......@@ -77,28 +77,29 @@
show-icon
:closable="false">
</el-alert>
<div v-loading="loadMonth">
<el-form :model="targetForm" ref="targetForm" hide-required-asterisk label-width="175px" @submit.native.prevent>
<el-form-item
prop="value"
:rules="[
{ required: true, message: '请输入月指标额', trigger: 'blur' }
]">
<span slot="label">
<span class="color1" style="padding-right:35px">{{ form.performanceYm || '--' }}</span>
指标额
</span>
<el-form :model="targetForm" ref="targetForm" hide-required-asterisk label-width="175px" @submit.native.prevent>
<el-form-item
prop="value"
:rules="[
{ required: true, message: '请输入月指标额', trigger: 'blur' }
]">
<span slot="label">
<span class="color1" style="padding-right:35px">{{ form.performanceYm || '--' }}</span>
指标额
</span>
<el-input v-model="targetForm.value" maxlength="11" style="width: 289px" @blur="value => inputPerformance(value)">
<span slot="prefix" style="color:#303133;padding-left:5px"></span>
</el-input>
</el-form-item>
</el-form>
<el-input v-model="targetForm.value" maxlength="11" style="width: 289px" @blur="value => inputPerformance(value)">
<span slot="prefix" style="color:#303133;padding-left:5px"></span>
</el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" :loading="loadMonth" @click="confirmMonthTarget">确 定</el-button>
</span>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="confirmMonthTarget">确 定</el-button>
</span>
</div>
</el-dialog>
</div>
</template>
......@@ -229,6 +230,7 @@ export default {
if (flag == 0) {
that.setDefault();
} else if (flag == 1) {
that.loading = true;
let par = {
enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId,
......@@ -248,7 +250,7 @@ export default {
});
that.tableData = res.result;
}
});
}).finally(() => this.loading = false);
}
},
// 修改月指标
......
......@@ -4,10 +4,10 @@
* @Author: 无尘
* @Date: 2020-11-12 10:48:40
* @LastEditors: 无尘
* @LastEditTime: 2020-12-03 17:26:18
* @LastEditTime: 2020-12-24 16:54:12
-->
<template>
<div class="common-app-right">
<div class="common-app-right" v-loading="loadSave" >
<div class="task-set-content border-box">
<el-alert
title="提示:【导购总计】需大于等于【本店指标】金额。否则无法提交"
......@@ -53,7 +53,7 @@
</el-table>
</div>
<div class="task-set-save m-t-30">
<el-button v-if="clerkObj.settingAble == 1" :disabled="disableSetting || (!equalFlag ? true : false)" :loading="loadSave" type="primary" @click="saveSet">确认</el-button>
<el-button v-if="clerkObj.settingAble == 1" :disabled="disableSetting || (!equalFlag ? true : false)" type="primary" @click="saveSet">确认</el-button>
</div>
</div>
</div>
......@@ -218,6 +218,7 @@ export default {
*/
getData() {
const that = this;
that.loadSave = true;
const para = {
enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId,
......@@ -247,7 +248,7 @@ export default {
})
.catch(function(error) {
});
}).finally(() => this.loadSave = false);
}
},
watch: {
......
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