Commit 83b58013 by 郝珍华

'hzh'

parent b9fabe56
......@@ -100,7 +100,7 @@
<el-table-column prop="completed_at" label="签约时间" :formatter="onColFormater" align="center" show-overflow-tooltip ></el-table-column>
<el-table-column label="操作" >
<template slot-scope="scope" align="center">
<a v-if="!scope.row.esignUrl" href="javascript:;" @click="toHand(scope.row.id)" style="float:left;text-decoration: none;color:#59C1A6;font-size: 14px;margin-left: 10px;">发起手动</a>
<a href="javascript:;" @click="toHand(scope.row.id)" style="float:left;text-decoration: none;color:#59C1A6;font-size: 14px;margin-left: 10px;">发起手动</a>
</template>
</el-table-column>
</el-table>
......@@ -222,6 +222,25 @@
<el-button :loading="submitLoading" @click="autoSave" style="width:120px;height:36px; background:#54C4A7; border-radius:4px;color: #FFFFFF;font-size: 16px;padding-top: 10px;">保存</el-button>
</div>
</el-dialog>
<el-dialog width="862px" :visible.sync="showDong">
<div slot="title">
<div style="width: 862px; height: 1px;background-color: #E3E3E3;margin: 17px 20px 0px -20px"></div>
</div>
<el-form :model="enttemplate" :rules="rulesd" ref="enttemplate" label-width="100px" label="right" style="padding:0px 100px;" >
<div style="0px 10px; line-height: 15px;padding-bottom:40px;">
<div style="width:2px;height:15px;float: left;background-color: #54C4A7">
</div>
<span style="font-size:15px;color: #333333;float: left;font-weight:bold;margin-left: 7px;">模板信息</span>
</div>
<el-form-item label="模板名称:" prop="name" >
<el-input v-model="enttemplate.name" placeholder="请输入模板名称:例如韵达、沐冉" maxlength="50" style="width:468px;" clearable ></el-input>
</el-form-item>
</el-form>
<div style="margin-left: 200px;">
<el-button :loading="saveLoading" @click="saveTemplate" style="width:120px;height:36px; background:#54C4A7; border-radius:4px;color: #FFFFFF;font-size: 16px;padding-top: 10px;">保存</el-button>
</div>
</el-dialog>
</div>
</gsb-pcpage>
......@@ -73,6 +73,16 @@
aggreement: {},
autoAggreement: {},
autoUploadResult: null,
enttemplate: {},
showDong:false,
saveLoading: false,
rulesd: {
name : [
{ required: true, message: '请输入模板名称', trigger: 'blur' },
{ validator: validMethod, trigger: 'blur' }
],
},
}
},
mounted: function () {
......@@ -80,7 +90,35 @@
},
created: function () {},
methods: {
saveTemplate() {
var self = this;
self.$refs.enttemplate.validate((valid) => {
if (valid) {
self.saveLoading = true;
setTimeout(() => {
self.saveLoading = false;
}, 15000);
self.$root.postReq("/web/enttemplateCtl/mysave", self.enttemplate).then(function (d) {
if (d.status == 0) {
self.$message.success(`保存成功`);
self.showEdit = false;
self.getList();
} else {
self.$alert(d.msg || '保存失败', '提示', {
confirmButtonText: '确定',
callback: action => {}
});
}
self.saveLoading = false;
});
} else {
self.saveLoading = false;
return false;
}
});
},
getEmptySearch() {
return {
list: [],
......@@ -439,10 +477,7 @@
id: id
}).then(function (d) {
if (d.status == 0 && d.data) {
self.$alert("https://bpohhr.gongsibao.com/bpoent?entid="+id, '提示', {
confirmButtonText: '确定',
callback: action => {}
});
self.showDong = true;
} else {
self.$message.warning(d.msg || "签署失败");
}
......
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