qsh 3 months ago
parent a2adf2ce20
commit a97f5bf79e
  1. 4
      .env.base
  2. 5
      src/api/home/salary.js
  3. 13
      src/views/Home/Salary/index.vue

@ -4,8 +4,8 @@ VITE_NODE_ENV=development
VITE_DEV=true VITE_DEV=true
# 请求路径 # 请求路径
VITE_BASE_URL='http://118.31.23.45:48080' # VITE_BASE_URL='http://118.31.23.45:48080'
# VITE_BASE_URL='http://114.55.169.15:48080' VITE_BASE_URL='http://114.55.169.15:48080'
# 上传路径 # 上传路径
VITE_UPLOAD_URL='http://118.31.23.45:48080/admin-api/system/file/upload' VITE_UPLOAD_URL='http://118.31.23.45:48080/admin-api/system/file/upload'

@ -49,3 +49,8 @@ export const getLinkHistorySalary = async () => {
url: '/admin-api/oa/user-salary-grant/get-import-template/history' url: '/admin-api/oa/user-salary-grant/get-import-template/history'
}) })
} }
// 查询提成明细
export const getCommissionDetail = async (params) => {
return await request.get({ url: '/admin-api/oa/user-salary-grant/detail', params })
}

@ -295,6 +295,9 @@
<span v-if="row.status == 0">封存</span> <span v-if="row.status == 0">封存</span>
<span v-else-if="row.status == 1">已封存</span> <span v-else-if="row.status == 1">已封存</span>
</el-button> </el-button>
<el-button type="primary" v-if="row.grantId" text @click="handleDetail(row)">
提成明细
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -423,6 +426,16 @@ async function handleSealup(row) {
console.log(err) console.log(err)
} }
} }
async function handleDetail(row) {
try {
const data = await SalaryApi.getCommissionDetail({ id: row.grantId })
message.alert(data)
} catch (error) {
message.error(error)
console.log(error)
}
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

Loading…
Cancel
Save