Commit a4d7ad37 by linjinhong Committed by qinjianhui

fix:修改问题

parent 609cfc9a
......@@ -743,3 +743,9 @@ export function orderWeighingApi(params: {
params,
)
}
//获取物流公司
export function allErpCodeListApi() {
return axios.get<never, BaseRespData<never>>(
'/logisticsCompany/allErpCodeList',
)
}
......@@ -399,6 +399,11 @@ watch(visible, async (value: boolean) => {
_warehouseId.value = hit ? localId : props.warehouseList[0].id
initPrintDevice()
inputActive()
const locaclPrinter = localStorage.getItem('sheetPrinter')
const locaclWarehouseId = localStorage.getItem('locaclWarehouseId')
if (locaclPrinter) sheetPrinter.value = JSON.parse(locaclPrinter)
if (locaclWarehouseId) warehouseId.value = JSON.parse(locaclWarehouseId)
emit('set-printer', sheetPrinter.value)
}
})
watch(
......
......@@ -59,7 +59,6 @@
<div>
<CustomizeTable
ref="tableRef"
v-loading="tableLoading"
border
:isShowCheckBox="false"
v-model="tableData"
......@@ -110,8 +109,12 @@ interface ILogisticsList {
}
import BigNumber from 'bignumber.js'
import weight from '../components/weigh.js'
import { listByNoApi, orderWeighingApi } from '@/api/podCnOrder'
import { logisticsCompanyAllCodelist } from '@/api/logistics.ts'
import {
listByNoApi,
orderWeighingApi,
allErpCodeListApi,
} from '@/api/podCnOrder'
// import { logisticsCompanyAllCodelist } from '@/api/logistics.ts'
import CustomizeTable from '@/components/VxeTable.tsx'
import { TableColumn } from '@/components/VxeTable'
const tableData = ref<IpodCnWeighingParams[]>([])
......@@ -121,7 +124,7 @@ const logisticsCompanyCode = ref('')
const weighInput = ref()
const weightText = ref('')
const allCodelist = ref<ILogisticsList[]>([])
const tableLoading = ref(false)
const tableRef = ref()
const tableConfig = ref<TableColumn[]>([
{
......@@ -198,7 +201,7 @@ const emits = defineEmits<{
}>()
const getlogisticsCompanyAllCodelist = async () => {
try {
const res = await logisticsCompanyAllCodelist()
const res = await allErpCodeListApi()
if (res.code !== 200) return
allCodelist.value = res.data
} catch (e) {
......@@ -238,8 +241,11 @@ const weightChange = async () => {
weightText.value = ''
console.log(343, weight.weightInput)
tableLoading.value = true
const loading = ElLoading.service({
fullscreen: true,
text: '操作中...',
background: 'rgba(0, 0, 0, 0.3)',
})
try {
const params: {
type: string
......@@ -274,7 +280,7 @@ const weightChange = async () => {
} catch (error) {
console.log(error)
} finally {
tableLoading.value = false
loading.close()
}
console.log('weightChange')
}
......@@ -290,6 +296,11 @@ const weightGet = async () => {
return
}
}
const loading = ElLoading.service({
fullscreen: true,
text: '操作中...',
background: 'rgba(0, 0, 0, 0.3)',
})
try {
await orderWeighingApi({ podCnWeighingParams: tableData.value })
ElMessage.success('保存称重分拣成功')
......@@ -297,6 +308,8 @@ const weightGet = async () => {
emits('updateList')
} catch (error) {
console.log(error)
} finally {
loading.close()
}
}
......
......@@ -2802,9 +2802,10 @@ import {
printNormalPdf,
changeLogisticsApi,
getEmployeeListApi,
allErpCodeListApi,
} from '@/api/podCnOrder'
import { logisticsCompanyAllCodelist } from '@/api/logistics.ts'
// import { logisticsCompanyAllCodelist } from '@/api/logistics.ts'
import { BaseRespData } from '@/types/api'
import ChangeWayDialog from './components/ChangeWayDialog.vue'
import UpdateAddress from './components/updateAddress.vue'
......@@ -5392,7 +5393,7 @@ interface ILogisticsList {
const allCodelist = ref<ILogisticsList[]>([])
const getlogisticsCompanyAllCodelist = async () => {
try {
const res = await logisticsCompanyAllCodelist()
const res = await allErpCodeListApi()
if (res.code !== 200) return
allCodelist.value = res.data
} catch (e) {
......
......@@ -496,7 +496,10 @@
></ElOption>
</ElSelect>
</ElFormItem>
<ElFormItem label="拦截订单">
<ElFormItem
label="拦截订单"
v-if="status !== 'CANCEL' && status !== 'INTERCEPTED'"
>
<ElSelect
v-model="searchForm.blocking"
placeholder="请选择"
......
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