This commit is contained in:
yunkexin 2026-06-22 14:35:42 +08:00
parent ef2baad230
commit ecab6390f9

View File

@ -58,7 +58,7 @@
<view v-for="(item,index) in dataModel.Nav_Details.filter(i => !i.IS_DELETED)" :key="index" style="border-bottom: #ceccca 1px dashed;padding-bottom: 10px;"> <view v-for="(item,index) in dataModel.Nav_Details.filter(i => !i.IS_DELETED)" :key="index" style="border-bottom: #ceccca 1px dashed;padding-bottom: 10px;">
<u-form-item> <u-form-item>
<view style="display: flex;flex-direction: row;justify-content: space-between;align-items: center;flex: 1;"> <view style="display: flex;flex-direction: row;justify-content: space-between;align-items: center;flex: 1;">
<view @click="handleChangeStep(index)" style="flex: 1;display: flex;flex-direction: row;align-items: center;"> <view @click="handleChangeStep(item)" style="flex: 1;display: flex;flex-direction: row;align-items: center;">
<view> <view>
{{'部门 : ' +item.Nav_Department.NAME}} {{'部门 : ' +item.Nav_Department.NAME}}
</view> </view>
@ -70,7 +70,7 @@
</view> </view>
</view> </view>
</u-form-item> </u-form-item>
<u-form-item label="辨识人员" @click="handleShowUserSelector(item,index)"> <u-form-item label="辨识人员" @click="handleShowUserSelector(item)">
<u-icon name="man-add" size="24" color="#3d9cff" slot="right"></u-icon> <u-icon name="man-add" size="24" color="#3d9cff" slot="right"></u-icon>
</u-form-item> </u-form-item>
<view v-show="!!item.Nav_DetailUsers.length" class="tag-view"> <view v-show="!!item.Nav_DetailUsers.length" class="tag-view">
@ -325,10 +325,10 @@
this.showPopupRecitifyDate = false this.showPopupRecitifyDate = false
}, },
handleChangeStep(index) { handleChangeStep(item) {
this.currentOperateStep = {} this.currentOperateStep = {}
this.showPopupStep = true this.showPopupStep = true
this.nowIndex = index this.nowIndex = item
this.handleSearchStep('init') this.handleSearchStep('init')
}, },
handleClosePopupStep() { handleClosePopupStep() {
@ -362,16 +362,13 @@
}) })
}, },
handleSelectedStep(val) { handleSelectedStep(val) {
this.dataModel.Nav_Details[this.nowIndex].DEPARTMENT_ID = val.ID this.nowIndex.DEPARTMENT_ID = val.ID
this.dataModel.Nav_Details[this.nowIndex].Nav_Department.NAME = val.NAME this.nowIndex.Nav_Department.NAME = val.NAME
this.showPopupStep = false this.showPopupStep = false
}, },
handleSelectorPeople(e) { handleSelectorPeople(e) {
const { this.peopleSelectOption.value.Nav_DetailUsers = e.map(i => {
index: key
} = this.peopleSelectOption
this.dataModel.Nav_Details[key].Nav_DetailUsers = e.map(i => {
return { return {
USER_ID: i.USER_ID, USER_ID: i.USER_ID,
IS_DELETED: i.IS_DELETED, IS_DELETED: i.IS_DELETED,
@ -384,18 +381,17 @@
} }
}) })
let arr = '' let arr = ''
this.dataModel.Nav_Details[key].Nav_DetailUsers.map(item => { this.peopleSelectOption.value.Nav_DetailUsers.map(item => {
if (!item.IS_DELETED) { if (!item.IS_DELETED) {
arr += ' ' + item.Nav_User.NAME arr += ' ' + item.Nav_User.NAME
} }
}) })
this.dataModel.Nav_Details[key].userlist = String(arr) this.peopleSelectOption.value.userlist = String(arr)
}, },
handleShowUserSelector(item, index) { handleShowUserSelector(item) {
this.peopleSelectOption = { this.peopleSelectOption = {
showSelector: true, showSelector: true,
value: item, value: item,
index,
depId: item.DEPARTMENT_ID, depId: item.DEPARTMENT_ID,
defaultChecked: item.Nav_DetailUsers.map(i => { defaultChecked: item.Nav_DetailUsers.map(i => {
return { return {