Compare commits

...

2 Commits

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

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

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

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

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

Loading…
Cancel
Save