Commit 1a062df6 by zhuzhequan

eslint

parent 2ddc95c3
......@@ -40,7 +40,7 @@ axios.interceptors.response.use((response) => {
return Promise.reject(data)
}
if (data.code !== 200){
// showError(data.message)
showError(data.message)
return Promise.reject(data)
}
}
......
......@@ -111,6 +111,15 @@
align="center"
></ElTableColumn>
<ElTableColumn
label="客户"
show-overflow-tooltip
prop="userMark"
width="200"
header-align="center"
align="center"
></ElTableColumn>
<ElTableColumn
label="发货单号"
show-overflow-tooltip
prop="billNumber"
......@@ -119,6 +128,7 @@
align="center"
></ElTableColumn>
<ElTableColumn
label="订单号"
show-overflow-tooltip
......@@ -546,7 +556,7 @@ const onEditOrder = async (item: AccountStatementNote) => {
editForm.value = (res.data) as never
dialogVisible.value = true
} catch (e) {
showError(e)
// showError(e)
}
}
......@@ -556,7 +566,7 @@ const logOrder = async (item: AccountStatementNote) => {
logList.value = (res.data) as never
} catch (e) {
showError(e)
// showError(e)
}
}
......@@ -568,7 +578,7 @@ const submitData = async () => {
ElMessage.success('修改成功')
search()
} catch (e) {
showError(e)
// showError(e)
}
}
const rowClick = (row: AccountStatementNote) => {
......
......@@ -338,7 +338,7 @@ const getNameSpaceList = async () => {
const res = await getUserMarkList()
nameSpaceList.value = res.data
} catch (e) {
showError(e)
// showError(e)
}
}
const dialogVisible = ref(false)
......@@ -363,7 +363,7 @@ const onConfirmDateRange = async () => {
search()
btnLoading.value = false
} catch (e) {
showError(e)
// showError(e)
btnLoading.value = false
}
}
......@@ -389,7 +389,7 @@ const generateStatement = async () => {
search()
ElMessage.success('操作成功')
} catch (e) {
showError(e)
//showError(e)
btnLoading.value = false
}
}
......@@ -420,7 +420,7 @@ const onViewOrder = async (item: DeliveryNoteData) => {
orderDetailData.value = res.data
orderDetailDialogVisible.value = true
} catch (e) {
showError(e)
//showError(e)
}
}
const copy = (text: string) => {
......
......@@ -280,7 +280,7 @@ const deleteUser = async () => {
})
search()
} catch (e) {
showError(e)
// showError(e)
}
}
const editUser = async (item: userData) => {
......@@ -292,7 +292,7 @@ const editUser = async (item: userData) => {
editForm.value = res.data
dialogVisible.value = true
} catch (e) {
showError(e)
//showError(e)
}
}
const save = async () => {
......@@ -343,7 +343,7 @@ const onChangeStatus = async (value: number, item: userData) => {
})
search()
} catch (e) {
showError(e)
//showError(e)
}
}
</script>
......
......@@ -170,7 +170,7 @@ const downloadManuscriptBySubOrder = async (item: ProductList) => {
const res = await downloadOrder(item.id)
window.open(filePath + res.message)
} catch (e) {
showError(e)
//showError(e)
}
}
const copy = (text: string) => {
......
......@@ -200,7 +200,7 @@ const downloadManuscriptBySubOrder = async (item: ProductList) => {
const res = await downloadOrder(item.id)
window.open(filePath + res.message)
} catch (e) {
showError(e)
// showError(e)
}
}
const copy = (text: string) => {
......
......@@ -129,7 +129,7 @@ export default function useQuarantine() {
qaInputRef.value.focus()
isLock.value = false
qaCode.value = ''
showError(e)
// showError(e)
playAudio('picking_search_error')
}
}
......@@ -159,7 +159,7 @@ export default function useQuarantine() {
dzjTotal.value = 0
callback && callback()
} catch (e) {
showError(e)
// showError(e)
}
}
const onQaDialogOpened = () => {
......
......@@ -140,7 +140,7 @@ export default function useShipment(callback?: () => void) {
productionOrderNumber.value = ''
isLock.value = false
inputRef.value.focus()
showError(e)
//showError(e)
playAudio('picking_search_error')
} finally {
shipmentLoading.value = false
......@@ -195,7 +195,7 @@ export default function useShipment(callback?: () => void) {
shipmentVisible.value = false
callback && callback()
} catch (e) {
showError(e)
// showError(e)
}
}
const confirmDelivery = async () => {
......
......@@ -924,7 +924,7 @@ const getLogisticsList = async () => {
const res = await getLogisticsCompanyList()
logisticsCompanyList.value = res.data
} catch (error) {
showError(error)
//showError(error)
}
}
const sendOrderList = ref<SendOrderData[]>([])
......@@ -936,7 +936,7 @@ const openShipment = async (id: number) => {
sendOrderList.value = res.data
sendOrderVisible.value = true
} catch (error) {
showError(error)
// showError(error)
}
}
const arraySpanMethod = ({ columnIndex }: SpanMethodProps) => {
......@@ -962,7 +962,7 @@ const loadTabData = async () => {
const res = await getOrderTabData()
tabsNav.value = res.data
} catch (error) {
showError(error)
// showError(error)
}
}
const handleSelectionChange = (s: OrderData[]) => {
......@@ -993,7 +993,7 @@ const confirmProduce = async () => {
await loadTabData()
ElMessage.success(res.message)
} catch (e) {
showError(e)
// showError(e)
}
}
// 下载稿件
......@@ -1055,7 +1055,7 @@ const reGenerateManuscript = async () => {
ElMessage.success(res.message)
search()
} catch (e) {
showError(e)
// showError(e)
}
}
// 打印生产单
......@@ -1084,7 +1084,7 @@ const printManuscript = async () => {
btnLoading.value = false
window.open(filePath + res.message)
} catch (e) {
showError(e)
//showError(e)
btnLoading.value = false
}
}
......@@ -1094,7 +1094,7 @@ const exportManuscript = async () => {
const res = await exportOrder(statusCode.value)
window.open(filePath + res.message)
} catch (e) {
showError(e)
// showError(e)
}
}
const refreshProduct = async () => {
......@@ -1124,7 +1124,7 @@ const refreshProduct = async () => {
loadTabData()
search()
} catch (e) {
showError(e)
// showError(e)
}
}
// 添加内部便签
......@@ -1153,7 +1153,7 @@ const addInternalTag = async () => {
loadTabData()
search()
} catch (e) {
showError(e)
// showError(e)
}
})
}
......@@ -1166,7 +1166,7 @@ const openDetail = async (id: number) => {
orderDetailData.value = res.data
orderDetailDialogVisible.value = true
} catch (e) {
showError(e)
//showError(e)
}
}
const logVisible = ref(false)
......@@ -1178,7 +1178,7 @@ const openLog = async (id: number) => {
logList.value = res.data
logVisible.value = true
} catch (e) {
showError(e)
// showError(e)
}
}
// 取消
......@@ -1202,7 +1202,7 @@ const cancelOrder = async (id: number) => {
loadTabData()
search()
} catch (e) {
showError(e)
// showError(e)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment