8.8新增
This commit is contained in:
parent
6b9b26d2e3
commit
d478600bb0
@ -24,3 +24,4 @@ export function apiVillageList(params: any) {
|
||||
export function apiBrigadeList() {
|
||||
return request.get({ url: '/common/brigade' })
|
||||
}
|
||||
|
||||
|
@ -11,4 +11,7 @@ export function apiTaskIndex(params: any) {
|
||||
export function apiTaskCreat(params: any) {
|
||||
return request.post({ url: "/task/create", params });
|
||||
}
|
||||
|
||||
//添加任务
|
||||
export function apiTaskAdd(params: any) {
|
||||
return request.post({ url: "/task.task/add", params });
|
||||
}
|
||||
|
@ -273,7 +273,7 @@
|
||||
</el-form-item> -->
|
||||
</el-form>
|
||||
</el-card >
|
||||
<el-card v-if="basicdata.check_status == 1">
|
||||
<el-card v-if="isshow">
|
||||
<el-form>
|
||||
<el-form-item label="合同上传" prop="field127">
|
||||
<el-upload
|
||||
@ -330,6 +330,7 @@ const persen = ref([])
|
||||
const persenimg = ref([])
|
||||
const show = ref(true)
|
||||
const flag = ref(true)
|
||||
const isshow=ref(true)
|
||||
const route = useRoute()
|
||||
const userStore = useUserStore()
|
||||
|
||||
@ -338,6 +339,7 @@ async function render() {
|
||||
const res = await apiContractDetail({ id: query.id })
|
||||
compeny.value = res.party_a_info
|
||||
basicdata.value = res
|
||||
if(basicdata.value.status==1){isshow.value=false}
|
||||
try {
|
||||
res.party_a_info.qualification.bank_account = JSON.parse(
|
||||
res.party_a_info.qualification.bank_account
|
||||
|
@ -205,8 +205,8 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-col>
|
||||
<div style="font-size: 1.2rem; margin: 10px 0">资质信息</div>
|
||||
<div style="display: flex; justify-content: space-between">
|
||||
<div v-if="disabledPartyA" style="font-size: 1.2rem; margin: 10px 0">资质信息</div>
|
||||
<div v-if="disabledPartyA" style="display: flex; justify-content: space-between">
|
||||
<div>
|
||||
<el-form-item label="身份证" prop="id_card">
|
||||
<el-upload
|
||||
|
107
src/views/task/Taskform.vue
Normal file
107
src/views/task/Taskform.vue
Normal file
@ -0,0 +1,107 @@
|
||||
<template>
|
||||
<div class="edit-popup">
|
||||
<el-form ref="formRef" :model="formData" label-width="84px">
|
||||
<el-col class="pt-6 !border-none">
|
||||
<el-row>
|
||||
<el-col :span="10">
|
||||
<el-form-item label="任务主题" prop="title">
|
||||
<el-input
|
||||
v-model="formData.title"
|
||||
placeholder="请输入任务主题"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="10">
|
||||
<el-form-item label="金额" prop="price">
|
||||
<el-input
|
||||
v-model="formData.price"
|
||||
placeholder="请输入金额"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="任务类型" prop="type">
|
||||
<el-select v-model="formData.type" placeholder="请选任务类型">
|
||||
<el-option
|
||||
v-for="item in datalist"
|
||||
:key="item.label"
|
||||
:value="item.id"
|
||||
:label="item.name"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="10">
|
||||
<el-form-item label="状态" prop="state">
|
||||
<el-input
|
||||
v-model="formData.state"
|
||||
placeholder="请选择负责人"
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row> </el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="任务描述" prop="describe">
|
||||
<editor
|
||||
v-model="formData.describe"
|
||||
:height="500"
|
||||
/> </el-form-item
|
||||
></el-col>
|
||||
</el-row>
|
||||
</el-col>
|
||||
<el-button @click="handleSubmit" type="primary">提交</el-button>
|
||||
</el-form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="taskEidt">
|
||||
import type { FormInstance } from "element-plus";
|
||||
import { apiTaskAdd } from "@/api/task";
|
||||
import { reactive, onMounted, type PropType, ref } from "vue";
|
||||
import { dictTypeLists } from "../../api/setting/dict";
|
||||
let datalist = ref([]);
|
||||
//任务类型接口
|
||||
dictTypeLists({}).then((res) => {
|
||||
datalist = res.lists;
|
||||
console.log(datalist);
|
||||
});
|
||||
const props = defineProps({
|
||||
dictData: {
|
||||
type: Object as PropType<Record<string, any[]>>,
|
||||
default: () => ({}),
|
||||
},
|
||||
dateValue: {
|
||||
type: Date,
|
||||
default: () => null,
|
||||
},
|
||||
});
|
||||
onMounted(() => {});
|
||||
// 表单数据
|
||||
let formData = reactive({
|
||||
id: "",
|
||||
title: "", //任务主题
|
||||
price: "", //任务金额
|
||||
type: "", //任务类型
|
||||
state: "", //任务状态
|
||||
describe: "", //任务描述
|
||||
});
|
||||
|
||||
// 提交按钮
|
||||
let handleSubmit = () => {
|
||||
console.log(formData);
|
||||
// apiTaskAdd().then(res=>{
|
||||
|
||||
// })
|
||||
};
|
||||
</script>
|
Loading…
x
Reference in New Issue
Block a user