|
@@ -44,6 +44,20 @@
|
|
|
<fileMain v-model="scope.row.otherFiles" type="view"></fileMain>
|
|
<fileMain v-model="scope.row.otherFiles" type="view"></fileMain>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template v-slot:customerExpectDeliveryDeadline="scope">
|
|
|
|
|
+ <div v-if="scope.row.arrivalWay == 1">
|
|
|
|
|
+ {{ scope.row.customerExpectDeliveryDeadline }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div v-if="scope.row.arrivalWay == 2">
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ @click.native="handleMethod(scope.row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ 查看分批时间
|
|
|
|
|
+ </el-link>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
@@ -57,6 +71,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</ele-pro-table>
|
|
</ele-pro-table>
|
|
|
|
|
+ <timeDialog ref="timeDialogRef" :view="true"></timeDialog>
|
|
|
|
|
+
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -66,11 +82,12 @@
|
|
|
import { contactQueryByCategoryIdsAPI } from '@/api/bpm/components/supplierManage/contact';
|
|
import { contactQueryByCategoryIdsAPI } from '@/api/bpm/components/supplierManage/contact';
|
|
|
const dayjs = require('dayjs');
|
|
const dayjs = require('dayjs');
|
|
|
import {lbjtList } from '@/enum/dict.js';
|
|
import {lbjtList } from '@/enum/dict.js';
|
|
|
|
|
+ import timeDialog from '@/components/timeDialog/index.vue';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins],
|
|
mixins: [dictMixins],
|
|
|
components: {
|
|
components: {
|
|
|
- fileMain
|
|
|
|
|
|
|
+ fileMain,timeDialog
|
|
|
},
|
|
},
|
|
|
props: {
|
|
props: {
|
|
|
isDiscountTotalPrice: {
|
|
isDiscountTotalPrice: {
|
|
@@ -379,12 +396,22 @@
|
|
|
label: '包装规格',
|
|
label: '包装规格',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 160,
|
|
|
|
|
+ prop: 'arrivalWay',
|
|
|
|
|
+ label: '到货方式',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
|
|
+ return _row.arrivalWay==1?'一次性到货':_row.arrivalWay==2?'分批到货':''
|
|
|
|
|
+ },
|
|
|
|
|
+ show: this.isArrivalWay
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
width: 160,
|
|
width: 160,
|
|
|
prop: 'customerExpectDeliveryDeadline',
|
|
prop: 'customerExpectDeliveryDeadline',
|
|
|
label: this.contractBookType == 1 ? '客户期望交期' : '交付日期',
|
|
label: this.contractBookType == 1 ? '客户期望交期' : '交付日期',
|
|
|
slot: 'customerExpectDeliveryDeadline',
|
|
slot: 'customerExpectDeliveryDeadline',
|
|
|
- headerSlot: 'headerCustomerExpectDeliveryDeadline',
|
|
|
|
|
|
|
+
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -401,7 +428,7 @@
|
|
|
prop: 'guaranteePeriod',
|
|
prop: 'guaranteePeriod',
|
|
|
label: '质保期',
|
|
label: '质保期',
|
|
|
slot: 'guaranteePeriod',
|
|
slot: 'guaranteePeriod',
|
|
|
- headerSlot: 'headerCustomerExpectDeliveryDeadline',
|
|
|
|
|
|
|
+
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
formatter: (_row, _column, cellValue) => {
|
|
formatter: (_row, _column, cellValue) => {
|
|
|
return (
|
|
return (
|
|
@@ -493,7 +520,9 @@
|
|
|
return Promise.resolve({});
|
|
return Promise.resolve({});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ handleMethod(row) {
|
|
|
|
|
+ this.$refs.timeDialogRef.open(row);
|
|
|
|
|
+ },
|
|
|
// 返回列表数据
|
|
// 返回列表数据
|
|
|
getTableValue() {
|
|
getTableValue() {
|
|
|
let comitDatasource = this.form.datasource;
|
|
let comitDatasource = this.form.datasource;
|