|
@@ -15,7 +15,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="productName" label="产品名称" width="200">
|
|
<el-table-column prop="productName" label="产品名称" width="200">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-button link type="primary" size="large">{{
|
|
|
|
|
|
+ <el-button link type="primary" size="large" @click="toPath(scope.row)">{{
|
|
scope.row.productName
|
|
scope.row.productName
|
|
}}</el-button>
|
|
}}</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -54,11 +54,13 @@
|
|
import { ref, reactive, onMounted, onUnmounted, defineExpose, inject, watchEffect } from 'vue'
|
|
import { ref, reactive, onMounted, onUnmounted, defineExpose, inject, watchEffect } from 'vue'
|
|
import { GETGENERATEFOEM, GETTABLELISTPRODUCT, URL_OEDERUPDATE } from '../api';
|
|
import { GETGENERATEFOEM, GETTABLELISTPRODUCT, URL_OEDERUPDATE } from '../api';
|
|
import { get, post } from '@/utils/request';
|
|
import { get, post } from '@/utils/request';
|
|
|
|
+import { useRouter } from "vue-router";
|
|
import RelatedProducts from '@/components/relatedProducts/relatedProducts.vue'
|
|
import RelatedProducts from '@/components/relatedProducts/relatedProducts.vue'
|
|
import { all } from 'axios';
|
|
import { all } from 'axios';
|
|
import { formatDate } from '@/utils/times';
|
|
import { formatDate } from '@/utils/times';
|
|
import { getTemplateKey } from '@/utils/tools';
|
|
import { getTemplateKey } from '@/utils/tools';
|
|
|
|
|
|
|
|
+const router = useRouter()
|
|
const globalPopup = inject<GlobalPopup>('globalPopup')
|
|
const globalPopup = inject<GlobalPopup>('globalPopup')
|
|
const emits = defineEmits(['refreshData']);
|
|
const emits = defineEmits(['refreshData']);
|
|
const props = defineProps<{
|
|
const props = defineProps<{
|
|
@@ -83,6 +85,15 @@ const orderTemplate = ref({
|
|
config: {}
|
|
config: {}
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+function toPath(item: any) {
|
|
|
|
+ router.push({
|
|
|
|
+ path: `/tasks`,
|
|
|
|
+ query: {
|
|
|
|
+ id: item.id
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
function saveOrder() {
|
|
function saveOrder() {
|
|
let productTableListData = relatedProductsRef?.value?.returnData()
|
|
let productTableListData = relatedProductsRef?.value?.returnData()
|
|
const items: any = infoValue.value
|
|
const items: any = infoValue.value
|