|
|
@@ -82,7 +82,6 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
-
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="牌号" prop="brandNum">
|
|
|
<el-input v-model="form.brandNum" />
|
|
|
@@ -155,8 +154,6 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="净重">
|
|
|
<div class="form-line">
|
|
|
@@ -258,15 +255,13 @@
|
|
|
import personSelect from '@/components/CommomSelect/person-select.vue';
|
|
|
import linkMsg from './components/link-msg.vue';
|
|
|
import { getDetails } from '@/api/classifyManage/itemInformation';
|
|
|
- import {getByCode} from "@/api/system/dictionary-data";
|
|
|
+ import { getByCode } from '@/api/system/dictionary-data';
|
|
|
import { getCode, rootCategoryCode } from '@/api/codeManagement';
|
|
|
|
|
|
import { addMaterial } from '@/api/material/list.js';
|
|
|
import { deepClone } from '@/utils/index';
|
|
|
import { finishPageTab, reloadPageTab } from '@/utils/page-tab-util';
|
|
|
|
|
|
-
|
|
|
-
|
|
|
export default {
|
|
|
name: 'ManageMaterial',
|
|
|
components: {
|
|
|
@@ -365,14 +360,13 @@
|
|
|
};
|
|
|
},
|
|
|
|
|
|
-
|
|
|
async created() {
|
|
|
this.status = this.$route.query.status;
|
|
|
|
|
|
if (this.$route.query.id) {
|
|
|
this._getDetails();
|
|
|
}
|
|
|
- this.getDictList('productionType')
|
|
|
+ this.getDictList('productionType');
|
|
|
},
|
|
|
methods: {
|
|
|
async _getDetails() {
|
|
|
@@ -472,16 +466,16 @@
|
|
|
},
|
|
|
|
|
|
async getDictList(code) {
|
|
|
- let {data: res} = await getByCode(code)
|
|
|
- this.dictList = res.map(item => {
|
|
|
- let values = Object.keys(item)
|
|
|
- return {
|
|
|
- value: values[0],
|
|
|
- label: item[values[0]]
|
|
|
- }
|
|
|
- })
|
|
|
- console.log(123, this.dictList);
|
|
|
- },
|
|
|
+ let { data: res } = await getByCode(code);
|
|
|
+ this.dictList = res.map((item) => {
|
|
|
+ let values = Object.keys(item);
|
|
|
+ return {
|
|
|
+ value: values[0],
|
|
|
+ label: item[values[0]]
|
|
|
+ };
|
|
|
+ });
|
|
|
+ console.log(123, this.dictList);
|
|
|
+ },
|
|
|
|
|
|
openCategory() {
|
|
|
this.$refs.categoryRefs.open();
|