Pārlūkot izejas kodu

工程收款修改

pengyh 1 gadu atpakaļ
vecāks
revīzija
d108ac3665

+ 4 - 3
src/views/auxiliaryFittings/projectAttachmentManage/detail.vue

@@ -167,8 +167,8 @@
 					</el-table-column>
 					<el-table-column prop="price" label="收款金额" align="center"></el-table-column>
 					<el-table-column prop="" align="center" label="收款凭证" >
-						<template slot-scope="scope">
-							<el-image :src="scope.row.urlPrc" fit="scale-down"></el-image>
+						<template slot-scope="scope" v-if="scope.row.urlPrc">
+							<el-image style="width: 80px;" :src="scope.row.urlPrc" fit="scale-down" :preview-src-list="[scope.row.urlPrc]"></el-image>
 						</template>
 					</el-table-column>
 					<el-table-column prop="remark" label="备注" align="center"></el-table-column>
@@ -222,7 +222,8 @@
 				},
 				rules1: {
 					price: [
-						{ required: true, message: '请输入收款金额', trigger: 'blur' }
+						{ required: true, message: '请输入收款金额', trigger: 'blur' },
+						{ pattern:/^[1-9]\d*$/, message: '请输入大于0的正整数', trigger: 'blur' }
 					],
 					fileUrl: [
 						{ required: true, message: '请上传收款凭证', trigger: 'change' }

+ 4 - 3
src/views/auxiliaryFittings/projectAuxiliaryManage/detail.vue

@@ -167,8 +167,8 @@
 					</el-table-column>
 					<el-table-column prop="price" label="收款金额" align="center"></el-table-column>
 					<el-table-column prop="" align="center" label="收款凭证" >
-						<template slot-scope="scope">
-							<el-image :src="scope.row.urlPrc" fit="scale-down"></el-image>
+						<template slot-scope="scope" v-if="scope.row.urlPrc">
+							<el-image style="width: 80px;" :src="scope.row.urlPrc" fit="scale-down" :preview-src-list="[scope.row.urlPrc]"></el-image>
 						</template>
 					</el-table-column>
 					<el-table-column prop="remark" label="备注" align="center"></el-table-column>
@@ -222,7 +222,8 @@
 				},
 				rules1: {
 					price: [
-						{ required: true, message: '请输入收款金额', trigger: 'blur' }
+						{ required: true, message: '请输入收款金额', trigger: 'blur' },
+						{ pattern:/^[1-9]\d*$/, message: '请输入大于0的正整数', trigger: 'blur' }
 					],
 					fileUrl: [
 						{ required: true, message: '请上传收款凭证', trigger: 'change' }

+ 2 - 2
src/views/auxiliaryFittings/salesManagement/components/attachmentSalesOrderDetail.vue

@@ -320,8 +320,8 @@
 					</el-table-column>
 					<el-table-column prop="price" label="收款金额" align="center"></el-table-column>
 					<el-table-column prop="" align="center" label="收款凭证" >
-						<template slot-scope="scope">
-							<el-image :src="scope.row.urlPrc" fit="scale-down"></el-image>
+						<template slot-scope="scope" v-if="scope.row.urlPrc">
+							<el-image style="width: 80px;" :src="scope.row.urlPrc" fit="scale-down" :preview-src-list="[scope.row.urlPrc]"></el-image>
 						</template>
 					</el-table-column>
 					<el-table-column prop="remark" label="备注" align="center"></el-table-column>

+ 2 - 2
src/views/auxiliaryFittings/salesManagement/components/auxiliarySalesOrderDetail.vue

@@ -345,8 +345,8 @@
 					</el-table-column>
 					<el-table-column prop="price" label="收款金额" align="center"></el-table-column>
 					<el-table-column prop="" align="center" label="收款凭证" >
-						<template slot-scope="scope">
-							<el-image :src="scope.row.urlPrc" fit="scale-down"></el-image>
+						<template slot-scope="scope" v-if="scope.row.urlPrc">
+							<el-image style="width: 80px;" :src="scope.row.urlPrc" fit="scale-down" :preview-src-list="[scope.row.urlPrc]"></el-image>
 						</template>
 					</el-table-column>
 					<el-table-column prop="remark" label="备注" align="center"></el-table-column>