修改禅道已知bug

This commit is contained in:
qq787203167
2022-07-07 11:10:13 +08:00
parent 341a360565
commit f90fe16a43
3 changed files with 105 additions and 64 deletions
+3
View File
@@ -142,4 +142,7 @@
.itemModel-multi .ant-form-explain, .ant-form-extra { .itemModel-multi .ant-form-explain, .ant-form-extra {
margin-top: -10px; margin-top: -10px;
} }
.anticon-exclamation-circle{
display: none!important;
}
</style> </style>
@@ -95,13 +95,13 @@
<span class="title-text-text" <span class="title-text-text"
:title="$t('engineer')">{{$t('engineer')}}</span> :title="$t('engineer')">{{$t('engineer')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="userName"> <a-form-model-item class="itemModel" prop="userIdName">
<PersonnelSelection <PersonnelSelection
:query="{db_field_name:'userId',db_field_txt:$t('engineer')}" :query="{db_field_name:'userId',db_field_txt:$t('engineer')}"
:personneQuery="formInline" :personneQuery="formInline"
:distributionEngineerList="distributionEngineerList" :distributionEngineerList="distributionEngineerList"
@change="PersonnelSelectionChange" @change="PersonnelSelectionChange"
v-model="formInline.userName"/> v-model="formInline.userIdName"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -385,7 +385,7 @@
trigger: 'change' trigger: 'change'
} }
], ],
userName: [ userIdName: [
{ {
required: true, required: true,
message: this.$t('engineer') + this.$t('cannotEmpty'), message: this.$t('engineer') + this.$t('cannotEmpty'),
@@ -623,8 +623,9 @@
}) })
} }
this.formInline.userId = userId.join(',') this.formInline.userId = userId.join(',')
this.formInline.userName = userName.join(',') this.formInline.userIdName = userName.join(',')
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
console.log(this.formInline)
} }
this.loadingTable = false this.loadingTable = false
} else { } else {
@@ -682,7 +683,7 @@
this.formInline[value] = id this.formInline[value] = id
this.distributionEngineerList = [] this.distributionEngineerList = []
if (id) { if (id) {
this.formInline.userName.split(',').forEach((res, index) => { this.formInline.userIdName.split(',').forEach((res, index) => {
this.distributionEngineerList.push({ this.distributionEngineerList.push({
deliveryInstructions: '', deliveryInstructions: '',
name: res, name: res,
@@ -713,9 +714,9 @@
}) })
_this.distributionEngineerList.splice(num, 1) _this.distributionEngineerList.splice(num, 1)
_this.distributionEngineerList = [..._this.distributionEngineerList] _this.distributionEngineerList = [..._this.distributionEngineerList]
_this.formInline.userName = _this.formInline.userName.split(',') _this.formInline.userIdName = _this.formInline.userIdName.split(',')
_this.formInline.userName.splice(num, 1) _this.formInline.userIdName.splice(num, 1)
_this.formInline.userName = _this.formInline.userName.join(',') _this.formInline.userIdName = _this.formInline.userIdName.join(',')
_this.formInline.userId = _this.formInline.userId.split(',') _this.formInline.userId = _this.formInline.userId.split(',')
_this.formInline.userId.splice(num, 1) _this.formInline.userId.splice(num, 1)
_this.formInline.userId = _this.formInline.userId.join(',') _this.formInline.userId = _this.formInline.userId.join(',')
@@ -26,11 +26,53 @@
</a-col> </a-col>
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text" style="width: 44px" :title="$t('subtitle')"> <div class="title-text" :title="$t('areaOfResponsibility')">
<span>{{ $t('subtitle') }}</span> <span>{{ $t('areaOfResponsibility') }}</span>
</div> </div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('subtitle')" <j-dict-select-tag class="box-input" v-model="queryParam.dutyTerritory"
v-model="queryParam.subtitle"></j-input> :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
:type="'select'"
:triggerChange="false" :dictCode="'duty_territory'"/>
</div>
</a-col>
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('listConfirmationStatus')">
<span>{{ $t('listConfirmationStatus') }}</span>
</div>
<a-select :placeholder="$t('PleaseSelect')+$t('listConfirmationStatus')"
class="box-input"
allowClear
:getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="queryParam.inventoryAffirmStatus">
<a-select-option v-for="(item, key) in listOptions"
:key="item.key"
:value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.label ">
{{ item.label}}
</span>
</a-select-option>
</a-select>
</div>
</a-col>
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('taskAffirmStatus')">
<span>{{ $t('taskAffirmStatus') }}</span>
</div>
<a-select :placeholder="$t('PleaseSelect')+$t('taskAffirmStatus')"
class="box-input"
allowClear
:getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="queryParam.taskAffirmStatus">
<a-select-option v-for="(item, key) in taskOptions"
:key="item.key"
:value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.label ">
{{ item.label}}
</span>
</a-select-option>
</a-select>
</div> </div>
</a-col> </a-col>
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons"> <span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
@@ -774,6 +816,11 @@
value: 'correspondingStandard', value: 'correspondingStandard',
text: this.$t('correspondingStandard') text: this.$t('correspondingStandard')
}, },
{
type: 'string',
value: 'subtitle',
text: this.$t('subtitle')
},
{ {
type: '', type: '',
value: 'implementType', value: 'implementType',
@@ -837,59 +884,49 @@
valueName: 'engineeringInterfacePersonName', valueName: 'engineeringInterfacePersonName',
text: this.$t('engineeringInterfacePerson') text: this.$t('engineeringInterfacePerson')
}, },
],
listOptions:[
{ {
type: '', value:'Not started',
value: 'inventoryAffirmStatus', key:'Not started',
text: this.$t('listConfirmationStatus'), label:this.$t('notLaunch'),
options:[
{
value:'Not started',
key:'Not started',
label:this.$t('notLaunch'),
},
{
value:'List to confirm',
key:'List to confirm',
label:this.$t('toBeConfirmed'),
},
{
value:'Accepted',
key:'Accepted',
label:this.$t('accept'),
},
{
value:'Rejected',
key:'Rejected',
label:this.$t('refuse'),
},
],
}, },
{ {
type: '', value:'List to confirm',
value: 'taskAffirmStatus', key:'List to confirm',
text: this.$t('taskAffirmStatus'), label:this.$t('toBeConfirmed'),
options:[ },
{ {
value:'Not started', value:'Accepted',
key:'Not started', key:'Accepted',
label:this.$t('notLaunch'), label:this.$t('accept'),
}, },
{ {
value:'List to confirm', value:'Rejected',
key:'List to confirm', key:'Rejected',
label:this.$t('toBeConfirmed'), label:this.$t('refuse'),
}, },
{ ],
value:'Accepted', taskOptions:[
key:'Accepted', {
label:this.$t('accept'), value:'Not started',
}, key:'Not started',
{ label:this.$t('notLaunch'),
value:'Rejected', },
key:'Rejected', {
label:this.$t('refuse'), value:'List to confirm',
}, key:'List to confirm',
], label:this.$t('toBeConfirmed'),
},
{
value:'Accepted',
key:'Accepted',
label:this.$t('accept'),
},
{
value:'Rejected',
key:'Rejected',
label:this.$t('refuse'),
}, },
], ],
visibleRoleSwitching: false, visibleRoleSwitching: false,
@@ -2018,14 +2055,14 @@
} }
.title-text { .title-text {
width: 32px; width: 92px;
color: #000F16; color: #000F16;
display: inline-block; display: inline-block;
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
margin-right: 16px; margin-right: 16px;
margin-top: 3px; margin-top: 3px;
text-align: left; text-align: right;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;