|
@@ -66,7 +66,7 @@
|
|
|
<el-button size="mini" @click="editClick('B', scope.row)">修改有效期</el-button>
|
|
|
<el-button size="mini" @click="editClick('F', scope.row)" :disabled="!(scope.row.dingdingCorpid || scope.row.wxCorpid)">考勤同步设置</el-button>
|
|
|
<el-button size="mini" @click="editClick('C', scope.row)">修改版本</el-button>
|
|
|
- <el-button size="mini" @click="editClick('D', scope.row)" :disabled="scope.row.setMeal">设为已签约</el-button>
|
|
|
+ <el-button size="mini" @click="editClick('D', scope.row)">{{scope.row.setMeal ? '设为未签约' : '设为已签约'}}</el-button>
|
|
|
<el-button size="mini" @click="editClick('G', scope.row)">其他设置</el-button>
|
|
|
<el-button size="mini" @click="editClick('H', scope.row)">报表配置</el-button>
|
|
|
<el-button size="mini" @click="editClick('E', scope.row)" v-loading="dingdingSync" v-if="scope.row.dingdingCorpid">同步钉钉人员</el-button>
|
|
@@ -159,15 +159,15 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<!-- 设为已签约 -->
|
|
|
- <el-dialog v-if="editDialogD" :visible.sync="editDialogD" title="设为已签约">
|
|
|
+ <el-dialog v-if="editDialogD" :visible.sync="editDialogD" :title="dialogData.setMeal ? '设为未签约' : '设为已签约'">
|
|
|
<el-form label-width="150px">
|
|
|
<el-form-item label="企业名称">{{dialogData.companyName}}</el-form-item>
|
|
|
<el-form-item label="当前是否签约">{{dialogData.setMeal ? "已签约" : "未签约"}}</el-form-item>
|
|
|
- <el-form-item label="即将设置为">已签约</el-form-item>
|
|
|
+ <el-form-item label="即将设置为">{{dialogData.setMeal ? "未签约" : "已签约"}}</el-form-item>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="editDialogD = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="ConfirmD()">确 定</el-button>
|
|
|
+ <el-button type="primary" @click="ConfirmD(dialogData.setMeal)">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<!-- 考勤同步 -->
|
|
@@ -567,15 +567,15 @@
|
|
|
});
|
|
|
},
|
|
|
// 设为已签约
|
|
|
- ConfirmD(){
|
|
|
+ ConfirmD(setMeal){
|
|
|
this.listLoading = true;
|
|
|
- this.http.post('/company/setMeal', { companyId:this.dialogData.id },
|
|
|
+ this.http.post('/company/setMeal', { companyId:this.dialogData.id,meal: setMeal ? 0 : 1 },
|
|
|
res => {
|
|
|
this.listLoading = false;
|
|
|
if (res.code == "ok") {
|
|
|
this.editDialogD = false
|
|
|
this.$message({
|
|
|
- message: "签约成功",
|
|
|
+ message: setMeal ? "取消签约成功" : "签约成功",
|
|
|
type: "success"
|
|
|
})
|
|
|
this.getList()
|