|
|
@ -49,7 +49,13 @@
|
|
|
|
<img src="../../../assets/svg/infoclient/shangxia.svg" class="SvgImg" />
|
|
|
|
<img src="../../../assets/svg/infoclient/shangxia.svg" class="SvgImg" />
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</a-tooltip>
|
|
|
|
</a-tooltip>
|
|
|
|
<!-- <span>{{ getFieldsValue().auditStatusText }}</span> -->
|
|
|
|
<Divider type="vertical" />
|
|
|
|
|
|
|
|
<span class="auditStatusText" :class="RauditClass()">
|
|
|
|
|
|
|
|
<span class="iconfont icon-yiwancheng2" v-if="auditStatusText == '审核通过'"></span>
|
|
|
|
|
|
|
|
<span class="iconfont icon-weiwancheng" v-if="auditStatusText == '驳回'"></span>
|
|
|
|
|
|
|
|
<span class="iconfont icon-time" v-if="auditStatusText == '待审批'"></span>
|
|
|
|
|
|
|
|
<span>{{ auditStatusText }}</span>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="ds-detail-box sea-export-detail">
|
|
|
|
<div class="ds-detail-box sea-export-detail">
|
|
|
|
<div :style="{ display: 'flex' }">
|
|
|
|
<div :style="{ display: 'flex' }">
|
|
|
@ -188,6 +194,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { ref, computed, unref, watch, onMounted, watchEffect } from 'vue'
|
|
|
|
import { ref, computed, unref, watch, onMounted, watchEffect } from 'vue'
|
|
|
|
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
import { BasicModal, useModalInner } from '/@/components/Modal'
|
|
|
|
import { BasicModal, useModalInner } from '/@/components/Modal'
|
|
|
|
import { BasicForm, useForm } from '/@/components/Form/index'
|
|
|
|
import { BasicForm, useForm } from '/@/components/Form/index'
|
|
|
|
import { formSchema, formSchema2, Tablecolumns } from './columns'
|
|
|
|
import { formSchema, formSchema2, Tablecolumns } from './columns'
|
|
|
@ -283,7 +290,20 @@
|
|
|
|
schemas: formSchema,
|
|
|
|
schemas: formSchema,
|
|
|
|
showActionButtonGroup: false,
|
|
|
|
showActionButtonGroup: false,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
function RauditClass() {
|
|
|
|
|
|
|
|
let RData = ''
|
|
|
|
|
|
|
|
switch (auditStatusText.value) {
|
|
|
|
|
|
|
|
case '审核通过':
|
|
|
|
|
|
|
|
RData = 'active'
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
case '驳回':
|
|
|
|
|
|
|
|
RData = 'rejected'
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return RData
|
|
|
|
|
|
|
|
}
|
|
|
|
const linkageForm = (e) => {
|
|
|
|
const linkageForm = (e) => {
|
|
|
|
formSchema.forEach((item) => {
|
|
|
|
formSchema.forEach((item) => {
|
|
|
|
if (item.field == e.schema.field) {
|
|
|
|
if (item.field == e.schema.field) {
|
|
|
@ -412,6 +432,8 @@
|
|
|
|
note: '',
|
|
|
|
note: '',
|
|
|
|
createTime: '',
|
|
|
|
createTime: '',
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
const auditStatusText = ref('')
|
|
|
|
|
|
|
|
|
|
|
|
async function getData(type) {
|
|
|
|
async function getData(type) {
|
|
|
|
list.value.splice(0)
|
|
|
|
list.value.splice(0)
|
|
|
|
const res: API.DataResult = await getCodeGoodsTypeInfo({ id: unref(rowId) })
|
|
|
|
const res: API.DataResult = await getCodeGoodsTypeInfo({ id: unref(rowId) })
|
|
|
@ -439,6 +461,7 @@
|
|
|
|
await setFieldsValue({
|
|
|
|
await setFieldsValue({
|
|
|
|
...res.data,
|
|
|
|
...res.data,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
auditStatusText.value = res.data.auditStatusText
|
|
|
|
let Arr: any = []
|
|
|
|
let Arr: any = []
|
|
|
|
await GetClientSourceDetailSelectList({ id: res.data.sourceId }).then((res) => {
|
|
|
|
await GetClientSourceDetailSelectList({ id: res.data.sourceId }).then((res) => {
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
res.data.forEach((item) => {
|
|
|
@ -549,6 +572,7 @@
|
|
|
|
rowId.value = ''
|
|
|
|
rowId.value = ''
|
|
|
|
activeKey.value = '2'
|
|
|
|
activeKey.value = '2'
|
|
|
|
await setFieldsValue({})
|
|
|
|
await setFieldsValue({})
|
|
|
|
|
|
|
|
auditStatusText.value = ''
|
|
|
|
activeKey.value = '1'
|
|
|
|
activeKey.value = '1'
|
|
|
|
await setFieldsValue1({})
|
|
|
|
await setFieldsValue1({})
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -689,6 +713,7 @@
|
|
|
|
...getFieldsValue(),
|
|
|
|
...getFieldsValue(),
|
|
|
|
id: res.data,
|
|
|
|
id: res.data,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
auditStatusText.value = getFieldsValue().auditStatusText
|
|
|
|
}
|
|
|
|
}
|
|
|
|
getData(false)
|
|
|
|
getData(false)
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
@ -714,6 +739,8 @@
|
|
|
|
async function SubmitAudit() {
|
|
|
|
async function SubmitAudit() {
|
|
|
|
if (rowId.value) {
|
|
|
|
if (rowId.value) {
|
|
|
|
const auditStatus = getFieldsValue().auditStatus
|
|
|
|
const auditStatus = getFieldsValue().auditStatus
|
|
|
|
|
|
|
|
console.log(getFieldsValue())
|
|
|
|
|
|
|
|
|
|
|
|
if (auditStatus == -1 || auditStatus == 2) {
|
|
|
|
if (auditStatus == -1 || auditStatus == 2) {
|
|
|
|
let ApiData: any = { ids: [rowId.value] }
|
|
|
|
let ApiData: any = { ids: [rowId.value] }
|
|
|
|
let res = await ApiSubmitAudit(ApiData)
|
|
|
|
let res = await ApiSubmitAudit(ApiData)
|
|
|
@ -753,6 +780,7 @@
|
|
|
|
await setFieldsValue({
|
|
|
|
await setFieldsValue({
|
|
|
|
...res.data,
|
|
|
|
...res.data,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
auditStatusText.value = res.data.auditStatusText
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----------------------发票抬头表格-----------------------------
|
|
|
|
// ----------------------发票抬头表格-----------------------------
|
|
|
@ -889,6 +917,17 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
|
|
|
.auditStatusText {
|
|
|
|
|
|
|
|
color: #333333;
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
|
|
|
color: #17a6a3;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
&.rejected {
|
|
|
|
|
|
|
|
color: red;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
line-height: 14px;
|
|
|
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
|
|
|
}
|
|
|
|
.infoclientBox {
|
|
|
|
.infoclientBox {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
background: rgba(245, 249, 252, 1);
|
|
|
|
background: rgba(245, 249, 252, 1);
|
|
|
|