对接认证清单引用交付物
This commit is contained in:
@@ -1434,4 +1434,5 @@ module.exports = {
|
||||
batchmodify:'Whether to batch modify',
|
||||
onlyDataListReleasedAndCertificationReturnCanSelected:'Only data with the process status of list to be released and certification return can be selected',
|
||||
type:'type',
|
||||
select:'select',
|
||||
}
|
||||
@@ -1536,4 +1536,5 @@ module.exports = {
|
||||
batchmodify:'是否批量修改',
|
||||
onlyDataListReleasedAndCertificationReturnCanSelected:'只能选择流程状态为清单待发布和认证退回的数据',
|
||||
type:'类型',
|
||||
select:'选择',
|
||||
}
|
||||
@@ -123,10 +123,14 @@
|
||||
id:'text',
|
||||
name:this.$t('text')
|
||||
},
|
||||
{
|
||||
id:'select',
|
||||
name:this.$t('select')
|
||||
},
|
||||
{
|
||||
id:'N/A',
|
||||
name:'NA'
|
||||
}
|
||||
},
|
||||
],
|
||||
newVisible: false,
|
||||
rules: {
|
||||
|
||||
+8
-7
@@ -361,7 +361,6 @@
|
||||
class="box-input"
|
||||
style="width: 100%"
|
||||
:tree-data="DeliverableTreeList"
|
||||
tree-checkable
|
||||
:placeholder="$t('PleaseSelect')+$t('typeOfDeliverables')"
|
||||
/>
|
||||
</a-form-model-item>
|
||||
@@ -611,7 +610,7 @@
|
||||
}
|
||||
},
|
||||
getDeliverableTree() {
|
||||
getAction('/sys/category/getDeliverableTree', {}).then((res) => {
|
||||
getAction('/sys/category/getCertificationDeliverableTree', {}).then((res) => {
|
||||
if (res.success) {
|
||||
this.DeliverableTreeList = res.result
|
||||
} else {
|
||||
@@ -632,18 +631,20 @@
|
||||
})
|
||||
},
|
||||
editModel(value) {
|
||||
this.formInline = {}
|
||||
// this.formInline = {}
|
||||
this.visible = true
|
||||
this.formInline = value
|
||||
if (this.formInline.deliverableType) {
|
||||
this.formInline.deliverableType = this.formInline.deliverableType.split(',')
|
||||
}
|
||||
this.formInline = JSON.parse(JSON.stringify(value))
|
||||
// if (this.formInline.deliverableType) {
|
||||
// this.formInline.deliverableType = this.formInline.deliverableType.split(',')
|
||||
// }
|
||||
if (value.dutyTerritory) {
|
||||
this.queryPersonByProject(value.dutyTerritory)
|
||||
}
|
||||
this.getRegulationNo()
|
||||
this.title = this.$t('edit')
|
||||
this.$nextTick(() => {
|
||||
this.formInline = {...this.formInline}
|
||||
console.log(this.formInline)
|
||||
this.$refs.ruleForm.clearValidate()
|
||||
})
|
||||
},
|
||||
|
||||
+2
-2
@@ -76,6 +76,7 @@
|
||||
<span class="title-text-text" :title="$t('typeOfDeliverables')">{{$t('typeOfDeliverables')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel-multi">
|
||||
<!-- tree-checkable-->
|
||||
<a-tree-select
|
||||
tree-node-filter-prop="title"
|
||||
v-model="formInline.deliverableType"
|
||||
@@ -84,7 +85,6 @@
|
||||
class="box-input"
|
||||
style="width: 100%"
|
||||
:tree-data="DeliverableTreeList"
|
||||
tree-checkable
|
||||
:placeholder="$t('PleaseSelect')+$t('typeOfDeliverables')"
|
||||
/>
|
||||
</a-form-model-item>
|
||||
@@ -179,7 +179,7 @@
|
||||
},
|
||||
|
||||
getDeliverableTree() {
|
||||
getAction('/sys/category/getDeliverableTree', {}).then((res) => {
|
||||
getAction('/sys/category/getCertificationDeliverableTree', {}).then((res) => {
|
||||
if (res.success) {
|
||||
this.DeliverableTreeList = res.result
|
||||
} else {
|
||||
|
||||
@@ -280,18 +280,44 @@
|
||||
</a>
|
||||
</span>
|
||||
<span slot="DeliverablesResult" slot-scope="text,record,index">
|
||||
<a-button type="primary" class="button-text"
|
||||
v-if="record.flowStatus == 'Results to be submitted'"
|
||||
@click="clickButtonToUpload('deliveryResult',index)">
|
||||
<span v-if="record.flowStatus == 'Results to be submitted'">
|
||||
<a-button type="primary" class="button-text"
|
||||
v-if="record.valueType == 'file'"
|
||||
@click="clickButtonToUpload('deliveryResult',index)">
|
||||
{{ (record.deliveryResult === 'null' || record.deliveryResult === '' ||
|
||||
record.deliveryResult == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||
}}
|
||||
</a-button>
|
||||
</a-button>
|
||||
<a-input class="box-input-index"
|
||||
v-else-if="record.valueType == 'text'"
|
||||
:maxLength="200"
|
||||
onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g, '')"
|
||||
v-model.trim="record.deliveryResult"
|
||||
:placeholder="$t('PleaseEnter')"/>
|
||||
<a-radio-group v-else-if="record.valueType == 'select'"
|
||||
v-model="record.deliveryResult">
|
||||
<a-radio :value="'1'">
|
||||
{{$t('yes')}}
|
||||
</a-radio>
|
||||
<a-radio :value="'2'">
|
||||
{{$t('not')}}
|
||||
</a-radio>
|
||||
</a-radio-group>
|
||||
<span v-else>--</span>
|
||||
</span>
|
||||
|
||||
<span v-else>
|
||||
<span class="viewFile"
|
||||
@click="viewFileClick(record.deliveryResult)" v-if="record.deliveryResult">
|
||||
@click="viewFileClick(record.deliveryResult)"
|
||||
v-if="record.deliveryResult && record.valueType == 'file'">
|
||||
{{$t('viewFile')}}
|
||||
</span>
|
||||
<span v-else-if="record.deliveryResult && record.valueType == 'text'">
|
||||
{{record.deliveryResult}}
|
||||
</span>
|
||||
<span v-else-if="record.deliveryResult && record.valueType == 'select'">
|
||||
{{record.deliveryResult == '1' ? $t('yes') :$t('not')}}
|
||||
</span>
|
||||
<span v-else>--</span>
|
||||
</span>
|
||||
</span>
|
||||
@@ -355,41 +381,41 @@
|
||||
<referenceDeliverablesList ref="referenceDeliverablesListRef" @referenceDeliverablesListForm="transferListForm"/>
|
||||
<SelectedBy ref="SelectedByRef" :title="$t('turnToDo')" @SelectedByForm="SelectedByForm"></SelectedBy>
|
||||
<viewFileModel ref="viewFileModelRef"/>
|
||||
<!-- <a-modal-->
|
||||
<!-- :title="listTitle"-->
|
||||
<!-- :width="500"-->
|
||||
<!-- :visible="visible"-->
|
||||
<!-- :confirm-loading="confirmLoading"-->
|
||||
<!-- :maskClosable="false"-->
|
||||
<!-- @ok="handleOk"-->
|
||||
<!-- @cancel="handleCancel"-->
|
||||
<!-- >-->
|
||||
<!-- <a-spin :spinning="confirmLoading">-->
|
||||
<!-- <a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">-->
|
||||
<!-- <a-row :gutter="24">-->
|
||||
<!-- <a-col :span="24">-->
|
||||
<!-- <div class="box-title-text-index">-->
|
||||
<!-- <div class="title-text-index">-->
|
||||
<!-- <span class="Required">*</span>-->
|
||||
<!-- <span class="title-text-text"-->
|
||||
<!-- :title="$t('TaskCutOffTime')">{{ $t('TaskCutOffTime') }}</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- <a-form-model-item class="itemModel" prop="endTime">-->
|
||||
<!-- <a-date-picker class="box-input"-->
|
||||
<!-- :placeholder="$t('PleaseSelect')+$t('TaskCutOffTime')"-->
|
||||
<!-- @change="dateChange({db_field_name:'endTime'})"-->
|
||||
<!-- format="YYYY-MM-DD"-->
|
||||
<!-- :disabledDate="disabledDate"-->
|
||||
<!-- :getCalendarContainer="(trigger) => trigger.parentNode"-->
|
||||
<!-- v-model="formInline.endTime"-->
|
||||
<!-- style="width: 100%"/>-->
|
||||
<!-- </a-form-model-item>-->
|
||||
<!-- </div>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- </a-row>-->
|
||||
<!-- </a-form-model>-->
|
||||
<!-- </a-spin>-->
|
||||
<!-- </a-modal>-->
|
||||
<!-- <a-modal-->
|
||||
<!-- :title="listTitle"-->
|
||||
<!-- :width="500"-->
|
||||
<!-- :visible="visible"-->
|
||||
<!-- :confirm-loading="confirmLoading"-->
|
||||
<!-- :maskClosable="false"-->
|
||||
<!-- @ok="handleOk"-->
|
||||
<!-- @cancel="handleCancel"-->
|
||||
<!-- >-->
|
||||
<!-- <a-spin :spinning="confirmLoading">-->
|
||||
<!-- <a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">-->
|
||||
<!-- <a-row :gutter="24">-->
|
||||
<!-- <a-col :span="24">-->
|
||||
<!-- <div class="box-title-text-index">-->
|
||||
<!-- <div class="title-text-index">-->
|
||||
<!-- <span class="Required">*</span>-->
|
||||
<!-- <span class="title-text-text"-->
|
||||
<!-- :title="$t('TaskCutOffTime')">{{ $t('TaskCutOffTime') }}</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- <a-form-model-item class="itemModel" prop="endTime">-->
|
||||
<!-- <a-date-picker class="box-input"-->
|
||||
<!-- :placeholder="$t('PleaseSelect')+$t('TaskCutOffTime')"-->
|
||||
<!-- @change="dateChange({db_field_name:'endTime'})"-->
|
||||
<!-- format="YYYY-MM-DD"-->
|
||||
<!-- :disabledDate="disabledDate"-->
|
||||
<!-- :getCalendarContainer="(trigger) => trigger.parentNode"-->
|
||||
<!-- v-model="formInline.endTime"-->
|
||||
<!-- style="width: 100%"/>-->
|
||||
<!-- </a-form-model-item>-->
|
||||
<!-- </div>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- </a-row>-->
|
||||
<!-- </a-form-model>-->
|
||||
<!-- </a-spin>-->
|
||||
<!-- </a-modal>-->
|
||||
<a-modal
|
||||
:title="$t('roleSwitching')"
|
||||
:width="500"
|
||||
@@ -487,7 +513,7 @@
|
||||
{
|
||||
type: 'string',
|
||||
value: 'configItem',
|
||||
text: this.$t('configurationItem'),
|
||||
text: this.$t('configurationItem')
|
||||
},
|
||||
{
|
||||
type: 'string',
|
||||
@@ -970,14 +996,14 @@
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
}
|
||||
},
|
||||
releaseData(ids, notConditions, data){
|
||||
releaseData(ids, notConditions, data) {
|
||||
let _this = this
|
||||
this.$confirm({
|
||||
content: _this.$t('confirmRelease'),
|
||||
onOk() {
|
||||
postAction('/project/projectCertificationInventoryEO/issue', {
|
||||
ids: ids.join(','),
|
||||
projectLibraryId: _this.$route.query.id,
|
||||
projectLibraryId: _this.$route.query.id
|
||||
}).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
|
||||
Reference in New Issue
Block a user