|
@@ -12,6 +12,7 @@
|
|
|
clearable
|
|
|
filterable
|
|
|
v-model="form.organId"
|
|
|
+ :disabled="!isCreate"
|
|
|
placeholder="请选择分部"
|
|
|
>
|
|
|
<el-option v-for="(item,index) in selects.branchs"
|
|
@@ -29,6 +30,7 @@
|
|
|
>
|
|
|
<el-date-picker
|
|
|
v-model="form.month"
|
|
|
+ :disabled="!isCreate"
|
|
|
type="month"
|
|
|
placeholder="请选择工作周期">
|
|
|
</el-date-picker>
|
|
@@ -46,6 +48,7 @@
|
|
|
clearable
|
|
|
filterable
|
|
|
v-model="groupItem.userId"
|
|
|
+ :disabled="!isCreate"
|
|
|
placeholder="请选择乐团主管"
|
|
|
>
|
|
|
<el-option v-for="(item,index) in technicians"
|
|
@@ -129,7 +132,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { findTechnician } from '@/api/repairManager'
|
|
|
+import { queryEmployByOrganId } from '@/api/systemManage'
|
|
|
import { matterTypes } from '@/views/main/constant'
|
|
|
import { objectToOptions } from '@/utils'
|
|
|
import { createRandom } from '@/helpers/uuidv4'
|
|
@@ -165,8 +168,9 @@ export default {
|
|
|
async 'form.organId'() {
|
|
|
if (this.form.organId) {
|
|
|
try {
|
|
|
- const res = await findTechnician({
|
|
|
- organId: this.form.organId
|
|
|
+ const res = await queryEmployByOrganId({
|
|
|
+ organId: this.form.organId,
|
|
|
+ rows: 999
|
|
|
})
|
|
|
this.technicians = res.data
|
|
|
this.$set(this.form, 'group', group.map(item => ({...item, userId: ''})))
|