|
@@ -141,6 +141,37 @@
|
|
|
{{ i.name + " (" + i.key + ")" }}
|
|
{{ i.name + " (" + i.key + ")" }}
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <!-- <el-button
|
|
|
|
|
+ @change="batchCall"
|
|
|
|
|
+ v-if="dayIndex == 10 || dayIndex == 0"
|
|
|
|
|
+ color="rgba(111, 182, 184, 1)"
|
|
|
|
|
+ class="payment"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ >
|
|
|
|
|
+ 批量催缴
|
|
|
|
|
+ </el-button> -->
|
|
|
|
|
+ <el-popconfirm
|
|
|
|
|
+ v-if="dayIndex == 10 || dayIndex == 0"
|
|
|
|
|
+ width="220"
|
|
|
|
|
+ confirm-button-text="确认"
|
|
|
|
|
+ cancel-button-text="取消"
|
|
|
|
|
+ :icon="InfoFilled"
|
|
|
|
|
+ icon-color="#f89626"
|
|
|
|
|
+ title="是否批量发送催缴信息?"
|
|
|
|
|
+ @confirm="batchCall"
|
|
|
|
|
+ @cancel="cancelEvent"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #reference>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ color="rgba(111, 182, 184, 1)"
|
|
|
|
|
+ class="payment"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ >批量催缴</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-popconfirm>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="footer">
|
|
<div class="footer">
|
|
|
<el-table
|
|
<el-table
|
|
@@ -276,6 +307,21 @@
|
|
|
<el-table-column align="center" width="240" label="操作">
|
|
<el-table-column align="center" width="240" label="操作">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<div class="operation">
|
|
<div class="operation">
|
|
|
|
|
+ <el-popconfirm
|
|
|
|
|
+ v-if="scope.row.state == '待支付'"
|
|
|
|
|
+ width="220"
|
|
|
|
|
+ confirm-button-text="确认"
|
|
|
|
|
+ cancel-button-text="取消"
|
|
|
|
|
+ :icon="InfoFilled"
|
|
|
|
|
+ icon-color="#f89626"
|
|
|
|
|
+ title="是否发送催缴信息?"
|
|
|
|
|
+ @confirm="singleCall(scope.row)"
|
|
|
|
|
+ @cancel="cancelEvent"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #reference>
|
|
|
|
|
+ <div class="btns">催缴</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-popconfirm>
|
|
|
<div
|
|
<div
|
|
|
class="btns"
|
|
class="btns"
|
|
|
v-if="scope.row.dispatch == 1"
|
|
v-if="scope.row.dispatch == 1"
|
|
@@ -614,7 +660,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="consumables">
|
|
<div class="consumables">
|
|
|
<div
|
|
<div
|
|
|
- style="border-bottom: 1px solid #ccc;margin-top: 8px"
|
|
|
|
|
|
|
+ style="border-bottom: 1px solid #ccc; margin-top: 8px"
|
|
|
class=""
|
|
class=""
|
|
|
v-for="i in consumables"
|
|
v-for="i in consumables"
|
|
|
>
|
|
>
|
|
@@ -677,9 +723,8 @@
|
|
|
<div class="overContent">{{ i.content }}</div>
|
|
<div class="overContent">{{ i.content }}</div>
|
|
|
<!-- 评价图片 -->
|
|
<!-- 评价图片 -->
|
|
|
<div v-if="i.images" class="evaluateImg">
|
|
<div v-if="i.images" class="evaluateImg">
|
|
|
- <div v-for="(item, index) in i.images">
|
|
|
|
|
|
|
+ <div v-for="(item, index) in i.images" v-viewer>
|
|
|
<img
|
|
<img
|
|
|
- @click="lookImg(item)"
|
|
|
|
|
:key="index"
|
|
:key="index"
|
|
|
:src="item"
|
|
:src="item"
|
|
|
alt=""
|
|
alt=""
|
|
@@ -1818,7 +1863,7 @@ const refuseOfflineRules = reactive({
|
|
|
|
|
|
|
|
// 关单 (关单--------------------------------------------)
|
|
// 关单 (关单--------------------------------------------)
|
|
|
const customsOrderVisible = ref(false); // 关单弹窗
|
|
const customsOrderVisible = ref(false); // 关单弹窗
|
|
|
-const customsOrderTitle = ref('关单'); // 关单弹窗
|
|
|
|
|
|
|
+const customsOrderTitle = ref("关单"); // 关单弹窗
|
|
|
const customsOrderList = ref(); // 关单原因列表
|
|
const customsOrderList = ref(); // 关单原因列表
|
|
|
const customsOrderData = ref({
|
|
const customsOrderData = ref({
|
|
|
reason: "",
|
|
reason: "",
|
|
@@ -1926,6 +1971,7 @@ watch(
|
|
|
);
|
|
);
|
|
|
// 天数切换按钮选项
|
|
// 天数切换按钮选项
|
|
|
const dayBtn = (index) => {
|
|
const dayBtn = (index) => {
|
|
|
|
|
+ console.log(index);
|
|
|
dayIndex.value = index;
|
|
dayIndex.value = index;
|
|
|
getList();
|
|
getList();
|
|
|
};
|
|
};
|
|
@@ -1946,6 +1992,72 @@ const printBox = () => {
|
|
|
});
|
|
});
|
|
|
}, 500);
|
|
}, 500);
|
|
|
};
|
|
};
|
|
|
|
|
+// 批量催缴
|
|
|
|
|
+const batchCall = async () => {
|
|
|
|
|
+ let data = {
|
|
|
|
|
+ ids: [],
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ let res = await axios({
|
|
|
|
|
+ method: "post",
|
|
|
|
|
+ url: api.value + "/repairCall/batchCall",
|
|
|
|
|
+ headers: {
|
|
|
|
|
+ token: sessionStorage.getItem("token"),
|
|
|
|
|
+ user_head: sessionStorage.getItem("userhead"),
|
|
|
|
|
+ },
|
|
|
|
|
+ data: data,
|
|
|
|
|
+ });
|
|
|
|
|
+ console.log(res, "批量催缴");
|
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
|
+ getList();
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: "success",
|
|
|
|
|
+ showClose: true,
|
|
|
|
|
+ message: res.data.message,
|
|
|
|
|
+ center: true,
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: "error",
|
|
|
|
|
+ showClose: true,
|
|
|
|
|
+ message: res.data.message,
|
|
|
|
|
+ center: true,
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
+// 单个催缴
|
|
|
|
|
+const singleCall = async (row) => {
|
|
|
|
|
+ let data = {
|
|
|
|
|
+ id: row.id,
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ let res = await axios({
|
|
|
|
|
+ method: "get",
|
|
|
|
|
+ url: api.value + "/repairCall/singleCall",
|
|
|
|
|
+ headers: {
|
|
|
|
|
+ token: sessionStorage.getItem("token"),
|
|
|
|
|
+ user_head: sessionStorage.getItem("userhead"),
|
|
|
|
|
+ },
|
|
|
|
|
+ params: data,
|
|
|
|
|
+ });
|
|
|
|
|
+ console.log(res, "单个催缴");
|
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
|
+ getList();
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: "success",
|
|
|
|
|
+ showClose: true,
|
|
|
|
|
+ message: res.data.message,
|
|
|
|
|
+ center: true,
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: "error",
|
|
|
|
|
+ showClose: true,
|
|
|
|
|
+ message: res.data.message,
|
|
|
|
|
+ center: true,
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
// 工单数据
|
|
// 工单数据
|
|
|
const getList = async () => {
|
|
const getList = async () => {
|
|
@@ -3028,7 +3140,7 @@ const cancelRefuseOffline = () => {
|
|
|
// 关单弹窗 (关单-----------------------------------------)
|
|
// 关单弹窗 (关单-----------------------------------------)
|
|
|
const customsOrder = (row) => {
|
|
const customsOrder = (row) => {
|
|
|
customsOrderVisible.value = true;
|
|
customsOrderVisible.value = true;
|
|
|
- customsOrderTitle.value='关单';
|
|
|
|
|
|
|
+ customsOrderTitle.value = "关单";
|
|
|
console.log(row, "关单row");
|
|
console.log(row, "关单row");
|
|
|
customsOrderData.value.recordId = row.id;
|
|
customsOrderData.value.recordId = row.id;
|
|
|
customsOrderData.value.reason = "";
|
|
customsOrderData.value.reason = "";
|
|
@@ -3039,7 +3151,7 @@ const cancelCustomsOrder = () => {
|
|
|
};
|
|
};
|
|
|
// 确定关单
|
|
// 确定关单
|
|
|
const customsOrderYes = async () => {
|
|
const customsOrderYes = async () => {
|
|
|
- if(customsOrderTitle.value=='关单'){
|
|
|
|
|
|
|
+ if (customsOrderTitle.value == "关单") {
|
|
|
let data = {
|
|
let data = {
|
|
|
recordId: customsOrderData.value.recordId,
|
|
recordId: customsOrderData.value.recordId,
|
|
|
reason: customsOrderData.value.reason,
|
|
reason: customsOrderData.value.reason,
|
|
@@ -3055,7 +3167,7 @@ const customsOrderYes = async () => {
|
|
|
},
|
|
},
|
|
|
params: data,
|
|
params: data,
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
searchBtn();
|
|
searchBtn();
|
|
|
customsOrderVisible.value = false;
|
|
customsOrderVisible.value = false;
|
|
@@ -3081,9 +3193,9 @@ const customsOrderYes = async () => {
|
|
|
center: true,
|
|
center: true,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- }else if(customsOrderTitle.value=='批量关单'){
|
|
|
|
|
|
|
+ } else if (customsOrderTitle.value == "批量关单") {
|
|
|
let data = {
|
|
let data = {
|
|
|
- recordIds: customsOrderData.value.recordId.join(','),
|
|
|
|
|
|
|
+ recordIds: customsOrderData.value.recordId.join(","),
|
|
|
reason: customsOrderData.value.reason,
|
|
reason: customsOrderData.value.reason,
|
|
|
remark: customsOrderData.value.remark,
|
|
remark: customsOrderData.value.remark,
|
|
|
};
|
|
};
|
|
@@ -3097,7 +3209,7 @@ const customsOrderYes = async () => {
|
|
|
},
|
|
},
|
|
|
params: data,
|
|
params: data,
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
searchBtn();
|
|
searchBtn();
|
|
|
customsOrderVisible.value = false;
|
|
customsOrderVisible.value = false;
|
|
@@ -3631,19 +3743,19 @@ const handleSelectionChange = (val) => {
|
|
|
const batchOperate = async () => {
|
|
const batchOperate = async () => {
|
|
|
if (selectData.list.length) {
|
|
if (selectData.list.length) {
|
|
|
customsOrderVisible.value = true;
|
|
customsOrderVisible.value = true;
|
|
|
- customsOrderTitle.value='批量关单';
|
|
|
|
|
|
|
+ customsOrderTitle.value = "批量关单";
|
|
|
customsOrderData.value.reason = "";
|
|
customsOrderData.value.reason = "";
|
|
|
customsOrderData.value.remark = "";
|
|
customsOrderData.value.remark = "";
|
|
|
- let recordIds=[]
|
|
|
|
|
- selectData.list.forEach(i=>{
|
|
|
|
|
- recordIds.push(i.id)
|
|
|
|
|
- })
|
|
|
|
|
- customsOrderData.value.recordId=recordIds
|
|
|
|
|
- }else{
|
|
|
|
|
|
|
+ let recordIds = [];
|
|
|
|
|
+ selectData.list.forEach((i) => {
|
|
|
|
|
+ recordIds.push(i.id);
|
|
|
|
|
+ });
|
|
|
|
|
+ customsOrderData.value.recordId = recordIds;
|
|
|
|
|
+ } else {
|
|
|
ElMessage({
|
|
ElMessage({
|
|
|
type: "warning",
|
|
type: "warning",
|
|
|
showClose: true,
|
|
showClose: true,
|
|
|
- message:'至少勾选一条数据',
|
|
|
|
|
|
|
+ message: "至少勾选一条数据",
|
|
|
center: true,
|
|
center: true,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -3714,7 +3826,7 @@ onBeforeMount(async () => {
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
.content-box {
|
|
.content-box {
|
|
|
- width: 97.5%;
|
|
|
|
|
|
|
+ width: calc(100% - 40px);
|
|
|
height: 89%;
|
|
height: 89%;
|
|
|
margin: 20px auto;
|
|
margin: 20px auto;
|
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
@@ -3743,7 +3855,7 @@ onBeforeMount(async () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.middle {
|
|
.middle {
|
|
|
- width: 96%;
|
|
|
|
|
|
|
+ width: calc(100% - 60px);
|
|
|
margin: 10px auto;
|
|
margin: 10px auto;
|
|
|
padding-top: 10px;
|
|
padding-top: 10px;
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -3775,13 +3887,16 @@ onBeforeMount(async () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
|
.btn {
|
|
|
- margin: 10px 0;
|
|
|
|
|
-
|
|
|
|
|
|
|
+ width: calc(100% - 60px);
|
|
|
|
|
+ margin: 10px auto;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
ul {
|
|
ul {
|
|
|
list-style: none;
|
|
list-style: none;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
- padding: 0 20px;
|
|
|
|
|
- margin: 0 0 0 15px;
|
|
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+ margin: 0;
|
|
|
|
|
|
|
|
li {
|
|
li {
|
|
|
color: #000;
|
|
color: #000;
|
|
@@ -3803,10 +3918,13 @@ onBeforeMount(async () => {
|
|
|
color: rgba(111, 182, 184, 1);
|
|
color: rgba(111, 182, 184, 1);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ .payment {
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.footer {
|
|
.footer {
|
|
|
- width: 96%;
|
|
|
|
|
|
|
+ width: calc(100% - 60px);
|
|
|
height: 550px;
|
|
height: 550px;
|
|
|
margin: 10px auto 30px;
|
|
margin: 10px auto 30px;
|
|
|
|
|
|
|
@@ -4861,7 +4979,7 @@ onBeforeMount(async () => {
|
|
|
|
|
|
|
|
.el-pagination {
|
|
.el-pagination {
|
|
|
// width: 1600px;
|
|
// width: 1600px;
|
|
|
- width: 96%;
|
|
|
|
|
|
|
+ width: calc(100% - 60px);
|
|
|
margin: 0 auto 18px;
|
|
margin: 0 auto 18px;
|
|
|
justify-content: flex-end;
|
|
justify-content: flex-end;
|
|
|
|
|
|