|
@@ -9,6 +9,42 @@
|
|
|
cache-key="systemRoleTable17"
|
|
cache-key="systemRoleTable17"
|
|
|
class="time-form"
|
|
class="time-form"
|
|
|
>
|
|
>
|
|
|
|
|
+ <template v-slot:technicalDrawings="scope">
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ style="margin-bottom: 20px"
|
|
|
|
|
+ :prop="'datasource.' + scope.$index + '.technicalDrawings'"
|
|
|
|
|
+ >
|
|
|
|
|
+ <fileMain
|
|
|
|
|
+ v-model="scope.row.technicalDrawings"
|
|
|
|
|
+ type="view"
|
|
|
|
|
+ ></fileMain>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-slot:customerReqFiles="scope">
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ style="margin-bottom: 20px"
|
|
|
|
|
+ :prop="'datasource.' + scope.$index + '.customerReqFiles'"
|
|
|
|
|
+ >
|
|
|
|
|
+ <fileMain v-model="scope.row.customerReqFiles" type="view"></fileMain>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-slot:industryArtFiles="scope">
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ style="margin-bottom: 20px"
|
|
|
|
|
+ :prop="'datasource.' + scope.$index + '.industryArtFiles'"
|
|
|
|
|
+ >
|
|
|
|
|
+ <fileMain v-model="scope.row.industryArtFiles" type="view"></fileMain>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-slot:otherFiles="scope">
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ style="margin-bottom: 20px"
|
|
|
|
|
+ :prop="'datasource.' + scope.$index + '. otherFiles'"
|
|
|
|
|
+ >
|
|
|
|
|
+ <fileMain v-model="scope.row.otherFiles" type="view"></fileMain>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
|
<div class="headbox">
|
|
<div class="headbox">
|
|
@@ -28,6 +64,7 @@
|
|
|
|
|
|
|
|
import fileMain from '@/components/addDoc/index.vue';
|
|
import fileMain from '@/components/addDoc/index.vue';
|
|
|
import { contactQueryByCategoryIdsAPI } from '@/api/bpm/components/supplierManage/contact';
|
|
import { contactQueryByCategoryIdsAPI } from '@/api/bpm/components/supplierManage/contact';
|
|
|
|
|
+ const dayjs = require('dayjs');
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins],
|
|
mixins: [dictMixins],
|
|
@@ -451,7 +488,38 @@
|
|
|
});
|
|
});
|
|
|
return comitDatasource;
|
|
return comitDatasource;
|
|
|
},
|
|
},
|
|
|
|
|
+ setDeliveryDays() {
|
|
|
|
|
+ console.log(this.form.datasource,'this.form.datasource')
|
|
|
|
|
+ this.form.datasource.forEach((item, i) => {
|
|
|
|
|
+ let guaranteePeriodUnitName = this.guaranteePeriodUnit(
|
|
|
|
|
+ item.guaranteePeriodUnitCode
|
|
|
|
|
+ );
|
|
|
|
|
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.form.datasource[i],
|
|
|
|
|
+ 'guaranteePeriodDeadline',
|
|
|
|
|
+ guaranteePeriodUnitName != 'second'
|
|
|
|
|
+ ? this.setDay(item.guaranteePeriod, guaranteePeriodUnitName)
|
|
|
|
|
+ : ''
|
|
|
|
|
+ );
|
|
|
|
|
+ // }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ guaranteePeriodUnit(code) {
|
|
|
|
|
+ return code == 3
|
|
|
|
|
+ ? 'day'
|
|
|
|
|
+ : code == 4
|
|
|
|
|
+ ? 'month'
|
|
|
|
|
+ : code == 5
|
|
|
|
|
+ ? 'year'
|
|
|
|
|
+ : 'second';
|
|
|
|
|
+ },
|
|
|
|
|
+ setDay(addDay, dateType = 'day') {
|
|
|
|
|
+ console.log(addDay)
|
|
|
|
|
+ return dayjs(this.contractStartDate || new Date())
|
|
|
|
|
+ .add(addDay, dateType)
|
|
|
|
|
+ .format('YYYY-MM-DD');
|
|
|
|
|
+ },
|
|
|
//修改回显
|
|
//修改回显
|
|
|
async putTableValue(data) {
|
|
async putTableValue(data) {
|
|
|
console.log(data, 'dasdas');
|
|
console.log(data, 'dasdas');
|
|
@@ -469,6 +537,8 @@
|
|
|
data.discountTotalPrice ||
|
|
data.discountTotalPrice ||
|
|
|
data?.contractVO?.discountTotalPrice;
|
|
data?.contractVO?.discountTotalPrice;
|
|
|
}
|
|
}
|
|
|
|
|
+ this.setDeliveryDays();
|
|
|
|
|
+
|
|
|
// this.supplierObj = await this.getSupplierObj(
|
|
// this.supplierObj = await this.getSupplierObj(
|
|
|
// productList,
|
|
// productList,
|
|
|
// 'productId'
|
|
// 'productId'
|