|
@@ -255,6 +255,7 @@
|
|
|
v-if="processSubmitDialogFlag"
|
|
v-if="processSubmitDialogFlag"
|
|
|
ref="processSubmitDialogRef"
|
|
ref="processSubmitDialogRef"
|
|
|
@reload="reload"
|
|
@reload="reload"
|
|
|
|
|
+ :callBack="callBack"
|
|
|
></process-submit-dialog>
|
|
></process-submit-dialog>
|
|
|
<addInvoiceManage
|
|
<addInvoiceManage
|
|
|
:add-or-edit-dialog-flag.sync="addOrEditDialogFlag1"
|
|
:add-or-edit-dialog-flag.sync="addOrEditDialogFlag1"
|
|
@@ -269,6 +270,7 @@
|
|
|
fileName="销售订单导入模板"
|
|
fileName="销售订单导入模板"
|
|
|
apiUrl="/eom/saleorder/importFile"
|
|
apiUrl="/eom/saleorder/importFile"
|
|
|
/>
|
|
/>
|
|
|
|
|
+ <bomDialog ref="bomDialogRef" @handleSubmit="bomDialogSuccess"></bomDialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -279,6 +281,7 @@
|
|
|
import invoiceConfirm from './invoiceConfirm/index.vue';
|
|
import invoiceConfirm from './invoiceConfirm/index.vue';
|
|
|
import detailDialog from './components/detailDialog.vue';
|
|
import detailDialog from './components/detailDialog.vue';
|
|
|
import exceptionList from './exceptionManagement/exceptionList';
|
|
import exceptionList from './exceptionManagement/exceptionList';
|
|
|
|
|
+ import bomDialog from './components/bomDialog';
|
|
|
|
|
|
|
|
import drawer from './components/drawer.vue';
|
|
import drawer from './components/drawer.vue';
|
|
|
import contractrDetail from '@/views/contractManage/contractBook/components/detailDialog.vue';
|
|
import contractrDetail from '@/views/contractManage/contractBook/components/detailDialog.vue';
|
|
@@ -295,7 +298,9 @@
|
|
|
deleteInformation,
|
|
deleteInformation,
|
|
|
getSaleOrderDetail,
|
|
getSaleOrderDetail,
|
|
|
getTableList,
|
|
getTableList,
|
|
|
- saleOrderReminder
|
|
|
|
|
|
|
+ saleOrderReminder,
|
|
|
|
|
+ getByRepeatBomAttribute,
|
|
|
|
|
+ saveOrderBomList
|
|
|
} from '@/api/saleManage/saleorder';
|
|
} from '@/api/saleManage/saleorder';
|
|
|
import { exportSaleorder } from '@/api/system/file/index.js';
|
|
import { exportSaleorder } from '@/api/system/file/index.js';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
@@ -331,7 +336,8 @@
|
|
|
addInvoiceManage,
|
|
addInvoiceManage,
|
|
|
palletManagement,
|
|
palletManagement,
|
|
|
exportButton,
|
|
exportButton,
|
|
|
- importDialog
|
|
|
|
|
|
|
+ importDialog,
|
|
|
|
|
+ bomDialog
|
|
|
},
|
|
},
|
|
|
//客户管理数据
|
|
//客户管理数据
|
|
|
props: {
|
|
props: {
|
|
@@ -362,7 +368,8 @@
|
|
|
processSubmitDialogFlag: false, // 加载状态
|
|
processSubmitDialogFlag: false, // 加载状态
|
|
|
addOrEditDialogFlag1: false,
|
|
addOrEditDialogFlag1: false,
|
|
|
params: {},
|
|
params: {},
|
|
|
-
|
|
|
|
|
|
|
+ tableList: [],
|
|
|
|
|
+ current: null,
|
|
|
cacheKeyUrl: 'eos-c2e9664a-saleManage-saleOrder',
|
|
cacheKeyUrl: 'eos-c2e9664a-saleManage-saleOrder',
|
|
|
isRequired: true
|
|
isRequired: true
|
|
|
};
|
|
};
|
|
@@ -374,7 +381,7 @@
|
|
|
code: 'order_person_info'
|
|
code: 'order_person_info'
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
console.log(res);
|
|
console.log(res);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.isRequired = Boolean(0);
|
|
this.isRequired = Boolean(0);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -511,7 +518,23 @@
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
minWidth: 140
|
|
minWidth: 140
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'inventoryQuantity',
|
|
|
|
|
+ label: '库存数',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ minWidth: 140
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'inventoryQuantity',
|
|
|
|
|
+ label: '库存状态',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ minWidth: 140,
|
|
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
|
|
+ return _row.inventoryQuantity ? '有库存' : '无库存';
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
prop: 'saleTypeName',
|
|
prop: 'saleTypeName',
|
|
|
label: '销售类型',
|
|
label: '销售类型',
|
|
@@ -756,12 +779,12 @@
|
|
|
|
|
|
|
|
//查看详情
|
|
//查看详情
|
|
|
openorderDetail(row) {
|
|
openorderDetail(row) {
|
|
|
- // this.$refs.contactDetailDialogRef.open(row);
|
|
|
|
|
this.$refs.drawerRef.open(row);
|
|
this.$refs.drawerRef.open(row);
|
|
|
},
|
|
},
|
|
|
async saleOrderSubmit(id) {
|
|
async saleOrderSubmit(id) {
|
|
|
this.$refs.addDialogRef && this.$refs.addDialogRef.cancel();
|
|
this.$refs.addDialogRef && this.$refs.addDialogRef.cancel();
|
|
|
const data = await getSaleOrderDetail(id);
|
|
const data = await getSaleOrderDetail(id);
|
|
|
|
|
+
|
|
|
this.processSubmitDialogFlag = true;
|
|
this.processSubmitDialogFlag = true;
|
|
|
let businessType =
|
|
let businessType =
|
|
|
data.needProduce == 1
|
|
data.needProduce == 1
|
|
@@ -785,8 +808,38 @@
|
|
|
this.$refs.processSubmitDialogRef.init(params);
|
|
this.$refs.processSubmitDialogRef.init(params);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- saleOrderSubmitOrGenerate(res) {
|
|
|
|
|
|
|
+ async callBack() {
|
|
|
|
|
+ return 0
|
|
|
|
|
+ if (!this.current.generatePurchase && !this.current.generateProduce) {
|
|
|
|
|
+ return 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ const code = saveOrderBomList({
|
|
|
|
|
+ categoryDTOList: this.tableList || [],
|
|
|
|
|
+ orderId: this.current.id
|
|
|
|
|
+ });
|
|
|
|
|
+ return code;
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ async saleOrderSubmitOrGenerate(res) {
|
|
|
this.saleOrderSubmit(res.id);
|
|
this.saleOrderSubmit(res.id);
|
|
|
|
|
+ return
|
|
|
|
|
+ this.tableList = [];
|
|
|
|
|
+ this.current = res;
|
|
|
|
|
+ if (!res.generatePurchase && !res.generateProduce) {
|
|
|
|
|
+ this.saleOrderSubmit(res.id);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ const data = await getByRepeatBomAttribute(res.id);
|
|
|
|
|
+ if (data && data.length) {
|
|
|
|
|
+ this.$refs.bomDialogRef.open(data);
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ this.saleOrderSubmit(res.id);
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ bomDialogSuccess(tableList) {
|
|
|
|
|
+ this.tableList = tableList;
|
|
|
|
|
+ // this.callBack()
|
|
|
|
|
+ this.saleOrderSubmit(this.current.id);
|
|
|
},
|
|
},
|
|
|
//生成
|
|
//生成
|
|
|
handleAutoGenerate(id, isAuto = false) {
|
|
handleAutoGenerate(id, isAuto = false) {
|