|
@@ -71,7 +71,11 @@
|
|
|
<a-row :gutter="24">
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<a-form-item label="发票附件">
|
|
<a-form-item label="发票附件">
|
|
|
- <span class="white">{{ formatValue(selectedRow.invoiceamount) }}</span>
|
|
|
|
|
|
|
+ <span class="white"
|
|
|
|
|
+ v-if="selectedRow.invoiceamount"></span>
|
|
|
|
|
+ <span class="white"
|
|
|
|
|
+ v-else
|
|
|
|
|
+ @click="previewImg">{{ selectedRow.invoiceamount }}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
@@ -90,6 +94,13 @@
|
|
|
</fieldset>
|
|
</fieldset>
|
|
|
</a-form>
|
|
</a-form>
|
|
|
</a-modal>
|
|
</a-modal>
|
|
|
|
|
+ <a-modal :visible="previewVisible"
|
|
|
|
|
+ :footer="null"
|
|
|
|
|
+ @cancel="cancelImg">
|
|
|
|
|
+ <img alt="预览附件"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ :src="previewImage" />
|
|
|
|
|
+ </a-modal>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
@@ -108,6 +119,7 @@ import Long from 'long';
|
|
|
import { somePriceControl } from '@/views/manage/business-review/components/setup';
|
|
import { somePriceControl } from '@/views/manage/business-review/components/setup';
|
|
|
import { financeControl } from '@/views/manage/finance-review/components/setup';
|
|
import { financeControl } from '@/views/manage/finance-review/components/setup';
|
|
|
import { isShowContractCheck } from '@/views/manage/inventory-review/setup';
|
|
import { isShowContractCheck } from '@/views/manage/inventory-review/setup';
|
|
|
|
|
+import { handlePreviewImg } from '@/common/setup/upload';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'finance_review_invoice_audit',
|
|
name: 'finance_review_invoice_audit',
|
|
@@ -122,7 +134,8 @@ export default defineComponent({
|
|
|
const { visible, cancel } = closeModal('finance_review_invoice_audit');
|
|
const { visible, cancel } = closeModal('finance_review_invoice_audit');
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
const maskClosableFlag = ref<boolean>(false);
|
|
const maskClosableFlag = ref<boolean>(false);
|
|
|
-
|
|
|
|
|
|
|
+ // 预览附件
|
|
|
|
|
+ const { previewVisible, previewImage, cancelImg, previewImg } = handlePreviewImg();
|
|
|
function submit() {
|
|
function submit() {
|
|
|
loading.value = true;
|
|
loading.value = true;
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -188,6 +201,10 @@ export default defineComponent({
|
|
|
pass,
|
|
pass,
|
|
|
refuse,
|
|
refuse,
|
|
|
isShowContractCheck,
|
|
isShowContractCheck,
|
|
|
|
|
+ previewVisible,
|
|
|
|
|
+ previewImage,
|
|
|
|
|
+ cancelImg,
|
|
|
|
|
+ previewImg,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|