|
@@ -245,9 +245,11 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:headerGuaranteePeriod="{ column }">
|
|
<template v-slot:headerGuaranteePeriod="{ column }">
|
|
|
- <span :class="{ 'is-required': contractBookType == 1 }">{{ column.label }}</span>
|
|
|
|
|
|
|
+ <span :class="{ 'is-required': contractBookType == 1 }">{{
|
|
|
|
|
+ column.label
|
|
|
|
|
+ }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<template v-slot:guaranteePeriod="scope">
|
|
<template v-slot:guaranteePeriod="scope">
|
|
|
<div class="period">
|
|
<div class="period">
|
|
|
<div class="borderleftnone">
|
|
<div class="borderleftnone">
|
|
@@ -353,9 +355,7 @@
|
|
|
}}</span>
|
|
}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:headerCustomerExpectDeliveryDeadline="{ column }">
|
|
<template v-slot:headerCustomerExpectDeliveryDeadline="{ column }">
|
|
|
- <span class="is-required">{{
|
|
|
|
|
- column.label
|
|
|
|
|
- }}</span>
|
|
|
|
|
|
|
+ <span class="is-required">{{ column.label }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:technicalAnswerName="{ row, $index }">
|
|
<template v-slot:technicalAnswerName="{ row, $index }">
|
|
@@ -741,11 +741,10 @@
|
|
|
{
|
|
{
|
|
|
width: 200,
|
|
width: 200,
|
|
|
prop: 'customerMark',
|
|
prop: 'customerMark',
|
|
|
- label: this.contractBookType == 1?'客户代号':'供应商代号',
|
|
|
|
|
|
|
+ label: this.contractBookType == 1 ? '客户代号' : '供应商代号',
|
|
|
slot: 'customerMark',
|
|
slot: 'customerMark',
|
|
|
headerSlot: 'headerCustomerMark',
|
|
headerSlot: 'headerCustomerMark',
|
|
|
- align: 'center',
|
|
|
|
|
-
|
|
|
|
|
|
|
+ align: 'center'
|
|
|
},
|
|
},
|
|
|
// {
|
|
// {
|
|
|
// width: 200,
|
|
// width: 200,
|
|
@@ -1036,11 +1035,17 @@
|
|
|
},
|
|
},
|
|
|
async getSupplierObj(productList, queryName) {
|
|
async getSupplierObj(productList, queryName) {
|
|
|
try {
|
|
try {
|
|
|
- let categoryIds = productList.map((item) => item[queryName]);
|
|
|
|
|
- return await contactQueryByCategoryIdsAPI({
|
|
|
|
|
- categoryIds,
|
|
|
|
|
- isQueryEE: 1
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ let categoryIds = productList
|
|
|
|
|
+ .filter((item) => item.productId)
|
|
|
|
|
+ .map((item) => item.productId);
|
|
|
|
|
+ if (categoryIds.lenght > 0) {
|
|
|
|
|
+ return await contactQueryByCategoryIdsAPI({
|
|
|
|
|
+ categoryIds,
|
|
|
|
|
+ isQueryEE: 1
|
|
|
|
|
+ });
|
|
|
|
|
+ }else{
|
|
|
|
|
+ return Promise.resolve({});
|
|
|
|
|
+ }
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
|
return Promise.resolve({});
|
|
return Promise.resolve({});
|
|
|
}
|
|
}
|
|
@@ -1119,8 +1124,7 @@
|
|
|
this.allPrice = allPrice || 0;
|
|
this.allPrice = allPrice || 0;
|
|
|
if (this.isDiscountTotalPrice) {
|
|
if (this.isDiscountTotalPrice) {
|
|
|
this.form.discountTotalPrice = allPrice;
|
|
this.form.discountTotalPrice = allPrice;
|
|
|
- this.$emit('setDiscountTotalPrice',allPrice)
|
|
|
|
|
-
|
|
|
|
|
|
|
+ this.$emit('setDiscountTotalPrice', allPrice);
|
|
|
}
|
|
}
|
|
|
this.$emit('setCountAmount', this.allPrice);
|
|
this.$emit('setCountAmount', this.allPrice);
|
|
|
},
|
|
},
|
|
@@ -1148,7 +1152,7 @@
|
|
|
this.getDiscountTotalPrice(item)
|
|
this.getDiscountTotalPrice(item)
|
|
|
);
|
|
);
|
|
|
});
|
|
});
|
|
|
- this.$emit('setDiscountTotalPrice',val)
|
|
|
|
|
|
|
+ this.$emit('setDiscountTotalPrice', val);
|
|
|
|
|
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
this.$refs.table.reRenderTable();
|
|
this.$refs.table.reRenderTable();
|
|
@@ -1218,7 +1222,8 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (this.isDiscountTotalPrice) {
|
|
if (this.isDiscountTotalPrice) {
|
|
|
- this.form.discountTotalPrice = data.payAmount||data?.contractVO?.discountTotalPrice;
|
|
|
|
|
|
|
+ this.form.discountTotalPrice =
|
|
|
|
|
+ data.payAmount || data?.contractVO?.discountTotalPrice;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
let codeList = this.form.datasource.map((item) => item.productCode);
|
|
let codeList = this.form.datasource.map((item) => item.productCode);
|
|
@@ -1275,7 +1280,7 @@
|
|
|
this.$set(parasm, 'specification', item.specification);
|
|
this.$set(parasm, 'specification', item.specification);
|
|
|
this.$set(parasm, 'weightUnit', item.weightUnit);
|
|
this.$set(parasm, 'weightUnit', item.weightUnit);
|
|
|
this.$set(parasm, 'singleWeight', item.roughWeight);
|
|
this.$set(parasm, 'singleWeight', item.roughWeight);
|
|
|
- this.$set(parasm, 'pricingWay',item.pricingWay||1);
|
|
|
|
|
|
|
+ this.$set(parasm, 'pricingWay', item.pricingWay || 1);
|
|
|
|
|
|
|
|
this.$set(parasm, 'imgCode', item.imgCode);
|
|
this.$set(parasm, 'imgCode', item.imgCode);
|
|
|
this.$set(parasm, 'produceType', item.produceType);
|
|
this.$set(parasm, 'produceType', item.produceType);
|
|
@@ -1318,17 +1323,17 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
validateForm(callback) {
|
|
validateForm(callback) {
|
|
|
- let singleWeightData={}
|
|
|
|
|
- this.form.datasource.forEach(item=>{
|
|
|
|
|
-
|
|
|
|
|
- if(item.pricingWay==2&&!item.singleWeight){
|
|
|
|
|
- singleWeightData['name']=item.productName
|
|
|
|
|
- console.log(singleWeightData,'singleWeightData')
|
|
|
|
|
|
|
+ let singleWeightData = {};
|
|
|
|
|
+ this.form.datasource.forEach((item) => {
|
|
|
|
|
+ if (item.pricingWay == 2 && !item.singleWeight) {
|
|
|
|
|
+ singleWeightData['name'] = item.productName;
|
|
|
|
|
+ console.log(singleWeightData, 'singleWeightData');
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- })
|
|
|
|
|
- if(singleWeightData.name){
|
|
|
|
|
- this.$message.warning(singleWeightData.name+'计价方式为重量,单重不能为空');
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ if (singleWeightData.name) {
|
|
|
|
|
+ this.$message.warning(
|
|
|
|
|
+ singleWeightData.name + '计价方式为重量,单重不能为空'
|
|
|
|
|
+ );
|
|
|
callback(false);
|
|
callback(false);
|
|
|
}
|
|
}
|
|
|
//开始表单校验
|
|
//开始表单校验
|