|
@@ -27,7 +27,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
- import{getDrawingList,getProcessDetail} from '@/api/business/drawing.js'
|
|
|
|
|
|
+ import{getDrawingList,getTechnologicalProcess} from '@/api/business/drawing.js'
|
|
import {
|
|
import {
|
|
ref
|
|
ref
|
|
} from 'vue'
|
|
} from 'vue'
|
|
@@ -35,37 +35,45 @@
|
|
onLoad,
|
|
onLoad,
|
|
} from '@dcloudio/uni-app'
|
|
} from '@dcloudio/uni-app'
|
|
import { store } from '../../store';
|
|
import { store } from '../../store';
|
|
-const technologicalProcessDetailId = ref("")
|
|
|
|
|
|
+const technologicalProcessId = ref("")
|
|
const drawingList = ref([])
|
|
const drawingList = ref([])
|
|
|
|
+const processCode = ref("")
|
|
|
|
+const productId = ref("")
|
|
const product = ref({})
|
|
const product = ref({})
|
|
const lotCode = ref("")
|
|
const lotCode = ref("")
|
|
|
|
+const processAlias = ref("")
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|
|
console.log(options,1111)
|
|
console.log(options,1111)
|
|
- technologicalProcessDetailId.value = options.param1
|
|
|
|
|
|
+ technologicalProcessId.value = options.param4
|
|
lotCode.value = options.param2
|
|
lotCode.value = options.param2
|
|
|
|
+ productId.value = options.param1
|
|
|
|
+ processCode.value = options.param3
|
|
|
|
+ processAlias.value = options.param5
|
|
init();
|
|
init();
|
|
|
|
|
|
})
|
|
})
|
|
|
|
|
|
function init() {
|
|
function init() {
|
|
console.log(product.value)
|
|
console.log(product.value)
|
|
- getProcessDetail(technologicalProcessDetailId.value).then(response=>{
|
|
|
|
|
|
+ getTechnologicalProcess(technologicalProcessId.value).then(response=>{
|
|
console.log(response,1123)
|
|
console.log(response,1123)
|
|
if(response.code ==200){
|
|
if(response.code ==200){
|
|
product.value = response.data
|
|
product.value = response.data
|
|
product.value.lotCode = lotCode.value
|
|
product.value.lotCode = lotCode.value
|
|
|
|
+ product.value.processAlias = processAlias.value
|
|
|
|
+ getDrawingList({productVersion:product.value.technologyVersion,processCode:processCode.value,productId:productId.value}).then(res=>{
|
|
|
|
+ if(res.code == 200){
|
|
|
|
+ drawingList.value = res.data
|
|
|
|
+ // product.value = drawingList.value[0].product
|
|
|
|
+ // product.value.technologyVersion = drawingList.value[0].technologyVersion
|
|
|
|
+ // product.value.processAlias = drawingList.value[0].processAlias
|
|
|
|
+ // product.value.lotCode = lotCode.value
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- getDrawingList({technologicalProcessDetailId:technologicalProcessDetailId.value}).then(res=>{
|
|
|
|
- if(res.code == 200){
|
|
|
|
- drawingList.value = res.data
|
|
|
|
- // product.value = drawingList.value[0].product
|
|
|
|
- // product.value.technologyVersion = drawingList.value[0].technologyVersion
|
|
|
|
- // product.value.processAlias = drawingList.value[0].processAlias
|
|
|
|
- // product.value.lotCode = lotCode.value
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -76,7 +84,7 @@ const lotCode = ref("")
|
|
// 检查 filteredProcess 是否有元素,并选择第一个元素
|
|
// 检查 filteredProcess 是否有元素,并选择第一个元素
|
|
|
|
|
|
|
|
|
|
- // 对 technologicalProcessDetailId 进行URL编码
|
|
|
|
|
|
+
|
|
var encodeUrl = row.url;
|
|
var encodeUrl = row.url;
|
|
console.log(row)
|
|
console.log(row)
|
|
// 构建查询参数字符串
|
|
// 构建查询参数字符串
|