|
@@ -134,6 +134,8 @@ export default function DesignPic() {
|
|
|
}).catch(e => {
|
|
}).catch(e => {
|
|
|
setLoading(false)
|
|
setLoading(false)
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
|
|
+ setTableData([])
|
|
|
setBtnLoading(true)
|
|
setBtnLoading(true)
|
|
|
// 获取当前活动标签页
|
|
// 获取当前活动标签页
|
|
|
const [tab] = await browser.tabs.query({ active: true, currentWindow: true });
|
|
const [tab] = await browser.tabs.query({ active: true, currentWindow: true });
|
|
@@ -299,6 +301,8 @@ export default function DesignPic() {
|
|
|
}
|
|
}
|
|
|
queueImg()
|
|
queueImg()
|
|
|
function getImgWh() {
|
|
function getImgWh() {
|
|
|
|
|
+ setBtnLoading(false)
|
|
|
|
|
+ setLoading(false)
|
|
|
// 筛选备货单号存在的值
|
|
// 筛选备货单号存在的值
|
|
|
let pic_text_arr1 = pic_text_arr.filter(item => item.order_no && item.order_no != "-")
|
|
let pic_text_arr1 = pic_text_arr.filter(item => item.order_no && item.order_no != "-")
|
|
|
// 为存在图片的对象添加宽高
|
|
// 为存在图片的对象添加宽高
|
|
@@ -331,8 +335,6 @@ export default function DesignPic() {
|
|
|
})
|
|
})
|
|
|
console.log(pic_text_arr1, "pic_text_arr1aaa", img_values1)
|
|
console.log(pic_text_arr1, "pic_text_arr1aaa", img_values1)
|
|
|
setTableData(table_data)
|
|
setTableData(table_data)
|
|
|
- setBtnLoading(false)
|
|
|
|
|
- setLoading(false)
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -387,6 +389,10 @@ export default function DesignPic() {
|
|
|
console.log(table_obj, "table_obj", Object.values(table_obj))
|
|
console.log(table_obj, "table_obj", Object.values(table_obj))
|
|
|
const table_params = Object.values(table_obj)
|
|
const table_params = Object.values(table_obj)
|
|
|
let fetch_url = "", arr_index = 0
|
|
let fetch_url = "", arr_index = 0
|
|
|
|
|
+ if (!uploadUrl) {
|
|
|
|
|
+ CustomMessage.warning("上传地址丢失,请再次点击获取定制数据!")
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
if (uploadUrl.includes('http')) {
|
|
if (uploadUrl.includes('http')) {
|
|
|
fetch_url = `${uploadUrl}photo/temuUpload`
|
|
fetch_url = `${uploadUrl}photo/temuUpload`
|
|
|
} else {
|
|
} else {
|