优化
This commit is contained in:
@@ -889,6 +889,7 @@ public class InitformulaServiceImpl implements InitformulaService {
|
|||||||
workorder.put("formula_id","");
|
workorder.put("formula_id","");
|
||||||
workorder.put("material_code",mater.getString("material_code"));
|
workorder.put("material_code",mater.getString("material_code"));
|
||||||
workorder.put("net_rate",material.getString("net_rate"));
|
workorder.put("net_rate",material.getString("net_rate"));
|
||||||
|
workorder.put("product_series_id",material.getString("product_series"));
|
||||||
result.put("material",workorder);
|
result.put("material",workorder);
|
||||||
result.put("tabledis",new JSONArray());
|
result.put("tabledis",new JSONArray());
|
||||||
result.put("tableDtl",new JSONArray());
|
result.put("tableDtl",new JSONArray());
|
||||||
|
|||||||
@@ -147,9 +147,25 @@
|
|||||||
:precision="2"
|
:precision="2"
|
||||||
:min="1"
|
:min="1"
|
||||||
:max="9999"
|
:max="9999"
|
||||||
style="width:80px"
|
style="width:210px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="产品系列" prop="product_series_id">
|
||||||
|
<el-select
|
||||||
|
v-model="form.product_series_id"
|
||||||
|
style="width: 210px"
|
||||||
|
placeholder="产品系列"
|
||||||
|
class="filter-item"
|
||||||
|
disabled
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in XLList"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="备注" prop="remark">
|
<el-form-item label="备注" prop="remark">
|
||||||
<label slot="label">备注:</label>
|
<label slot="label">备注:</label>
|
||||||
<el-input v-model="form.remark" disabled style="width: 210px" />
|
<el-input v-model="form.remark" disabled style="width: 210px" />
|
||||||
@@ -343,6 +359,7 @@ import StructIvt3 from '@/views/wms/pf/initformula/StructIvt3'
|
|||||||
import StructIvt4 from '@/views/wms/pf/initformula/StructIvt4'
|
import StructIvt4 from '@/views/wms/pf/initformula/StructIvt4'
|
||||||
import materTypeDialog from '@/views/wms/pf/initformula/materTypeDialog'
|
import materTypeDialog from '@/views/wms/pf/initformula/materTypeDialog'
|
||||||
import formula from '@/api/wms/pf/formula'
|
import formula from '@/api/wms/pf/formula'
|
||||||
|
import crudseriesProcessRoute from '@/api/wms/pdm/seriesProcessRoute'
|
||||||
export default {
|
export default {
|
||||||
name: 'DivDialog',
|
name: 'DivDialog',
|
||||||
components: { StructIvt, StructIvt2,StructIvt3, StructIvt4, materTypeDialog },
|
components: { StructIvt, StructIvt2,StructIvt3, StructIvt4, materTypeDialog },
|
||||||
@@ -367,6 +384,7 @@ export default {
|
|||||||
structshow5: false,
|
structshow5: false,
|
||||||
button1: true,
|
button1: true,
|
||||||
button2: true,
|
button2: true,
|
||||||
|
XLList:[],
|
||||||
tableDtl: [],
|
tableDtl: [],
|
||||||
mstrow: {},
|
mstrow: {},
|
||||||
form: {},
|
form: {},
|
||||||
@@ -390,6 +408,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
debugger
|
||||||
|
crudseriesProcessRoute.getXLlist2().then(res => {
|
||||||
|
this.XLList = res
|
||||||
|
})
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open() {
|
open() {
|
||||||
formula.getform({ 'formula_id': this.mstrow.formula_id }).then(res => {
|
formula.getform({ 'formula_id': this.mstrow.formula_id }).then(res => {
|
||||||
|
|||||||
@@ -138,6 +138,22 @@
|
|||||||
style="width: 210px"
|
style="width: 210px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="产品系列" prop="product_series_id">
|
||||||
|
<el-select
|
||||||
|
v-model="form.product_series_id"
|
||||||
|
style="width: 210px"
|
||||||
|
placeholder="产品系列"
|
||||||
|
class="filter-item"
|
||||||
|
disabled
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in XLList"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="备注" prop="remark">
|
<el-form-item label="备注" prop="remark">
|
||||||
<label slot="label">备注:</label>
|
<label slot="label">备注:</label>
|
||||||
<el-input v-model="form.remark" disabled style="width: 210px" />
|
<el-input v-model="form.remark" disabled style="width: 210px" />
|
||||||
@@ -277,6 +293,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { crud } from '@crud/crud'
|
import { crud } from '@crud/crud'
|
||||||
import formula from '@/api/wms/pf/formula'
|
import formula from '@/api/wms/pf/formula'
|
||||||
|
import crudseriesProcessRoute from '@/api/wms/pdm/seriesProcessRoute'
|
||||||
export default {
|
export default {
|
||||||
name: 'ViewDialog',
|
name: 'ViewDialog',
|
||||||
mixins: [crud()],
|
mixins: [crud()],
|
||||||
@@ -297,6 +314,7 @@ export default {
|
|||||||
mstrow: {},
|
mstrow: {},
|
||||||
tabledis: [],
|
tabledis: [],
|
||||||
form: {},
|
form: {},
|
||||||
|
XLList:[],
|
||||||
form2: {
|
form2: {
|
||||||
total_qty1: '0',
|
total_qty1: '0',
|
||||||
add_qty1: '0',
|
add_qty1: '0',
|
||||||
@@ -317,6 +335,11 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
crudseriesProcessRoute.getXLlist2().then(res => {
|
||||||
|
this.XLList = res
|
||||||
|
})
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open() {
|
open() {
|
||||||
formula.getView({ 'formula_id':this.mstrow.formula_id,'material_id': this.mstrow.material_id ,'workorder_id':this.mstrow.workorder_id}).then(res => {
|
formula.getView({ 'formula_id':this.mstrow.formula_id,'material_id': this.mstrow.material_id ,'workorder_id':this.mstrow.workorder_id}).then(res => {
|
||||||
|
|||||||
@@ -118,9 +118,25 @@
|
|||||||
:precision="2"
|
:precision="2"
|
||||||
:min="1"
|
:min="1"
|
||||||
:max="9999"
|
:max="9999"
|
||||||
style="width:80px"
|
style="width: 210px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="产品系列" prop="product_series_id">
|
||||||
|
<el-select
|
||||||
|
v-model="form.product_series_id"
|
||||||
|
style="width: 210px"
|
||||||
|
placeholder="产品系列"
|
||||||
|
class="filter-item"
|
||||||
|
disabled
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in XLList"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<div class="crud-opts2">
|
<div class="crud-opts2">
|
||||||
@@ -389,6 +405,7 @@ import StructIvt4 from '@/views/wms/pf/initformula/StructIvt4'
|
|||||||
import materTypeDialog from '@/views/wms/pf/initformula/materTypeDialog'
|
import materTypeDialog from '@/views/wms/pf/initformula/materTypeDialog'
|
||||||
import initformula from '@/api/wms/pf/initformula'
|
import initformula from '@/api/wms/pf/initformula'
|
||||||
import autoformula from '@/api/wms/pf/autoformula'
|
import autoformula from '@/api/wms/pf/autoformula'
|
||||||
|
import crudseriesProcessRoute from '@/api/wms/pdm/seriesProcessRoute'
|
||||||
export default {
|
export default {
|
||||||
name: 'DivDialog',
|
name: 'DivDialog',
|
||||||
components: { StructIvt, StructIvt2, StructIvt3, StructIvt4, materTypeDialog },
|
components: { StructIvt, StructIvt2, StructIvt3, StructIvt4, materTypeDialog },
|
||||||
@@ -419,6 +436,7 @@ export default {
|
|||||||
tableDtl: [],
|
tableDtl: [],
|
||||||
mstrow: {},
|
mstrow: {},
|
||||||
tabledis: [],
|
tabledis: [],
|
||||||
|
XLList:[],
|
||||||
form: { waste_limit_down:0, waste_limit_uo:0},
|
form: { waste_limit_down:0, waste_limit_uo:0},
|
||||||
form2: {
|
form2: {
|
||||||
total_qty1: '0',
|
total_qty1: '0',
|
||||||
@@ -442,6 +460,11 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
crudseriesProcessRoute.getXLlist2().then(res => {
|
||||||
|
this.XLList = res
|
||||||
|
})
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open() {
|
open() {
|
||||||
initformula.getform({ 'material_id': this.mstrow.material_id, 'workorder_id': this.mstrow.workorder_id }).then(res => {
|
initformula.getform({ 'material_id': this.mstrow.material_id, 'workorder_id': this.mstrow.workorder_id }).then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user