Compare commits

...

2 Commits

@ -630,16 +630,16 @@
const revokeSubmit = () => {
let flag = false
const ids = []
props.data.forEach(item => {
if (item?.selected) {
if (item.feeStatus != 2) {
for (let i = 0; i < props.data.length; i++) {
if (props.data[i]?.selected) {
flag = true
if (props.data[i].feeStatus != 2) {
return createMessage.warning('只能撤销状态为提交审核的费用!')
} else {
ids.push(item?.id)
ids.push(props.data[i]?.id)
}
}
flag = true
}
})
if (!flag) return createMessage.warning('请勾选要撤销提交的费用!')
emits('revoke', ids)
}

@ -728,6 +728,7 @@
return changes[0][3].includes(item.name)
})
if (item) dict = item[0]
console.log(dict)
list.value[changes[0][0]]['unit'] = dict?.value
if (changes[0][3].indexOf('-') > -1) {
changes[0][3] = changes[0][3].split('-')[0]

@ -125,7 +125,6 @@
id: props.columns?.id || 0
}).then(res => {
createMessage.success(res.message)
if (res.data) vid.value = res.data
emits('updateCol', TableColDragRef.value.getColList())
if (!b) visible.value = false
})
@ -142,9 +141,11 @@
showNumCol: checked.value
})
}
if (vid.value) Apidata.id = vid.value
editColumnSet(Object.assign(Apidata, permissionsInfo())).then((res) => {
loading.value = false
createMessage.success(res.message)
if (res.data) vid.value = res.data
emits('updateCol', TableColDragRef.value.colData)
if (!b) visible.value = false
}).catch(() => {

@ -247,6 +247,19 @@ export const formSchema: FormSchema[] = [
defaultValue: '',
colProps: { span: 12 },
},
{
field: 'isCompany',
label: '是否公司',
component: 'Switch',
defaultValue: false,
colProps: { span: 12 },
componentProps: {
checkedChildren: '是',
checkedValue: true,
unCheckedChildren: '否',
unCheckedValue: false,
}
},
{
field: 'note',
label: '备注',

@ -295,6 +295,12 @@ import { mode } from 'crypto-js'
formData.shippingSpaceType = v.shippingSpaceType
formData.bookingType = v.bookingType
formData.issuingWay = v.issuingWay
if (props.details.contractNo && !props.details.contractId) {
updateSchema([
{ field: 'contractId', show: false },
{ field: 'contractNo', show: true }
])
}
},
)
onMounted(() => {

Loading…
Cancel
Save