更新工艺 #40
@ -32,7 +32,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<el-form-item v-if="false" :label="$t('module.art.artBOM')" prop="bomId">
|
<!-- <el-form-item v-if="false" :label="$t('module.art.artBOM')" prop="bomId">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="obj.bomId"
|
v-model="obj.bomId"
|
||||||
:class="$style.select"
|
:class="$style.select"
|
||||||
@ -47,7 +47,7 @@
|
|||||||
:value="item.id"
|
:value="item.id"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
<el-form-item :label="$t('module.art.description')" prop="description">
|
<el-form-item :label="$t('module.art.description')" prop="description">
|
||||||
<el-input v-model="obj.description" />
|
<el-input v-model="obj.description" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -63,7 +63,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { add, update, getInfo, listBom, getCode } from '@/api/art-manage/art.js'
|
import { add, update, getInfo, getCode } from '@/api/art-manage/art.js'
|
||||||
import SubmitBar from '@/views/art/components/submit-bar'
|
import SubmitBar from '@/views/art/components/submit-bar'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -91,7 +91,6 @@ export default {
|
|||||||
substrateId: '',
|
substrateId: '',
|
||||||
bomId: ''
|
bomId: ''
|
||||||
},
|
},
|
||||||
bomList: [],
|
|
||||||
rules: {
|
rules: {
|
||||||
name: [
|
name: [
|
||||||
{ required: true, message: this.$t('module.art.artName') + this.$t('module.art.notNull'), trigger: 'blur' },
|
{ required: true, message: this.$t('module.art.artName') + this.$t('module.art.notNull'), trigger: 'blur' },
|
||||||
@ -128,10 +127,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init: async function() {
|
init: async function() {
|
||||||
if (this.bomList.length === 0) {
|
|
||||||
const bomRes = await listBom()
|
|
||||||
this.bomList = bomRes.data
|
|
||||||
}
|
|
||||||
if (this.id) {
|
if (this.id) {
|
||||||
const res = await getInfo({ id: this.id })
|
const res = await getInfo({ id: this.id })
|
||||||
this.obj = res.data
|
this.obj = res.data
|
||||||
|
Loading…
Reference in New Issue
Block a user