|
@@ -8,13 +8,11 @@
|
|
|
@submit.native.prevent
|
|
@submit.native.prevent
|
|
|
>
|
|
>
|
|
|
<el-row :gutter="10">
|
|
<el-row :gutter="10">
|
|
|
-
|
|
|
|
|
<el-col v-bind="styleResponsive ? { lg: 3, md: 6 } : { span: 3 }">
|
|
<el-col v-bind="styleResponsive ? { lg: 3, md: 6 } : { span: 3 }">
|
|
|
- <el-form-item label="" label-width="20px">
|
|
|
|
|
|
|
+ <el-form-item label="" label-width="20px">
|
|
|
<el-checkbox v-model="where.allSearch">全局</el-checkbox>
|
|
<el-checkbox v-model="where.allSearch">全局</el-checkbox>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
-
|
|
|
|
|
- </el-col>
|
|
|
|
|
|
|
+ </el-col>
|
|
|
<el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
|
|
<el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
|
|
|
<el-form-item label="关键词">
|
|
<el-form-item label="关键词">
|
|
|
<el-input
|
|
<el-input
|
|
@@ -26,8 +24,6 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
|
|
<el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
|
|
|
<el-form-item label="编码">
|
|
<el-form-item label="编码">
|
|
|
<el-input
|
|
<el-input
|
|
@@ -49,16 +45,28 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
+ <!-- <el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
|
|
|
|
|
+ <el-form-item label="BOM状态">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ v-model.trim="where.name"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col> -->
|
|
|
|
|
+
|
|
|
<!-- <el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
|
|
<!-- <el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
|
|
|
<el-form-item label="组织机构:">
|
|
<el-form-item label="组织机构:">
|
|
|
<auth-selection v-model.trim="where.deptIds" style="width: 100%"></auth-selection>
|
|
<auth-selection v-model.trim="where.deptIds" style="width: 100%"></auth-selection>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col> -->
|
|
</el-col> -->
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row>
|
|
<el-row>
|
|
|
- <el-col v-bind="styleResponsive ? { md: 24} : { span: 24 }" style="display: flex;justify-content: flex-end">
|
|
|
|
|
|
|
+ <el-col
|
|
|
|
|
+ v-bind="styleResponsive ? { md: 24 } : { span: 24 }"
|
|
|
|
|
+ style="display: flex; justify-content: flex-end"
|
|
|
|
|
+ >
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
<el-button
|
|
<el-button
|
|
|
size="mini"
|
|
size="mini"
|
|
@@ -75,7 +83,7 @@
|
|
|
icon="el-icon-refresh"
|
|
icon="el-icon-refresh"
|
|
|
class="ele-btn-icon"
|
|
class="ele-btn-icon"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
- >重置</el-button
|
|
|
|
|
|
|
+ >重置</el-button
|
|
|
>
|
|
>
|
|
|
|
|
|
|
|
<!-- <el-button
|
|
<!-- <el-button
|
|
@@ -107,7 +115,17 @@
|
|
|
defaultWhere,
|
|
defaultWhere,
|
|
|
// 表单数据
|
|
// 表单数据
|
|
|
where: { ...defaultWhere },
|
|
where: { ...defaultWhere },
|
|
|
- loading:false
|
|
|
|
|
|
|
+ loading: false,
|
|
|
|
|
+ bomTypeList: [
|
|
|
|
|
+ {
|
|
|
|
|
+ id: 1,
|
|
|
|
|
+ label: '有'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ id: 0,
|
|
|
|
|
+ label: '无'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -128,18 +146,19 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
resetAllSearch() {
|
|
resetAllSearch() {
|
|
|
- this.$set(this.where,'allSearch',false)
|
|
|
|
|
|
|
+ this.$set(this.where, 'allSearch', false);
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 刷新数据
|
|
// 刷新数据
|
|
|
- refreshData(){
|
|
|
|
|
- this.loading = true;
|
|
|
|
|
- syncMateriel().then(res=>{
|
|
|
|
|
- if(res=='0'){
|
|
|
|
|
- this.loading = false;
|
|
|
|
|
- this.$message.success('数据刷新成功!')
|
|
|
|
|
- this.search()
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ refreshData() {
|
|
|
|
|
+ this.loading = true;
|
|
|
|
|
+ syncMateriel()
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ if (res == '0') {
|
|
|
|
|
+ this.loading = false;
|
|
|
|
|
+ this.$message.success('数据刷新成功!');
|
|
|
|
|
+ this.search();
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
.catch((e) => {
|
|
.catch((e) => {
|
|
|
this.loading = false;
|
|
this.loading = false;
|