|
@@ -13,11 +13,18 @@
|
|
|
<el-input v-model="dataForm.code" :disabled="true" placeholder="系统自动生成"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="8" style="padding-left: 20px">
|
|
|
+ <el-form-item label="车间" prop="proWorkshopId">
|
|
|
+ <WorkshopComponent v-model="dataForm.proWorkshopId" :workshop-id="dataForm.proWorkshopId" :disabled="display" style="width:100%;"/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="8" style="padding-left: 20px">
|
|
|
<el-form-item label="工种名称" prop="name">
|
|
|
<el-input v-model="dataForm.name" :disabled="display" placeholder="工种名称"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="my-row">
|
|
|
<el-col :span="8" style="padding-left: 20px">
|
|
|
<el-form-item label="工种级别" prop="level">
|
|
|
<el-select
|
|
@@ -25,7 +32,7 @@
|
|
|
:disabled="display"
|
|
|
placeholder="请选择"
|
|
|
style="width:100%"
|
|
|
- >
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="item in optionsLevel"
|
|
|
:key="item.code"
|
|
@@ -35,12 +42,10 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- </el-row>
|
|
|
- <el-row class="my-row">
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="8" style="padding-left: 20px">
|
|
|
<el-form-item label="工时单价" prop="quotedPrice">
|
|
|
<el-input v-model="dataForm.quotedPrice" placeholder="工时单价" oninput="value=value.replace(/[^0-9.]/g,'')">
|
|
|
- <i slot="suffix" style="font-style:normal;margin-right: 10px;">元</i>
|
|
|
+ <i slot="suffix" style="font-style:normal;margin-right: 10px;">元</i>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -65,7 +70,7 @@
|
|
|
<user-components v-model="dataForm.masterIds" :user-ids="dataForm.masterIds" @change='masterChange' :disabled="display" style="width:100%;"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="8" style="padding-left: 20px">
|
|
|
<el-form-item label="负责人" prop="foreman">
|
|
|
<user-component v-model="dataForm.foreman" :user-id="dataForm.foreman" @userSelected='foremanChange' :disabled="display" style="width:100%;"/>
|
|
|
</el-form-item>
|
|
@@ -81,13 +86,14 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import UserComponents from '../common/user-components'
|
|
|
- import UserComponent from '../common/user-component'
|
|
|
+ import UserComponents from '@/views/modules/common/user-components'
|
|
|
+ import UserComponent from '@/views/modules/common/user-component'
|
|
|
+ import WorkshopComponent from '@/views/modules/common/workshop-component.vue'
|
|
|
import { getDictList } from '@/api/dict'
|
|
|
import { addOrUpdateWorkType, getWorkTypeDetail } from '@/api/product'
|
|
|
export default {
|
|
|
name: 'work-type-add-or-update',
|
|
|
- components: {UserComponents, UserComponent},
|
|
|
+ components: {UserComponents, UserComponent, WorkshopComponent},
|
|
|
computed: {
|
|
|
orgId: {
|
|
|
get () { return this.$store.state.user.orgId }
|