| | |
| | | <el-descriptions-item label="试用期工资" v-if="formData.dateSelect === 'A' || formData.dateSelect === 'B'"> |
| | | {{ formData.proSalary ? formData.proSalary.toFixed(2) : '-' }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="合同开始日期">{{ formData.contractStartTime || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="合同结束日期" v-if="formData.dateSelect === 'A'"> |
| | | {{ formData.contractEndTime || '-' }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="合同开始日期">{{ calculatedContractStart }}</el-descriptions-item> |
| | | <el-descriptions-item label="合同结束日期">{{ formData.contractEndTime || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="工资报酬" :span="2"> |
| | | <span v-if="formData.salarySelect === 'A'"> |
| | | A、乙方的工资报酬按照甲方依法制定的规章制度中的内部工资分配办法确定,根据乙方的工作岗位确定其每月工资。 |
| | |
| | | |
| | | <script setup> |
| | | import {ref, reactive, computed} from "vue"; |
| | | import dayjs from "dayjs"; |
| | | const emit = defineEmits(['close']) |
| | | |
| | | const dialogFormVisible = ref(false); |
| | |
| | | return value; |
| | | }); |
| | | |
| | | const calculatedContractStart = computed(() => { |
| | | const endDate = formData.contractEndTime; |
| | | const termValue = formData.contractTerm; |
| | | const numberValue = Number(termValue); |
| | | if (!endDate || isNaN(numberValue)) { |
| | | return formData.contractStartTime || "-"; |
| | | } |
| | | const start = dayjs(endDate).subtract(numberValue, "year"); |
| | | if (!start.isValid()) { |
| | | return formData.contractStartTime || "-"; |
| | | } |
| | | return start.format("YYYY-MM-DD"); |
| | | }); |
| | | |
| | | // 打开弹框 |
| | | const openDialog = (type, row) => { |
| | | operationType.value = type; |