fix:enum.js新增数据
This commit is contained in:
parent
6dac98b2a3
commit
f51f7affaf
|
|
@ -70,6 +70,20 @@ export const mioTypeEnum = new EnumFactory({
|
||||||
'other_in': '其他入库',
|
'other_in': '其他入库',
|
||||||
'other_out': '其他出库'
|
'other_out': '其他出库'
|
||||||
})
|
})
|
||||||
|
export const fiedTypeEnum = new EnumFactory({
|
||||||
|
'input-int': '整数',
|
||||||
|
'input-number': '小数',
|
||||||
|
'input-text': '文本',
|
||||||
|
'select-text': '单选',
|
||||||
|
'selects-text': '多选',
|
||||||
|
})
|
||||||
|
export const testTagsEnum = new EnumFactory({
|
||||||
|
'purin': '入厂检验',
|
||||||
|
'first': '首件检验',
|
||||||
|
'prod': '成品检验',
|
||||||
|
'process': '过程检验',
|
||||||
|
'performance': '性能检验',
|
||||||
|
})
|
||||||
export const productTypeEnum = new EnumFactory({
|
export const productTypeEnum = new EnumFactory({
|
||||||
0: '电/水/气',
|
0: '电/水/气',
|
||||||
10: '成品',
|
10: '成品',
|
||||||
|
|
|
||||||
|
|
@ -150,8 +150,7 @@
|
||||||
this.addForm.okcate=10;
|
this.addForm.okcate=10;
|
||||||
this.limitedVisible = true;
|
this.limitedVisible = true;
|
||||||
// 清除验证状态
|
// 清除验证状态
|
||||||
this.$refs.addForm.clearValidate();
|
// this.$refs.addForm.clearValidate();
|
||||||
// this.addForm = Object.assign({}, defaultForm);
|
|
||||||
},
|
},
|
||||||
submitHandle(){
|
submitHandle(){
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
|
||||||
|
|
@ -184,9 +184,12 @@ export default {
|
||||||
this.getmcateTagsOptions();
|
this.getmcateTagsOptions();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getmcateTagsOptions() {
|
async getmcateTagsOptions() {
|
||||||
this.$API.mtm.material.cates.req().then((res) => {
|
let that = this;
|
||||||
this.mcateTagsOptions = res;
|
await that.$API.mtm.material.cates.req().then((res) => {
|
||||||
|
if(res&&res.length>0){
|
||||||
|
that.mcateTagsOptions = res;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
addComponent(type) {
|
addComponent(type) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue