diff --git a/src/api/aftersales/aftersalesWorkOrder.js b/src/api/aftersales/aftersalesWorkOrder.js
index 64d7ff11..99a06766 100644
--- a/src/api/aftersales/aftersalesWorkOrder.js
+++ b/src/api/aftersales/aftersalesWorkOrder.js
@@ -351,4 +351,15 @@ export const $_syncOrder = (data) => {
data
})
}
-// /aftersalesWorkOrder/updateWorkList 修改 钉钉流程号、审核人、审核日期,财务理赔入账日期、操作人
\ No newline at end of file
+// /aftersalesWorkOrder/updateWorkList 修改 钉钉流程号、审核人、审核日期,财务理赔入账日期、操作人
+
+
+
+
+export const $_accounting = (data) => {
+ return request({
+ url: '/api/logpm-aftersales/aftersalesCompletionRecord/update',
+ method: 'post',
+ data
+ })
+}
\ No newline at end of file
diff --git a/src/views/aftersales/aftersalesWorkOrderend.vue b/src/views/aftersales/aftersalesWorkOrderend.vue
index 3c517839..c54ac392 100644
--- a/src/views/aftersales/aftersalesWorkOrderend.vue
+++ b/src/views/aftersales/aftersalesWorkOrderend.vue
@@ -367,12 +367,13 @@
-
财务处理
-
+ -->
移除
@@ -772,6 +773,32 @@
+
+
+
+
+
+
+
+
+ 已处理
+ 未处理
+
+
+
+
+
+
+
@@ -790,6 +817,7 @@ import {
$_getSurveyRecord,
$_getAbnormalPackage,
$_getTrackRecord,
+ $_accounting,
} from '@/api/aftersales/aftersalesWorkOrder';
import { columnList, recordList } from '@/option/aftersales/vueTvemp.js';
import { getToken } from '@/utils/auth';
@@ -821,6 +849,9 @@ const HistoricalPackageList = ref([]); //历史包件数组
const dialogHistoricalPackage = ref(false); //包件弹窗
const HistoricalPackageinput = ref(''); //历史包件选择
const UserPermissions = ref(''); //操作权限
+const accountingLodading=ref(false);//财务是否处理
+const accountingValue=ref('');//财务处理结果
+const accountingID=ref();//财务处理当id前值
const PackageInfo = ref([
//包件信息
{ packageCode: '', orderCode: '', waybillNumber: '' },
@@ -1072,6 +1103,7 @@ const onLoad = () => {
payment: item.compensationMethod,
name: item.resultTypeName,
text: item.compensationMethodName,
+
};
}
);
@@ -1098,6 +1130,7 @@ const onLoad = () => {
reason: item.reasonReceivingPayment, //收款方原因
explains: item.explains, //收款方说明
cld: index + 1,
+ id:item.id
});
});
}
@@ -1112,6 +1145,9 @@ const onLoad = () => {
reason: item.reason, //收款方原因
explains: item.explains, //收款方说明
cld: index + 1,
+ id:item.id,
+ accounting:item.accounting?item.accounting:''
+
});
});
}
@@ -1412,6 +1448,31 @@ const ProportionInput = val => {
console.log(sum, '公司占比');
};
+// 财务处理
+const accountingBtn=(item)=>{
+ accountingLodading.value=true;//开启财务确定弹窗
+ accountingID.value=item.id
+ console.log(accountingID.value,'当前财务处理的ID');
+}
+const accountingFn=()=>{
+ let data={
+ id:accountingID.value,
+ accounting:accountingValue.value
+}
+console.log(data,'处理好的值');
+$_accounting(data).then(res=>{
+ console.log(res,'财务处理');
+ accountingLodading.value=false;//关闭财务确定弹窗
+ if(res.data.code){
+ ElMessage({
+ message: res.data.msg,
+ type: 'success',
+ })
+ }
+ onLoad()
+})
+}
+
// 金额输入汇总
const amountMoney = () => {
// 计算赔款金额总数
@@ -2293,4 +2354,9 @@ const ViewPackageDetails = val => {
.el_lab {
margin-right: 10px !important;
}
+.cw_load{
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}