|
|
@@ -7,6 +7,7 @@
|
|
|
:close-on-click-modal="true"
|
|
|
:close-on-press-escape="false"
|
|
|
width="80%"
|
|
|
+ :maxable="true"
|
|
|
>
|
|
|
<el-form
|
|
|
:model="formData"
|
|
|
@@ -65,9 +66,6 @@
|
|
|
>
|
|
|
添加销售订单
|
|
|
</el-button>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:code="{ row }">
|
|
|
@@ -274,7 +272,7 @@
|
|
|
import saleOrderPop from './saleOrderPop.vue';
|
|
|
import ProductModal from './ProductModal.vue';
|
|
|
import {
|
|
|
- listBomBySalesOrderIds,
|
|
|
+ listBomBySalesOrderIdsOverride,
|
|
|
listBomBySalesOrderId,
|
|
|
save,
|
|
|
getById
|
|
|
@@ -514,7 +512,7 @@
|
|
|
],
|
|
|
rules: {
|
|
|
demandType: [
|
|
|
- {
|
|
|
+ {
|
|
|
required: true,
|
|
|
message: '请选择需求类型',
|
|
|
trigger: ['blur', 'change']
|
|
|
@@ -538,13 +536,14 @@
|
|
|
demandTypeList: []
|
|
|
};
|
|
|
},
|
|
|
+ created() {
|
|
|
+
|
|
|
+ },
|
|
|
|
|
|
methods: {
|
|
|
async open(type, row) {
|
|
|
this.type = type;
|
|
|
-
|
|
|
this.typeList();
|
|
|
-
|
|
|
this.visible = true;
|
|
|
|
|
|
if (row) {
|
|
|
@@ -558,13 +557,16 @@
|
|
|
|
|
|
typeList() {
|
|
|
this.requestDict('需求类型').then((res) => {
|
|
|
- let _res = res || [];
|
|
|
-
|
|
|
- this.demandTypeList = _res.filter(
|
|
|
- (f) => f.dictCode == 1 || f.dictCode == 6 || f.dictCode == 7
|
|
|
- );
|
|
|
-
|
|
|
+ console.log(res, 999);
|
|
|
+ this.demandTypeList = [];
|
|
|
+ res.forEach((f) => {
|
|
|
+ console.log(f.dictCode);
|
|
|
+ if (f.dictCode == 1 || f.dictCode == 6 || f.dictCode == 7) {
|
|
|
+ this.demandTypeList.push(f);
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
+ this.$forceUpdate();
|
|
|
});
|
|
|
},
|
|
|
|
|
|
@@ -654,7 +656,7 @@
|
|
|
});
|
|
|
|
|
|
if (salesOrderIds.length > 0) {
|
|
|
- listBomBySalesOrderIds({ salesOrderIds: salesOrderIds }).then(
|
|
|
+ listBomBySalesOrderIdsOverride({ salesOrderIds: salesOrderIds }).then(
|
|
|
(res) => {
|
|
|
res.forEach((m) => {
|
|
|
if (m.materialList.length > 0) {
|