Commit 16a8e4ca by swl

gx

parent 67cc2a1a
No preview for this file type
...@@ -107,7 +107,19 @@ ...@@ -107,7 +107,19 @@
type="success" type="success"
size="mini" size="mini"
round round
@click="pass(scope.row)" @click="pass(scope.row, 'default')"
>通过
</el-button>
<el-button
v-if="
scope.row.state == 2 &&
searchForm.departmentCode == '10000031' &&
realEstateArea == '丹阳市'
"
type="success"
size="mini"
round
@click="pass(scope.row, 'danYang')"
>通过 >通过
</el-button> </el-button>
<el-button <el-button
...@@ -149,6 +161,7 @@ ...@@ -149,6 +161,7 @@
> --> > -->
<el-button <el-button
v-if=" v-if="
realEstateArea !== '丹阳市' &&
scope.row.state != 0 && scope.row.state != 0 &&
scope.row.state != 4 && scope.row.state != 4 &&
searchForm.departmentCode == '10000027' searchForm.departmentCode == '10000027'
...@@ -182,6 +195,43 @@ ...@@ -182,6 +195,43 @@
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</el-button> </el-button>
<!-- 丹阳市的申请表在退税办理 -->
<el-button
v-else-if="
realEstateArea == '丹阳市' &&
scope.row.state != 0 &&
scope.row.state != 4 &&
searchForm.departmentCode == '10000031'
"
type="success"
size="mini"
round
>
<el-dropdown
size="mini"
@command="handleCommand(scope.row, $event, 'danYang')"
>
<span class="el-dropdown-link">
申请表<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-tooltip
class="item"
effect="dark"
content="请点击的“重置申请表”按钮,以解决文件不存在或文件内容有误的问题"
placement="top-start"
>
<el-dropdown-item icon="el-icon-refresh" command="reset">
重置申请表
</el-dropdown-item>
</el-tooltip>
<el-dropdown-item icon="el-icon-download" command="download">
下载申请表
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</table-template> </table-template>
...@@ -435,6 +485,34 @@ ...@@ -435,6 +485,34 @@
<el-button type="primary" @click="determine">确 定</el-button> <el-button type="primary" @click="determine">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog
:visible.sync="refundShow"
width="600px"
title="提示"
class="refuseDialog"
>
<el-form
:model="refundForm"
ref="refundForm"
label-width="120px"
:rules="refundRules"
>
<el-form-item label="通过原因" prop="reason">
<el-input type="textarea" v-model="refundForm.reason"></el-input>
</el-form-item>
<el-form-item label="退税金额 (元)" prop="taxReimbursementAmount">
<el-input
type="number"
v-model="refundForm.taxReimbursementAmount"
></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="refundShow = false">取 消</el-button>
<el-button type="primary" @click="refundConfirm">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
...@@ -692,6 +770,26 @@ export default { ...@@ -692,6 +770,26 @@ export default {
}, },
], ],
detail: {}, detail: {},
templateType: "",
refundShow: false,
refundDetail: {},
refundRules: {
reason: [
{
required: true,
message: "请输入通过原因",
trigger: "blur",
},
],
taxReimbursementAmount: [
{
required: true,
message: "请输入退税金额",
trigger: "blur",
},
],
},
refundForm: {},
}; };
}, },
watch: { watch: {
...@@ -712,6 +810,16 @@ export default { ...@@ -712,6 +810,16 @@ export default {
this.init(); this.init();
} }
}, },
refundShow: {
handler(val) {
if (!val) {
this.refundForm = {
reason: "",
taxReimbursementAmount: "",
};
}
},
},
}, },
methods: { methods: {
init() { init() {
...@@ -898,7 +1006,8 @@ export default { ...@@ -898,7 +1006,8 @@ export default {
// console.log("取消审核"); // console.log("取消审核");
}); });
}, },
pass(row) { pass(row, type) {
if (type == "default") {
this.$prompt(`确定通过该申请的复审吗?`, "提示", { this.$prompt(`确定通过该申请的复审吗?`, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
...@@ -950,6 +1059,51 @@ export default { ...@@ -950,6 +1059,51 @@ export default {
.catch(() => { .catch(() => {
// console.log("取消审核"); // console.log("取消审核");
}); });
} else if (type == "danYang") {
this.refundShow = true;
this.refundDetail = row;
}
},
// 退税办理--确定
refundConfirm() {
this.$refs.refundForm.validate((valid) => {
if (valid) {
queryCommerDeedTaxDetailInfo({ code: this.refundDetail.code }).then(
(res) => {
if (res.success) {
let params = {
code: this.refundDetail.code,
idCard: res.data.idCard,
phone: res.data.phone,
createTime: this.refundDetail.createTime,
checkArea: this.refundDetail.checkArea,
name: this.userName,
departmentName: this.departmentName,
// name: '人才窗口',
state: 6,
reviewerId: this.refundDetail.reviewerId,
reason: this.refundForm.reason,
taxReimbursementAmount:
this.refundForm.taxReimbursementAmount,
};
updateCommerDeedTaxState(params).then((res) => {
if (res.success) {
this.$message.success(`审批通过`);
this.init();
this.recordShow = false;
} else {
this.$message.warning(
res.msg || "审批失败,请检查审批流程是否存在问题"
);
}
});
} else {
this.$message.warning(res.msg);
}
}
);
}
});
}, },
deny(row) { deny(row) {
this.$prompt(`确定驳回该申请的复审吗?`, "提示", { this.$prompt(`确定驳回该申请的复审吗?`, "提示", {
...@@ -1060,8 +1214,9 @@ export default { ...@@ -1060,8 +1214,9 @@ export default {
return item.state === state; return item.state === state;
})[0]; })[0];
}, },
async handleCommand(row, com) { async handleCommand(row, com, type) {
console.log(row, com); console.log(row, com);
this.templateType = type;
switch (com) { switch (com) {
case "reset": case "reset":
...@@ -1087,6 +1242,7 @@ export default { ...@@ -1087,6 +1242,7 @@ export default {
this.detail = res[0].data; this.detail = res[0].data;
this.arrList = res[1].data; this.arrList = res[1].data;
if (this.templateType == "default") {
this.detail.recordVos.forEach((item) => { this.detail.recordVos.forEach((item) => {
item.departmentName.search("财政") != -1 item.departmentName.search("财政") != -1
? (this.arr1 = item.reason) ? (this.arr1 = item.reason)
...@@ -1098,6 +1254,22 @@ export default { ...@@ -1098,6 +1254,22 @@ export default {
? (this.arr3 = item.reason) ? (this.arr3 = item.reason)
: ""; : "";
}); });
} else if (this.templateType == "danYang") {
this.detail.recordVos.forEach((item) => {
item.departmentName.search("收件") != -1
? (this.arr1 = item.reason)
: "";
item.departmentName.search("不动产") != -1
? (this.arr2 = item.reason)
: "";
item.departmentName.search("税务") != -1
? (this.arr3 = item.reason)
: "";
item.departmentName.search("住建") != -1
? (this.arr4 = item.reason)
: "";
});
}
this.initTemplate(); this.initTemplate();
resolve(); resolve();
...@@ -1151,6 +1323,13 @@ export default { ...@@ -1151,6 +1323,13 @@ export default {
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置
}
if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
} else { } else {
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置
...@@ -1305,4 +1484,7 @@ export default { ...@@ -1305,4 +1484,7 @@ export default {
.el-dropdown >>>.el-dropdown-link{ .el-dropdown >>>.el-dropdown-link{
font-size:12px font-size:12px
} }
.refuseDialog >>>.el-dialog__body{
padding-top:0px ;
}
</style> </style>
...@@ -107,7 +107,19 @@ ...@@ -107,7 +107,19 @@
type="success" type="success"
size="mini" size="mini"
round round
@click="pass(scope.row)" @click="pass(scope.row, 'default')"
>通过
</el-button>
<el-button
v-if="
scope.row.state == 2 &&
searchForm.departmentCode == '10000031' &&
realEstateArea == '丹阳市'
"
type="success"
size="mini"
round
@click="pass(scope.row, 'danYang')"
>通过 >通过
</el-button> </el-button>
<el-button <el-button
...@@ -149,6 +161,7 @@ ...@@ -149,6 +161,7 @@
> --> > -->
<el-button <el-button
v-if=" v-if="
realEstateArea !== '丹阳市' &&
scope.row.state != 0 && scope.row.state != 0 &&
scope.row.state != 4 && scope.row.state != 4 &&
searchForm.departmentCode == '10000027' searchForm.departmentCode == '10000027'
...@@ -182,6 +195,43 @@ ...@@ -182,6 +195,43 @@
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</el-button> </el-button>
<!-- 丹阳市的申请表在退税办理 -->
<el-button
v-else-if="
realEstateArea == '丹阳市' &&
scope.row.state != 0 &&
scope.row.state != 4 &&
searchForm.departmentCode == '10000031'
"
type="success"
size="mini"
round
>
<el-dropdown
size="mini"
@command="handleCommand(scope.row, $event, 'danYang')"
>
<span class="el-dropdown-link">
申请表<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-tooltip
class="item"
effect="dark"
content="请点击的“重置申请表”按钮,以解决文件不存在或文件内容有误的问题"
placement="top-start"
>
<el-dropdown-item icon="el-icon-refresh" command="reset">
重置申请表
</el-dropdown-item>
</el-tooltip>
<el-dropdown-item icon="el-icon-download" command="download">
下载申请表
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</table-template> </table-template>
...@@ -435,6 +485,34 @@ ...@@ -435,6 +485,34 @@
<el-button type="primary" @click="determine">确 定</el-button> <el-button type="primary" @click="determine">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog
:visible.sync="refundShow"
width="600px"
title="提示"
class="refuseDialog"
>
<el-form
:model="refundForm"
ref="refundForm"
label-width="120px"
:rules="refundRules"
>
<el-form-item label="通过原因" prop="reason">
<el-input type="textarea" v-model="refundForm.reason"></el-input>
</el-form-item>
<el-form-item label="退税金额 (元)" prop="taxReimbursementAmount">
<el-input
type="number"
v-model="refundForm.taxReimbursementAmount"
></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="refundShow = false">取 消</el-button>
<el-button type="primary" @click="refundConfirm">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
...@@ -696,6 +774,26 @@ export default { ...@@ -696,6 +774,26 @@ export default {
arr3: "", arr3: "",
docxsrc: "", docxsrc: "",
rowDetail: "", rowDetail: "",
templateType: "",
refundShow: false,
refundDetail: {},
refundRules: {
reason: [
{
required: true,
message: "请输入通过原因",
trigger: "blur",
},
],
taxReimbursementAmount: [
{
required: true,
message: "请输入退税金额",
trigger: "blur",
},
],
},
refundForm: {},
}; };
}, },
watch: { watch: {
...@@ -716,6 +814,16 @@ export default { ...@@ -716,6 +814,16 @@ export default {
this.init(); this.init();
} }
}, },
refundShow: {
handler(val) {
if (!val) {
this.refundForm = {
reason: "",
taxReimbursementAmount: "",
};
}
},
},
}, },
methods: { methods: {
init() { init() {
...@@ -902,7 +1010,8 @@ export default { ...@@ -902,7 +1010,8 @@ export default {
// console.log("取消审核"); // console.log("取消审核");
}); });
}, },
pass(row) { pass(row, type) {
if (type == "default") {
this.$prompt(`确定通过该申请的复审吗?`, "提示", { this.$prompt(`确定通过该申请的复审吗?`, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
...@@ -954,6 +1063,51 @@ export default { ...@@ -954,6 +1063,51 @@ export default {
.catch(() => { .catch(() => {
// console.log("取消审核"); // console.log("取消审核");
}); });
} else if (type == "danYang") {
this.refundShow = true;
this.refundDetail = row;
}
},
// 退税办理--确定
refundConfirm() {
this.$refs.refundForm.validate((valid) => {
if (valid) {
queryHouseDeedTaxDetailInfo({ code: this.refundDetail.code }).then(
(res) => {
if (res.success) {
let params = {
code: this.refundDetail.code,
idCard: res.data.idCard,
phone: res.data.phone,
createTime: this.refundDetail.createTime,
checkArea: this.refundDetail.checkArea,
name: this.userName,
departmentName: this.departmentName,
// name: '人才窗口',
state: 6,
reviewerId: this.refundDetail.reviewerId,
reason: this.refundForm.reason,
taxReimbursementAmount:
this.refundForm.taxReimbursementAmount,
};
updateHouseDeedTaxState(params).then((res) => {
if (res.success) {
this.$message.success(`审批通过`);
this.init();
this.recordShow = false;
} else {
this.$message.warning(
res.msg || "审批失败,请检查审批流程是否存在问题"
);
}
});
} else {
this.$message.warning(res.msg);
}
}
);
}
});
}, },
deny(row) { deny(row) {
this.$prompt(`确定驳回该申请的复审吗?`, "提示", { this.$prompt(`确定驳回该申请的复审吗?`, "提示", {
...@@ -1064,8 +1218,10 @@ export default { ...@@ -1064,8 +1218,10 @@ export default {
return item.state === state; return item.state === state;
})[0]; })[0];
}, },
async handleCommand(row, com) { async handleCommand(row, com, type) {
console.log(row, com); console.log(row, com);
this.templateType = type;
// this.downloadUrl=row.fileUrl // this.downloadUrl=row.fileUrl
switch (com) { switch (com) {
case "reset": case "reset":
...@@ -1089,6 +1245,7 @@ export default { ...@@ -1089,6 +1245,7 @@ export default {
]).then((res) => { ]).then((res) => {
this.detail = res[0].data; this.detail = res[0].data;
this.arrList = res[1].data; this.arrList = res[1].data;
if (this.templateType == "default") {
this.detail.recordVos.forEach((item) => { this.detail.recordVos.forEach((item) => {
item.departmentName.search("财政") != -1 item.departmentName.search("财政") != -1
? (this.arr1 = item.reason) ? (this.arr1 = item.reason)
...@@ -1100,6 +1257,22 @@ export default { ...@@ -1100,6 +1257,22 @@ export default {
? (this.arr3 = item.reason) ? (this.arr3 = item.reason)
: ""; : "";
}); });
} else if (this.templateType == "danYang") {
this.detail.recordVos.forEach((item) => {
item.departmentName.search("收件") != -1
? (this.arr1 = item.reason)
: "";
item.departmentName.search("不动产") != -1
? (this.arr2 = item.reason)
: "";
item.departmentName.search("税务") != -1
? (this.arr3 = item.reason)
: "";
item.departmentName.search("住建") != -1
? (this.arr4 = item.reason)
: "";
});
}
this.initTemplate(); this.initTemplate();
resolve(); resolve();
// } // }
...@@ -1153,6 +1326,13 @@ export default { ...@@ -1153,6 +1326,13 @@ export default {
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置
}
if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
} else { } else {
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置
...@@ -1306,4 +1486,7 @@ export default { ...@@ -1306,4 +1486,7 @@ export default {
.el-dropdown >>>.el-dropdown-link{ .el-dropdown >>>.el-dropdown-link{
font-size:12px font-size:12px
} }
.refuseDialog >>>.el-dialog__body{
padding-top:0px ;
}
</style> </style>
...@@ -107,7 +107,19 @@ ...@@ -107,7 +107,19 @@
type="success" type="success"
size="mini" size="mini"
round round
@click="pass(scope.row)" @click="pass(scope.row, 'default')"
>通过
</el-button>
<el-button
v-if="
scope.row.state == 2 &&
searchForm.departmentCode == '10000031' &&
realEstateArea == '丹阳市'
"
type="success"
size="mini"
round
@click="pass(scope.row, 'danYang')"
>通过 >通过
</el-button> </el-button>
<el-button <el-button
...@@ -158,6 +170,7 @@ ...@@ -158,6 +170,7 @@
> >
<el-button <el-button
v-if=" v-if="
realEstateArea !== '丹阳市' &&
scope.row.state != 0 && scope.row.state != 0 &&
scope.row.state != 4 && scope.row.state != 4 &&
searchForm.departmentCode == '10000027' searchForm.departmentCode == '10000027'
...@@ -168,7 +181,44 @@ ...@@ -168,7 +181,44 @@
> >
<el-dropdown <el-dropdown
size="mini" size="mini"
@command="handleCommand(scope.row, $event)" @command="handleCommand(scope.row, $event, 'default')"
>
<span class="el-dropdown-link">
申请表<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-tooltip
class="item"
effect="dark"
content="请点击的“重置申请表”按钮,以解决文件不存在或文件内容有误的问题"
placement="top-start"
>
<el-dropdown-item icon="el-icon-refresh" command="reset">
重置申请表
</el-dropdown-item>
</el-tooltip>
<el-dropdown-item icon="el-icon-download" command="download">
下载申请表
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</el-button>
<!-- 丹阳市的申请表在退税办理 -->
<el-button
v-else-if="
realEstateArea == '丹阳市' &&
scope.row.state != 0 &&
scope.row.state != 4 &&
searchForm.departmentCode == '10000031'
"
type="success"
size="mini"
round
>
<el-dropdown
size="mini"
@command="handleCommand(scope.row, $event, 'danYang')"
> >
<span class="el-dropdown-link"> <span class="el-dropdown-link">
申请表<i class="el-icon-arrow-down el-icon--right"></i> 申请表<i class="el-icon-arrow-down el-icon--right"></i>
...@@ -444,6 +494,34 @@ ...@@ -444,6 +494,34 @@
<el-button type="primary" @click="determine">确 定</el-button> <el-button type="primary" @click="determine">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog
:visible.sync="refundShow"
width="600px"
title="提示"
class="refuseDialog"
>
<el-form
:model="refundForm"
ref="refundForm"
label-width="120px"
:rules="refundRules"
>
<el-form-item label="通过原因" prop="reason">
<el-input type="textarea" v-model="refundForm.reason"></el-input>
</el-form-item>
<el-form-item label="退税金额 (元)" prop="taxReimbursementAmount">
<el-input
type="number"
v-model="refundForm.taxReimbursementAmount"
></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="refundShow = false">取 消</el-button>
<el-button type="primary" @click="refundConfirm">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
...@@ -701,6 +779,26 @@ export default { ...@@ -701,6 +779,26 @@ export default {
}, },
], ],
detail: {}, detail: {},
templateType: "",
refundShow: false,
refundDetail: {},
refundRules: {
reason: [
{
required: true,
message: "请输入通过原因",
trigger: "blur",
},
],
taxReimbursementAmount: [
{
required: true,
message: "请输入退税金额",
trigger: "blur",
},
],
},
refundForm: {},
}; };
}, },
watch: { watch: {
...@@ -721,6 +819,16 @@ export default { ...@@ -721,6 +819,16 @@ export default {
this.init(); this.init();
} }
}, },
refundShow: {
handler(val) {
if (!val) {
this.refundForm = {
reason: "",
taxReimbursementAmount: "",
};
}
},
},
}, },
methods: { methods: {
init() { init() {
...@@ -919,7 +1027,8 @@ export default { ...@@ -919,7 +1027,8 @@ export default {
// console.log("取消审核"); // console.log("取消审核");
}); });
}, },
pass(row) { pass(row, type) {
if (type == "default") {
this.$prompt(`确定通过该申请的复审吗?`, "提示", { this.$prompt(`确定通过该申请的复审吗?`, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
...@@ -975,8 +1084,52 @@ export default { ...@@ -975,8 +1084,52 @@ export default {
.catch(() => { .catch(() => {
// console.log("取消审核"); // console.log("取消审核");
}); });
} else if (type == "danYang") {
this.refundShow = true;
this.refundDetail = row;
}
},
// 退税办理--确定
refundConfirm() {
this.$refs.refundForm.validate((valid) => {
if (valid) {
queryMultipleDeedTaxDetailInfo({ code: this.refundDetail.code }).then(
(res) => {
if (res.success) {
let params = {
code: this.refundDetail.code,
idCard: res.data.idCard,
phone: res.data.phone,
createTime: this.refundDetail.createTime,
checkArea: this.refundDetail.checkArea,
name: this.userName,
departmentName: this.departmentName,
// name: '人才窗口',
state: 6,
reviewerId: this.refundDetail.reviewerId,
reason: this.refundForm.reason,
taxReimbursementAmount:
this.refundForm.taxReimbursementAmount,
};
updateMultipleDeedTaxState(params).then((res) => {
if (res.success) {
this.$message.success(`审批通过`);
this.init();
this.recordShow = false;
} else {
this.$message.warning(
res.msg || "审批失败,请检查审批流程是否存在问题"
);
}
});
} else {
this.$message.warning(res.msg);
}
}
);
}
});
}, },
deny(row) { deny(row) {
this.$prompt(`确定驳回该申请的复审吗?`, "提示", { this.$prompt(`确定驳回该申请的复审吗?`, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
...@@ -1086,8 +1239,9 @@ export default { ...@@ -1086,8 +1239,9 @@ export default {
return item.state === state; return item.state === state;
})[0]; })[0];
}, },
async handleCommand(row, com) { async handleCommand(row, com, type) {
console.log(row, com); this.templateType = type;
// this.downloadUrl=row.fileUrl // this.downloadUrl=row.fileUrl
switch (com) { switch (com) {
case "reset": case "reset":
...@@ -1111,6 +1265,7 @@ export default { ...@@ -1111,6 +1265,7 @@ export default {
]).then((res) => { ]).then((res) => {
this.detail = res[0].data; this.detail = res[0].data;
this.arrList = res[1].data; this.arrList = res[1].data;
if (this.templateType == "default") {
this.detail.recordVos.forEach((item) => { this.detail.recordVos.forEach((item) => {
item.departmentName.search("财政") != -1 item.departmentName.search("财政") != -1
? (this.arr1 = item.reason) ? (this.arr1 = item.reason)
...@@ -1122,6 +1277,23 @@ export default { ...@@ -1122,6 +1277,23 @@ export default {
? (this.arr3 = item.reason) ? (this.arr3 = item.reason)
: ""; : "";
}); });
} else if (this.templateType == "danYang") {
this.detail.recordVos.forEach((item) => {
item.departmentName.search("收件") != -1
? (this.arr1 = item.reason)
: "";
item.departmentName.search("不动产") != -1
? (this.arr2 = item.reason)
: "";
item.departmentName.search("税务") != -1
? (this.arr3 = item.reason)
: "";
item.departmentName.search("住建") != -1
? (this.arr4 = item.reason)
: "";
});
}
this.initTemplate(); this.initTemplate();
resolve(); resolve();
// } // }
...@@ -1175,6 +1347,13 @@ export default { ...@@ -1175,6 +1347,13 @@ export default {
arr.arr2 = that.arr2 || ""; // 不动产 arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax1.docx"; //模板文件的位置
}
if (this.templateType == "danYang") {
arr.arr1 = that.arr1 || ""; // 财政
arr.arr2 = that.arr2 || ""; // 不动产
arr.arr3 = that.arr3 || ""; // 税务
arr.arr4 = that.arr4 || ""; // 住建
this.docxsrc = "./static/deedTax1_danYang.docx"; //模板文件的位置
} else { } else {
arr.arr3 = that.arr3 || ""; // 税务 arr.arr3 = that.arr3 || ""; // 税务
this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置 this.docxsrc = "./static/deedTax2.docx"; //模板文件的位置
...@@ -1328,4 +1507,7 @@ export default { ...@@ -1328,4 +1507,7 @@ export default {
.el-dropdown >>>.el-dropdown-link{ .el-dropdown >>>.el-dropdown-link{
font-size:12px font-size:12px
} }
.refuseDialog >>>.el-dialog__body{
padding-top:0px ;
}
</style> </style>
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