|
|
@@ -10,11 +10,7 @@
|
|
|
append-to-body
|
|
|
@close="handleClose"
|
|
|
>
|
|
|
- <info
|
|
|
- ref="infoRef"
|
|
|
- :demandList="demandList"
|
|
|
- :type="type"
|
|
|
- ></info>
|
|
|
+ <info ref="infoRef" :demandList="demandList" :type="type"></info>
|
|
|
<SubmitDialog ref="submitRef" @savExit="savExit" />
|
|
|
<dispatchDialog ref="dispatchRef" @savExit="savExit" />
|
|
|
<div slot="footer" class="footer">
|
|
|
@@ -86,7 +82,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async getLevelCode(code) {
|
|
|
- console.log(code)
|
|
|
+ console.log(code);
|
|
|
try {
|
|
|
const res = await getByCode(code);
|
|
|
if (res.code == 0) {
|
|
|
@@ -168,11 +164,21 @@ export default {
|
|
|
let sparePartsData = (this.$refs.infoRef.getSpareInfoData() || []).map(
|
|
|
(item) => ({
|
|
|
...item,
|
|
|
- code: item.categoryCode,
|
|
|
- name: item.categoryName
|
|
|
+ typeId: item.typeId,
|
|
|
+ code: item.code,
|
|
|
+ name: item.name,
|
|
|
+ feeType:item.feeType,//费用类别
|
|
|
+ modelType: item.categoryModel,//型号
|
|
|
+
|
|
|
+ specification: item.specification,//规格
|
|
|
+ content: item.content,//详情内容
|
|
|
+ totalCount: item.totalCount,//数量
|
|
|
+ measureUnit:item.measureUnit,
|
|
|
+ singlePrice: item.singlePrice,
|
|
|
+ settlementPrice: item.settlementPrice
|
|
|
})
|
|
|
);
|
|
|
-
|
|
|
+ console.log(sparePartsData);
|
|
|
if (!data.contactInfoVOS?.length) {
|
|
|
this.$message.warning('联系人信息至少有1条');
|
|
|
return false;
|
|
|
@@ -211,9 +217,9 @@ export default {
|
|
|
isWithAccessories: data.part,
|
|
|
costListVOS: sparePartsData,
|
|
|
formJson: this.$refs.infoRef.carFormData,
|
|
|
-
|
|
|
+
|
|
|
isOutsource: data.isOutsource,
|
|
|
- isCreatePurchaseOrder:data.isCreatePurchaseOrder,
|
|
|
+ isCreatePurchaseOrder: data.isCreatePurchaseOrder,
|
|
|
supplierId: data.supplierId,
|
|
|
supplierName: data.supplierName,
|
|
|
supplierCode: data.supplierCode
|