Commit b1e8e02d by 前端

工资

1 parent d829d7c5
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<th v-for="(item, index) in tabelTh" :key="index" :style="{ width: item.width + '%' }">{{ item.title }}</th> <th v-for="(item, index) in tabelTh" :key="index" :style="{ width: item.width + '%' }">{{ item.title }}</th>
</tr> </tr>
<tr class="tr" v-for="(item, index) in detail.recordList" :key="index"> <tr class="tr" v-for="(item, index) in detail.recordList" :key="index">
<td>{{ index + 1 }}</td> <td v-if="tabelTh[0].title == '序号'">{{ index + 1 }}</td>
<td v-for="(colValue, colKey) in tabelTr" :key="colKey"> <td v-for="(colValue, colKey) in tabelTr" :key="colKey">
<text class="car-box" v-if="colValue.style" :style="colValue.style(item[colValue.type])">{{ colValue.text(item[colValue.type]) }}</text> <text class="car-box" v-if="colValue.style" :style="colValue.style(item[colValue.type])">{{ colValue.text(item[colValue.type]) }}</text>
{{ colValue.format ? colValue.format(item[colValue.key]) : colValue.name ? colValue.name(item) : item[colValue] }} {{ colValue.format ? colValue.format(item[colValue.key]) : colValue.name ? colValue.name(item) : item[colValue] }}
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</tr> </tr>
</table> </table>
</view> </view>
<view class="table-footer flex"> <view class="table-footer flex" v-if="detail.total">
<text>{{ detail.label }}合计:</text> <text>{{ detail.label }}合计:</text>
<text class="price">{{ detail.showUnit }}¥ {{ detail.total }}</text> <text class="price">{{ detail.showUnit }}¥ {{ detail.total }}</text>
</view> </view>
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<text>{{ v.label }}</text> <text>{{ v.label }}</text>
<uni-icons type="help" size="15" color="#A2A2A8" v-if="v.content" @click="clickTips(v)"></uni-icons> <uni-icons type="help" size="15" color="#A2A2A8" v-if="v.content" @click="clickTips(v)"></uni-icons>
</view> </view>
<view class="detail-link flex" @click="showDetail(v)" v-if="v.isLink && !item.showGoodsTypeName"> <view class="detail-link flex" @click="showProductDetail(item)" v-if="item.specificGoodsType && v.isLink && !item.showGoodsTypeName">
<text>产品明细</text> <text>产品明细</text>
<view class="link-icon"></view> <view class="link-icon"></view>
</view> </view>
...@@ -291,6 +291,25 @@ export default { ...@@ -291,6 +291,25 @@ export default {
desc: '如门店只有一名零售驻店,则应触客台数=门店交付数' desc: '如门店只有一名零售驻店,则应触客台数=门店交付数'
}) })
}, },
showProductDetail(val) {
this.detail = {
label: '产品提成比例明细',
icon: 'info-icon',
tabelTh: [
{
title: '产品名称'
},
{
title: '提成比例',
width: 20
}
],
tabelTr: ['showGoodsTypeName', 'commissionRatio'],
recordList: val.goodsTypeCommissions
}
console.log(this.detail, 11)
this.show = true
},
showDetail(item) { showDetail(item) {
console.log(this.salaryDetail) console.log(this.salaryDetail)
const total = this.salaryDetail[item.value] const total = this.salaryDetail[item.value]
...@@ -479,7 +498,17 @@ export default { ...@@ -479,7 +498,17 @@ export default {
color: #adb0b8; color: #adb0b8;
line-height: toRpx(36); line-height: toRpx(36);
} }
.detail-link {
margin-top: toRpx(4);
font-size: toRpx(24);
color: #3773f8;
.link-icon {
border-left: toRpx(10) solid #3773f8;
border-bottom: toRpx(10) solid transparent;
border-top: toRpx(10) solid transparent;
margin-left: toRpx(10);
}
}
.detail-num { .detail-num {
font-size: toRpx(32); font-size: toRpx(32);
color: #292d33; color: #292d33;
......
...@@ -53,7 +53,7 @@ export default { ...@@ -53,7 +53,7 @@ export default {
data() { data() {
return { return {
// showPassword: true // showPassword: true
showPassword: true, showPassword: false,
jobTypeList: { jobTypeList: {
0: '实习生(理论)', 0: '实习生(理论)',
1: '实习生(实践)', 1: '实习生(实践)',
...@@ -81,17 +81,17 @@ export default { ...@@ -81,17 +81,17 @@ export default {
inject: ['hideFooter', 'showPage'], inject: ['hideFooter', 'showPage'],
async mounted() { async mounted() {
this.hideFooter(false) this.hideFooter(false)
const { phone } = uni.$storage.get('userInfo') // const { phone } = uni.$storage.get('userInfo')
const res = await uni.$api.pointApi.incomeMeasurementConfig({ staffPhone: phone }) // const res = await uni.$api.pointApi.incomeMeasurementConfig({ staffPhone: phone })
const phoneList = res.whiteConfig || {} // const phoneList = res.whiteConfig || {}
if (res.configFlag == 0 || (res.configFlag == 2 && phoneList.staffPhone == phone)) { // if (res.configFlag == 0 || (res.configFlag == 2 && phoneList.staffPhone == phone)) {
this.isShow = true // this.isShow = true
} else { // } else {
this.isShow = false // this.isShow = false
return // return
} // }
this.incomeCalculation() this.incomeCalculation()
this.start() // this.start()
}, },
destroyed() { destroyed() {
this.hideFooter(true) this.hideFooter(true)
......
{ {
"name" : "展业助手", "name": "展业助手",
"appid" : "__UNI__D3BD3DF", "appid": "__UNI__D3BD3DF",
"description" : "", "description": "",
"versionName" : "2.4.0", "versionName": "2.5.0",
"versionCode" : "100", "versionCode": "110",
"transformPx" : false, "transformPx": false,
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus" : { "app-plus": {
"bounce" : "none", "cache": false,
"usingComponents" : true, "bounce": "none",
"nvueStyleCompiler" : "uni-app", "usingComponents": true,
"compilerVersion" : 3, "nvueStyleCompiler": "uni-app",
"compatible" : { "compilerVersion": 3,
"ignoreVersion" : true "compatible": {
"ignoreVersion": true
}, },
"screenOrientation" : "landscape", "screenOrientation": "landscape",
"splashscreen" : { "splashscreen": {
"alwaysShowBeforeRender" : true, "alwaysShowBeforeRender": true,
"waiting" : true, "waiting": true,
"autoclose" : true, "autoclose": true,
"delay" : 0 "delay": 0
}, },
/* 模块配置 */ /* 模块配置 */
"modules" : { "modules": {
"Camera" : {}, "Camera": {},
"Record" : {}, "Record": {},
"VideoPlayer" : {}, "VideoPlayer": {},
"AudioPlayer" : {}, "AudioPlayer": {},
"SQLite" : {} "SQLite": {}
}, },
/* 应用发布信息 */ /* 应用发布信息 */
"distribute" : { "distribute": {
/* android打包配置 */ /* android打包配置 */
"android" : { "android": {
"permissions" : [ "permissions": [
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
...@@ -48,76 +49,83 @@ ...@@ -48,76 +49,83 @@
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
], ],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "abiFilters": [
"targetSdkVersion" : 30 "armeabi-v7a",
"arm64-v8a",
"x86"
],
"targetSdkVersion": 30
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios" : { "ios": {
"dSYMs" : false, "dSYMs": false,
"UIBackgroundModes" : "audio" "UIBackgroundModes": "audio"
}, },
/* SDK配置 */ /* SDK配置 */
"sdkConfigs" : { "sdkConfigs": {
"ad" : {}, "ad": {},
"speech" : {}, "speech": {},
"geolocation" : { "geolocation": {
"system" : { "system": {
"__platform__" : [ "ios", "android" ] "__platform__": [
"ios",
"android"
]
} }
} }
}, },
"icons" : { "icons": {
"android" : { "android": {
"hdpi" : "static/72.png", "hdpi": "static/72.png",
"xhdpi" : "static/96.png", "xhdpi": "static/96.png",
"xxhdpi" : "static/144.png" "xxhdpi": "static/144.png"
} }
} }
}, },
"nativePlugins" : { "nativePlugins": {
"Ba-KeepAliveSuit" : { "Ba-KeepAliveSuit": {
"__plugin_info__" : { "__plugin_info__": {
"name" : "安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)", "name": "安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)",
"description" : "在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)", "description": "在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)",
"platforms" : "Android", "platforms": "Android",
"url" : "https://ext.dcloud.net.cn/plugin?id=11765", "url": "https://ext.dcloud.net.cn/plugin?id=11765",
"android_package_name" : "uni.gltap", "android_package_name": "uni.gltap",
"ios_bundle_id" : "", "ios_bundle_id": "",
"isCloud" : true, "isCloud": true,
"bought" : 1, "bought": 1,
"pid" : "11765", "pid": "11765",
"parameters" : {} "parameters": {}
} }
} }
} }
}, },
/* 快应用特有相关 */ /* 快应用特有相关 */
"quickapp" : {}, "quickapp": {},
/* 小程序特有相关 */ /* 小程序特有相关 */
"mp-weixin" : { "mp-weixin": {
"appid" : "wx79d1ff39bee3d047", "appid": "wx79d1ff39bee3d047",
"setting" : { "setting": {
"urlCheck" : false "urlCheck": false
}, },
"usingComponents" : true "usingComponents": true
}, },
"mp-alipay" : { "mp-alipay": {
"usingComponents" : true "usingComponents": true
}, },
"mp-baidu" : { "mp-baidu": {
"usingComponents" : true "usingComponents": true
}, },
"mp-toutiao" : { "mp-toutiao": {
"usingComponents" : true "usingComponents": true
}, },
"uniStatistics" : { "uniStatistics": {
"enable" : false "enable": false
}, },
"vueVersion" : "2", "vueVersion": "2",
"h5" : { "h5": {
"devServer" : { "devServer": {
"port" : 8080, "port": 8080,
"https" : false "https": false
} }
} }
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!