|
|
@@ -486,7 +486,7 @@
|
|
|
type: Boolean
|
|
|
},
|
|
|
isCustomerMark: {
|
|
|
- default: false,
|
|
|
+ default: true,
|
|
|
type: Boolean
|
|
|
},
|
|
|
contractBookType: {
|
|
|
@@ -501,6 +501,7 @@
|
|
|
name: '',
|
|
|
startTime: '',
|
|
|
workHour: '',
|
|
|
+ guaranteePeriodUnitCode:'',
|
|
|
technicalDrawings: []
|
|
|
};
|
|
|
return {
|
|
|
@@ -562,8 +563,8 @@
|
|
|
prop: 'customerMark',
|
|
|
label: '客户代号',
|
|
|
slot: 'customerMark',
|
|
|
- headerSlot: 'headerCustomerMark'
|
|
|
- // show: this.isCustomerMark
|
|
|
+ headerSlot: 'headerCustomerMark',
|
|
|
+ show: this.isCustomerMark
|
|
|
},
|
|
|
{
|
|
|
width: 160,
|
|
|
@@ -807,8 +808,6 @@
|
|
|
: 'second';
|
|
|
},
|
|
|
setDay(addDay, dateType = 'day') {
|
|
|
- console.log(addDay, 'addDay');
|
|
|
- console.log(dateType, 'dateType');
|
|
|
return dayjs(this.contractStartDate || new Date())
|
|
|
.add(addDay, dateType)
|
|
|
.format('YYYY-MM-DD');
|
|
|
@@ -822,11 +821,13 @@
|
|
|
(v.totalCount &&
|
|
|
v.singlePrice &&
|
|
|
(v.totalCount * v.singlePrice)?.toFixed(2)) ||
|
|
|
- null;
|
|
|
- v.guaranteePeriodUnitName = this.getDictValue(
|
|
|
- '质保期单位',
|
|
|
+ '';
|
|
|
+ if(v.guaranteePeriodUnitCode) {
|
|
|
+ v.guaranteePeriodUnitName = this.getDictValue(
|
|
|
+ '保质期单位',
|
|
|
v.guaranteePeriodUnitCode
|
|
|
);
|
|
|
+ }
|
|
|
v.technicalDrawings = v.technicalDrawings ? v.technicalDrawings : [];
|
|
|
v.customerReqFiles = v.customerReqFiles || [];
|
|
|
v.industryArtFiles = v.industryArtFiles || [];
|
|
|
@@ -897,7 +898,7 @@
|
|
|
//计算单重
|
|
|
singleWeightChange(row) {
|
|
|
if (row && row.singleWeight && row.totalCount) {
|
|
|
- row.totalWeight = row.singleWeight * row.totalCount || 0;
|
|
|
+ row.totalWeight = (row.singleWeight * row.totalCount).toFixed(2) || 0;
|
|
|
}
|
|
|
},
|
|
|
//选择产品
|
|
|
@@ -920,8 +921,6 @@
|
|
|
},
|
|
|
//选择产品回调
|
|
|
changeParent(obj, idx) {
|
|
|
- console.log(obj, '33333');
|
|
|
-
|
|
|
this.$set(this.form.datasource[idx], 'categoryName', obj.name);
|
|
|
this.$set(
|
|
|
this.form.datasource[idx],
|