der提交加参数

This commit is contained in:
qq787203167
2022-05-20 18:07:26 +08:00
parent 5d07ce440d
commit 676a26ba31
6 changed files with 160 additions and 39 deletions
+2
View File
@@ -866,4 +866,6 @@ module.exports = {
pleaseReviewTask:'Please add the engineering confirmation information for this review task', pleaseReviewTask:'Please add the engineering confirmation information for this review task',
pleaseWillBeReturned:'Please reconfirm the project confirmation results and the review results of the responsible person. If they meet the requirements, they will be submitted, otherwise they will be returned', pleaseWillBeReturned:'Please reconfirm the project confirmation results and the review results of the responsible person. If they meet the requirements, they will be submitted, otherwise they will be returned',
pleaseSubmitStatus:'Please submit the data confirmed by the project in the confirmation status', pleaseSubmitStatus:'Please submit the data confirmed by the project in the confirmation status',
modelName:'Model Name',
modelYear:'Model year',
} }
+2
View File
@@ -871,4 +871,6 @@ module.exports = {
pleaseReviewTask:'请您添加对该条审查任务的工程确认信息', pleaseReviewTask:'请您添加对该条审查任务的工程确认信息',
pleaseWillBeReturned:'请对工程确认结果和责任人审查结果进行再次确认,若符合要求则进行提交,否则进行退回', pleaseWillBeReturned:'请对工程确认结果和责任人审查结果进行再次确认,若符合要求则进行提交,否则进行退回',
pleaseSubmitStatus:'请把工程确认的数据都点为确认状态进行提交', pleaseSubmitStatus:'请把工程确认的数据都点为确认状态进行提交',
modelName:'车型名称',
modelYear:'年款',
} }
@@ -45,12 +45,12 @@
{ {
title: this.$t('operationNode'), title: this.$t('operationNode'),
dataIndex: 'name', dataIndex: 'name',
align: 'left', align: 'left'
}, },
{ {
title: this.$t('Operator'), title: this.$t('Operator'),
dataIndex: 'assignee', dataIndex: 'assignee',
align: 'left', align: 'left'
}, },
{ {
title: this.$t('result'), title: this.$t('result'),
@@ -61,17 +61,14 @@
{ {
title: this.$t('opinion'), title: this.$t('opinion'),
dataIndex: 'approvalOpinion', dataIndex: 'approvalOpinion',
align: 'left', align: 'left'
}, },
{ {
title: this.$t('operationTime'), title: this.$t('operationTime'),
dataIndex: 'operatorTime', dataIndex: 'createTime',
align: 'left', align: 'left',
width:200, width: 200,
fixed: 'right', fixed: 'right'
customRender: function(t, r, index) {
return moment(t).format('YYYY-MM-DD HH:mm:ss')
}
} }
], ],
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download' downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download'
@@ -211,14 +211,16 @@
'Non-Compliance': 'nonConformityColor', 'Non-Compliance': 'nonConformityColor',
'To be tracked': 'TrackedColor', 'To be tracked': 'TrackedColor',
'NA': 'notInvolvedColor', 'NA': 'notInvolvedColor',
'No rating': 'submittedColor' 'No rating': 'submittedColor',
'Termination of task': 'nonConformityColor',
}, },
statusText: { statusText: {
'Compliance': this.$t('accord'), 'Compliance': this.$t('accord'),
'Non-Compliance': this.$t('nonConformity'), 'Non-Compliance': this.$t('nonConformity'),
'To be tracked': this.$t('Tracked'), 'To be tracked': this.$t('Tracked'),
'NA': this.$t('notInvolved'), 'NA': this.$t('notInvolved'),
'No rating': this.$t('toBeConfirmed') 'No rating': this.$t('toBeConfirmed'),
'Termination of task': this.$t('taskTermination'),
}, },
CertificationColor: { CertificationColor: {
'Test passed': 'accordColor', 'Test passed': 'accordColor',
@@ -47,7 +47,7 @@
</div> </div>
</a-col> </a-col>
<a-col :span="24" v-if="title == $t('CurrentProjectStatusEvaluation')"> <a-col :span="24" v-if="title == $t('CurrentProjectStatusEvaluation') && this.formInline.roleCode != '0'">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
<span class="title-text-text" <span class="title-text-text"
@@ -84,7 +84,7 @@
</div> </div>
</a-col> </a-col>
<a-col :span="24" v-if="title == $t('CurrentProjectStatusEvaluation')"> <a-col :span="24" v-if="title == $t('CurrentProjectStatusEvaluation') && this.formInline.roleCode != '0'">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
<span class="title-text-text" <span class="title-text-text"
@@ -98,13 +98,68 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
<div v-for="item in studioList" v-if="title == $t('CurrentProjectStatusEvaluation') && formInline.roleCode == '0'">
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text"
:title="$t('CurrentProjectStatusEvaluation')">{{$t('CurrentProjectStatusEvaluation')}}</span>
</div>
<a-form-model-item class="itemModel" prop="conditionAssessment">
<a-select
:disabled="disabled"
v-model="item.conditionAssessment"
:placeholder="$t('PleaseSelect')+$t('CurrentProjectStatusEvaluation')">
<a-select-option :value="'1'">
<span style="display: inline-block;width: 100%">
{{ $t('red') }}
</span>
</a-select-option>
<a-select-option :value="'2'">
<span style="display: inline-block;width: 100%">
{{ $t('yellow') }}
</span>
</a-select-option>
<a-select-option :value="'3'">
<span style="display: inline-block;width: 100%">
{{ $t('green') }}
</span>
</a-select-option>
<a-select-option :value="'4'">
<span style="display: inline-block;width: 100%">
{{ $t('blue') }}
</span>
</a-select-option>
</a-select>
</a-form-model-item>
</div>
</a-col>
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text"
:title="$t('remarks')">{{$t('remarks')}}</span>
</div>
<a-form-model-item class="itemModel" prop="remark">
<a-textarea
:placeholder="$t('remarks')"
:disabled="disabled"
v-model="item.remark" :rows="4"/>
</a-form-model-item>
</div>
</a-col>
</div>
</a-row> </a-row>
</a-form-model> </a-form-model>
</a-modal> </a-modal>
</template> </template>
<script> <script>
import { postAction, putAction } from '@/api/manage' import { postAction, putAction, getAction } from '@/api/manage'
export default { export default {
name: 'TaskListModel', name: 'TaskListModel',
@@ -115,10 +170,12 @@
title: this.$t('CertificationProgress'), title: this.$t('CertificationProgress'),
visible: false, visible: false,
confirmLoading: false, confirmLoading: false,
studioList: [],
disabled: false, disabled: false,
url: { url: {
edit: '/project/projectTaskInventoryEO/edit', edit: '/project/projectTaskInventoryEO/edit',
addOrUpdate: '/project/projectTaskInventoryConditionAssessmentEO/addOrUpdate' addOrUpdate: '/project/projectTaskInventoryConditionAssessmentEO/addOrUpdate',
list: '/project/projectTaskInventoryConditionAssessmentEO/list'
} }
} }
}, },
@@ -135,6 +192,9 @@
if (val.roleCode == '2' || val.roleCode == '4' || val.roleCode == '1') { if (val.roleCode == '2' || val.roleCode == '4' || val.roleCode == '1') {
this.disabled = false this.disabled = false
} else { } else {
if (val.roleCode == '0') {
this.getList(val)
}
this.disabled = true this.disabled = true
} }
} else { } else {
@@ -144,12 +204,20 @@
this.disabled = true this.disabled = true
} }
} }
console.log(val.conditionAssessment)
this.formInline = val this.formInline = val
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ruleForm.clearValidate() this.$refs.ruleForm.clearValidate()
}) })
}, },
getList(val) {
getAction(this.url.list, { projectLawsInventoryId: val.projectLawsInventoryId }).then((res) => {
if (res.success) {
this.studioList = res.result || []
} else {
this.studioList = []
}
})
},
handleInput(value) { handleInput(value) {
this.$nextTick(() => { this.$nextTick(() => {
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
@@ -15,10 +15,10 @@
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
<span class="Required">*</span> <span class="Required">*</span>
<span class="title-text-text" :title="$t('entryName')">{{$t('entryName')}}</span> <span class="title-text-text" :title="$t('modelName')">{{$t('modelName')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="projectNameId"> <a-form-model-item class="itemModel" prop="projectNameId">
<a-select :placeholder="$t('PleaseSelect')+$t('entryName')" <a-select :placeholder="$t('PleaseSelect')+$t('modelName')"
@change="projectNameChange" @change="projectNameChange"
v-model="formInline.projectNameId"> v-model="formInline.projectNameId">
<a-select-option v-for="(item, key) in projectNameList" <a-select-option v-for="(item, key) in projectNameList"
@@ -32,6 +32,28 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="Required">*</span>
<span class="title-text-text" :title="$t('modelYear')">{{$t('modelYear')}}</span>
</div>
<a-form-model-item class="itemModel" prop="yearName">
<a-select :placeholder="$t('PleaseSelect')+$t('modelYear')"
v-model="formInline.yearName">
<a-select-option v-for="(item, key) in projectNameList"
:key="key"
:value="item.id">
<span style="display: inline-block;width: 100%" :title=" item.projectName ">
{{ item.projectName}}
</span>
</a-select-option>
</a-select>
</a-form-model-item>
</div>
</a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
@@ -47,8 +69,6 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
@@ -65,6 +85,8 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
@@ -81,8 +103,6 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
@@ -98,38 +118,36 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
<span class="title-text-text" :title="$t('ModelPlatform')">{{$t('ModelPlatform')}}</span> <span class="title-text-text" :title="$t('ModelPlatform')">{{$t('ModelPlatform')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="vehiclePlatform"> <a-form-model-item class="itemModel" prop="vehiclePlatform">
<j-dict-select-tag class="box-input" v-model="formInline.vehiclePlatform" <a-input class="box-input"
:disabled="disabled" :disabled="disabled"
@input="handleInput('vehiclePlatform')" v-model="formInline.vehiclePlatform"
:placeholder="$t('PleaseSelect')+$t('ModelPlatform')" :placeholder="$t('PleaseEnter')+$t('ModelPlatform')"/>
:type="'select'"
:triggerChange="false" :dictCode="'vehicle_platform'"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
<span class="title-text-text" :title="$t('DigitalPlatform')">{{$t('DigitalPlatform')}}</span> <span class="title-text-text" :title="$t('DigitalPlatform')">{{$t('DigitalPlatform')}}</span>
</div> </div>
<a-form-model-item class="itemModel" :prop="'digitalPlatform'"> <a-form-model-item class="itemModel" :prop="'digitalPlatform'">
<j-dict-select-tag class="box-input" v-model="formInline.digitalPlatform" <a-input class="box-input"
:disabled="disabled" :disabled="disabled"
@input="handleInput('digitalPlatform')" v-model="formInline.digitalPlatform"
:placeholder="$t('PleaseSelect')+$t('DigitalPlatform')" :placeholder="$t('PleaseEnter')+$t('DigitalPlatform')"/>
:type="'select'"
:triggerChange="false" :dictCode="'digital_platform'"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
@@ -145,8 +163,6 @@
<!-- ^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&amp;%\$#_]*)?$ <!-- ^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&amp;%\$#_]*)?$
--> -->
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
@@ -161,6 +177,8 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
@@ -234,6 +252,20 @@
trigger: 'blur' trigger: 'blur'
} }
], ],
vehiclePlatform:[
{
max: 100,
message: this.$t('ModelPlatform') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
trigger: 'blur'
}
],
digitalPlatform:[
{
max: 100,
message: this.$t('DigitalPlatform') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
trigger: 'blur'
}
],
projectNameId: [ projectNameId: [
{ {
required: true, required: true,
@@ -241,6 +273,13 @@
trigger: 'change' trigger: 'change'
} }
], ],
yearName: [
{
required: true,
message: this.$t('modelYear') + this.$t('cannotEmpty'),
trigger: 'change'
}
],
targetMarket: [ targetMarket: [
{ {
required: true, required: true,
@@ -270,6 +309,7 @@
}, },
mounted() { mounted() {
this.getNameList() this.getNameList()
this.getSpaceInfo()
}, },
methods: { methods: {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
@@ -282,11 +322,21 @@
} }
}) })
}, },
getSpaceInfo() {
postAction('/project/projectNameInfoEO/getSpaceInfo', {}).then((res) => {
if (res.success) {
// this.projectNameList = res.result || []
} else {
this.projectNameList = []
}
})
},
addModel() { addModel() {
this.visible = true this.visible = true
this.title = this.$t('add') this.title = this.$t('add')
this.formInline = {} this.formInline = {}
this.getNameList() this.getNameList()
this.getSpaceInfo()
this.formInline.studioEngineerName = this.userInfo().username this.formInline.studioEngineerName = this.userInfo().username
this.formInline.studioEngineer = this.userInfo().id this.formInline.studioEngineer = this.userInfo().id
this.$nextTick(() => { this.$nextTick(() => {
@@ -459,7 +509,7 @@
padding: 10px 16px; padding: 10px 16px;
text-align: right; text-align: right;
left: 0; left: 0;
z-index:100; z-index: 100;
background: #fff; background: #fff;
border-radius: 0 0 2px 2px; border-radius: 0 0 2px 2px;
} }