|
@@ -547,6 +547,48 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
varietyClick(row) {
|
|
|
+ if(row.salePlanType == '期货'){
|
|
|
+ if (
|
|
|
+ row.basisPrice > 10000 ||
|
|
|
+ row.basisPrice < 1 ||
|
|
|
+ (String(row.basisPrice).indexOf(
|
|
|
+ '.'
|
|
|
+ ) != -1 &&
|
|
|
+ String(row.basisPrice).length -
|
|
|
+ (String(row.basisPrice).indexOf(
|
|
|
+ '.'
|
|
|
+ ) +
|
|
|
+ 1) >
|
|
|
+ 2)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '基差输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(row.salePlanType == '现货'){
|
|
|
+ if (
|
|
|
+ row.unitPrice > 100000 ||
|
|
|
+ row.unitPrice < 1 ||
|
|
|
+ (String(row.unitPrice).indexOf(
|
|
|
+ '.'
|
|
|
+ ) != -1 &&
|
|
|
+ String(row.unitPrice).length -
|
|
|
+ (String(row.unitPrice).indexOf(
|
|
|
+ '.'
|
|
|
+ ) +
|
|
|
+ 1) >
|
|
|
+ 2)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '单价输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
if (row.salePlanType == '期货') {
|
|
|
this.$confirm(`确定要修改基差?`, {
|
|
|
confirmButtonText: '确定',
|