|
@@ -117,11 +117,6 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="创建时间" prop="create_time"
|
|
|
- :rules="[{ required: true, message: '填写创建时间', trigger: 'blur' }]">
|
|
|
- <el-date-picker v-model="data.form.create_time" type="create_time" placeholder=" 填写创建时间"
|
|
|
- value-format="YYYY-MM-DD" format="YYYY-MM-DD" />
|
|
|
- </el-form-item>
|
|
|
<el-form-item label="项目开始时间" prop="project_start_date"
|
|
|
:rules="[{ required: true, message: '填写项目开始时间', trigger: 'blur' }]">
|
|
|
<el-date-picker v-model="data.form.project_start_date" type="project_start_date"
|
|
@@ -544,7 +539,6 @@ const newForm = () => {
|
|
|
desc: '',
|
|
|
responsibility_person_id: '',
|
|
|
name: '',
|
|
|
- create_time: '',
|
|
|
source: '',
|
|
|
participants_id: [],
|
|
|
estimated_amount: '',
|
|
@@ -798,9 +792,8 @@ const submitForm = (formEl: FormInstance | undefined) => {
|
|
|
* 提交进度表单,新增
|
|
|
*/
|
|
|
const submitschedule = async () => {
|
|
|
- let res = null;
|
|
|
data.schedule.isLoading = true;
|
|
|
- res = await Repertory.addschedules(data.formlist);
|
|
|
+ let res = await Repertory.addschedules(data.formlist);
|
|
|
data.schedule.isLoading = false;
|
|
|
if (res.code != 0) {
|
|
|
ElMessage.error(res.msg);
|
|
@@ -815,9 +808,8 @@ const submitschedule = async () => {
|
|
|
* 提交进度表单,编辑
|
|
|
*/
|
|
|
const submitscheduleupdate = async () => {
|
|
|
- let res = null;
|
|
|
data.schedule.isLoading = true;
|
|
|
- res = await Repertory.editschedules(data.formlist);
|
|
|
+ let res = await Repertory.editschedules(data.formlist);
|
|
|
data.schedule.isLoading = false;
|
|
|
if (res.code != 0) {
|
|
|
ElMessage.error(res.msg);
|
|
@@ -848,9 +840,8 @@ const submitcontract = async () => {
|
|
|
* 提交合同表单,编辑
|
|
|
*/
|
|
|
const submitcontractupdate = async () => {
|
|
|
- let res = null;
|
|
|
data.contract.isLoading = true;
|
|
|
- res = await Repertory.editcontract(data.formcontract);
|
|
|
+ let res = await Repertory.editcontract(data.formcontract);
|
|
|
data.contract.isLoading = false;
|
|
|
if (res.code != 0) {
|
|
|
ElMessage.error(res.msg);
|
|
@@ -865,9 +856,8 @@ const submitcontractupdate = async () => {
|
|
|
* 提交状态表单,新增
|
|
|
*/
|
|
|
const submitstatusForm = async () => {
|
|
|
- let res = null;
|
|
|
data.statusdialog.isLoading = true;
|
|
|
- res = await Repertory.addstatus(data.formstatus);
|
|
|
+ let res = await Repertory.addstatus(data.formstatus);
|
|
|
data.statusdialog.isLoading = false;
|
|
|
if (res.code != 0) {
|
|
|
ElMessage.error(res.msg);
|
|
@@ -882,9 +872,8 @@ const submitstatusForm = async () => {
|
|
|
* 提交状态表单,更新
|
|
|
*/
|
|
|
const editstatusForm = async () => {
|
|
|
- let res = null;
|
|
|
data.statuslog.isLoading = true;
|
|
|
- res = await Repertory.editstatus(data.formstatus);
|
|
|
+ let res = await Repertory.editstatus(data.formstatus);
|
|
|
data.statuslog.isLoading = false;
|
|
|
if (res.code != 0) {
|
|
|
ElMessage.error(res.msg);
|