flat: 工资单位

This commit is contained in:
Apcallover
2024-04-07 14:38:43 +08:00
parent a6986a87d6
commit 16d777c745
5 changed files with 58 additions and 22 deletions

View File

@@ -181,13 +181,14 @@ export const insureState = [
]; ];
export const wageUnitCategoryState = [ export const wageUnitCategoryState = [
{ value: 0, label: "元/人·次", disable: true },
{ value: 1, label: "元/人·时", disable: false }, { value: 1, label: "元/人·时", disable: false },
{ value: 2, label: "元/人·天", disable: false }, { value: 2, label: "元/人·天", disable: false },
{ value: 3, label: "元/人·", disable: true }, { value: 3, label: "元/人·", disable: true },
{ value: 4, label: "元/人·月", disable: true }, { value: 4, label: "其他", disable: true },
{ value: 5, label: "元/人·个", disable: true }, // { value: 0, label: "元/人·次", disable: true },
{ value: 6, label: "元/人·件", disable: true }, // { value: 4, label: "元/人·周", disable: true },
// { value: 5, label: "元/人·个", disable: true },
// { value: 6, label: "元/人·件", disable: true },
]; ];
export const wageOptionsMonth = [ export const wageOptionsMonth = [

View File

@@ -258,6 +258,14 @@ export default {
searchSpan: 5, searchSpan: 5,
display: false, display: false,
}, },
{
label: "工资单位",
prop: "wageUnitCategory",
search: false,
dicData: wageUnitCategoryState,
searchSpan: 5,
display: false,
},
{ {
label: "零工工种", label: "零工工种",
prop: "worktypeNames", prop: "worktypeNames",

View File

@@ -50,6 +50,13 @@
:type="type" :type="type"
></select-map> ></select-map>
</template> </template>
<template slot-scope="{ row }" slot="wage">
<el-input placeholder="请输入工资" v-model="obj.wage" class="input-with-select">
<el-select v-model="obj.wageUnitCategory" slot="append" placeholder="请选择">
<el-option :label="item.label" v-for="item in wageUnitCategory" :key="item.value" :value="item.value"></el-option>
</el-select>
</el-input>
</template>
<!-- 行业类型 --> <!-- 行业类型 -->
<!-- <template slot="tradeId"> <!-- <template slot="tradeId">
<div class="tradeId"> <div class="tradeId">
@@ -397,14 +404,17 @@ export default {
label: "参考工资", label: "参考工资",
prop: "wage", prop: "wage",
type: "select", type: "select",
dicData: wageOptionsWithNoMonth, formslot: true,
rules: [ labelslot: false,
{ errorslot: false,
required: true, // dicData: wageOptionsWithNoMonth,
trigger: "blur", // rules: [
}, // {
], // required: true,
span: 12, // trigger: "blur",
// },
// ],
// span: 12,
}, },
{ {
label: "工种", label: "工种",

View File

@@ -56,7 +56,13 @@
placeholder="请选择 工作地址" placeholder="请选择 工作地址"
></jl-city-cascader> ></jl-city-cascader>
</template> </template>
<template slot-scope="{ row }" slot="wage">
<el-input placeholder="请输入工资" v-model="obj.wage" class="input-with-select">
<el-select v-model="obj.wageUnitCategory" slot="append" placeholder="请选择">
<el-option :label="item.label" v-for="item in wageUnitCategory" :key="item.value" :value="item.value"></el-option>
</el-select>
</el-input>
</template>
<template slot-scope="{ disabled }" slot="skillIds"> <template slot-scope="{ disabled }" slot="skillIds">
<skill-select <skill-select
ref="skillSelect" ref="skillSelect"
@@ -512,13 +518,16 @@ export default {
label: "参考工资", label: "参考工资",
prop: "wage", prop: "wage",
type: "select", type: "select",
dicData: wageOptionsMonth, formslot: true,
rules: [ labelslot: false,
{ errorslot: false,
required: true, // dicData: wageOptionsMonth,
trigger: "blur", // rules: [
}, // {
], // required: true,
// trigger: "blur",
// },
// ],
span: 12, span: 12,
}, },
{ {

View File

@@ -114,7 +114,7 @@ import { mapGetters } from "vuex";
import { dateFormat } from "@/util/date"; import { dateFormat } from "@/util/date";
import { getTemplate } from "@/api/resource/template"; import { getTemplate } from "@/api/resource/template";
import saveButton from "./saveButton"; import saveButton from "./saveButton";
import {dataSourcesEnum, educationState, missionState, recruitStatus} from "@/common/dic"; import {dataSourcesEnum, educationState, missionState, recruitStatus, wageUnitCategoryState} from "@/common/dic";
export default { export default {
components: { components: {
@@ -240,6 +240,14 @@ export default {
searchSpan: 5, searchSpan: 5,
display: false, display: false,
}, },
{
label: "工资单位",
prop: "wageUnitCategory",
search: false,
dicData: wageUnitCategoryState,
searchSpan: 5,
display: false,
},
{ {
label: "零工工种", label: "零工工种",
prop: "worktypeNames", prop: "worktypeNames",