|
|
@@ -65,6 +65,10 @@
|
|
|
</el-input>
|
|
|
<DictSelection dictName="计量单位" v-model="unit"
|
|
|
/></div>
|
|
|
+
|
|
|
+ <el-button type="primary" size="mini" @click="handleAdd"
|
|
|
+ >新增</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
@@ -79,7 +83,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { deepClone } from '@/utils';
|
|
|
- import { pageByCategoryId } from '@/api/productionPlan/index.js';
|
|
|
+ import { getBom } from '@/api/productionPlan/index.js';
|
|
|
|
|
|
export default {
|
|
|
components: {},
|
|
|
@@ -179,9 +183,11 @@
|
|
|
pageNum: 1,
|
|
|
size: -1
|
|
|
};
|
|
|
- pageByCategoryId(params).then((res) => {
|
|
|
+ getBom(params).then((res) => {
|
|
|
this.bomList = res?.list || [];
|
|
|
- this.visible = true;
|
|
|
+ (this.baseCount = res.baseCount),
|
|
|
+ (this.unit = res.unit),
|
|
|
+ (this.visible = true);
|
|
|
});
|
|
|
},
|
|
|
|
|
|
@@ -189,10 +195,11 @@
|
|
|
console.log(this.selection);
|
|
|
},
|
|
|
|
|
|
+ handleAdd() {},
|
|
|
+
|
|
|
cancel() {
|
|
|
this.formData = {};
|
|
|
this.visible = false;
|
|
|
- this.$refs.form.resetFields();
|
|
|
},
|
|
|
|
|
|
confirm() {
|
|
|
@@ -212,7 +219,8 @@
|
|
|
}
|
|
|
|
|
|
.toolbar_box {
|
|
|
- float: right;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
margin-right: 10px;
|
|
|
> div {
|
|
|
display: flex;
|