diff --git a/src/views/inm/helpso_mioitem.vue b/src/views/inm/helpso_mioitem.vue
index 7d8ccd87..0d6ea67a 100644
--- a/src/views/inm/helpso_mioitem.vue
+++ b/src/views/inm/helpso_mioitem.vue
@@ -11,11 +11,11 @@
-
+
-
+
-
+
新增
+
+ {{scope.row.material_.unit}}
+
{{scope.row.count}}
{{scope.row.count}}
+
+ {{scope.row.note}}
+
{
that.mioObj = res1;
@@ -329,7 +341,8 @@ export default {
let that = this;
this.dialog.save = true;
this.$nextTick(() => {
- this.$refs.saveDialog.open("add", that.form.type);
+ console.log('that.form', that.form);
+ this.$refs.saveDialog.open("add", that.form.type,40);
});
},
//编辑
diff --git a/src/views/inm/materials.vue b/src/views/inm/materials.vue
index 73eaf947..6a272aec 100644
--- a/src/views/inm/materials.vue
+++ b/src/views/inm/materials.vue
@@ -61,7 +61,7 @@
-
+
diff --git a/src/views/inm/mioitem_form.vue b/src/views/inm/mioitem_form.vue
index 9faf5db2..de47f6b5 100644
--- a/src/views/inm/mioitem_form.vue
+++ b/src/views/inm/mioitem_form.vue
@@ -140,6 +140,16 @@
/>
+
+
+
+
+
+
+
+
+
+
@@ -230,7 +240,7 @@ export default {
other_in: "其他入库",
other_out: "其他出库",
},
- form: {count: 1,},
+ form: {count: 1,note: ''},
rules: {
batch:[
{
@@ -271,6 +281,7 @@ export default {
mioitems:[''],
mioitemw:[],
project_code:'',
+ mtype:null,
mTracking:10,
apiObj:this.$API.mtm.material.list,
};
@@ -421,6 +432,7 @@ export default {
var that = this;
var type = this.form.type;
that.form.material = that.selectObj.id;
+ that.form.unit = that.selectObj.unit;
that.form.unit_price = that.selectObj.unit_price;
that.form.batch = that.cate=='helpso'?that.selectObj.bin_number_main:that.selectObj.batch;
that.mTracking = that.selectObj.tracking;
@@ -462,8 +474,9 @@ export default {
this.inputBatchDisable = false;
},
//显示
- open(mode = "add", type = "") {
+ open(mode = "add", type = "",mtype) {
this.mode = mode;
+ this.mtype = mtype?mtype:null;
this.form.type = this.type = type;
if (mode == "add") {
this.init();
diff --git a/src/views/inm/mioitemlist.vue b/src/views/inm/mioitemlist.vue
index de094bd2..6d3b28d4 100644
--- a/src/views/inm/mioitemlist.vue
+++ b/src/views/inm/mioitemlist.vue
@@ -32,74 +32,114 @@
-
-
+
-
+
{{ scope.row.material_.number }}
-
+
{{ scope.row.material_.name }}
-
+
{{ scope.row.material_.bin_number_main }}
-
+
{{ scope.row.material_.specification }}
-
+
{{ scope.row.material_.model }}
-
+
{{ scope.row.material_.unit }}
-
+
-
+
-
+
-
+
{{ scope.row.mio_.submit_user_name }}
-
+
{{ scope.row.mio_.number }}
-
+
{{ typeDict[scope.row.mio_.type] }}
-
+
+
+
+
diff --git a/src/views/mtm/materials_form_gx.vue b/src/views/mtm/materials_form_gx.vue
index a519a763..55d75691 100644
--- a/src/views/mtm/materials_form_gx.vue
+++ b/src/views/mtm/materials_form_gx.vue
@@ -49,6 +49,23 @@
/>
+
+
+
+
+
+
+
-
+
-
+
@@ -139,23 +154,26 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
- 保存
+ 保存
取消
@@ -189,6 +207,13 @@ export default {
trigger: "blur",
},
],
+ cate: [
+ {
+ required: true,
+ message: "请选择辅料类别",
+ trigger: "blur",
+ },
+ ],
number: [
{
required: true,
@@ -220,6 +245,7 @@ export default {
{ id: 30, name: "主要原料" },
// { id: 40, name: "辅助材料" },
],
+ cateOptions: ['主要辅材','办公辅料','设备维护辅料','包装辅材','标识辅材','防护辅材','其他辅材'],
handle_user: [],
selectionFilters: [],
materialOptions: [],