|
|
@@ -14,17 +14,18 @@
|
|
|
class="dict-table"
|
|
|
tool-class="ele-toolbar-actions"
|
|
|
>
|
|
|
-
|
|
|
- <template v-slot:toolbar>
|
|
|
-
|
|
|
- <div class="toolbar_box">
|
|
|
- <div
|
|
|
- ><span>基本数量</span>
|
|
|
- <el-input placeholder="请输入" v-model.number="attributeData.baseCount">
|
|
|
- </el-input>
|
|
|
- <DictSelection dictName="计量单位" v-model="attributeData.unit"
|
|
|
- /></div>
|
|
|
- </div>
|
|
|
+ <template v-slot:toolbar>
|
|
|
+ <div class="toolbar_box">
|
|
|
+ <div
|
|
|
+ ><span>基本数量</span>
|
|
|
+ <el-input
|
|
|
+ placeholder="请输入"
|
|
|
+ v-model.number="attributeData.baseCount"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
+ <DictSelection dictName="计量单位" v-model="attributeData.unit"
|
|
|
+ /></div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<!-- 表头工具栏 -->
|
|
|
@@ -45,10 +46,15 @@
|
|
|
<script>
|
|
|
import BOMSearch from './BOM-search.vue';
|
|
|
import { getBomPageCategoryId, startAndStop } from '@/api/material/BOM';
|
|
|
+ import {
|
|
|
+ getBomPageCategoryTempId,
|
|
|
+ startAndStopTemp
|
|
|
+ } from '@/api/material/jgBom';
|
|
|
|
|
|
export default {
|
|
|
name: 'SystemDictionary',
|
|
|
components: { BOMSearch },
|
|
|
+
|
|
|
data() {
|
|
|
return {
|
|
|
// 表格列配置
|
|
|
@@ -62,25 +68,34 @@
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'code',
|
|
|
- label: 'BOM编码',
|
|
|
+ prop: 'categoryCode',
|
|
|
+ label: '编码',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'name',
|
|
|
- label: 'BOM名称',
|
|
|
+ prop: 'categoryName',
|
|
|
+ label: '名称',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
- prop: 'categoryCode',
|
|
|
- label: '产品编码',
|
|
|
+ prop: 'brandNum',
|
|
|
+ label: '牌号'
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ prop: 'modelType',
|
|
|
+ label: '型号',
|
|
|
+ align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
- prop: 'categoryName',
|
|
|
- label: '产品名称',
|
|
|
+ prop: 'specification',
|
|
|
+ label: '规格',
|
|
|
+ align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
prop: 'dosage',
|
|
|
label: '用量',
|
|
|
@@ -96,6 +111,17 @@
|
|
|
prop: 'versions',
|
|
|
label: '版本'
|
|
|
},
|
|
|
+
|
|
|
+ {
|
|
|
+ prop: '',
|
|
|
+ label: '供应商'
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ prop: '',
|
|
|
+ label: '生产厂家'
|
|
|
+ },
|
|
|
+
|
|
|
{
|
|
|
prop: 'status ',
|
|
|
label: '状态',
|
|
|
@@ -136,6 +162,11 @@
|
|
|
attributeData: {
|
|
|
type: Object,
|
|
|
default: {}
|
|
|
+ },
|
|
|
+
|
|
|
+ isJgBom: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -159,7 +190,8 @@
|
|
|
text: boolean ? '启用中...' : '关闭中...',
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
});
|
|
|
- startAndStop({ id: row.id, status: row.status }).then(() => {
|
|
|
+ let ULR = this.isJgBom ? startAndStopTemp : startAndStop;
|
|
|
+ ULR({ id: row.id, status: row.status }).then(() => {
|
|
|
this.$message.success('操作成功');
|
|
|
this.loadingInstance.close();
|
|
|
});
|
|
|
@@ -170,7 +202,11 @@
|
|
|
if (!this.attrObj.id) {
|
|
|
return false;
|
|
|
}
|
|
|
- return getBomPageCategoryId({
|
|
|
+ let ULR = this.isJgBom
|
|
|
+ ? getBomPageCategoryTempId
|
|
|
+ : getBomPageCategoryId;
|
|
|
+
|
|
|
+ return ULR({
|
|
|
...where,
|
|
|
pageNum: page,
|
|
|
size: limit,
|
|
|
@@ -210,7 +246,6 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
.toolbar_box {
|
|
|
float: right;
|
|
|
margin-right: 10px;
|
|
|
@@ -226,5 +261,4 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
</style>
|