平台件 法规清单认证清单按钮权限修改

This commit is contained in:
zyx.net
2023-09-13 10:52:29 +08:00
parent f680da60e6
commit d092e00267
5 changed files with 79 additions and 797 deletions
@@ -196,28 +196,28 @@
:prop="'dataList.'+index+'.dutyTerritory'" :prop="'dataList.'+index+'.dutyTerritory'"
:rules="[{ required: true, message: $t('areaOfResponsibility') + $t('cannotEmpty'), trigger: 'change'},]" :rules="[{ required: true, message: $t('areaOfResponsibility') + $t('cannotEmpty'), trigger: 'change'},]"
> >
<a-select :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')" <!-- <a-select :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"-->
class="box-input" <!-- class="box-input"-->
optionFilterProp="label" <!-- optionFilterProp="label"-->
mode="multiple" <!-- mode="multiple"-->
@change="dutyHandleChange(index)" <!-- @change="dutyHandleChange(index)"-->
:getPopupContainer="triggerNode=> triggerNode.parentNode" <!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
v-model="item.dutyTerritory"> <!-- v-model="item.dutyTerritory">-->
<a-select-option v-for="(val, key) in item.dutyTerritoryList" <!-- <a-select-option v-for="(val, key) in item.dutyTerritoryList"-->
:key="key" <!-- :key="key"-->
:label="val.itemText" <!-- :label="val.itemText"-->
:value="val.itemValue"> <!-- :value="val.itemValue">-->
<span style="display: inline-block;width: 100%" :title=" val.itemText "> <!-- <span style="display: inline-block;width: 100%" :title=" val.itemText ">-->
{{ val.itemText }} <!-- {{ val.itemText }}-->
</span> <!-- </span>-->
</a-select-option> <!-- </a-select-option>-->
</a-select> <!-- </a-select>-->
<!-- <j-dict-select-tag class="box-input" v-model="item.dutyTerritory"--> <j-dict-select-tag class="box-input" v-model="item.dutyTerritory"
<!-- @input="handleInput('dataList.'+index+'.dutyTerritory')"--> @input="handleInput('dataList.'+index+'.dutyTerritory')"
<!-- @changeQuery="dutyHandleChange(index)"--> @changeQuery="dutyHandleChange(index)"
<!-- :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"--> :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
<!-- :type="'select'"--> :type="'select'"
<!-- :triggerChange="false" :dictCode="'duty_territory'"/>--> :triggerChange="false" :dictCode="'duty_territory'"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -460,28 +460,28 @@
<a-form-model-item class="itemModel-multi" <a-form-model-item class="itemModel-multi"
:prop="'dutyTerritory'" :prop="'dutyTerritory'"
> >
<a-select :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')" <!-- <a-select :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"-->
class="box-input" <!-- class="box-input"-->
optionFilterProp="label" <!-- optionFilterProp="label"-->
mode="multiple" <!-- mode="multiple"-->
@change="handleChange" <!-- @change="handleChange"-->
:getPopupContainer="triggerNode=> triggerNode.parentNode" <!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
v-model="formInline.dutyTerritory"> <!-- v-model="formInline.dutyTerritory">-->
<a-select-option v-for="(item, key) in dutyTerritoryList" <!-- <a-select-option v-for="(item, key) in dutyTerritoryList"-->
:key="key" <!-- :key="key"-->
:label="item.itemText" <!-- :label="item.itemText"-->
:value="item.itemValue"> <!-- :value="item.itemValue">-->
<span style="display: inline-block;width: 100%" :title=" item.itemText "> <!-- <span style="display: inline-block;width: 100%" :title=" item.itemText ">-->
{{ item.itemText }} <!-- {{ item.itemText }}-->
</span> <!-- </span>-->
</a-select-option> <!-- </a-select-option>-->
</a-select> <!-- </a-select>-->
<!-- <j-dict-select-tag class="box-input" v-model="formInline.dutyTerritory"--> <j-dict-select-tag class="box-input" v-model="formInline.dutyTerritory"
<!-- @input="handleInput('dutyTerritory')"--> @input="handleInput('dutyTerritory')"
<!-- @changeQuery="handleChange"--> @changeQuery="handleChange"
<!-- :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"--> :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
<!-- :type="'select'"--> :type="'select'"
<!-- :triggerChange="false" :dictCode="'duty_territory'"/>--> :triggerChange="false" :dictCode="'duty_territory'"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -110,7 +110,7 @@
</div> </div>
<!-- 保存--> <!-- 保存-->
<div @click="preservationClick(1)" v-if="roleSwitchingCode == 2 || roleSwitchingCode == 0" <div @click="preservationClick(1)" v-if="roleSwitchingCode == 2 || roleSwitchingCode == 1"
class="operator-text"> class="operator-text">
<a-icon type="check-circle"/> <a-icon type="check-circle"/>
{{ $t('preservation') }} {{ $t('preservation') }}
@@ -123,7 +123,7 @@
</div> </div>
<!-- 批量设置--> <!-- 批量设置-->
<div @click="BatchSettingClick($t('BatchSetting'))" v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2" <div @click="BatchSettingClick($t('BatchSetting'))" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2"
class="operator-text"> class="operator-text">
<a-icon type="setting"/> <a-icon type="setting"/>
{{ $t('BatchSetting') }} {{ $t('BatchSetting') }}
@@ -136,13 +136,6 @@
<a-icon type="profile"/> <a-icon type="profile"/>
{{ $t('CertificationDirectory') }} {{ $t('CertificationDirectory') }}
</div> </div>
<!-- 带入相关人员-->
<div @click="bringInRelevantPersonnelClick"
v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2"
class="operator-text">
<a-icon type="user"/>
{{ $t('bringInRelevantPersonnel') }}
</div>
<!-- 修改配置--> <!-- 修改配置-->
<div @click="BatchSettingClick($t('changeSetting'))" v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21" <div @click="BatchSettingClick($t('changeSetting'))" v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21"
class="operator-text"> class="operator-text">
@@ -168,21 +161,21 @@
<div> <div>
<!-- 添加--> <!-- 添加-->
<div @click="handleAdd" <div @click="handleAdd"
v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2"
class="operator-text-title"> class="operator-text-title">
<a-icon type="plus"/> <a-icon type="plus"/>
{{ $t('add') }} {{ $t('add') }}
</div> </div>
<!-- 添加配置--> <!-- 添加配置-->
<div @click="addConfigurationClick" <div @click="addConfigurationClick"
v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2"
class="operator-text-title"> class="operator-text-title">
<a-icon type="plus"/> <a-icon type="plus"/>
{{ $t('addConfiguration') }} {{ $t('addConfiguration') }}
</div> </div>
<!-- 模板下载--> <!-- 模板下载-->
<div @click="handleModule" <div @click="handleModule"
v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2"
class="operator-text-title"> class="operator-text-title">
<a-icon type="download"/> <a-icon type="download"/>
{{ $t('templateDownload') }} {{ $t('templateDownload') }}
@@ -190,21 +183,21 @@
<!-- 导出--> <!-- 导出-->
<div @click="handleExport" <div @click="handleExport"
v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2 || roleSwitchingCode == 20 || roleSwitchingCode == 21" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2 || roleSwitchingCode == 20 || roleSwitchingCode == 21"
class="operator-text-title"> class="operator-text-title">
<a-icon type="export" :rotate="-90"/> <a-icon type="export" :rotate="-90"/>
{{ $t('export') }} {{ $t('export') }}
</div> </div>
<!-- 导入--> <!-- 导入-->
<div class="operator-text-title" v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2"> <div class="operator-text-title" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2">
<ImportFile :url="url" :projectLibraryId=$route.query.id :isTrue="true" :accept="'.zip'" <ImportFile :url="url" :projectLibraryId=$route.query.id :isTrue="true" :accept="'.zip'"
@getList="getPersonnelList"/> @getList="getPersonnelList"/>
</div> </div>
<!-- 批量删除--> <!-- 批量删除-->
<div @click="handleDel" <div @click="handleDel"
v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2"
class="operator-text-title"> class="operator-text-title">
<a-icon type="delete"/> <a-icon type="delete"/>
{{ $t('BatchDelete') }} {{ $t('BatchDelete') }}
@@ -212,7 +205,7 @@
<!-- 流程重置--> <!-- 流程重置-->
<div @click="processResetClick" <div @click="processResetClick"
v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2"
class="operator-text-title"> class="operator-text-title">
<a-icon type="file-search"/> <a-icon type="file-search"/>
{{ $t('processReset') }} {{ $t('processReset') }}
@@ -220,21 +213,15 @@
</div> </div>
</template> </template>
<div class="operator-text" style="position: relative" <div class="operator-text" style="position: relative"
v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2"> v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2">
<span style="position: absolute;left: -13px;top: -4px">...</span>{{ $t('more') }} <span style="position: absolute;left: -13px;top: -4px">...</span>{{ $t('more') }}
</div> </div>
</a-popconfirm> </a-popconfirm>
</div> </div>
<div style="margin-top: 1px;float:right;"> <div style="margin-top: 1px;float:right;">
<!-- 发布-->
<div @click="releaseClick" v-if="roleSwitchingCode == 0" class="operator-text">
<a-icon type="check-circle"/>
{{ $t('release') }}
</div>
<!-- 撤回--> <!-- 撤回-->
<div @click="withdrawClick" v-if="roleSwitchingCode == 0" class="operator-text"> <div @click="withdrawClick" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2" class="operator-text">
<a-icon type="rollback"/> <a-icon type="rollback"/>
{{ $t('withdraw') }} {{ $t('withdraw') }}
</div> </div>
@@ -305,7 +292,7 @@
</div> </div>
<!-- 催办--> <!-- 催办-->
<div @click="questionClick" v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2 || roleSwitchingCode == 20" <div @click="questionClick" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2 || roleSwitchingCode == 20"
class="operator-text"> class="operator-text">
<a-icon type="sound"/> <a-icon type="sound"/>
{{ $t('question') }} {{ $t('question') }}
@@ -334,7 +321,7 @@
</span> </span>
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
<a class="text-operation" <a class="text-operation"
v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2"
@click="edit(record)"> @click="edit(record)">
{{ $t('edit') }} {{ $t('edit') }}
</a> </a>
@@ -343,7 +330,7 @@
{{ $t('history') }} {{ $t('history') }}
</a> </a>
<a class="text-operation" <a class="text-operation"
v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2" v-if="roleSwitchingCode == 1 || roleSwitchingCode == 2"
@click="deleteLib(record)"> @click="deleteLib(record)">
{{ $t('deleteLib') }} {{ $t('deleteLib') }}
</a> </a>
@@ -400,7 +387,7 @@
</span> </span>
<span slot="reportNo" slot-scope="text,record"> <span slot="reportNo" slot-scope="text,record">
<a-input class="box-input-index" <a-input class="box-input-index"
v-if="roleSwitchingCode == 2 || roleSwitchingCode == 0" v-if="roleSwitchingCode == 2 || roleSwitchingCode == 1"
:maxLength="200" :maxLength="200"
onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g, '')" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g, '')"
v-model.trim="record.reportNumber" v-model.trim="record.reportNumber"
@@ -409,7 +396,7 @@
</span> </span>
<span slot="productModel" slot-scope="text,record"> <span slot="productModel" slot-scope="text,record">
<a-input class="box-input-index" <a-input class="box-input-index"
v-if="roleSwitchingCode == 2 || roleSwitchingCode == 0" v-if="roleSwitchingCode == 2 || roleSwitchingCode == 1"
:maxLength="200" :maxLength="200"
onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g, '')" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g, '')"
v-model.trim="record.productModel" v-model.trim="record.productModel"
@@ -418,22 +405,13 @@
</span> </span>
<span slot="nameOfManufacturer" slot-scope="text,record"> <span slot="nameOfManufacturer" slot-scope="text,record">
<a-input class="box-input-index" <a-input class="box-input-index"
v-if="roleSwitchingCode == 2 || roleSwitchingCode == 0" v-if="roleSwitchingCode == 2 || roleSwitchingCode == 1"
:maxLength="200" :maxLength="200"
onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g, '')" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g, '')"
v-model.trim="record.productionEnterpriseName" v-model.trim="record.productionEnterpriseName"
:placeholder="$t('PleaseEnter')+$t('nameOfManufacturer')"/> :placeholder="$t('PleaseEnter')+$t('nameOfManufacturer')"/>
<span v-else>{{text}}</span> <span v-else>{{text}}</span>
</span> </span>
<div slot="CertificationProgress" slot-scope="text,result">
<span class="box-content-Progress box-content-cou"
:style="{'width':long=='zh-cn'?'116px' : '148px'}"
:class="CertificationColor[result.certificationProgress]"
@click="CertificationProgressClick(result)"
>
{{result.certificationProgress_dictText ? result.certificationProgress_dictText : $t('toBeStarted')}}
</span>
</div>
<span slot="deliverableTemplate" slot-scope="text,result"> <span slot="deliverableTemplate" slot-scope="text,result">
<span class="viewFile" <span class="viewFile"
@click="viewFileClick(result.deliverableTemplate)" @click="viewFileClick(result.deliverableTemplate)"
@@ -842,15 +820,6 @@
ellipsis: true, ellipsis: true,
scopedSlots: { customRender: 'nameOfManufacturer' } scopedSlots: { customRender: 'nameOfManufacturer' }
}, },
{
title: this.$t('CertificationProgress'),
align: 'left',
dataIndex: 'certificationProgress',
sorter: true,
width: localStorage.getItem('language') == 'zh-cn' ? 180 : 200,
ellipsis: true,
scopedSlots: { customRender: 'CertificationProgress' }
},
{ {
title: this.$t('operation'), title: this.$t('operation'),
align: 'left', align: 'left',
@@ -914,10 +883,10 @@
columns.splice(i, 1) columns.splice(i, 1)
i-- i--
} }
if (columns[i].title == this.$t('CertificationProgress')) { // if (columns[i].title == this.$t('CertificationProgress')) {
columns.splice(i, 1) // columns.splice(i, 1)
i-- // i--
} // }
} }
} }
return columns return columns
@@ -1011,7 +980,7 @@
}, },
onChange(page, pageSize) { onChange(page, pageSize) {
this.pageNo = page this.pageNo = page
if (this.roleSwitchingCode == 2 || this.roleSwitchingCode == 0) { if (this.roleSwitchingCode == 2 || this.roleSwitchingCode == 1) {
this.preservationClick() this.preservationClick()
} }
this.getList() this.getList()
@@ -1019,7 +988,7 @@
SizeChange(page, pageSize) { SizeChange(page, pageSize) {
this.pageNo = 1 this.pageNo = 1
this.pageSize = pageSize this.pageSize = pageSize
if (this.roleSwitchingCode == 2 || this.roleSwitchingCode == 0) { if (this.roleSwitchingCode == 2 || this.roleSwitchingCode == 1) {
this.preservationClick() this.preservationClick()
} }
this.getList() this.getList()
@@ -1094,6 +1063,8 @@
return return
} }
this.dataSource = res.result.records || [] this.dataSource = res.result.records || []
// this.selectedRowKeys = this.dataSource.map(item => item.id)
// console.log(this.selectedRowKeys)
this.dataSource.forEach(value => { this.dataSource.forEach(value => {
if (value.flowStatusName == '清单待校核') { if (value.flowStatusName == '清单待校核') {
value.flowStatusName = '任务待发起' value.flowStatusName = '任务待发起'
@@ -1263,52 +1234,6 @@
dateChange(item) { dateChange(item) {
this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : '' this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : ''
}, },
releaseClick() {
// this.listTitle = this.$t('Deadline')
// if (this.selectedRowKeysList.length < 1) {
// this.$message.warning(this.$t('selectLeastOne'))
// } else {
// this.visible = true
// }
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
let ids = []
let notConditions = []
for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if ((this.selectedRowKeysList[i].flowStatus == 'List to be released' &&
this.selectedRowKeysList[i].deliverableType == '1635545748968783874') ||
(this.selectedRowKeysList[i].flowStatus == 'Certification returned' &&
this.selectedRowKeysList[i].deliverableType == '1635545748968783874')) {
ids.push(this.selectedRowKeysList[i].id)
} else if ((this.selectedRowKeysList[i].flowStatus == 'List to be released' &&
this.selectedRowKeysList[i].endTime) ||
(this.selectedRowKeysList[i].flowStatus == 'Certification returned' &&
this.selectedRowKeysList[i].endTime)) {
ids.push(this.selectedRowKeysList[i].id)
} else {
notConditions.push(this.selectedRowKeysList[i].inspectionItem)
}
}
let data = ''
if (notConditions && notConditions.length > 0) {
data = this.$t('inspectionItems') + '"' + notConditions.join('、') + '"' + this.$t('conditionsNotMet') + ',' + this.$t('onlyDataListReleasedAndCertificationReturnCanSelected')
}
if (ids && ids.length > 0) {
// this.releaseData(ids, notConditions, data)
let query = {
ids: ids,
notConditions: notConditions,
data: data,
dutyDueDate: 'inventoryVerifyEndTime',
title: this.$t('release')
}
this.$refs.deadlineFormRef.getData(JSON.parse(JSON.stringify(query)))
} else {
this.failedMessage(data)
}
} else {
this.$message.warning(this.$t('selectLeastOne'))
}
},
deadlineDataForm(val, formInline) { deadlineDataForm(val, formInline) {
if (val.title == this.$t('release')) { if (val.title == this.$t('release')) {
this.releaseData(val.ids, val.notConditions, val.data, formInline) this.releaseData(val.ids, val.notConditions, val.data, formInline)
@@ -1466,7 +1391,7 @@
let ids = [] let ids = []
let notConditions = [] let notConditions = []
let data = '' let data = ''
if (this.roleSwitchingCode == 0) { if (this.roleSwitchingCode == 1 || this.roleSwitchingCode == 2) {
for (let i = 0; i < this.selectedRowKeysList.length; i++) { for (let i = 0; i < this.selectedRowKeysList.length; i++) {
if (this.selectedRowKeysList[i].flowStatus == 'List to be checked' || if (this.selectedRowKeysList[i].flowStatus == 'List to be checked' ||
this.selectedRowKeysList[i].flowStatus == 'Certification returned' || this.selectedRowKeysList[i].flowStatus == 'Certification returned' ||
@@ -1856,11 +1781,6 @@
deliveryChange() { deliveryChange() {
this.preservationClick() this.preservationClick()
}, },
CertificationProgressClick(val) {
let item = JSON.parse(JSON.stringify(val))
item.roleCode = this.roleSwitchingCode
this.$refs.TaskListModelRef.getData(item, this.$t('CertificationProgress'))
},
//发起流程 //发起流程
initiatingProcessClick(value, prompt) { initiatingProcessClick(value, prompt) {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -2283,31 +2203,6 @@
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
} }
}, },
bringInRelevantPersonnelClick(){
let _this = this
// if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.$confirm({
content: _this.$t('confirmBringInRelevantPersonnel'),
onOk() {
// let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys))
postAction('/project/projectCertificationInventoryEO/matchRelevantPeople', {
// ids: selectedRowKeys.join(','),
projectLibraryId: _this.$route.query.id
}).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.selectedRowKeys = []
_this.getList()
} else {
_this.$message.warning(_this.$t('operationFailed'))
}
})
}
})
// } else {
// this.$message.warning(this.$t('selectLeastOne'))
// }
},
} }
} }
</script> </script>
@@ -1,3 +1,4 @@
<!--平台件-->
<template> <template>
<a-card :bordered="false"> <a-card :bordered="false">
<!-- <div class="header-text">--> <!-- <div class="header-text">-->
@@ -133,18 +134,13 @@
<!-- 重置流程(数据迁移)--> <!-- 重置流程(数据迁移)-->
<!-- </div>--> <!-- </div>-->
<!-- 调取--> <!-- 调取-->
<div @click="transferClick" class="operator-text" v-if="this.roleSwitchingCode == '0'"> <div @click="transferClick" class="operator-text" v-if="this.roleSwitchingCode == '1' || this.roleSwitchingCode == '2'">
<a-icon type="profile"/> <a-icon type="profile"/>
{{ $t('Transfer') }} {{ $t('Transfer') }}
</div> </div>
<!-- 带入相关人员-->
<div class="operator-text" @click="bringInRelevantPersonnelClick" v-if="this.roleSwitchingCode == '0'">
<a-icon type="user"/>
{{ $t('bringInRelevantPersonnel') }}
</div>
<!-- 批量设置--> <!-- 批量设置-->
<div class="operator-text" @click="batSettingClick" <div class="operator-text" @click="batSettingClick"
v-if="this.roleSwitchingCode == '0' || this.roleSwitchingCode == '1'"> v-if="this.roleSwitchingCode == '2' || this.roleSwitchingCode == '1'">
<a-icon type="setting"/> <a-icon type="setting"/>
{{ $t('BatchSetting') }} {{ $t('BatchSetting') }}
</div> </div>
@@ -199,7 +195,7 @@
{{ $t('toResubmit') }} {{ $t('toResubmit') }}
</div> </div>
<!-- 更多--> <!-- 更多-->
<a-popconfirm overlayClassName="popconfirm" placement="bottomRight" v-if="this.roleSwitchingCode == '0'"> <a-popconfirm overlayClassName="popconfirm" placement="bottomRight" v-if="this.roleSwitchingCode == '2' || this.roleSwitchingCode == '1'">
<template slot="title" id="popconfirm"> <template slot="title" id="popconfirm">
<div> <div>
<!-- 添加--> <!-- 添加-->
@@ -279,14 +275,8 @@
<a-icon type="export" :rotate="-90"/> <a-icon type="export" :rotate="-90"/>
{{ $t('export') }} {{ $t('export') }}
</div> </div>
<!-- 发布-->
<div class="operator-text" @click="initiateListConfirmationcClick('清单')"
v-if="this.roleSwitchingCode == '0'">
<a-icon type="solution"/>
{{ $t('release') }}
</div>
<!-- 撤回--> <!-- 撤回-->
<div class="operator-text" @click="withdrawnClick" v-if="this.roleSwitchingCode == '0'"> <div class="operator-text" @click="withdrawnClick" v-if="this.roleSwitchingCode == '2' || this.roleSwitchingCode == '1'">
<a-icon type="rollback"/> <a-icon type="rollback"/>
{{ $t('withdraw') }} {{ $t('withdraw') }}
</div> </div>
@@ -302,7 +292,7 @@
</div> </div>
<!-- 催办--> <!-- 催办-->
<div class="operator-text" @click="questionClick" <div class="operator-text" @click="questionClick"
v-if="this.roleSwitchingCode == '0' || this.roleSwitchingCode == '1' || this.roleSwitchingCode == '30'"> v-if="this.roleSwitchingCode == '2' || this.roleSwitchingCode == '1' || this.roleSwitchingCode == '30'">
<a-icon type="sound"/> <a-icon type="sound"/>
{{ $t('question') }} {{ $t('question') }}
</div> </div>
@@ -324,7 +314,7 @@
> >
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
<a class="text-operation" <a class="text-operation"
v-if="roleSwitchingCode == 0 || roleSwitchingCode == 1" v-if="roleSwitchingCode == 2 || roleSwitchingCode == 1"
@click="edit(record)"> @click="edit(record)">
{{ $t('edit') }} {{ $t('edit') }}
</a> </a>
@@ -334,7 +324,7 @@
<!-- {{ $t('view') }}--> <!-- {{ $t('view') }}-->
<!-- </a>--> <!-- </a>-->
<a class="text-operation" <a class="text-operation"
v-if="roleSwitchingCode == 0" v-if="roleSwitchingCode == 2 || roleSwitchingCode == 1"
@click="deleteLib(record)"> @click="deleteLib(record)">
{{ $t('deleteLib') }} {{ $t('deleteLib') }}
</a> </a>
@@ -1566,7 +1556,7 @@
}, },
columns() { columns() {
let columnResult = JSON.parse(JSON.stringify(this.columnsAll)) let columnResult = JSON.parse(JSON.stringify(this.columnsAll))
if (this.roleSwitchingCode == 0 || this.roleSwitchingCode == 1) { if (this.roleSwitchingCode == 2 || this.roleSwitchingCode == 1) {
} else { } else {
for (var i = 0; i < columnResult.length; i++) { for (var i = 0; i < columnResult.length; i++) {
if (columnResult[i].title === this.$t('operation')) { if (columnResult[i].title === this.$t('operation')) {
@@ -1,233 +0,0 @@
<template>
<a-drawer
:title="$t('Transfer')"
:maskClosable="false"
:width="1000"
placement="right"
:closable="true"
@close="handleCancel"
:visible="visible"
style="height: 100%;overflow: auto;padding-bottom: 53px;">
<div style="margin-bottom: 60px">
<a-table
:components="drag(columns,'columns')"
:columns="columns"
rowKey="id"
:scroll="{x: 800}"
:data-source="dataList"
:pagination="false"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,columnTitle:' ' }"
:loading="loading">
</a-table>
<div class="page" v-if="dataList.length > 0">
<a-pagination
:show-total="total => $t('total')+` ${total} `+$t('strip')"
show-quick-jumper
show-size-changer
:page-size.sync="pageSize"
:total="total"
:current="pageNo"
@change="onChange"
@showSizeChange="SizeChange"
/>
</div>
</div>
<div class="drawer-bootom-button">
<a-button @click="handleCancel" style="margin-right: 16px">{{$t('cancel')}}</a-button>
<a-button @click="handleSubmit(undefined)" type="primary" :loading="confirmLoading">{{$t('determine')}}</a-button>
</div>
</a-drawer>
</template>
<script>
import { getAction, postAction } from '@/api/manage'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default {
name: 'transferList',
components: {},
props: ['url'],
mixins: [ResizeHeader, ResizeColumnProvide],
data() {
return {
visible: false,
queryParam: {},
confirmLoading: false,
selectedRowKeys: [],
columns: [
{
title: this.$t('projectVersion'),
dataIndex: 'projectName',
align: 'left',
ellipsis: true,
width: 235
},
{
title: this.$t('Listcreationtime'),
dataIndex: 'createTime',
align: 'left',
ellipsis: true,
},
],
dataList: [],
content: [],
loading: false,
pageNo: 1,
pageSize: 10,
total: 0
}
},
mounted() {
},
methods: {
transferModel() {
this.visible = true
this.queryParam = {}
this.selectedRowKeys = []
this.replacePage()
},
searchQuery() {
this.pageNo = 1
this.replacePage()
},
searchReset() {
this.pageNo = 1
this.queryParam = {}
this.replacePage()
},
onChange(page, pageSize) {
this.pageNo = page
this.replacePage()
},
SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize
this.replacePage()
},
replacePage() {
let query = {
projectId: this.$route.query.id,
pageNo: this.pageNo,
pageSize: this.pageSize,
...this.queryParam
}
this.loading = true
getAction('/project/projectRxswinEO/getOnePage', query).then((res) => {
if (res.success) {
this.dataList = res.result.records || []
this.total = res.result.total
this.loading = false
} else {
this.loading = false
}
})
},
onSelectChange(value) {
this.selectedRowKeys = value
if (this.selectedRowKeys.length > 1) {
this.selectedRowKeys.shift()
}
},
handleCancel() {
this.visible = false
},
handleSubmit(flag) {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.confirmLoading = true
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
this.confirmLoading = false
this.$emit('transferListForm',selectedRowKeys.join(','))
this.selectedRowKeys = []
// postAction(this.url.addModel, {
// dummyInventoryBaseId: selectedRowKeys.join(','),
// projectLibraryId: this.$route.query.id,
// flag: flag
// }).then((res) => {
// if (res.success) {
// this.confirmLoading = false
// this.$message.success(this.$t('OperationSuccessful'))
// this.visible = false
// this.selectedRowKeys = []
// this.$emit('transferListForm')
// } else {
// if (res.message == '该虚拟清单的维护清单中没有数据,是否需要添加') {
// this.confirmLoading = false
// this.getAdd()
// return
// }
// this.$message.warning(this.$t('operationFailed'))
// this.confirmLoading = false
// }
// })
} else {
this.$message.warning(this.$t('selectLeastOne'))
}
},
getAdd() {
let _this = this
this.$confirm({
content: _this.$t('TheDoesNotContainData'),
onOk() {
_this.handleSubmit('1')
}
})
}
}
}
</script>
<style scoped>
.page {
text-align: right;
margin-top: 20px;
}
.drawer-bootom-button {
position: absolute;
bottom: 0;
z-index: 100;
width: 100%;
border-top: 1px solid #e8e8e8;
padding: 10px 16px;
text-align: right;
left: 0;
background: #fff;
border-radius: 0 0 2px 2px;
}
.box-title-text {
line-height: 1.4;
display: flex;
align-items: center;
margin-bottom: 10px;
}
.title-text {
width: 20%;
min-width: 110px;
color: #000F16;
display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
margin-top: 3px;
text-align: right;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.box-input {
display: inline-block;
width: 70%;
height: 38px;
margin-top: 2px;
}
.box-button {
height: 38px;
}
</style>
@@ -1,370 +0,0 @@
<template>
<a-drawer
:title="$t('Transfer')"
:maskClosable="false"
:width="1100"
placement="right"
:closable="true"
@close="handleCancel"
:visible="visible"
style="height: 100%;overflow: auto;padding-bottom: 53px;">
<div style="margin-bottom: 60px">
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<a-col :md="12" :sm="8">
<div class="box-title-text-search">
<div class="title-text-search" :title="$t('standard')">
<span>{{$t('standard')}}</span>
</div>
<a-input class="box-input-search" allowClear :placeholder="$t('PleaseEnter') + $t('standard')"
v-model="queryParam.serialNumber"></a-input>
</div>
</a-col>
<template v-if="toggleSearchStatus">
<a-col :md="12" :sm="8">
<div class="box-title-text-search">
<div class="title-text-search" :title="$t('theme')">
<span>{{$t('theme')}}</span>
</div>
<a-input class="box-input-search" allowClear :placeholder="$t('PleaseEnter') + $t('theme')"
v-model="queryParam.theme"></a-input>
</div>
</a-col>
<a-col :md="12" :sm="8">
<div class="box-title-text-search">
<div class="title-text-search" :title="'RXSWIN'">
<span>RXSWIN</span>
</div>
<a-input class="box-input-search" allowClear :placeholder="$t('PleaseEnter') + 'RXSWIN'"
v-model="queryParam.rxswin"></a-input>
</div>
</a-col>
<!-- <a-col :md="12" :sm="8">-->
<!-- <div class="box-title-text-search">-->
<!-- <div class="title-text-search" :title="$t('Correspondingversion')">-->
<!-- <span>{{$t('Correspondingversion')}}</span>-->
<!-- </div>-->
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('Correspondingversion')"-->
<!-- allowClear-->
<!-- show-search-->
<!-- class="box-input-search"-->
<!-- optionFilterProp="label"-->
<!-- showSearch-->
<!-- :autoClearSearchValue="false"-->
<!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
<!-- v-model="queryParam.version">-->
<!-- <a-select-option v-for="(item, key) in firstLevelDutyTerritoryList"-->
<!-- :key="key"-->
<!-- :label="item.key"-->
<!-- :value="item.key">-->
<!-- <span style="display: inline-block;width: 100%" :title=" item.key ">-->
<!-- {{ item.key }}-->
<!-- </span>-->
<!-- </a-select-option>-->
<!-- </a-select>-->
<!-- </div>-->
<!-- </a-col>-->
</template>
<span style="float: right;overflow: hidden;margin-right: 11px;margin-bottom: 20px"
class="table-page-search-submitButtons">
<a @click="handleToggleSearch">
{{ !toggleSearchStatus ? $t('open') : $t('away') }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
</a>
<a-button class="box-button-search" style="margin-left: 8px"
@click="searchReset">{{$t('reset')}}</a-button>
<a-button class="box-button-search" style="margin-left: 8px" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
</span>
</a-row>
</a-form>
</div>
<a-table
:columns="columns"
rowKey="id"
:scroll="{x: 800,y:'calc(100vh - 330px)'}"
:data-source="dataList"
:pagination="false"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:loading="loading">
</a-table>
<div class="page" v-if="dataList.length > 0">
<a-pagination
:show-total="total => $t('total')+` ${total} `+$t('strip')"
show-quick-jumper
show-size-changer
:page-size.sync="pageSize"
:total="total"
:current="pageNo"
@change="onChange"
@showSizeChange="SizeChange"
/>
</div>
</div>
<div class="drawer-bootom-button">
<a-button @click="handleCancel" style="margin-right: 16px">{{$t('cancel')}}</a-button>
<a-button @click="handleSubmit(undefined)" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
</div>
</a-drawer>
</template>
<script>
import { getAction, postAction } from '@/api/manage'
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
export default {
name: 'transferList',
components: {
globalAdvancedQuery
},
props: ['url'],
data() {
return {
toggleSearchStatus: false,
visible: false,
queryParam: {},
confirmLoading: false,
selectedRowKeys: [],
columns: [
{
title: this.$t('standard'),
align: 'left',
dataIndex: 'serialNumber',
ellipsis: true,
sorter:true,
width: 170
},
{
title: this.$t('theme'),
align: 'left',
dataIndex: 'theme',
ellipsis: true,
sorter:true,
width: 300
},
{
title: 'RXSWIN',
align: 'left',
dataIndex: 'rxswin',
ellipsis: true,
sorter:true,
width: 170
},
{
title: this.$t('Correspondingversion'),
align: 'left',
dataIndex: 'version',
ellipsis: true,
sorter:true,
width: 170
},
],
dataList: [],
content: [],
loading: false,
dummyInventoryBaseId:'',
pageNo: 1,
pageSize: 10,
total: 0
}
},
mounted() {
},
methods: {
transferModel(id) {
this.visible = true
this.projectId = id
this.queryParam = {}
this.selectedRowKeys = []
this.replacePage()
},
handleToggleSearch() {
this.toggleSearchStatus = !this.toggleSearchStatus
},
searchQuery() {
this.pageNo = 1
this.replacePage()
},
searchReset() {
this.pageNo = 1
this.queryParam = {}
this.replacePage()
},
onChange(page, pageSize) {
this.pageNo = page
this.replacePage()
},
SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize
this.replacePage()
},
replacePage() {
let query = {
pageNo: this.pageNo,
pageSize: this.pageSize,
...this.queryParam,
projectId: this.projectId
}
this.loading = true
getAction('/project/projectRxswinEO/getTwoPage', query).then((res) => {
if (res.success) {
this.dataList = res.result.records || []
this.loading = false
} else {
this.loading = false
}
})
},
onSelectChange(value) {
this.selectedRowKeys = value
// if (this.selectedRowKeys.length > 1) {
// this.selectedRowKeys.shift()
// }
},
handleCancel() {
this.visible = false
},
handleSubmit(flag) {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.confirmLoading = true
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
getAction('/project/projectRxswinEO/iSExist', {
projectId: this.$route.query.id,
// projectLibraryId: this.$route.query.id,
ids: selectedRowKeys.join(','),
}).then((res) => {
if (res.success) {
this.confirmLoading = false
// this.$message.success(this.$t('OperationSuccessful'))
if(res.result == 'YES'){
let _this = this
this.$confirm({
content: _this.$t('AlreadyExists'),
onOk() {
getAction('/project/projectRxswinEO/addBatch', {
ids: selectedRowKeys.join(','),
flag:'YES',
projectId: _this.$route.query.id,
}).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.visible = false
_this.$emit('transferListFormHomo')
} else {
_this.$message.warning(res.message)
}
})
},
onCancel() {
_this.visible = false
_this.$emit('transferListFormHomo')
}
})
}else{
this.visible = false
this.$message.success(this.$t('OperationSuccessful'))
this.$emit('transferListFormHomo')
}
this.selectedRowKeys = []
} else {
this.$message.warning(this.$t('operationFailed'))
this.confirmLoading = false
}
})
} else {
this.$message.warning(this.$t('selectLeastOne'))
}
},
}
}
</script>
<style scoped>
.page {
text-align: right;
margin-top: 20px;
}
.drawer-bootom-button {
position: absolute;
bottom: 0;
z-index: 100;
width: 100%;
border-top: 1px solid #e8e8e8;
padding: 10px 16px;
text-align: right;
left: 0;
background: #fff;
border-radius: 0 0 2px 2px;
}
.box-title-text {
line-height: 1.4;
display: flex;
align-items: center;
margin-bottom: 10px;
}
.title-text {
width: 20%;
min-width: 110px;
color: #000F16;
display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
margin-top: 3px;
text-align: right;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.box-input {
display: inline-block;
width: 70%;
height: 38px;
margin-top: 2px;
}
.box-button {
height: 38px;
}
.box-title-text-search {
line-height: 1.4;
display: flex;
align-items: center;
margin-bottom: 10px;
}
.title-text-search {
width: 110px;
color: #000F16;
display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
margin-top: 3px;
text-align: right;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.box-input-search {
display: inline-block;
width: calc(100% - 100px);
height: 38px;
margin-top: 2px;
}
.box-button-search {
height: 38px;
/*margin-top: 2px;*/
}
</style>