|
|
@ -43,7 +43,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="SearchBox">
|
|
|
|
<div class="SearchBox">
|
|
|
|
<BasicForm class="Form" @register="registerSearchBoxForm" />
|
|
|
|
<BasicForm class="Form" @register="registerSearchBoxForm" :disabledDate="disabledDate" />
|
|
|
|
<div class="ButtonBox">
|
|
|
|
<div class="ButtonBox">
|
|
|
|
<a-button size="default" @click="handleReset" :disabled="!rowId"> 重置 </a-button>
|
|
|
|
<a-button size="default" @click="handleReset" :disabled="!rowId"> 重置 </a-button>
|
|
|
|
<a-button
|
|
|
|
<a-button
|
|
|
@ -137,6 +137,15 @@
|
|
|
|
@click="handleSave(true)"
|
|
|
|
@click="handleSave(true)"
|
|
|
|
>保存并关闭</a-button
|
|
|
|
>保存并关闭</a-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-button
|
|
|
|
|
|
|
|
pre-icon="ant-design:check-circle-outlined"
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
:loading="loading"
|
|
|
|
|
|
|
|
:disabled="!rowId"
|
|
|
|
|
|
|
|
@click="MakeFee()"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
生成费用
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</BasicModal>
|
|
|
|
</BasicModal>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -178,7 +187,7 @@
|
|
|
|
const loading = ref(false)
|
|
|
|
const loading = ref(false)
|
|
|
|
const rowId = ref('')
|
|
|
|
const rowId = ref('')
|
|
|
|
const height = ref(300)
|
|
|
|
const height = ref(300)
|
|
|
|
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
|
|
|
|
const [registerForm, { resetFields, setFieldsValue, getFieldsValue, validate }] = useForm({
|
|
|
|
labelWidth: 100,
|
|
|
|
labelWidth: 100,
|
|
|
|
schemas: formSchema,
|
|
|
|
schemas: formSchema,
|
|
|
|
showActionButtonGroup: false,
|
|
|
|
showActionButtonGroup: false,
|
|
|
@ -192,6 +201,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
Viewlist.value.splice(0)
|
|
|
|
Viewlist.value.splice(0)
|
|
|
|
list.value.splice(0)
|
|
|
|
list.value.splice(0)
|
|
|
|
|
|
|
|
|
|
|
|
if (unref(isUpdate)) {
|
|
|
|
if (unref(isUpdate)) {
|
|
|
|
// setModalProps({ confirmLoading: true });
|
|
|
|
// setModalProps({ confirmLoading: true });
|
|
|
|
rowId.value = data.record.id
|
|
|
|
rowId.value = data.record.id
|
|
|
@ -199,8 +209,6 @@
|
|
|
|
if (res.succeeded) {
|
|
|
|
if (res.succeeded) {
|
|
|
|
allCheck.value = false
|
|
|
|
allCheck.value = false
|
|
|
|
someCheck.value = false
|
|
|
|
someCheck.value = false
|
|
|
|
console.log(res.data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setFieldsValue({
|
|
|
|
setFieldsValue({
|
|
|
|
...res.data,
|
|
|
|
...res.data,
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -209,19 +217,69 @@
|
|
|
|
ViewlallCheck.value = false
|
|
|
|
ViewlallCheck.value = false
|
|
|
|
ViewlsomeCheck.value = false
|
|
|
|
ViewlsomeCheck.value = false
|
|
|
|
resetSearchBoxFields()
|
|
|
|
resetSearchBoxFields()
|
|
|
|
GetViewListDetail(
|
|
|
|
GetViewListDetail(null, res.data)
|
|
|
|
`[{ FieldName: 'Pid', FieldValue: '${rowId.value}', ConditionalType: 1 }]`,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
setFieldsValue({})
|
|
|
|
rowId.value = ''
|
|
|
|
rowId.value = ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
setModalProps({ loading: false })
|
|
|
|
setModalProps({ loading: false })
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
function GetViewListDetail(queryCondition) {
|
|
|
|
function GetViewListDetail(data, resData) {
|
|
|
|
|
|
|
|
console.log(data, resData)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let queryCondition: any = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (getFieldsValue().customerId || resData.customerId) {
|
|
|
|
|
|
|
|
queryCondition.push({
|
|
|
|
|
|
|
|
ConditionalList: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Key: 0,
|
|
|
|
|
|
|
|
Value: {
|
|
|
|
|
|
|
|
FieldName: 'oldContainerOwnerId',
|
|
|
|
|
|
|
|
FieldValue: getFieldsValue().customerId || resData.customerId,
|
|
|
|
|
|
|
|
ConditionalType: 0,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Key: 1,
|
|
|
|
|
|
|
|
Value: {
|
|
|
|
|
|
|
|
FieldName: 'rentCustomerId',
|
|
|
|
|
|
|
|
FieldValue: getFieldsValue().customerId || resData.customerId,
|
|
|
|
|
|
|
|
ConditionalType: 0,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (getFieldsValue().billStartDate || resData.billStartDate) {
|
|
|
|
|
|
|
|
queryCondition.push({
|
|
|
|
|
|
|
|
ConditionalList: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Key: 0,
|
|
|
|
|
|
|
|
Value: { FieldName: 'dropoffdate', FieldValue: 'null', ConditionalType: 0 },
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Key: 1,
|
|
|
|
|
|
|
|
Value: {
|
|
|
|
|
|
|
|
FieldName: 'dropoffdate',
|
|
|
|
|
|
|
|
FieldValue: getFieldsValue().billStartDate || resData.billStartDate,
|
|
|
|
|
|
|
|
ConditionalType: 3,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (data) {
|
|
|
|
|
|
|
|
data.forEach((item) => {
|
|
|
|
|
|
|
|
queryCondition.push(item)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
ApiDetailView({
|
|
|
|
ApiDetailView({
|
|
|
|
queryCondition,
|
|
|
|
queryCondition: JSON.stringify(queryCondition),
|
|
|
|
pageCondition: { pageIndex: 1, pageSize: 999, sortConditions: [] },
|
|
|
|
pageCondition: { pageIndex: 1, pageSize: 999, sortConditions: [] },
|
|
|
|
}).then((res) => {
|
|
|
|
}).then((res) => {
|
|
|
|
Viewlist.value.splice(0)
|
|
|
|
Viewlist.value.splice(0)
|
|
|
@ -245,7 +303,6 @@
|
|
|
|
list.value.splice(0)
|
|
|
|
list.value.splice(0)
|
|
|
|
let Arr = ['pickupDate', 'dropoffDate', 'feeStartDate', 'bsdate']
|
|
|
|
let Arr = ['pickupDate', 'dropoffDate', 'feeStartDate', 'bsdate']
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
console.log(item)
|
|
|
|
|
|
|
|
Arr.forEach((e) => {
|
|
|
|
Arr.forEach((e) => {
|
|
|
|
if (item[e]) {
|
|
|
|
if (item[e]) {
|
|
|
|
item[e] = item[e].split(' ')[0]
|
|
|
|
item[e] = item[e].split(' ')[0]
|
|
|
@ -255,6 +312,11 @@
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function MakeFee() {
|
|
|
|
|
|
|
|
ApiMakeFee({ id: rowId.value }).then((res) => {
|
|
|
|
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
async function handleSave(exit) {
|
|
|
|
async function handleSave(exit) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const values = await validate()
|
|
|
|
const values = await validate()
|
|
|
@ -579,6 +641,8 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//--------------------------------------- tab1 View ---------------------------------------
|
|
|
|
//--------------------------------------- tab1 View ---------------------------------------
|
|
|
|
|
|
|
|
const disabledDate = ref(['2024/08/10', '2024/08/20'])
|
|
|
|
|
|
|
|
|
|
|
|
const [
|
|
|
|
const [
|
|
|
|
registerSearchBoxForm,
|
|
|
|
registerSearchBoxForm,
|
|
|
|
{ resetFields: resetSearchBoxFields, validate: validateSearchBox },
|
|
|
|
{ resetFields: resetSearchBoxFields, validate: validateSearchBox },
|
|
|
@ -785,15 +849,10 @@
|
|
|
|
Object.keys(values).forEach((item) => {
|
|
|
|
Object.keys(values).forEach((item) => {
|
|
|
|
if (values[item]) {
|
|
|
|
if (values[item]) {
|
|
|
|
console.log(values[item].split(','))
|
|
|
|
console.log(values[item].split(','))
|
|
|
|
|
|
|
|
ApiData.push({ FieldName: item, FieldValue: values[item], ConditionalType: 5 })
|
|
|
|
if (item == 'cntrno') {
|
|
|
|
|
|
|
|
ApiData.push({ FieldName: item, FieldValue: values[item], ConditionalType: 15 })
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
ApiData.push({ FieldName: item, FieldValue: values[item], ConditionalType: 1 })
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
GetViewListDetail(JSON.stringify(ApiData))
|
|
|
|
GetViewListDetail(ApiData, null)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function ViewTableAdd() {
|
|
|
|
function ViewTableAdd() {
|
|
|
|
let ApiData: any = { id: rowId.value, ids: [] }
|
|
|
|
let ApiData: any = { id: rowId.value, ids: [] }
|
|
|
@ -814,9 +873,7 @@
|
|
|
|
ViewlsomeCheck.value = false
|
|
|
|
ViewlsomeCheck.value = false
|
|
|
|
GetListDetail()
|
|
|
|
GetListDetail()
|
|
|
|
resetSearchBoxFields()
|
|
|
|
resetSearchBoxFields()
|
|
|
|
GetViewListDetail(
|
|
|
|
GetViewListDetail(null, null)
|
|
|
|
`[{ FieldName: 'Pid', FieldValue: '${rowId.value}', ConditionalType: 1 }]`,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// getData(false)
|
|
|
|
// getData(false)
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|