|
@@ -30,7 +30,12 @@
|
|
</p>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="center">
|
|
<div class="center">
|
|
- <ws-form ref="deptBudgetList" :model="deptBudgetList">
|
|
|
|
|
|
+ <ws-form
|
|
|
|
+ ref="deptBudgetList"
|
|
|
|
+ :model="deptBudgetList"
|
|
|
|
+ v-for="(item, index) in deptBudgetList"
|
|
|
|
+ :key="index"
|
|
|
|
+ >
|
|
<!--基本信息-->
|
|
<!--基本信息-->
|
|
|
|
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
@@ -42,11 +47,10 @@
|
|
class="readonly"
|
|
class="readonly"
|
|
>
|
|
>
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.priceListNo"
|
|
|
|
|
|
+ v-model="item.priceListNo"
|
|
placeholder="请输入点价单编号"
|
|
placeholder="请输入点价单编号"
|
|
maxlength="20"
|
|
maxlength="20"
|
|
size="small"
|
|
size="small"
|
|
- :rules="ruleDeptBudget"
|
|
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
@@ -62,18 +66,13 @@
|
|
"
|
|
"
|
|
multiple
|
|
multiple
|
|
:limit="3"
|
|
:limit="3"
|
|
- :file-list="fileList"
|
|
|
|
>
|
|
>
|
|
<el-button size="small" type="primary">附件</el-button>
|
|
<el-button size="small" type="primary">附件</el-button>
|
|
</el-upload>
|
|
</el-upload>
|
|
<div class="shangchuan">
|
|
<div class="shangchuan">
|
|
<template>
|
|
<template>
|
|
- <span v-if="deptBudgetList.enclosureTypeFlag == '0'"
|
|
|
|
- >未上传</span
|
|
|
|
- >
|
|
|
|
- <span v-if="deptBudgetList.enclosureTypeFlag == '1'"
|
|
|
|
- >已上传</span
|
|
|
|
- >
|
|
|
|
|
|
+ <span v-if="item.enclosureTypeFlag == '0'">未上传</span>
|
|
|
|
+ <span v-if="item.enclosureTypeFlag == '1'">已上传</span>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
@@ -86,7 +85,7 @@
|
|
class="readonly"
|
|
class="readonly"
|
|
>
|
|
>
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.varietyContractDirection"
|
|
|
|
|
|
+ v-model="item.varietyContractDirection"
|
|
placeholder="请输入品种合约及方向"
|
|
placeholder="请输入品种合约及方向"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
@@ -96,7 +95,7 @@
|
|
<!--买方联络人-->
|
|
<!--买方联络人-->
|
|
<ws-form-item label="买方联络人" span="1" prop="buyer">
|
|
<ws-form-item label="买方联络人" span="1" prop="buyer">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.buyer"
|
|
|
|
|
|
+ v-model="item.buyer"
|
|
placeholder="请输入买方联络人"
|
|
placeholder="请输入买方联络人"
|
|
maxlength="120"
|
|
maxlength="120"
|
|
size="small"
|
|
size="small"
|
|
@@ -111,14 +110,14 @@
|
|
>
|
|
>
|
|
<ws-input
|
|
<ws-input
|
|
@input="transactionsNumberHandChange"
|
|
@input="transactionsNumberHandChange"
|
|
- v-model="deptBudgetList.transactionsNumberHand"
|
|
|
|
|
|
+ v-model="item.transactionsNumberHand"
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/> 手 即
|
|
/> 手 即
|
|
<ws-input
|
|
<ws-input
|
|
readonly="readonly"
|
|
readonly="readonly"
|
|
- v-model="deptBudgetList.transactionsNumber"
|
|
|
|
|
|
+ v-model="item.transactionsNumber"
|
|
placeholder="自动计算"
|
|
placeholder="自动计算"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
@@ -128,7 +127,7 @@
|
|
<!--买方联络人电话-->
|
|
<!--买方联络人电话-->
|
|
<ws-form-item label="买方联络人电话" span="1" prop="buyerPhone">
|
|
<ws-form-item label="买方联络人电话" span="1" prop="buyerPhone">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.buyerPhone"
|
|
|
|
|
|
+ v-model="item.buyerPhone"
|
|
placeholder="请输入买方联络人电话"
|
|
placeholder="请输入买方联络人电话"
|
|
maxlength="120"
|
|
maxlength="120"
|
|
size="small"
|
|
size="small"
|
|
@@ -136,9 +135,13 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--成交价格(元/吨)-->
|
|
<!--成交价格(元/吨)-->
|
|
- <ws-form-item label="成交价格(元/吨)" span="1" prop="transactionPrice">
|
|
|
|
|
|
+ <ws-form-item
|
|
|
|
+ label="成交价格(元/吨)"
|
|
|
|
+ span="1"
|
|
|
|
+ prop="transactionPrice"
|
|
|
|
+ >
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.transactionPrice"
|
|
|
|
|
|
+ v-model="item.transactionPrice"
|
|
placeholder="请输入成交价格"
|
|
placeholder="请输入成交价格"
|
|
maxlength="120"
|
|
maxlength="120"
|
|
size="small"
|
|
size="small"
|
|
@@ -148,7 +151,7 @@
|
|
<!--卖方联络人-->
|
|
<!--卖方联络人-->
|
|
<ws-form-item label="卖方联络人" span="1" prop="seller">
|
|
<ws-form-item label="卖方联络人" span="1" prop="seller">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.seller"
|
|
|
|
|
|
+ v-model="item.seller"
|
|
placeholder="请输入卖方联络人"
|
|
placeholder="请输入卖方联络人"
|
|
maxlength="120"
|
|
maxlength="120"
|
|
size="small"
|
|
size="small"
|
|
@@ -158,7 +161,7 @@
|
|
<!--成交日期-->
|
|
<!--成交日期-->
|
|
<ws-form-item label="成交日期" span="1" prop="transactionDate">
|
|
<ws-form-item label="成交日期" span="1" prop="transactionDate">
|
|
<ws-date-picker
|
|
<ws-date-picker
|
|
- v-model="deptBudgetList.transactionDate"
|
|
|
|
|
|
+ v-model="item.transactionDate"
|
|
type="date"
|
|
type="date"
|
|
placeholder="请选择成交日期"
|
|
placeholder="请选择成交日期"
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
@@ -168,7 +171,7 @@
|
|
<!--卖方联络人电话-->
|
|
<!--卖方联络人电话-->
|
|
<ws-form-item label="卖方联络人电话" span="1" prop="sellerPhone">
|
|
<ws-form-item label="卖方联络人电话" span="1" prop="sellerPhone">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.sellerPhone"
|
|
|
|
|
|
+ v-model="item.sellerPhone"
|
|
placeholder="请输入卖方联络人电话"
|
|
placeholder="请输入卖方联络人电话"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
@@ -178,7 +181,7 @@
|
|
<!--备注-->
|
|
<!--备注-->
|
|
<ws-form-item label="备注" span="1" prop="remarks">
|
|
<ws-form-item label="备注" span="1" prop="remarks">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.remarks"
|
|
|
|
|
|
+ v-model="item.remarks"
|
|
placeholder="请输入备注,不超过200字"
|
|
placeholder="请输入备注,不超过200字"
|
|
maxlength="120"
|
|
maxlength="120"
|
|
size="small"
|
|
size="small"
|
|
@@ -199,17 +202,12 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-// import { getVesselOne } from '@/model/procurement/basic'
|
|
|
|
-// import { dayjs } from 'base-core-lib'
|
|
|
|
import {
|
|
import {
|
|
- addList,
|
|
|
|
- xiala,
|
|
|
|
- addxiala,
|
|
|
|
- editxiala,
|
|
|
|
- delxiala,
|
|
|
|
|
|
+ editPriceConfirmationSheet,
|
|
|
|
+ selectConfirmationSheet,
|
|
} from '@/model/contarct/index'
|
|
} from '@/model/contarct/index'
|
|
import WsUpload from '@/components/WsUpload'
|
|
import WsUpload from '@/components/WsUpload'
|
|
-import { regionData, CodeToText } from 'element-china-area-data'
|
|
|
|
|
|
+import { regionData } from 'element-china-area-data'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'viewSpareMoney',
|
|
name: 'viewSpareMoney',
|
|
@@ -218,7 +216,7 @@ export default {
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
vesselId(val) {
|
|
vesselId(val) {
|
|
- this.getVesselData()
|
|
|
|
|
|
+ this.loaddata()
|
|
},
|
|
},
|
|
isShow(val) {
|
|
isShow(val) {
|
|
this.showType = val
|
|
this.showType = val
|
|
@@ -242,50 +240,25 @@ export default {
|
|
selectedOptions1: [],
|
|
selectedOptions1: [],
|
|
// 提交类型
|
|
// 提交类型
|
|
submitType: true,
|
|
submitType: true,
|
|
- tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
|
|
|
|
- trainingMethods: {},
|
|
|
|
- packtypeList: [],
|
|
|
|
- mainReportAdd: {},
|
|
|
|
- appendixIdsAdd: '',
|
|
|
|
size: 10,
|
|
size: 10,
|
|
-
|
|
|
|
- compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
- enclosureTypeFlag: '0',
|
|
|
|
unitList: [],
|
|
unitList: [],
|
|
- goodnameList: [],
|
|
|
|
- gradeList: [],
|
|
|
|
- ChapterTwoList: [],
|
|
|
|
- addressUrls: [],
|
|
|
|
- deptBudgetList: {
|
|
|
|
- deliverType: '1',
|
|
|
|
- finalTradingVolume: 0,
|
|
|
|
- contractGoodsInfo: {
|
|
|
|
- goodsName: '',
|
|
|
|
- },
|
|
|
|
- contractProcessInfo: {},
|
|
|
|
- addressUrl: '',
|
|
|
|
- },
|
|
|
|
- pickerBeginDateBefore: {
|
|
|
|
- disabledDate: (time) => {
|
|
|
|
- return time.getTime() > Date.now()
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- ruleDeptBudget: {
|
|
|
|
- contractNo: [
|
|
|
|
- { required: true, message: '请输入活动名称', trigger: 'blur' },
|
|
|
|
- {
|
|
|
|
- min: 6,
|
|
|
|
- max: 20,
|
|
|
|
- message: '长度在 6 到 20 个字符',
|
|
|
|
- trigger: 'blur',
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ priceConfirmationSheet: {
|
|
|
|
+ contractNo: 'JYNCG20210423-21',
|
|
|
|
+ contractType: '2',
|
|
|
|
+ enclosureTypeFlag: '0',
|
|
|
|
+
|
|
|
|
+ priceListNo: '',
|
|
},
|
|
},
|
|
- selectIntendedShip: {},
|
|
|
|
- interviewTypeList: {},
|
|
|
|
- fileList: [],
|
|
|
|
|
|
+ addressUrls: [],
|
|
|
|
+ deptBudgetList: {},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ activated() {
|
|
|
|
+ this.loaddata()
|
|
|
|
+ this.editPriceConfirmationSheet()
|
|
|
|
+ this.showType = this.isShow
|
|
|
|
+ this.showType = this.isShow
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
close(index) {
|
|
close(index) {
|
|
this.addressUrls.splice(index, 1)
|
|
this.addressUrls.splice(index, 1)
|
|
@@ -315,217 +288,241 @@ export default {
|
|
console.log(files)
|
|
console.log(files)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- //计算成交数量(吨)
|
|
|
|
- transactionsNumberHandChange(e) {
|
|
|
|
- this.deptBudgetList.transactionsNumber = e * 10
|
|
|
|
- },
|
|
|
|
- getUnitList() {
|
|
|
|
- xiala({
|
|
|
|
- compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
- constCode: 'TYPEYAN',
|
|
|
|
|
|
+ //数据回显
|
|
|
|
+ loaddata() {
|
|
|
|
+ // 数据
|
|
|
|
+ selectConfirmationSheet({
|
|
|
|
+ contractNo: this.$route.query.contractNo,
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
|
|
+ console.log('fasduh')
|
|
this.unitList = response
|
|
this.unitList = response
|
|
- let currItem
|
|
|
|
|
|
+ this.deptBudgetList = response
|
|
this.unitList.forEach((item, index, arr) => {
|
|
this.unitList.forEach((item, index, arr) => {
|
|
item.flag = 'delete'
|
|
item.flag = 'delete'
|
|
- if (this.vModel == item.constKey) {
|
|
|
|
- currItem = item
|
|
|
|
- }
|
|
|
|
})
|
|
})
|
|
- //
|
|
|
|
- if (currItem) {
|
|
|
|
- this.selectContract(currItem.constValue)
|
|
|
|
- }
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ //计算成交数量(吨)
|
|
|
|
+ transactionsNumberHandChange(e) {
|
|
|
|
+ this.deptBudgetList.transactionsNumber = e * 10
|
|
|
|
+ },
|
|
submit() {
|
|
submit() {
|
|
- if (!this.deptBudgetList.priceListNo) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '点价单编号不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.priceListNo.length < 1 ||
|
|
|
|
- this.deptBudgetList.priceListNo.length > 20
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '点价单编号输入错误!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.deptBudgetList.varietyContractDirection) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '品种合约及方向不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.varietyContractDirection.length < 1 ||
|
|
|
|
- this.deptBudgetList.varietyContractDirection.length > 20
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '品种合约及方向输入错误!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.deptBudgetList.buyer) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '买方联络人不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.buyer.length < 2 ||
|
|
|
|
- this.deptBudgetList.buyer.length > 20
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '买方联络人姓名输入错误!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.deptBudgetList.buyerPhone) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '买方联络人电话不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.buyerPhone.length < 7 ||
|
|
|
|
- this.deptBudgetList.buyerPhone.length > 20
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '买方联络人电话输入错误!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (isNaN(this.deptBudgetList.buyerPhone)) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '卖方联络人电话输入有误!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.deptBudgetList.seller) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '卖方联络人不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.seller.length < 2 ||
|
|
|
|
- this.deptBudgetList.seller.length > 20
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '卖方联络人姓名输入错误!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ for (var i = 0; i < this.deptBudgetList.length; i++) {
|
|
|
|
+ if (!this.deptBudgetList[i].priceListNo) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '点价单编号不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ this.deptBudgetList[i].priceListNo.length < 1 ||
|
|
|
|
+ this.deptBudgetList[i].priceListNo.length > 20
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '点价单编号输入错误!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList[i].varietyContractDirection) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '品种合约及方向不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ this.deptBudgetList[i].varietyContractDirection.length < 1 ||
|
|
|
|
+ this.deptBudgetList[i].varietyContractDirection.length > 20
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '品种合约及方向输入错误!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList[i].buyer) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '买方联络人不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ this.deptBudgetList[i].buyer.length < 2 ||
|
|
|
|
+ this.deptBudgetList[i].buyer.length > 20
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '买方联络人姓名输入错误!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList[i].buyerPhone) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '买方联络人电话不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ this.deptBudgetList[i].buyerPhone.length < 7 ||
|
|
|
|
+ this.deptBudgetList[i].buyerPhone.length > 20
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '买方联络人电话输入错误!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (isNaN(this.deptBudgetList[i].buyerPhone)) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '卖方联络人电话输入有误!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList[i].seller) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '卖方联络人不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ this.deptBudgetList[i].seller.length < 2 ||
|
|
|
|
+ this.deptBudgetList[i].seller.length > 20
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '卖方联络人姓名输入错误!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
|
|
- if (!this.deptBudgetList.sellerPhone) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '卖方联络人电话不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (isNaN(this.deptBudgetList.sellerPhone)) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '卖方联络人电话输入有误!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.sellerPhone.length < 7 ||
|
|
|
|
- this.deptBudgetList.sellerPhone.length > 20
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '卖方联络人电话输入有误!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.deptBudgetList.transactionsNumberHand) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '成交数量不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ if (!this.deptBudgetList[i].sellerPhone) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '卖方联络人电话不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (isNaN(this.deptBudgetList[i].sellerPhone)) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '卖方联络人电话输入有误!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ this.deptBudgetList[i].sellerPhone.length < 7 ||
|
|
|
|
+ this.deptBudgetList[i].sellerPhone.length > 20
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '卖方联络人电话输入有误!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList[i].transactionsNumberHand) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '成交数量不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
|
|
- if (
|
|
|
|
- isNaN(this.deptBudgetList.transactionsNumberHand) ||
|
|
|
|
- (String(this.deptBudgetList.transactionsNumberHand).indexOf('.') !=
|
|
|
|
- -1 &&
|
|
|
|
- String(this.deptBudgetList.transactionsNumberHand).length -
|
|
|
|
- (String(this.deptBudgetList.transactionsNumberHand).indexOf('.') +
|
|
|
|
- 1) >
|
|
|
|
- 2) ||
|
|
|
|
- this.deptBudgetList.transactionsNumberHand < 1 ||
|
|
|
|
- this.deptBudgetList.transactionsNumberHand > 10000
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '输入成交数量有误!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.transactionPrice < 0 ||
|
|
|
|
- this.deptBudgetList.transactionPrice > 100000000 ||
|
|
|
|
- (String(this.deptBudgetList.transactionPrice).indexOf('.') != -1 &&
|
|
|
|
- String(this.deptBudgetList.transactionPrice).length -
|
|
|
|
- (String(this.deptBudgetList.transactionPrice).indexOf('.') + 1) >
|
|
|
|
- 2)
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '成交价格输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.deptBudgetList.transactionPrice) {
|
|
|
|
- if (isNaN(this.deptBudgetList.transactionPrice)) {
|
|
|
|
|
|
+ if (
|
|
|
|
+ isNaN(this.deptBudgetList[i].transactionsNumberHand) ||
|
|
|
|
+ (String(this.deptBudgetList[i].transactionsNumberHand).indexOf('.') !=
|
|
|
|
+ -1 &&
|
|
|
|
+ String(this.deptBudgetList[i].transactionsNumberHand).length -
|
|
|
|
+ (String(this.deptBudgetList[i].transactionsNumberHand).indexOf(
|
|
|
|
+ '.'
|
|
|
|
+ ) +
|
|
|
|
+ 1) >
|
|
|
|
+ 2) ||
|
|
|
|
+ this.deptBudgetList[i].transactionsNumberHand < 1 ||
|
|
|
|
+ this.deptBudgetList[i].transactionsNumberHand > 10000
|
|
|
|
+ ) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '成交价格输入错误!',
|
|
|
|
|
|
+ message: '输入成交数量有误!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ this.deptBudgetList[i].transactionPrice < 0 ||
|
|
|
|
+ this.deptBudgetList[i].transactionPrice > 100000000 ||
|
|
|
|
+ (String(this.deptBudgetList[i].transactionPrice).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList[i].transactionPrice).length -
|
|
|
|
+ (String(this.deptBudgetList[i].transactionPrice).indexOf('.') +
|
|
|
|
+ 1) >
|
|
|
|
+ 2)
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '成交价格输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (this.deptBudgetList[i].transactionPrice) {
|
|
|
|
+ if (isNaN(this.deptBudgetList[i].transactionPrice)) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '成交价格输入错误!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList[i].transactionPrice) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '成交价格不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList[i].transactionDate) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '成交日期不能为空!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.transactionPrice) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '成交价格不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
|
|
+
|
|
|
|
+ this.deptBudgetList.contractType = '2'
|
|
|
|
+ this.deptBudgetList.contractNo = this.contractNo
|
|
|
|
+ this.deptBudgetList.enclosureTypeFlag = '0'
|
|
|
|
+ this.priceConfirmationSheet.deptBudgetList = this.deptBudgetList
|
|
|
|
+ this.$confirm(`确定提交确认单信息`, {
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ editPriceConfirmationSheet(this.priceConfirmationSheet)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$message.success('编辑成功')
|
|
|
|
+ this.priceConfirmationSheet = {}
|
|
|
|
+ this.$router.push({ path: 'priceConfirmationSheet' })
|
|
|
|
+ })
|
|
})
|
|
})
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.deptBudgetList.transactionDate) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '成交日期不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
|
|
+ .catch(() => {
|
|
|
|
+ return false
|
|
})
|
|
})
|
|
- return
|
|
|
|
- }
|
|
|
|
},
|
|
},
|
|
resetForm(deptBudgetList) {
|
|
resetForm(deptBudgetList) {
|
|
this.$refs[deptBudgetList].resetFields()
|
|
this.$refs[deptBudgetList].resetFields()
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ // editPriceConfirmationSheet() {
|
|
|
|
+ // editPriceConfirmationSheet({})
|
|
|
|
+ // },
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|