Commit 5fed15ad by swl

gx

parent 5b79e9e1
...@@ -1415,7 +1415,7 @@ export default { ...@@ -1415,7 +1415,7 @@ export default {
arr.arr1 = that.arr1 || ""; // 财政 arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置 this.docxsrc = "./static/multiDeedTax1.docx"; //模板文件的位置
if (this.templateType == "danYang") { if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政 arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
...@@ -1425,7 +1425,7 @@ export default { ...@@ -1425,7 +1425,7 @@ export default {
} }
} else { } else {
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置 this.docxsrc = "./static/multiDeedTax2.docx"; //模板文件的位置
} }
// let docxname = '购房契税补贴申请表'; //导出文件的名字 // let docxname = '购房契税补贴申请表'; //导出文件的名字
......
...@@ -253,23 +253,21 @@ ...@@ -253,23 +253,21 @@
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-popconfirm <el-button
title="确定通过此申请吗?" type="success"
style="margin-left: 10px" round
@confirm="reviewHandle('pass', detail)" slot="reference"
v-if="detail.state == 0 && detail.state != 1" @click="reviewHandle('pass', detail)"
> >通过
<el-button type="success" round slot="reference">通过 </el-button> </el-button>
</el-popconfirm>
<el-popconfirm <el-button
title="确定拒绝此申请吗?" type="danger"
@confirm="reviewHandle('refuse', detail)" round
v-if="detail.state == 0 && detail.state != 4" slot="reference"
style="margin-left: 10px" @click="reviewHandle('refuse', detail)"
> >拒绝
<el-button type="danger" round slot="reference">拒绝 </el-button> </el-button>
</el-popconfirm>
<!-- <el-button @click="dialogVisible = false">取 消</el-button> <!-- <el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="dialogVisible = false" <el-button type="primary" @click="dialogVisible = false"
...@@ -468,25 +466,65 @@ export default { ...@@ -468,25 +466,65 @@ export default {
reviewHandle(type, row) { reviewHandle(type, row) {
let params = {}; let params = {};
if (type === "pass") { if (type === "pass") {
params = { this.$prompt(`确定通过该申请吗?`, "提示", {
id: row.id, confirmButtonText: "确定",
state: 1, cancelButtonText: "取消",
user: this.userName, inputPlaceholder: "请输入原因",
}; inputType: "textarea",
}).then(({ value }) => {
if (!value) {
this.$message.error("未输入原因");
return;
} else {
params = {
id: row.id,
state: 1,
user: this.userName,
reason: value,
};
applyReview(params).then((res) => {
if (res.code == 200) {
this.$message.success("审核成功");
this.init();
this.dialogVisible = false;
}
});
}
});
} else { } else {
params = { this.$prompt(`确定拒绝该申请吗?`, "提示", {
id: row.id, confirmButtonText: "确定",
state: 4, cancelButtonText: "取消",
user: this.userName, inputPlaceholder: "请输入原因",
}; inputType: "textarea",
}).then(({ value }) => {
if (!value) {
this.$message.error("未输入原因");
return;
} else {
params = {
id: row.id,
state: 4,
user: this.userName,
reason: value,
};
applyReview(params).then((res) => {
if (res.code == 200) {
this.$message.success("审核成功");
this.init();
this.dialogVisible = false;
}
});
}
});
} }
applyReview(params).then((res) => { // applyReview(params).then((res) => {
if (res.code == 200) { // if (res.code == 200) {
this.$message.success("审核成功"); // this.$message.success("审核成功");
this.init(); // this.init();
} // }
}); // });
this.dialogVisible = false; // this.dialogVisible = false;
}, },
view(row) { view(row) {
......
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