fix:enum.js新增数据

This commit is contained in:
shijing 2024-12-20 11:08:53 +08:00
parent 6dac98b2a3
commit f51f7affaf
3 changed files with 21 additions and 5 deletions

View File

@ -70,6 +70,20 @@ export const mioTypeEnum = new EnumFactory({
'other_in': '其他入库',
'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({
0: '电/水/气',
10: '成品',

View File

@ -150,8 +150,7 @@
this.addForm.okcate=10;
this.limitedVisible = true;
//
this.$refs.addForm.clearValidate();
// this.addForm = Object.assign({}, defaultForm);
// this.$refs.addForm.clearValidate();
},
submitHandle(){
let that = this;

View File

@ -184,9 +184,12 @@ export default {
this.getmcateTagsOptions();
},
methods: {
getmcateTagsOptions() {
this.$API.mtm.material.cates.req().then((res) => {
this.mcateTagsOptions = res;
async getmcateTagsOptions() {
let that = this;
await that.$API.mtm.material.cates.req().then((res) => {
if(res&&res.length>0){
that.mcateTagsOptions = res;
}
});
},
addComponent(type) {