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