箱管 调整

szh-new
张同海 2 months ago
parent 66ad4fbfd3
commit b65ff1cdb1

@ -362,6 +362,7 @@
fileId: dsFile.value.dsFileList.SelectId, fileId: dsFile.value.dsFileList.SelectId,
} }
ApiDealExcel(ApiData).then((res) => { ApiDealExcel(ApiData).then((res) => {
activeKey.value = '1'
refresh() refresh()
notification.success({ message: res.message, duration: 3 }) notification.success({ message: res.message, duration: 3 })
}) })

@ -373,6 +373,7 @@
fileId: dsFile.value.dsFileList.SelectId, fileId: dsFile.value.dsFileList.SelectId,
} }
ApiDealExcel(ApiData).then((res) => { ApiDealExcel(ApiData).then((res) => {
activeKey.value = '1'
refresh() refresh()
notification.success({ message: res.message, duration: 3 }) notification.success({ message: res.message, duration: 3 })
}) })

@ -375,6 +375,7 @@
fileId: dsFile.value.dsFileList.SelectId, fileId: dsFile.value.dsFileList.SelectId,
} }
ApiDealExcel(ApiData).then((res) => { ApiDealExcel(ApiData).then((res) => {
activeKey.value = '1'
refresh() refresh()
notification.success({ message: res.message, duration: 3 }) notification.success({ message: res.message, duration: 3 })
}) })

@ -362,6 +362,7 @@
fileId: dsFile.value.dsFileList.SelectId, fileId: dsFile.value.dsFileList.SelectId,
} }
ApiDealExcel(ApiData).then((res) => { ApiDealExcel(ApiData).then((res) => {
activeKey.value = '1'
refresh() refresh()
notification.success({ message: res.message, duration: 3 }) notification.success({ message: res.message, duration: 3 })
}) })

@ -164,7 +164,7 @@
import { import {
ApiEdit, ApiEdit,
ApiInfo, ApiInfo,
// ApiListDetail, ApiListDetail,
ApiDelDetail, ApiDelDetail,
// // ApiMakeFee, // // ApiMakeFee,
// ApiDetailView, // ApiDetailView,
@ -211,17 +211,38 @@
setFieldsValue({ setFieldsValue({
...res.data, ...res.data,
}) })
if (res.data.bodyList) { GetListDetail()
res.data.bodyList.forEach((item) => {
list.value.push(item)
})
}
} }
} else { } else {
rowId.value = '' rowId.value = ''
} }
setModalProps({ loading: false }) setModalProps({ loading: false })
}) })
function GetListDetail() {
ApiListDetail({
queryCondition: `[{ FieldName: 'Pid', FieldValue: '${rowId.value}', ConditionalType: 1 }]`,
pageCondition: { pageIndex: 1, pageSize: 999, sortConditions: [] },
}).then((res) => {
// console.log(res)
// list.value.splice(0)
// res.data.forEach((item) => {
// list.value.push(item)
// })
// ------------------
list.value.splice(0)
let Arr = ['pickupDate', 'dropoffDate', 'feeStartDate', 'bsdate']
res.data.forEach((item) => {
console.log(item)
Arr.forEach((e) => {
if (item[e]) {
item[e] = item[e].split(' ')[0]
}
})
list.value.push(item)
})
})
}
// function MakeFee() { // function MakeFee() {
// ApiMakeFee({ id: rowId.value }).then((res) => { // ApiMakeFee({ id: rowId.value }).then((res) => {
// notification.success({ message: res.message, duration: 3 }) // notification.success({ message: res.message, duration: 3 })
@ -288,6 +309,7 @@
fileId: dsFile.value.dsFileList.SelectId, fileId: dsFile.value.dsFileList.SelectId,
} }
ApiDealExcel(ApiData).then((res) => { ApiDealExcel(ApiData).then((res) => {
activeKey.value = '1'
refresh() refresh()
notification.success({ message: res.message, duration: 3 }) notification.success({ message: res.message, duration: 3 })
}) })
@ -355,11 +377,7 @@
await setFieldsValue({ await setFieldsValue({
...res.data, ...res.data,
}) })
if (res.data.bodyList) { GetListDetail()
res.data.bodyList.forEach((item) => {
list.value.push(item)
})
}
} }
} }
const activeKey = ref('1') const activeKey = ref('1')

@ -7,8 +7,8 @@ enum Api {
info = '/containerManagementApi/CM_RentOneWay_In/GetCM_RentOneWay_In', info = '/containerManagementApi/CM_RentOneWay_In/GetCM_RentOneWay_In',
del = '/containerManagementApi/CM_RentOneWay_In/DeleteCM_RentOneWay_In', del = '/containerManagementApi/CM_RentOneWay_In/DeleteCM_RentOneWay_In',
// listDetail = '/containerManagementApi/CM_RentOneWay_Detail/GetCM_RentOneWay_DetailList', listDetail = '/containerManagementApi/CM_RentOneWay_Detail/GetCM_RentOneWay_DetailList',
// editDetail = '/containerManagementApi/CM_RentOneWay_Detail/EditCM_RentOneWay_Detail', editDetail = '/containerManagementApi/CM_RentOneWay_Detail/EditCM_RentOneWay_Detail',
delDetail = '/containerManagementApi/CM_RentOneWay_Detail/DeleteCM_RentOneWay_Detail', delDetail = '/containerManagementApi/CM_RentOneWay_Detail/DeleteCM_RentOneWay_Detail',
Confirm = '/containerManagementApi/CM_RentOneWay_In/CM_RentOneWay_In_Confirm', Confirm = '/containerManagementApi/CM_RentOneWay_In/CM_RentOneWay_In_Confirm',
@ -50,22 +50,22 @@ export function ApiDel(data: PageRequest) {
}) })
} }
// // 列表详情 (Auth) // 列表详情 (Auth)
// export function ApiListDetail(data: PageRequest) { export function ApiListDetail(data: PageRequest) {
// return request<DataResult>({ return request<DataResult>({
// url: Api.listDetail, url: Api.listDetail,
// method: 'post', method: 'post',
// data, data,
// }) })
// } }
// // 编辑详情 (Auth) // 编辑详情 (Auth)
// export function ApiEditDetail(data: PageRequest) { export function ApiEditDetail(data: PageRequest) {
// return request<DataResult>({ return request<DataResult>({
// url: Api.editDetail, url: Api.editDetail,
// method: 'post', method: 'post',
// data, data,
// }) })
// } }
// 删除详情 (Auth) // 删除详情 (Auth)
export function ApiDelDetail(data: PageRequest) { export function ApiDelDetail(data: PageRequest) {
return request<DataResult>({ return request<DataResult>({

@ -252,7 +252,7 @@ export const formSchema: FormSchema[] = [
label: '业务类型', label: '业务类型',
component: 'ApiSelect', component: 'ApiSelect',
colProps: { span: 6 }, colProps: { span: 6 },
defaultValue: 103, defaultValue: 108,
dynamicDisabled: ({}) => { dynamicDisabled: ({}) => {
return true return true
}, },

@ -393,6 +393,7 @@
fileId: dsFile.value.dsFileList.SelectId, fileId: dsFile.value.dsFileList.SelectId,
} }
ApiDealExcel(ApiData).then((res) => { ApiDealExcel(ApiData).then((res) => {
activeKey.value = '1'
refresh() refresh()
notification.success({ message: res.message, duration: 3 }) notification.success({ message: res.message, duration: 3 })
}) })

@ -373,6 +373,7 @@
fileId: dsFile.value.dsFileList.SelectId, fileId: dsFile.value.dsFileList.SelectId,
} }
ApiDealExcel(ApiData).then((res) => { ApiDealExcel(ApiData).then((res) => {
activeKey.value = '1'
refresh() refresh()
notification.success({ message: res.message, duration: 3 }) notification.success({ message: res.message, duration: 3 })
}) })

@ -216,6 +216,7 @@
} }
ApiDealExcel(ApiData).then((res) => { ApiDealExcel(ApiData).then((res) => {
if (res.succeeded) { if (res.succeeded) {
activeKey.value = '1'
refresh() refresh()
notification.success({ message: res.message, duration: 3 }) notification.success({ message: res.message, duration: 3 })
} }

Loading…
Cancel
Save