13 Commits

Author SHA1 Message Date
997f20ee06 查询工单记账图片和修改服务商记账信息 接口添加参数
(cherry picked from commit e768f9c8f8)
2024-09-25 09:48:14 +08:00
d04304ea7d task#14504,换电瓶费用,加号改为减号
(cherry picked from commit 73ec8c267b)
2024-09-25 09:48:14 +08:00
9cd3a70f43 task#14504,记账界面,输入框只能输入整数 2024-08-21 15:27:31 +08:00
431ba13eea task#14504,记账界面,输入框只能输入整数 2024-08-21 15:24:18 +08:00
672ed153da task#14504,结算单页面,辅助轮个数最多可以填四个 2024-08-20 14:49:33 +08:00
65c33e54f5 task#14504,记账模块字段添加 2024-08-19 17:24:41 +08:00
dedb0f53e9 task#14504,kpi的pc端适配js代码影响了后台挂载的H5页面,只给window.location.pathname=='/h5/supplier/dispatch/kpiIndex'加适配 2024-08-07 13:58:50 +08:00
8bed0868f8 task#14504,记账-》查看详情加车衣,电瓶费用展示 2024-07-31 16:57:30 +08:00
70cea4d888 task#14504,记账-》车衣,电瓶费用展示详情界面 2024-07-31 14:48:37 +08:00
6d1df4a720 task#14504,记账-》添加车衣,电瓶,责任险费用有就扣除;新增结算比例,按地库费用结算 2024-07-31 13:56:46 +08:00
a7cf0a837e task#14504,删除首页默认服务商id 2024-07-30 15:29:56 +08:00
ec995b7548 task#14504,月总,客户评价率缺少百分号,移动端时效切换折线图数据bugfix,table双loading优化,请求慢时,日期渲染无效日期格式优化 2024-07-30 14:48:15 +08:00
372bbc44c0 task#14504,清除按钮位置调整,司机搜索使用name 2024-07-25 17:12:31 +08:00
9 changed files with 803 additions and 660 deletions

113
package-lock.json generated
View File

@ -1713,9 +1713,9 @@
} }
}, },
"@vant/icons": { "@vant/icons": {
"version": "1.8.0", "version": "3.0.2",
"resolved": "https://registry.npmjs.org/@vant/icons/-/icons-1.8.0.tgz", "resolved": "https://registry.npmjs.org/@vant/icons/-/icons-3.0.2.tgz",
"integrity": "sha512-sKfEUo2/CkQFuERxvkuF6mGQZDKu3IQdj5rV9Fm0weJXtchDSSQ+zt8qPCNUEhh9Y8shy5PzxbvAfOOkCwlCXg==" "integrity": "sha512-4OlRVMd0uiDtD9hgSISZW8hB95vU0fFtc41tQchRIyiXkR0tS+DydZOLb8/bQkithrNWhW7Uud38MbKjlJ9lJw=="
}, },
"@vant/popperjs": { "@vant/popperjs": {
"version": "1.3.0", "version": "1.3.0",
@ -2030,6 +2030,49 @@
"webpack-merge": "^5.7.3", "webpack-merge": "^5.7.3",
"webpack-virtual-modules": "^0.4.2", "webpack-virtual-modules": "^0.4.2",
"whatwg-fetch": "^3.6.2" "whatwg-fetch": "^3.6.2"
},
"dependencies": {
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.11.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.11.1.tgz",
"integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
},
"json5": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
"integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
"dev": true,
"requires": {
"minimist": "^1.2.0"
}
},
"loader-utils": {
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz",
"integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==",
"dev": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^1.0.1"
}
}
} }
}, },
"@vue/cli-shared-utils": { "@vue/cli-shared-utils": {
@ -2194,47 +2237,6 @@
} }
} }
}, },
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.11.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.11.1.tgz",
"integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
},
"json5": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
"integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
"dev": true,
"requires": {
"minimist": "^1.2.0"
}
},
"loader-utils": {
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz",
"integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==",
"dev": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^1.0.1"
}
}
}
},
"@vue/web-component-wrapper": { "@vue/web-component-wrapper": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/@vue/web-component-wrapper/-/web-component-wrapper-1.3.0.tgz", "resolved": "https://registry.npmjs.org/@vue/web-component-wrapper/-/web-component-wrapper-1.3.0.tgz",
@ -3542,10 +3544,16 @@
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
}, },
"dayjs": {
"version": "1.11.13",
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz",
"integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg=="
},
"de-indent": { "de-indent": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
"integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==" "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==",
"dev": true
}, },
"debug": { "debug": {
"version": "4.3.4", "version": "4.3.4",
@ -4880,7 +4888,8 @@
"he": { "he": {
"version": "1.2.0", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
"integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==" "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
"dev": true
}, },
"highlight.js": { "highlight.js": {
"version": "10.7.3", "version": "10.7.3",
@ -5508,7 +5517,8 @@
"lodash": { "lodash": {
"version": "4.17.21", "version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
"dev": true
}, },
"lodash.debounce": { "lodash.debounce": {
"version": "4.0.8", "version": "4.0.8",
@ -8025,12 +8035,12 @@
} }
}, },
"vant": { "vant": {
"version": "2.12.54", "version": "2.13.2",
"resolved": "https://registry.npmjs.org/vant/-/vant-2.12.54.tgz", "resolved": "https://registry.npmjs.org/vant/-/vant-2.13.2.tgz",
"integrity": "sha512-t7DCiLxNosDrg0Jm5EY9p0A5cAMo5OadmizbYtPEc0ru+OJKEa3kcfxtKIK5on7ZPqoOkyYJt8e6BQ1VDMPsrg==", "integrity": "sha512-anZbbLqXCq+rUJk10D67mn+V/1/i9tfOTdoR+64B0e+0BzV3KFgpHBF76noLa+yX9i/L+8DeL560WMk0GEN38g==",
"requires": { "requires": {
"@babel/runtime": "7.x", "@babel/runtime": "7.x",
"@vant/icons": "^1.7.1", "@vant/icons": "^3.0.2",
"@vant/popperjs": "^1.1.0", "@vant/popperjs": "^1.1.0",
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0", "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
"vue-lazyload": "1.2.3" "vue-lazyload": "1.2.3"
@ -8245,6 +8255,7 @@
"version": "2.7.14", "version": "2.7.14",
"resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.14.tgz", "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.14.tgz",
"integrity": "sha512-zyA5Y3ArvVG0NacJDkkzJuPQDF8RFeRlzV2vLeSnhSpieO6LK2OVbdLPi5MPPs09Ii+gMO8nY4S3iKQxBxDmWQ==", "integrity": "sha512-zyA5Y3ArvVG0NacJDkkzJuPQDF8RFeRlzV2vLeSnhSpieO6LK2OVbdLPi5MPPs09Ii+gMO8nY4S3iKQxBxDmWQ==",
"dev": true,
"requires": { "requires": {
"de-indent": "^1.0.2", "de-indent": "^1.0.2",
"he": "^1.2.0" "he": "^1.2.0"

View File

@ -18,7 +18,7 @@
"qs": "^6.11.2", "qs": "^6.11.2",
"sass": "^1.65.1", "sass": "^1.65.1",
"sass-loader": "^13.3.2", "sass-loader": "^13.3.2",
"vant": "^2.12.54", "vant": "^2.13.2",
"vue": "^2.6.14", "vue": "^2.6.14",
"vue-router": "^3.0.7", "vue-router": "^3.0.7",
"vuex": "^3.6.2", "vuex": "^3.6.2",

View File

@ -3,6 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0">-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover,user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover,user-scalable=no">
<meta name="format-detection" content="telephone=yes"/> <meta name="format-detection" content="telephone=yes"/>
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
@ -34,11 +35,11 @@
// VConsole 默认会挂载到 `window.VConsole` 上 // VConsole 默认会挂载到 `window.VConsole` 上
// let vConsole = new window.VConsole(); // let vConsole = new window.VConsole();
(function (doc, win) { (function (doc, win) {
console.log("==window.location.pathname===",window.location.pathname)
let docEl = doc.documentElement let docEl = doc.documentElement
let resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize' let resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'
recalc = function () { recalc = function () {
var clientWidth = docEl.clientWidth; var clientWidth = docEl.clientWidth;
// console.log("clientWidth",clientWidth)
if (!clientWidth) return; if (!clientWidth) return;
if (clientWidth < 400) { if (clientWidth < 400) {
clientWidth = 400; clientWidth = 400;
@ -48,13 +49,20 @@
if (!doc.addEventListener) return; if (!doc.addEventListener) return;
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
if (isMobile) {// 是移动端不变 if (isMobile) {// 是移动端不变
// console.log("是移动端不变")
}else{ }else{
if(window.location.pathname=='/h5/supplier/dispatch/kpiIndex'){
// console.log("执行了执行了")
win.addEventListener(resizeEvt, recalc, false); win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false); doc.addEventListener('DOMContentLoaded', recalc, false);
} }
// console.log("isMobile",isMobile) /*else{
console.log("走着了这种饿 ")
}*/
}
})(document, window); })(document, window);
</script> </script>
</body> </body>
</html> </html>

View File

@ -132,7 +132,7 @@ export function deleteImage(data){
}) })
} }
//新增记账图片 form-data //新增记账图片 form-data
export function insertRecordPicture(data){ /*export function insertRecordPicture(data){
return request({ return request({
url:'/supplierAppV2/dispatchApp/accountRecord/insertRecordPicture', url:'/supplierAppV2/dispatchApp/accountRecord/insertRecordPicture',
method:'POST', method:'POST',
@ -142,7 +142,7 @@ export function insertRecordPicture(data){
// 'Content-Type': 'multipart/form-data', // 'Content-Type': 'multipart/form-data',
// }, // },
}) })
} }*/
//开票通知列表 //开票通知列表
export function notifyInvoiceList(data){ export function notifyInvoiceList(data){

View File

@ -42,7 +42,7 @@
<div class="metersWrap"> <div class="metersWrap">
<div class="item" > <div class="item" >
<div class="leftKiloMeters">小轮个数</div> <div class="leftKiloMeters">小轮个数</div>
<div class="rightInput"><input type="number" v-model="form.tyreNumber"/></div> <div class="rightInput"><input type="number" v-model="form.tyreNumber" @input="handleInput"/></div>
</div> </div>
<div class="item"> <div class="item">
<div class="leftKiloMeters">等候费</div> <div class="leftKiloMeters">等候费</div>
@ -82,7 +82,7 @@ export default {
bridgeAmountAb:'', bridgeAmountAb:'',
bridgeAmountBc:'', bridgeAmountBc:'',
bridgeAmountCa:'', bridgeAmountCa:'',
tyreNumber:'', tyreNumber:0,
waitAmount:'', waitAmount:'',
dilemmaFee:'', dilemmaFee:'',
customerAmount:'', customerAmount:'',
@ -98,6 +98,15 @@ export default {
await this.getDetail() await this.getDetail()
}, },
methods:{ methods:{
handleInput(event) {
const newValue = parseInt(event.target.value, 10);
if (!isNaN(newValue) && newValue >= 0 && newValue <= 4) {
this.form.tyreNumber = newValue;
} else {
this.$toast('请输入0到4之间的数字')
this.form.tyreNumber = null; // 或者上一个有效值
}
},
submit() { submit() {
this.updatSettlement() this.updatSettlement()
}, },

View File

@ -1,45 +0,0 @@
<template>
<div class="wrap">
<el-table :data="tableData"
stripe
border
style="width: 100%"
class="custom-table">
<el-table-column
v-for="(column,i) in tableData"
:key="i"
:prop="column.prop"
:label="column.label"
:fixed="i===0"
:width="i===0 ? '40' :'80'"
align="center"
>
</el-table-column>
</el-table>
</div>
</template>
<script>
export default {
name: "commonTable",
props: ['tableData'],
data() {
return {}
},
mounted() {
},
methods: {}
}
</script>
<style scoped lang="scss">
@import "@/styles/mixin.scss";
::v-deep .el-table thead{
font-size: 11px;
color: #1D2129;
font-weight: bold;
}
::v-deep .el-table th.el-table__cell.is-leaf {
background-color: #E5E6EB;
}
</style>

View File

@ -210,7 +210,7 @@
v-for="item in driverselectOption" v-for="item in driverselectOption"
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id"> :value="item.name">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
@ -238,7 +238,7 @@
<div v-loading="loadingData" class="contentWrap monthTotal" v-if="[5,6,7,8,9].includes(active)"> <div v-loading="loadingData" class="contentWrap monthTotal" v-if="[5,6,7,8,9].includes(active)">
<div :class="{'comTab':true,'detailTable':isMobile}"> <div :class="{'comTab':true,'detailTable':isMobile}">
<noFit-table :active='active' :is-mobile='isMobile' :table-data="detailList" :label-list="labelList" <noFit-table :active='active' :is-mobile='isMobile' :table-data="detailList" :label-list="labelList"
:loading="loading"></noFit-table> ></noFit-table>
</div> </div>
<!-- <el-pagination <!-- <el-pagination
small small
@ -250,6 +250,7 @@
:total="total"> :total="total">
</el-pagination>--> </el-pagination>-->
<el-pagination <el-pagination
v-if="active !== 9"
small small
:page-sizes="[20, 50, 100]" :page-sizes="[20, 50, 100]"
:current-page.sync="pageNum" :current-page.sync="pageNum"
@ -323,7 +324,7 @@ export default {
pageSize: 20, pageSize: 20,
total: 0, total: 0,
swithVal: true, swithVal: true,
supplierId:'',//1128 supplierId:'',
selectLoading: false, selectLoading: false,
selectOption: [], selectOption: [],
driverId:'',//68517 driverId:'',//68517
@ -351,7 +352,6 @@ export default {
}, },
methods: { methods: {
async selectSupplierNameHanldle(){ async selectSupplierNameHanldle(){
console.log("supplierId",this.supplierId)
await this.getData() await this.getData()
setTimeout(()=>{ setTimeout(()=>{
this.$refs.Doughnut1.initCircle() this.$refs.Doughnut1.initCircle()
@ -361,7 +361,7 @@ export default {
this.$refs.Doughnut5.initCircle() this.$refs.Doughnut5.initCircle()
this.$refs.Doughnut6.initCircle() this.$refs.Doughnut6.initCircle()
this.$refs.Doughnut7.initCircle() this.$refs.Doughnut7.initCircle()
},1000) },1500)
}, },
async remoteMethod(query) { async remoteMethod(query) {
if (query !== '') { if (query !== '') {
@ -398,6 +398,8 @@ export default {
console.log("搜索按钮") console.log("搜索按钮")
}, },
async changeHandle() { async changeHandle() {
this.v1=[]
this.v2=[]
await this.twoTabHanldeData(); await this.twoTabHanldeData();
await this.drawLine(); await this.drawLine();
}, },
@ -435,6 +437,7 @@ export default {
this.activeIndex = 0; this.activeIndex = 0;
this.detailList = []; this.detailList = [];
this.labelList = []; this.labelList = [];
this.driverName=''
this.getData(); this.getData();
if (this.active === 1) { if (this.active === 1) {
setTimeout(() => { setTimeout(() => {
@ -507,6 +510,7 @@ export default {
label: { label: {
show: true, // 显示标签 show: true, // 显示标签
position: 'top', // 标签位置在柱形顶部 position: 'top', // 标签位置在柱形顶部
formatter: '{c}%'
} }
}, },
{ {
@ -854,19 +858,37 @@ export default {
this.indexData = res.data; this.indexData = res.data;
this.supplierName=res.data?.supplierName this.supplierName=res.data?.supplierName
this.indexData.refuseOrderRate=this.indexData.refuseOrderRate*100 this.indexData.refuseOrderRate=this.indexData.refuseOrderRate*100
this.indexData.timeoutOrderRate=this.indexData.timeoutOrderRate*100
if (this.indexData.refuseOrderRate % 1 !== 0) { if (this.indexData.refuseOrderRate % 1 !== 0) {
this.indexData.refuseOrderRate = this.indexData.refuseOrderRate.toFixed(2); this.indexData.refuseOrderRate = this.indexData.refuseOrderRate.toFixed(2);
} }
this.indexData.timeoutOrderRate=this.indexData.timeoutOrderRate*100
if (this.indexData.timeoutOrderRate % 1 !== 0) { if (this.indexData.timeoutOrderRate % 1 !== 0) {
this.indexData.timeoutOrderRate = this.indexData.timeoutOrderRate.toFixed(2); this.indexData.timeoutOrderRate = this.indexData.timeoutOrderRate.toFixed(2);
} }
this.indexData.complainOrderRate=this.indexData.complainOrderRate*100 this.indexData.complainOrderRate=this.indexData.complainOrderRate*100
if (this.indexData.complainOrderRate % 1 !== 0) {
this.indexData.complainOrderRate = this.indexData.complainOrderRate.toFixed(2);
}
this.indexData.customerSatisfaction=this.indexData.customerSatisfaction*100 this.indexData.customerSatisfaction=this.indexData.customerSatisfaction*100
if (this.indexData.customerSatisfaction % 1 !== 0) {
this.indexData.customerSatisfaction = this.indexData.customerSatisfaction.toFixed(2);
}
this.indexData.threeMinutesContactRate=this.indexData.threeMinutesContactRate*100 this.indexData.threeMinutesContactRate=this.indexData.threeMinutesContactRate*100
if (this.indexData.threeMinutesContactRate % 1 !== 0) {
this.indexData.threeMinutesContactRate = this.indexData.threeMinutesContactRate.toFixed(2);
}
this.indexData.urgeRate=this.indexData.urgeRate*100 this.indexData.urgeRate=this.indexData.urgeRate*100
if (this.indexData.urgeRate % 1 !== 0) {
this.indexData.urgeRate = this.indexData.urgeRate.toFixed(2);
}
this.indexData.appRate=this.indexData.appRate*100 this.indexData.appRate=this.indexData.appRate*100
if (this.indexData.appRate % 1 !== 0) {
this.indexData.appRate = this.indexData.appRate.toFixed(2);
}
this.indexData.polymerizationSuccessRate=this.indexData.polymerizationSuccessRate*100 this.indexData.polymerizationSuccessRate=this.indexData.polymerizationSuccessRate*100
if (this.indexData.polymerizationSuccessRate % 1 !== 0) {
this.indexData.polymerizationSuccessRate = this.indexData.polymerizationSuccessRate.toFixed(2);
}
} else if ([1, 2].includes(this.active)) { } else if ([1, 2].includes(this.active)) {
let res = await getStatisticsKpi({ let res = await getStatisticsKpi({
startTime: this.active === 1 ? this.startMonthTime : this.startTime, startTime: this.active === 1 ? this.startMonthTime : this.startTime,
@ -953,7 +975,7 @@ export default {
}); });
this.total = result.total this.total = result.total
this.detailList = result.data?.map(item => { this.detailList = result.data?.map(item => {
let formatVal = dayjs(item.createTime).format('DD'); let formatVal =item.createTime ? dayjs(item.createTime).format('DD') : '';
return {...item, date: formatVal}; return {...item, date: formatVal};
}); });
this.loading = false this.loading = false
@ -1178,11 +1200,13 @@ export default {
this.v2.push(item.threeMinutesReceivingRate.replace('%', '')) this.v2.push(item.threeMinutesReceivingRate.replace('%', ''))
}) })
} else { } else {
console.log(" this.detailList师傅接单时效", this.detailList)
this.detailList?.map(item => { this.detailList?.map(item => {
this.v1.push(item.arriving) this.v1.push(item.arriving)
this.v2.push(item.polymerizationSuccessArriving) this.v2.push(item.polymerizationSuccessArriving)
this.v3.push(item.fortyMinutesArrivalRate.replace('%', '')) this.v3.push(item.fortyMinutesArrivalRate.replace('%', ''))
}) })
console.log("this.v1",this.v1,this.v2,this.v3)
} }
this.detailList?.map((item,index) => { this.detailList?.map((item,index) => {
const columnObj = {} const columnObj = {}
@ -1202,7 +1226,7 @@ export default {
if (this.swithVal) { if (this.swithVal) {
this.detailList?.map(item => { this.detailList?.map(item => {
this.v3.push(item.trailArriving) this.v3.push(item.trailArriving)
this.v4.push(item.trailPolymerizationSuccessArriving) this.v4.push(item.trailPolymerizationSuccessArsriving)
this.v5.push(item.trailFortyMinutesArrivalRate ? item.trailFortyMinutesArrivalRate.replace('%', '') : item.trailFortyMinutesArrivalRate) this.v5.push(item.trailFortyMinutesArrivalRate ? item.trailFortyMinutesArrivalRate.replace('%', '') : item.trailFortyMinutesArrivalRate)
}) })
} else { } else {
@ -1694,6 +1718,10 @@ export default {
::v-deep .el-input__inner{ ::v-deep .el-input__inner{
height: 30px; height: 30px;
} }
::v-deep .el-input__suffix {
top: 4px; /* 给清除按钮预留空间 */
}
} }
.comTab { .comTab {
width: 100%; width: 100%;

View File

@ -46,7 +46,18 @@
</div> </div>
<div class="item"> <div class="item">
<span class="titleLeft">扣除责任险费</span> <span class="titleLeft">扣除责任险费</span>
<span class="content">{{orderInfo.policyAmount}} {{orderInfo.cutInsuranceAmount==1 ? '是' : (orderInfo.cutInsuranceAmount==0 ? '否' : ' ')}}</span> <span
class="content">{{ orderInfo.policyAmount }}</span>
</div>
<div class="item">
<span class="titleLeft">车衣费用</span>
<span
class="content">{{ orderInfo.carClothingToolAmount }}</span>
</div>
<div class="item">
<span class="titleLeft">换电瓶费用</span>
<span
class="content">{{ orderInfo.replaceBatteryAmount }}</span>
</div> </div>
<div class="item"> <div class="item">
<span class="leftTitle fontColor">工单照片:</span> <span class="leftTitle fontColor">工单照片:</span>
@ -62,7 +73,7 @@
<div class="titleContent"> <div class="titleContent">
<div class="flex-between" v-show="abState"> <div class="flex-between" v-show="abState">
<div> 到事发地距离:</div> <div> 到事发地距离:</div>
<div class="halfOpcity"><input type="number" v-model="form.supplierSettleMileageAb"/>公里</div> <div class="halfOpcity"><input @input="validateIntegerInput" type="number" v-model="form.supplierSettleMileageAb"/>公里</div>
</div> </div>
<div class="flex-between" v-show="bcState"> <div class="flex-between" v-show="bcState">
<div> 拖车里程:</div> <div> 拖车里程:</div>
@ -74,31 +85,31 @@
</div> </div>
<div class="flex-between" v-show="bridgeAbState"> <div class="flex-between" v-show="bridgeAbState">
<div>ab路桥费:</div> <div>ab路桥费:</div>
<div class="halfOpcity"><input type="number" v-model="form.supplierBridgeAmountAb"/></div> <div class="halfOpcity"><input @input="validateIntegerInput" type="number" v-model="form.supplierBridgeAmountAb"/></div>
</div> </div>
<div class="flex-between" v-show="bridgeBcState"> <div class="flex-between" v-show="bridgeBcState">
<div>bc路桥费:</div> <div>bc路桥费:</div>
<div class="halfOpcity"><input type="number" v-model="form.supplierBridgeAmountBc"/></div> <div class="halfOpcity"><input @input="validateIntegerInput" type="number" v-model="form.supplierBridgeAmountBc"/></div>
</div> </div>
<div class="flex-between" v-show="bridgeCaState"> <div class="flex-between" v-show="bridgeCaState">
<div>ca路桥费:</div> <div>ca路桥费:</div>
<div class="halfOpcity"><input type="number" v-model="form.supplierBridgeAmountCa"/></div> <div class="halfOpcity"><input @input="validateIntegerInput" type="number" v-model="form.supplierBridgeAmountCa"/></div>
</div> </div>
<div class="flex-between" v-show="waitAmountState"> <div class="flex-between" v-show="waitAmountState">
<div>等候费:</div> <div>等候费:</div>
<div class="halfOpcity inputContent"><input type="number" v-model="form.supplierWaitAmount"/></div> <div class="halfOpcity inputContent"><input @input="validateIntegerInput" type="number" v-model="form.supplierWaitAmount"/></div>
</div> </div>
<div class="flex-between" v-show="tyreAmountState"> <div class="flex-between" v-show="tyreAmountState">
<div>小轮费:</div> <div>小轮费:</div>
<div class="halfOpcity inputContent"><input type="number" v-model="form.supplierTyreAmount"/></div> <div class="halfOpcity inputContent"><input @input="validateIntegerInput" type="number" v-model="form.supplierTyreAmount"/></div>
</div> </div>
<div class="flex-between" v-show="dilemmaAmountState && basePriceDisabled"> <div class="flex-between" v-show="dilemmaAmountState && basePriceDisabled">
<div>困境费:</div> <div>困境费:</div>
<div class="halfOpcity inputContent"><input type="number" v-model="form.supplierDilemmaAmount"/></div> <div class="halfOpcity inputContent"><input @input="validateIntegerInput" type="number" v-model="form.supplierDilemmaAmount"/></div>
</div> </div>
<div class="flex-between" v-show="basementFeeState"> <div class="flex-between" v-show="basementFeeState">
<div>地库费:</div> <div>地库费:</div>
<div class="halfOpcity inputContent"><input type="number" v-model="form.supplierBasementFee"/></div> <div class="halfOpcity inputContent"><input @input="validateIntegerInput" type="number" v-model="form.supplierBasementFee" :disabled="!isBasementSettle" /></div>
</div> </div>
<div class="flex-between"> <div class="flex-between">
<div>收取客户金额:</div> <div>收取客户金额:</div>
@ -106,15 +117,18 @@
</div> </div>
<div class="flex-between bgDisable" :class=" { 'flex-between': true, 'bgDisable' : basePriceDisabled } "> <div class="flex-between bgDisable" :class=" { 'flex-between': true, 'bgDisable' : basePriceDisabled } ">
<div>基本费用:</div> <div>基本费用:</div>
<div class="halfOpcity inputContent " ><input class="disable" type="number" :readonly="basePriceDisabled" v-model="form.supplierBasePrice"/><span ></span></div> <div class="halfOpcity inputContent "><input class="disable" type="number" :readonly="basePriceDisabled || isBasementSettle"
v-model="form.supplierBasePrice"/><span></span></div>
</div> </div>
<div class="flex-between bgDisable"> <div class="flex-between bgDisable">
<div>额外费用总计:</div> <div>额外费用总计:</div>
<div class="halfOpcity inputContent " ><input class="disable" type="number" :readonly="true" v-model="form.supplierExtraPrice"/><span></span></div> <div class="halfOpcity inputContent "><input class="disable" type="number" :readonly="true"
v-model="form.supplierExtraPrice"/><span></span></div>
</div> </div>
<div class="flex-between bgDisable "> <div class="flex-between bgDisable ">
<div>费用总计:</div> <div>费用总计:</div>
<div class="halfOpcity inputContent " ><input class="disable" type="number" :readonly="true" v-model="form.supplierSettleAmount"/><span ></span></div> <div class="halfOpcity inputContent "><input class="disable" type="number" :readonly="true"
v-model="form.supplierSettleAmount"/><span></span></div>
</div> </div>
<div class="flex-between"> <div class="flex-between">
<div> &nbsp;</div> <div> &nbsp;</div>
@ -127,7 +141,9 @@
<!-- <two-common-btn class="btn" @cancelClick="cancelBtn" @submitClick="save" />--> <!-- <two-common-btn class="btn" @cancelClick="cancelBtn" @submitClick="save" />-->
<div class="btn"> <div class="btn">
<button class="cancel" @click="noMultipleClicks(cancelBtn )">取消</button> <button class="cancel" @click="noMultipleClicks(cancelBtn )">取消</button>
<button v-if="orderInfo.checkCount < 3" :class="{'submit' : true,'loading' : loading}" @click="noMultipleClicks(save)" >提交</button> <button v-if="orderInfo.checkCount < 3" :class="{'submit' : true,'loading' : loading}"
@click="noMultipleClicks(save)">提交
</button>
</div> </div>
</div> </div>
@ -139,51 +155,54 @@
</tr> </tr>
<tr v-show="abState"> <tr v-show="abState">
<td class="col1">到事发地距离:{{ orderInfo.settleMileageAb + '公里' }}</td> <td class="col1">到事发地距离:{{ orderInfo.settleMileageAb + '公里' }}</td>
<td class="col2 halfOpc"><input placeholder="输入到事发地距离" v-model="form.supplierSettleMileageAb"/></td> <td class="col2 halfOpc"><input @input="validateIntegerInput" placeholder="输入到事发地距离" v-model="form.supplierSettleMileageAb"/></td>
</tr> </tr>
<tr v-show="bcState"> <tr v-show="bcState">
<td class="col1">拖车里程:{{ orderInfo.settleMileageBc + '公里' }}</td> <td class="col1">拖车里程:{{ orderInfo.settleMileageBc + '公里' }}</td>
<td class="col2 halfOpc"><input placeholder="输入拖车公里" v-model="form.supplierSettleMileageBc"/></td> <td class="col2 halfOpc"><input @input="validateIntegerInput" placeholder="输入拖车公里" v-model="form.supplierSettleMileageBc"/></td>
</tr> </tr>
<tr v-show="caState"> <tr v-show="caState">
<td class="col1">返程里程:{{ orderInfo.settleMileageCa + '公里' }}</td> <td class="col1">返程里程:{{ orderInfo.settleMileageCa + '公里' }}</td>
<td class="col2 halfOpc"><input placeholder="输入返程里程" v-model="form.supplierSettleMileageCa"/></td> <td class="col2 halfOpc"><input @input="validateIntegerInput" placeholder="输入返程里程" v-model="form.supplierSettleMileageCa"/></td>
</tr> </tr>
<tr v-show="bridgeAbState"> <tr v-show="bridgeAbState">
<td class="col1">ab路桥费:{{ orderInfo.bridgeAmountAb + '元' }}</td> <td class="col1">ab路桥费:{{ orderInfo.bridgeAmountAb + '元' }}</td>
<td class="col2 halfOpc"><input placeholder="输入ab路桥费" v-model="form.supplierBridgeAmountAb"/></td> <td class="col2 halfOpc"><input @input="validateIntegerInput" placeholder="输入ab路桥费" v-model="form.supplierBridgeAmountAb"/></td>
</tr> </tr>
<tr v-show="bridgeBcState"> <tr v-show="bridgeBcState">
<td class="col1">bc路桥费:{{ orderInfo.bridgeAmountBc + '元' }}</td> <td class="col1">bc路桥费:{{ orderInfo.bridgeAmountBc + '元' }}</td>
<td class="col2 halfOpc"><input placeholder="输入bc路桥费" v-model="form.supplierBridgeAmountBc"/></td> <td class="col2 halfOpc"><input @input="validateIntegerInput" placeholder="输入bc路桥费" v-model="form.supplierBridgeAmountBc"/></td>
</tr> </tr>
<tr v-show="bridgeCaState"> <tr v-show="bridgeCaState">
<td class="col1">ca路桥费:{{ orderInfo.bridgeAmountCa + '元' }}</td> <td class="col1">ca路桥费:{{ orderInfo.bridgeAmountCa + '元' }}</td>
<td class="col2 halfOpc"><input placeholder="输入ca路桥费" v-model="form.supplierBridgeAmountCa"/></td> <td class="col2 halfOpc"><input @input="validateIntegerInput" placeholder="输入ca路桥费" v-model="form.supplierBridgeAmountCa"/></td>
</tr> </tr>
<tr v-show="tyreAmountState"> <tr v-show="tyreAmountState">
<td class="col1">小轮费:{{ orderInfo.bridgeAmount + '元' }}</td> <td class="col1">小轮费:{{ orderInfo.bridgeAmount + '元' }}</td>
<td class="col2 halfOpc"><input placeholder="输入小轮费" v-model="form.supplierTyreAmount"/></td> <td class="col2 halfOpc"><input @input="validateIntegerInput" placeholder="输入小轮费" v-model="form.supplierTyreAmount"/></td>
</tr> </tr>
<tr v-show="dilemmaAmountState && basePriceDisabled"> <tr v-show="dilemmaAmountState && basePriceDisabled">
<td class="col1">困境费:{{ orderInfo.dilemmaAmount + '元' }}</td> <td class="col1">困境费:{{ orderInfo.dilemmaAmount + '元' }}</td>
<td class="col2 halfOpc"><input placeholder="输入困境费" v-model="form.supplierDilemmaAmount"/></td> <td class="col2 halfOpc"><input @input="validateIntegerInput" placeholder="输入困境费" v-model="form.supplierDilemmaAmount"/></td>
</tr> </tr>
<tr v-show="waitAmountState"> <tr v-show="waitAmountState">
<td class="col1">等候费:{{ orderInfo.waitAmount + '元' }}</td> <td class="col1">等候费:{{ orderInfo.waitAmount + '元' }}</td>
<td class="col2 halfOpc"><input placeholder="输入等候费" v-model="form.supplierWaitAmount"/></td> <td class="col2 halfOpc"><input @input="validateIntegerInput" placeholder="输入等候费" v-model="form.supplierWaitAmount"/></td>
</tr> </tr>
<tr v-show="basementFeeState"> <tr v-show="basementFeeState">
<td class="col1">地库费:{{ orderInfo.basementFee + '元' }}</td> <td class="col1">地库费:{{ orderInfo.basementFee + '元' }}</td>
<td class="col2 halfOpc"><input placeholder="输入地库费" v-model="form.supplierBasementFee"/></td> <td class="col2 halfOpc"><input @input="validateIntegerInput" placeholder="输入地库费" v-model="form.supplierBasementFee"/></td>
</tr> </tr>
<tr> <tr>
<td class="col1">基本费用:{{ orderInfo.basePrice + '元' }}</td> <td class="col1">基本费用:{{ orderInfo.basePrice + '元' }}</td>
<td class="col2 halfOpc" :style="{ opacity: basePriceDisabled ? '1' : '0.5' }"><input :class="basePriceDisabled ? 'supplierdisable' : ''" :readonly="basePriceDisabled" v-model="form.supplierBasePrice"/></td> <td class="col2 halfOpc" :style="{ opacity: basePriceDisabled ? '1' : '0.5' }"><input
:class="basePriceDisabled ? 'supplierdisable' : ''" :readonly="basePriceDisabled"
v-model="form.supplierBasePrice"/></td>
</tr> </tr>
<tr> <tr>
<td class="col1">额外费用总计:{{ orderInfo.extraPrice + '元' }}</td> <td class="col1">额外费用总计:{{ orderInfo.extraPrice + '元' }}</td>
<td class="col2 halfOpc" style="opacity: 1;"><input class="supplierdisable" :readonly="true" v-model="form.supplierExtraPrice"/></td> <td class="col2 halfOpc" style="opacity: 1;"><input class="supplierdisable" :readonly="true"
v-model="form.supplierExtraPrice"/></td>
</tr> </tr>
<tr> <tr>
<td class="col1">收取客户:{{ orderInfo.customerAmount + '元' }}</td> <td class="col1">收取客户:{{ orderInfo.customerAmount + '元' }}</td>
@ -201,7 +220,8 @@
<div class="title col1" style="white-space: nowrap;">审核失败原因</div> <div class="title col1" style="white-space: nowrap;">审核失败原因</div>
<div class="reason">{{ orderInfo.auditRemark }}</div> <div class="reason">{{ orderInfo.auditRemark }}</div>
<div v-show="orderInfo.auditPhoto" style="display: flex;flex-wrap: wrap"> <div v-show="orderInfo.auditPhoto" style="display: flex;flex-wrap: wrap">
<van-image class="camerImg" v-for="(item,index) in auditPhotoList" :key="index" :src="item.url" @click="previewPhoto(index)" /> <van-image class="camerImg" v-for="(item,index) in auditPhotoList" :key="index" :src="item.url"
@click="previewPhoto(index)"/>
</div> </div>
</td> </td>
<td class="col2 alignLeft" style="border-bottom-right-radius: 3px"> <td class="col2 alignLeft" style="border-bottom-right-radius: 3px">
@ -209,7 +229,8 @@
<div class="title" style="margin-bottom: 8px"> 本次补充说明:</div> <div class="title" style="margin-bottom: 8px"> 本次补充说明:</div>
<div style="display: flex;margin-bottom: 5px"> <div style="display: flex;margin-bottom: 5px">
<!-- @click="delSupplierPhoto(item) --> <!-- @click="delSupplierPhoto(item) -->
<img v-for="(item,index) in supplierPhotoList" :key="index" class="supplierImg" :src="item.url" @click="viewHandle(item)"> <img v-for="(item,index) in supplierPhotoList" :key="index" class="supplierImg" :src="item.url"
@click="viewHandle(item)">
</div> </div>
<div style="display: flex"> <div style="display: flex">
<van-uploader <van-uploader
@ -226,8 +247,12 @@
</div> </div>
<van-dialog v-model="show" title="确定删除此照片吗" show-cancel-button @confirm="handleConfirm"></van-dialog> <van-dialog v-model="show" title="确定删除此照片吗" show-cancel-button @confirm="handleConfirm"></van-dialog>
<div class="btn" v-show="auditFormShow"> <div class="btn" v-show="auditFormShow">
<button v-if="orderInfo.checkCount < 3" :class="{'submit' : true,'loading' : loading}" @click="noMultipleClicks(save)">提交</button> <button v-if="orderInfo.checkCount < 3" :class="{'submit' : true,'loading' : loading}"
<button v-if="accountStatus == 2 || accountStatus == 3" :class="{'submit' : true,'loading1' : loading1}" @click="noMultipleClicks(confirmAudit)" >确定审核</button> @click="noMultipleClicks(save)">提交
</button>
<button v-if="accountStatus == 2 || accountStatus == 3" :class="{'submit' : true,'loading1' : loading1}"
@click="noMultipleClicks(confirmAudit)">确定审核
</button>
</div> </div>
</div> </div>
</template> </template>
@ -242,6 +267,7 @@ import {
} from "@/api/mine" } from "@/api/mine"
import {ImagePreview} from "vant"; import {ImagePreview} from "vant";
import {orderReportingList} from "@/api/order"; import {orderReportingList} from "@/api/order";
export default { export default {
name: "accountingView", name: "accountingView",
mixins: [myMixins], mixins: [myMixins],
@ -350,7 +376,11 @@ export default {
exceptionApprovalStatus: '', exceptionApprovalStatus: '',
exceptionApprovalRemark: '', exceptionApprovalRemark: '',
auditSuccessRemark: '', auditSuccessRemark: '',
accountStatus: '' accountStatus: '',
carClothingToolAmount: '',
replaceBatteryAmount: '',
supplierSettleRatio:{},
contractSettleTypeString:'',
}, },
noClick: true, noClick: true,
loading: false, loading: false,
@ -374,15 +404,24 @@ export default {
return !(this.serviceType == '困境救援' || this.serviceType == '困境-吊车' || this.serviceType == '困境救援-事故' || this.serviceType == '困境救援-故障' return !(this.serviceType == '困境救援' || this.serviceType == '困境-吊车' || this.serviceType == '困境救援-事故' || this.serviceType == '困境救援-故障'
|| (this.fixedPrice && parseFloat(this.fixedPrice) > 0 && this.fixedPriceType) || this.supplierId == 500921) || (this.fixedPrice && parseFloat(this.fixedPrice) > 0 && this.fixedPriceType) || this.supplierId == 500921)
}, },
isBasementSettle(){
return (this.form?.supplierSettleRatio?.code == 5)
},
//保险实拖案件,剔除人保和太平事故 //保险实拖案件,剔除人保和太平事故
isCPICDrag() { isCPICDrag() {
return this.settleType == '实拖' && !['PICC10101','PICCSHANGQI','PICC101099','SAIPCC2021',''].includes(this.appCode) return this.settleType == '实拖' && this.orderInfo?.contractType == 1 && !['PICC10101', 'PICCSHANGQI', 'PICC101099', 'SAIPCC2021', ''].includes(this.appCode) && !(this.appCode.indexOf("TAIPING") != -1 && this.orderInfo?.malfunctionReason == 2)
}, },
isBasement() { isBasement() {
return this.serviceType == '困境救援' || this.serviceType == '困境-吊车' || this.serviceType == '困境救援-事故' || this.serviceType == '困境救援-故障' return this.serviceType == '困境救援' || this.serviceType == '困境-吊车' || this.serviceType == '困境救援-事故' || this.serviceType == '困境救援-故障'
}, },
}, },
methods: { methods: {
validateIntegerInput(event) {
const regex = /^\d*$/;
if (!regex.test(event.target.value)) {
event.target.value = event.target.value.replace(/[^\d]/g, '');
}
},
viewSettlementDoc() {//查看结算单 viewSettlementDoc() {//查看结算单
this.$router.push({ this.$router.push({
name: "settlementDetail", name: "settlementDetail",
@ -453,19 +492,18 @@ export default {
}) })
}, },
async compute() { async compute() {
//现金业务置为0 if(this.orderInfo.contractSettleTypeString == '车主现收'){
// if(this.form.contractSettleTypeString == '车主现收'){ this.form.supplierBasePrice = 0
// this.form.supplierBasePrice = 0 this.form.supplierExtraPrice = 0
// this.form.supplierExtraPrice = 0 this.form.supplierSettleAmount = 0
// this.form.supplierSettleAmount = 0 }else {
// } else {
if (this.form.supplierOtherAmount > 0) { if (this.form.supplierOtherAmount > 0) {
if (this.form.supplierOtherAmountRemark == '') { if (this.form.supplierOtherAmountRemark == '') {
this.$alert('请填写其他费用说明'); this.$alert('请填写其他费用说明');
return; return;
} }
} }
if (!this.basePriceDisabled) { if (!this.basePriceDisabled && !this.isBasementSettle) {
//困境的案件,或者一口价案件,基本费用可以输入 //困境的案件,或者一口价案件,基本费用可以输入
let dilemmaBasePrice = parseFloat(this.form.supplierBasePrice) || 0 let dilemmaBasePrice = parseFloat(this.form.supplierBasePrice) || 0
this.form.supplierBasePrice = dilemmaBasePrice this.form.supplierBasePrice = dilemmaBasePrice
@ -481,12 +519,23 @@ export default {
this.form.supplierSettleAmount = data.data.totalPrice this.form.supplierSettleAmount = data.data.totalPrice
} }
// } // }
if(this.form.cutInsuranceAmount == 1 && this.form.policyState === 0){ /*if(this.form.cutInsuranceAmount == 1 && this.form.policyState === 0){
this.form.supplierSettleAmount = parseFloat(parseFloat(this.form.supplierSettleAmount) - parseFloat(this.form.policyAmount || 0)).toFixed(2) this.form.supplierSettleAmount = parseFloat(parseFloat(this.form.supplierSettleAmount) - parseFloat(this.form.policyAmount || 0)).toFixed(2)
}*/
}
if (this.form.policyAmount && this.form.policyAmount > 0) {
this.form.supplierSettleAmount = parseFloat(parseFloat(this.form.supplierSettleAmount) - parseFloat(this.form.policyAmount || 0)).toFixed(2)
}
if (this.form.carClothingToolAmount) {
this.form.supplierSettleAmount = parseFloat(parseFloat(this.form.supplierSettleAmount) + parseFloat(this.form.carClothingToolAmount || 0)).toFixed(2)
}
if (this.form.replaceBatteryAmount) {
this.form.supplierSettleAmount = parseFloat(parseFloat(this.form.supplierSettleAmount) - parseFloat(this.form.replaceBatteryAmount || 0)).toFixed(2)
} }
}, },
async pictureList() { async pictureList() {
let res = await selectRecordPictureList({ let res = await selectRecordPictureList({
userOrderId:this.orderInfo.userOrderId,
taskOrderCostRecordId: this.id, taskOrderCostRecordId: this.id,
state: 0, state: 0,
postfix: this.postfix postfix: this.postfix
@ -517,10 +566,11 @@ export default {
if (res.code === 200) { if (res.code === 200) {
this.orderInfo = res.data this.orderInfo = res.data
console.log("this.orderInfo", this.orderInfo) console.log("this.orderInfo", this.orderInfo)
this.accountStatus = this.orderInfo.accountStatus?.code
this.serviceType = this.orderInfo.serviceName this.serviceType = this.orderInfo.serviceName
this.taskFlowId = this.orderInfo.taskFlowId this.taskFlowId = this.orderInfo.taskFlowId
this.settleType = this.orderInfo.settleType?.label this.settleType = this.orderInfo.settleType?.label
this.accountStatus = this.orderInfo.accountStatus?.code
this.appCode = this.orderInfo.appCode this.appCode = this.orderInfo.appCode
this.fixedPrice = this.orderInfo.fixedPrice this.fixedPrice = this.orderInfo.fixedPrice
this.fixedPriceType = this.orderInfo.fixedPriceType this.fixedPriceType = this.orderInfo.fixedPriceType
@ -535,11 +585,12 @@ export default {
leftCopy(this.form, {...res.data}) leftCopy(this.form, {...res.data})
this.auditFormShow = true;//是否显示审核数据 this.auditFormShow = true;//是否显示审核数据
} }
if(this.settleType == '实拖' && this.basePriceDisabled){ console.log("this.form",this.form)
if (this.settleType == '实拖' && this.basePriceDisabled && !this.isBasementSettle) {
this.bcState = true this.bcState = true
this.form.supplierSettleMileageAb = 0 this.form.supplierSettleMileageAb = 0
this.form.supplierSettleMileageCa = 0 this.form.supplierSettleMileageCa = 0
}else if(this.settleType == '单程' && this.basePriceDisabled){ } else if (this.settleType == '单程' && this.basePriceDisabled && !this.isBasementSettle) {
this.abState = true this.abState = true
this.bcState = true this.bcState = true
this.form.supplierSettleMileageCa = 0 this.form.supplierSettleMileageCa = 0
@ -547,25 +598,43 @@ export default {
this.bcState = false this.bcState = false
this.form.supplierSettleMileageBc = 0 this.form.supplierSettleMileageBc = 0
} }
}else if(this.settleType == '全程' && this.basePriceDisabled){ } else if (this.settleType == '全程' && this.basePriceDisabled && !this.isBasementSettle) {
this.abState = true this.abState = true
this.bcState = true this.bcState = true
this.caState = true this.caState = true
}else if(this.settleType == '全程减半' && this.basePriceDisabled){ } else if (this.settleType == '全程减半' && this.basePriceDisabled && !this.isBasementSettle) {
this.abState = true this.abState = true
this.bcState = true this.bcState = true
this.caState = true this.caState = true
} }
if (this.form.supplierSettleRatio && this.form.supplierSettleRatio?.code == 5){
this.basementFeeState = true
this.form.supplierSettleMileageAb = 0
this.form.supplierSettleMileageBc = 0
this.form.supplierSettleMileageCa = 0
this.form.supplierBridgeAmountAb = 0
this.form.supplierBridgeAmountBc = 0
this.form.supplierBridgeAmountCa = 0
this.form.supplierBridgeAmount = 0
this.form.supplierDilemmaAmount = 0
this.form.supplierOtherAmount = 0
this.form.supplierTyreAmount = 0
this.form.supplierWaitAmount = 0
}else {
if (this.orderInfo.refBridgeAmountAB > 0 && !this.isCPICDrag && !this.isBasement) this.bridgeAbState = true if (this.orderInfo.refBridgeAmountAB > 0 && !this.isCPICDrag && !this.isBasement) this.bridgeAbState = true
if (this.orderInfo.refBridgeAmountBC > 0 && !this.isCPICDrag && !this.isBasement) this.bridgeBcState = true if (this.orderInfo.refBridgeAmountBC > 0 && !this.isCPICDrag && !this.isBasement) this.bridgeBcState = true
if (this.orderInfo.refBridgeAmountCA > 0 && !this.isCPICDrag && !this.isBasement) this.bridgeCaState = true if (this.orderInfo.refBridgeAmountCA > 0 && !this.isCPICDrag && !this.isBasement) this.bridgeCaState = true
if (this.orderInfo.refWaitFee > 0) this.waitAmountState = true if (this.orderInfo.refWaitFee > 0) this.waitAmountState = true
if (this.orderInfo.refDilemmaFee > 0) this.dilemmaAmountState = true if (this.orderInfo.refDilemmaFee > 0) this.dilemmaAmountState = true
if (this.orderInfo.refTyreNumber > 0 && this.taskFlowId != '1') this.tyreAmountState = true if (this.orderInfo.refTyreNumber > 0 && this.taskFlowId != '1') this.tyreAmountState = true
}
if (this.orderInfo.refBasementFee > 0 && this.taskFlowId != '1') { if (this.orderInfo.refBasementFee > 0 && this.taskFlowId != '1') {
this.basementFeeState = true this.basementFeeState = true
this.form.supplierBasementFee = this.orderInfo.refBasementFee this.form.supplierBasementFee = this.orderInfo.refBasementFee
} }
if (this.form.supplierSettleRatio?.code != 5 && (this.serviceType == '困境救援' || this.serviceType == '困境-吊车' || this.serviceType == '困境救援-事故' || this.serviceType == '困境救援-故障')){
await this.$alert("该案件为困境案件需确认填写基本费用")
}
}, },
cancelBtn() { cancelBtn() {
this.goback() this.goback()
@ -610,6 +679,7 @@ export default {
this.files.forEach((file) => { this.files.forEach((file) => {
formData.append('file', file.file); formData.append('file', file.file);
}); });
formData.append('userOrderId', this.orderInfo.userOrderId);
formData.append('state', 0); formData.append('state', 0);
formData.append('postfix', this.postfix); formData.append('postfix', this.postfix);
formData.append('supplierBridgeAmount', parseInt(this.form.supplierBridgeAmountAb || 0) + parseInt(this.form.supplierBridgeAmountBc || 0) + parseInt(this.form.supplierBridgeAmountCa || 0)); formData.append('supplierBridgeAmount', parseInt(this.form.supplierBridgeAmountAb || 0) + parseInt(this.form.supplierBridgeAmountBc || 0) + parseInt(this.form.supplierBridgeAmountCa || 0));
@ -665,6 +735,7 @@ export default {
formData.append('file', file.file); formData.append('file', file.file);
}); });
// formData.append('accountStatus', accountStatus); // formData.append('accountStatus', accountStatus);
formData.append('userOrderId', this.orderInfo.userOrderId);
formData.append('state', 0); formData.append('state', 0);
formData.append('postfix', this.postfix); formData.append('postfix', this.postfix);
formData.append('supplierBridgeAmount', parseInt(this.form.supplierBridgeAmountAb || 0) + parseInt(this.form.supplierBridgeAmountBc || 0) + parseInt(this.form.supplierBridgeAmountCa || 0)); formData.append('supplierBridgeAmount', parseInt(this.form.supplierBridgeAmountAb || 0) + parseInt(this.form.supplierBridgeAmountBc || 0) + parseInt(this.form.supplierBridgeAmountCa || 0));
@ -707,6 +778,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
@import "@/styles/mixin.scss"; @import "@/styles/mixin.scss";
@import "@/styles/common.scss"; @import "@/styles/common.scss";
.loading, .loading1 { .loading, .loading1 {
position: relative; position: relative;
} }
@ -733,46 +805,57 @@ export default {
transform: translate(-50%, -50%) rotate(360deg); transform: translate(-50%, -50%) rotate(360deg);
} }
} }
.btn { .btn {
@include flexColBet; @include flexColBet;
button { button {
@include whLin(152px, 39px); @include whLin(152px, 39px);
border-radius: 5px; border-radius: 5px;
color: #FFFFFF; color: #FFFFFF;
@include fontWeightSize(bold, 14px) @include fontWeightSize(bold, 14px)
} }
.cancel { .cancel {
background: #9EA7C0; background: #9EA7C0;
} }
.submit { .submit {
background-color: #354D93; background-color: #354D93;
} }
} }
.wrap { .wrap {
@include wh(100%, 100%); @include wh(100%, 100%);
background-color: #F4F5F7; background-color: #F4F5F7;
overflow-y: auto; overflow-y: auto;
} }
.disable { .disable {
background-color: transparent; background-color: transparent;
border: none; border: none;
opacity: 1 !important; opacity: 1 !important;
} }
.supplierdisable { .supplierdisable {
color: #999999;; color: #999999;;
border: none; border: none;
opacity: 1 !important; opacity: 1 !important;
} }
.bgDisable { .bgDisable {
background: rgba(204, 204, 204, .3); background: rgba(204, 204, 204, .3);
} }
.navBar { .navBar {
margin-bottom: 46px; margin-bottom: 46px;
} }
.title { .title {
@include fontWeightSize(bold, 14px); @include fontWeightSize(bold, 14px);
@include colorOpa(#323643, 0.66); @include colorOpa(#323643, 0.66);
} }
.line { .line {
@include wh(100%, 2px); @include wh(100%, 2px);
opacity: 0.16; opacity: 0.16;
@ -780,32 +863,39 @@ export default {
margin-top: 7px; margin-top: 7px;
border-image: linear-gradient(270deg, rgba(217, 217, 217, 0.6), rgba(178, 178, 178, 1), rgba(178, 178, 178, 1), rgba(217, 217, 217, 0.6)) 1 1; border-image: linear-gradient(270deg, rgba(217, 217, 217, 0.6), rgba(178, 178, 178, 1), rgba(178, 178, 178, 1), rgba(217, 217, 217, 0.6)) 1 1;
} }
.item { .item {
@include flexCenter; @include flexCenter;
font-size: 12px !important; font-size: 12px !important;
font-weight: 400 !important; font-weight: 400 !important;
.titleLeft { .titleLeft {
opacity: .5; opacity: .5;
line-height: 27px; line-height: 27px;
} }
.leftTitle { .leftTitle {
opacity: .5; opacity: .5;
@include wh(60px, 189px); @include wh(60px, 189px);
} }
.rightContent { .rightContent {
height: 189px; height: 189px;
width: calc(100% - 60px); width: calc(100% - 60px);
} }
.fontColor { .fontColor {
@include fontWeightSize(400, 12px); @include fontWeightSize(400, 12px);
color: #000000; color: #000000;
line-height: 24px; line-height: 24px;
} }
.rightContent { .rightContent {
width: calc(100% - 90px); width: calc(100% - 90px);
@include fontWeightSize(bold, 12px); @include fontWeightSize(bold, 12px);
} }
.driverPoiBtn { .driverPoiBtn {
display: inline-block; display: inline-block;
padding: 3px 8px; padding: 3px 8px;
@ -817,47 +907,58 @@ export default {
cursor: pointer; cursor: pointer;
} }
} }
img { img {
@include wh(35px, 15px); @include wh(35px, 15px);
margin-left: 21px; margin-left: 21px;
} }
.common { .common {
background-color: #FFFFFF; background-color: #FFFFFF;
padding: 11px 24px 14px; padding: 11px 24px 14px;
box-sizing: border-box; box-sizing: border-box;
margin-bottom: 10px; margin-bottom: 10px;
} }
.baseInfo { .baseInfo {
@include wh(100%,286px); @include wh(100%, 344px);
} }
.supplierData { .supplierData {
width: 100%; width: 100%;
margin-bottom: 0; margin-bottom: 0;
.inpInfo { .inpInfo {
margin: 0 5px; margin: 0 5px;
color: #323643; color: #323643;
line-height: 32px; line-height: 32px;
input { input {
border: none; border: none;
text-align: right; text-align: right;
padding-right: 3px; padding-right: 3px;
margin-right: 0; margin-right: 0;
} }
.titleContent { .titleContent {
@include fontWeightSize(bold, 13px); @include fontWeightSize(bold, 13px);
} }
.flex-between { .flex-between {
width: 100%; width: 100%;
@include flexBetCen @include flexBetCen
} }
.halfOpcity { .halfOpcity {
opacity: .5; opacity: .5;
} }
.inputContent { .inputContent {
text-align: right; text-align: right;
} }
} }
.btnComputed { .btnComputed {
width: 48px; width: 48px;
@include all-height(18px); @include all-height(18px);
@ -865,6 +966,7 @@ img{
@include bgFontColor(#FFFFFF, #354D93); @include bgFontColor(#FFFFFF, #354D93);
border-radius: 3px; border-radius: 3px;
} }
.multipleTxt { .multipleTxt {
@include wh(100%, 87px); @include wh(100%, 87px);
background: #FAFAFA; background: #FAFAFA;
@ -872,67 +974,81 @@ img{
border: 1px solid #E6E6E6; border: 1px solid #E6E6E6;
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
} }
.btn { .btn {
margin-top: 28px; margin-top: 28px;
} }
} }
.dataType { .dataType {
padding: 0 8px; padding: 0 8px;
table { table {
width: 100%; width: 100%;
border-collapse: separate; border-collapse: separate;
border-spacing: 0; border-spacing: 0;
} }
td { td {
padding: 10px; padding: 10px;
border: 1px solid #ccc; border: 1px solid #ccc;
text-align: center; text-align: center;
} }
.alignLeft { .alignLeft {
text-align: left !important; text-align: left !important;
opacity: 1 !important; opacity: 1 !important;
.reason { .reason {
@include fontWeightSize(400, 11px); @include fontWeightSize(400, 11px);
@include colorOpa(#FF8F37, 1); @include colorOpa(#FF8F37, 1);
//color: #FF8F37; //color: #FF8F37;
//opacity: 1 !important; //opacity: 1 !important;
} }
.camerImg { .camerImg {
@include widHeiMar(54px, 42px, 5px); @include widHeiMar(54px, 42px, 5px);
margin-top: 15px; margin-top: 15px;
} }
.supplierImg { .supplierImg {
@include widHeiMar(54px, 42px, 8px); @include widHeiMar(54px, 42px, 8px);
margin-top: 0; margin-top: 0;
margin-left: 0; margin-left: 0;
} }
.title { .title {
@include fontWeightSize(400, 11px); @include fontWeightSize(400, 11px);
opacity: .5; opacity: .5;
} }
} }
.col1 { .col1 {
width: 41%; width: 41%;
background-color: #E9E9EA; background-color: #E9E9EA;
@include fontWeightSize(400, 12px); @include fontWeightSize(400, 12px);
opacity: 0.55; opacity: 0.55;
} }
.col2 { .col2 {
width: 58%; width: 58%;
background-color: #EAEFF6; background-color: #EAEFF6;
@include fontWeightSize(400, 12px); @include fontWeightSize(400, 12px);
color: #0434D0; color: #0434D0;
input { input {
width: 72px; width: 72px;
border: none; border: none;
background-color: #EAEFF6; background-color: #EAEFF6;
text-align: center; text-align: center;
} }
input::placeholder { input::placeholder {
color: #0434D0; /* 设置提示内容文字颜色 */ color: #0434D0; /* 设置提示内容文字颜色 */
} }
} }
.btnCom { .btnCom {
border: none; border: none;
padding: 4px 7px; padding: 4px 7px;
@ -945,25 +1061,31 @@ img{
color: #FFFFFF; color: #FFFFFF;
@include fontWeightSize(bold, 12px) @include fontWeightSize(bold, 12px)
} }
.checkData, .supplierShuju { .checkData, .supplierShuju {
color: #323643; color: #323643;
} }
.checkData { .checkData {
border-top-left-radius: 3px; border-top-left-radius: 3px;
opacity: 0.66; opacity: 0.66;
} }
.supplierShuju { .supplierShuju {
border-top-right-radius: 3px; border-top-right-radius: 3px;
} }
.halfOpc { .halfOpc {
opacity: .5; opacity: .5;
} }
} }
.twoBtn { .twoBtn {
margin-top: 28px; margin-top: 28px;
margin-bottom: 30px; margin-bottom: 30px;
@include flexColBet; @include flexColBet;
@include sizingPadding(0, 15px); @include sizingPadding(0, 15px);
button { button {
@include whLin(152px, 39px); @include whLin(152px, 39px);
@include fontWeightSize(bold, 14px); @include fontWeightSize(bold, 14px);
@ -971,11 +1093,13 @@ img{
border-radius: 5px; border-radius: 5px;
} }
} }
.btn { .btn {
margin-top: 31px; margin-top: 31px;
margin-bottom: 31px; margin-bottom: 31px;
@include flexColAround; @include flexColAround;
box-sizing: border-box; box-sizing: border-box;
button { button {
line-height: 39px; line-height: 39px;
border-radius: 5px; border-radius: 5px;
@ -984,6 +1108,7 @@ img{
@include fontWeightSize(bold, 14px); @include fontWeightSize(bold, 14px);
border: none; border: none;
} }
.submit { .submit {
background: #354D93; background: #354D93;
} }

View File

@ -11,7 +11,7 @@
@click-left="goback" @click-left="goback"
/> />
</div> </div>
<div class="baseInfo common"> <div class="baseInfo common" style="height: 344px">
<div class="title">基本信息:</div> <div class="title">基本信息:</div>
<div class="line"></div> <div class="line"></div>
<div class="item"> <div class="item">
@ -47,9 +47,16 @@
</div> </div>
<div class="item"> <div class="item">
<span class="titleLeft">扣除责任险费</span> <span class="titleLeft">扣除责任险费</span>
<span class="content">{{orderInfo.policyAmount}} {{orderInfo.cutInsuranceAmount}}</span> <span class="content">{{orderInfo.policyAmount}}</span>
</div>
<div class="item">
<span class="titleLeft">车衣费用</span>
<span class="content">{{orderInfo.carClothingToolAmount}}</span>
</div>
<div class="item">
<span class="titleLeft">换电瓶费用</span>
<span class="content">{{orderInfo.replaceBatteryAmount}}</span>
</div> </div>
</div> </div>
<div class="baseInfo common"> <div class="baseInfo common">
<div class="title">审核数据:</div> <div class="title">审核数据:</div>