|
|
@@ -67,12 +67,15 @@
|
|
|
@click="handleCommand('handleDispatchOrders', row)"
|
|
|
v-if="[0, 4,5].includes(row.planStatus)"
|
|
|
>派单</el-link>
|
|
|
+ <!-- <jimureportBrowse :businessId="row.id" businessCode="eomquotationprint"></jimureportBrowse> -->
|
|
|
+
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
</el-card>
|
|
|
<addOrUpdateDialog ref="addOrUpdateDialogRef" @reload="reload"></addOrUpdateDialog>
|
|
|
<applyForSpare ref="edit" @reload="reload" />
|
|
|
<generateForm ref="generateFormRef"></generateForm>
|
|
|
+ <jimureportBrowse @cancelQuo="cancelQuo" v-if="browseShow" :browseShow="browseShow" :businessId="currentRow.id" businessCode="eomquotationprint"></jimureportBrowse>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -80,7 +83,7 @@
|
|
|
import planSearch from './components/plan-search.vue';
|
|
|
import addOrUpdateDialog from './components/addOrUpdateDialog.vue';
|
|
|
import generateForm from './components/generateForm.vue';
|
|
|
-
|
|
|
+import jimureportBrowse from '@/components/jimureport/browseModal.vue'
|
|
|
import applyForSpare from '../components/applyForSpare.vue';
|
|
|
|
|
|
import {
|
|
|
@@ -88,7 +91,7 @@ import {
|
|
|
deleteSalesPlan,
|
|
|
planRevocation
|
|
|
} from '@/api/salesServiceManagement/index';
|
|
|
-
|
|
|
+import { getToken } from '@/utils/token-util';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
|
|
|
export default {
|
|
|
@@ -97,7 +100,8 @@ export default {
|
|
|
planSearch,
|
|
|
addOrUpdateDialog,
|
|
|
generateForm,
|
|
|
- applyForSpare
|
|
|
+ applyForSpare,
|
|
|
+ jimureportBrowse
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -156,33 +160,33 @@ export default {
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
- {
|
|
|
- prop: 'isSyncBill',
|
|
|
- label: '是否自动派单',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- formatter: (item) => {
|
|
|
- return {
|
|
|
- 0: '否',
|
|
|
- 1: '是'
|
|
|
- }[item.isSyncBill];
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'duration',
|
|
|
- label: '预计售后时长(小时)',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- formatter: (row) => {
|
|
|
- if (!row.duration) return '';
|
|
|
- if (row.durationUnit == '2')
|
|
|
- return row.duration.toFixed(1) + ' 小时';
|
|
|
- if (row.durationUnit == '1')
|
|
|
- return (row.duration / 60).toFixed(1) + ' 小时';
|
|
|
- if (row.durationUnit == '3')
|
|
|
- return (row.duration * 24).toFixed(1) + ' 小时';
|
|
|
- }
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // prop: 'isSyncBill',
|
|
|
+ // label: '是否自动派单',
|
|
|
+ // align: 'center',
|
|
|
+ // showOverflowTooltip: true,
|
|
|
+ // formatter: (item) => {
|
|
|
+ // return {
|
|
|
+ // 0: '否',
|
|
|
+ // 1: '是'
|
|
|
+ // }[item.isSyncBill];
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'duration',
|
|
|
+ // label: '预计售后时长(小时)',
|
|
|
+ // align: 'center',
|
|
|
+ // showOverflowTooltip: true,
|
|
|
+ // formatter: (row) => {
|
|
|
+ // if (!row.duration) return '';
|
|
|
+ // if (row.durationUnit == '2')
|
|
|
+ // return row.duration.toFixed(1) + ' 小时';
|
|
|
+ // if (row.durationUnit == '1')
|
|
|
+ // return (row.duration / 60).toFixed(1) + ' 小时';
|
|
|
+ // if (row.durationUnit == '3')
|
|
|
+ // return (row.duration * 24).toFixed(1) + ' 小时';
|
|
|
+ // }
|
|
|
+ // },
|
|
|
{
|
|
|
prop: 'planStatus',
|
|
|
label: '状态',
|
|
|
@@ -241,7 +245,8 @@ export default {
|
|
|
// 加载状态
|
|
|
loading: false,
|
|
|
radioId: '',
|
|
|
- currentRow: {}
|
|
|
+ currentRow: {},
|
|
|
+ browseShow: false,
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
@@ -321,7 +326,11 @@ export default {
|
|
|
this.$message.warning('请先选择计划')
|
|
|
return;
|
|
|
}
|
|
|
- this.handleCommand('handleGenerate', this.currentRow);
|
|
|
+ this.browseShow = true;
|
|
|
+ // this.handleCommand('handleGenerate', this.currentRow);
|
|
|
+ },
|
|
|
+ cancelQuo(){
|
|
|
+ this.browseShow = false;
|
|
|
}
|
|
|
}
|
|
|
};
|