Commit 5fed15ad by swl

gx

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