|
@@ -19,41 +19,68 @@
|
|
|
标记的条目提交后不可修改。
|
|
|
</p>
|
|
|
</div>
|
|
|
- <!--基本信息-->
|
|
|
+ <!--基本信息-->
|
|
|
<ws-info-table>
|
|
|
<!--合同编号-->
|
|
|
- <ws-form-item label="合同编号" span="1" prop="contractNo">
|
|
|
- <div class="unchanged">
|
|
|
- {{ deptBudgetList.contractNo }}
|
|
|
- </div>
|
|
|
- <span class="unchangeable">*</span>
|
|
|
+ <ws-form-item label="合同编号" span="1" prop="contractNo" class="readonly">
|
|
|
+ <ws-input v-model="deptBudgetList.contractNo" placeholder="请输入合同编号" maxlength="50" size="small"
|
|
|
+ :rules="ruleDeptBudget" />
|
|
|
</ws-form-item>
|
|
|
- <!--结算方式-->
|
|
|
- <ws-form-item label="结算方式" span="1" prop="contractNo">
|
|
|
- <ws-input v-model="deptBudgetList.settlementMethod" placeholder="请输入结算方式" maxlength="100" size="small" />
|
|
|
- </ws-form-item>
|
|
|
+ <!--运输方式-->
|
|
|
+ <ws-form-item label="运输方式" span="1" prop="shippingType">
|
|
|
+ <ws-input v-model="deptBudgetList.shippingType" placeholder="请输入运输方式" maxlength="100" size="small" />
|
|
|
+ </ws-form-item>
|
|
|
+
|
|
|
<!--买方-->
|
|
|
- <ws-form-item label="买方" span="1" prop="contractNo">
|
|
|
- <div class="unchanged">
|
|
|
- {{ deptBudgetList.buyer }}
|
|
|
- </div>
|
|
|
- <span class="unchangeable">*</span>
|
|
|
+ <ws-form-item label="买方" span="1" prop="buyer" class="readonly">
|
|
|
+ <el-select v-model="deptBudgetList.buyer" placeholder="请选择买方名称" class="typeselect" filterable clearable
|
|
|
+ @change="buyerSelect">
|
|
|
+ <el-option v-for="(item,index) in customerinfo" :key="index" :label="item.customerName"
|
|
|
+ :value="item.customerName" />
|
|
|
+ </el-select>
|
|
|
</ws-form-item>
|
|
|
- <!--溢短装(%)-->
|
|
|
- <ws-form-item label="溢短装(%)" span="1" prop="contractNo">
|
|
|
- <ws-input v-model="deptBudgetList.overShort" placeholder="请输入溢短装(%)" maxlength="100" size="small" />
|
|
|
+ <!--结算方式-->
|
|
|
+ <ws-form-item label="结算方式" span="1" prop="settlementMethod">
|
|
|
+ <ws-input v-model="deptBudgetList.settlementMethod" placeholder="请输入结算方式" maxlength="120" size="small" />
|
|
|
</ws-form-item>
|
|
|
- <!--卖方-->
|
|
|
- <ws-form-item label="卖方" span="1" prop="contractNo">
|
|
|
- <div class="unchanged">
|
|
|
- {{ deptBudgetList.seller }}
|
|
|
- </div>
|
|
|
- <span class="unchangeable">*</span>
|
|
|
+ <!--卖方-->
|
|
|
+ <ws-form-item label="卖方" span="1" prop="seller" class="readonly">
|
|
|
+ <el-autocomplete class="inline-input" v-model="deptBudgetList.seller" :fetch-suggestions="querySearch2"
|
|
|
+ placeholder="请输入卖方名称" @select="handleSelect"></el-autocomplete>
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="交货方式" span="1" prop="seller" class="readonly">
|
|
|
+ <el-radio v-model="deptBudgetList.deliverType" label="1">我方送货</el-radio>
|
|
|
+ <el-radio v-model="deptBudgetList.deliverType" label="2">对方自提</el-radio>
|
|
|
+ <!-- <el-radio v-model="deptBudgetList.deliverType" v-if="deptBudgetList.priceType == '随行就市'" disabled label="1">
|
|
|
+ 我方自提</el-radio>
|
|
|
+ <el-radio v-model="deptBudgetList.deliverType" v-else label="1">我方自提</el-radio>
|
|
|
+ <el-radio v-model="deptBudgetList.deliverType" v-if="deptBudgetList.priceType == '随行就市'" disabled label="2">
|
|
|
+ 对方送货</el-radio>
|
|
|
+ <el-radio v-model="deptBudgetList.deliverType" v-else label="2">对方送货</el-radio> -->
|
|
|
+ </ws-form-item>
|
|
|
+ <!--买方电话-->
|
|
|
+ <ws-form-item label="买方电话" span="1" prop="contractNo">
|
|
|
+ <el-autocomplete class="inline-input" v-model="deptBudgetList.buyerPhone" :fetch-suggestions="querySearch3"
|
|
|
+ placeholder="请输入买方电话" @select="handleSelect"></el-autocomplete>
|
|
|
</ws-form-item>
|
|
|
- <!--验收方式-->
|
|
|
+ <!--包装方式-->
|
|
|
+ <ws-form-item label="包装方式" span="1" prop="packingMethod">
|
|
|
+ <ws-select v-model="deptBudgetList.packingMethod" placeholder="" class="typeselect" :value="value1"
|
|
|
+ @change="selectpacking">
|
|
|
+ <ws-option v-for="item in packtypeList" :key="item.constKey" :label="item.constValue"
|
|
|
+ :value="item.constValue" />
|
|
|
+ </ws-select>
|
|
|
+ </ws-form-item>
|
|
|
+ <!--卖方电话-->
|
|
|
+ <ws-form-item label="卖方电话" span="1" prop="sellerPhone">
|
|
|
+ <!-- <ws-input v-model="deptBudgetList.sellerPhone" placeholder="请输入卖方电话" maxlength="100" size="small" /> -->
|
|
|
+ <el-autocomplete class="inline-input" v-model="deptBudgetList.sellerPhone" :fetch-suggestions="querySearch4"
|
|
|
+ placeholder="请输入卖方电话" @select="handleSelect"></el-autocomplete>
|
|
|
+ </ws-form-item>
|
|
|
+ <!--验收方式-->
|
|
|
<ws-form-item label="验收方式" span="1" prop="acceptanceMethod">
|
|
|
- <el-select v-model="deptBudgetList.acceptanceMethod" placeholder="请选择验收方式" style="width: 100%" clearable filterable
|
|
|
- @change="selectunitList">
|
|
|
+ <el-select v-model="deptBudgetList.acceptanceMethod" placeholder="请选择验收方式" style="width: 100%" clearable
|
|
|
+ filterable @change="selectunitList">
|
|
|
<el-option v-for="(item, index) in unitList" :key="item.constValue" :label="item.constValue"
|
|
|
:value="item.constValue">
|
|
|
<span class="unit-left" style="float: left">
|
|
@@ -89,90 +116,82 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- <!--买方电话-->
|
|
|
- <ws-form-item label="买方电话" span="1" prop="contractNo">
|
|
|
- <ws-input v-model="deptBudgetList.buyerPhone" placeholder="请输入买方电话" maxlength="100" size="small" />
|
|
|
+ <!--重量(吨)-->
|
|
|
+ <ws-form-item label="重量(吨)" span="1" prop="weight">
|
|
|
+ <ws-input @input="weightchange" v-model="deptBudgetList.weight" placeholder="请输入重量(吨)" maxlength="100"
|
|
|
+ size="small" />
|
|
|
</ws-form-item>
|
|
|
- <!--交货日期(起)-->
|
|
|
- <ws-form-item label="交货日期(起)" span="1" prop="deliveryDateStart">
|
|
|
- <ws-date-picker v-model="deptBudgetList.deliveryDateStart" type="date" placeholder="请选择交货日期(起)"
|
|
|
- value-format="yyyy-MM-dd" />
|
|
|
- </ws-form-item>
|
|
|
+ <!--交货日期(起)-->
|
|
|
+ <ws-form-item label="交货日期(起)" span="1" prop="deliveryDateStart">
|
|
|
+ <ws-date-picker v-model="deptBudgetList.deliveryDateStart" type="date" placeholder="请选择交货日期(起)"
|
|
|
+ value-format="yyyy-MM-dd" />
|
|
|
</ws-form-item>
|
|
|
- <!--卖方电话-->
|
|
|
- <ws-form-item label="卖方电话" span="1" prop="contractNo">
|
|
|
- <ws-input v-model="deptBudgetList.sellerPhone" placeholder="请输入卖房电话" maxlength="100" size="small" />
|
|
|
+ <!--溢短装(%)-->
|
|
|
+ <ws-form-item label="溢短装(%)" span="1" prop="overShort">
|
|
|
+ <ws-input v-model="deptBudgetList.overShort" placeholder="请输入溢短装比例(%)" maxlength="100" size="small" />
|
|
|
</ws-form-item>
|
|
|
- <!--交货日期(止)-->
|
|
|
+ <!--交货日期(止)-->
|
|
|
<ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
|
|
|
<ws-date-picker v-model="deptBudgetList.deliveryDateEnd" type="date" placeholder="请选择交货日期(止)"
|
|
|
value-format="yyyy-MM-dd" />
|
|
|
</ws-form-item>
|
|
|
-
|
|
|
- <!--重量(吨)-->
|
|
|
- <ws-form-item label="重量(吨)" span="1" prop="contractNo">
|
|
|
- <ws-input v-model="deptBudgetList.weight" placeholder="请输入重量(吨)" maxlength="100" size="small" />
|
|
|
+ <ws-form-item label="货源所在地区" span="1" prop="sourceGoods">
|
|
|
+ <!-- <el-cascader
|
|
|
+ :options="options_"
|
|
|
+ v-model="selectedOptions"
|
|
|
+ clearable
|
|
|
+ size="large"
|
|
|
+ placeholder="请选择货源所在地区"
|
|
|
+ style="width: 200%"
|
|
|
+ @change="handleChange"
|
|
|
+ /> -->
|
|
|
+ <el-button @click="mapInputClick('source')" class='address-btn'>
|
|
|
+ {{newSelectedOptions}}
|
|
|
+ </el-button>
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="货源详细地址" span="1" prop="sourceGoods">
|
|
|
+ <ws-input v-model="deptBudgetList.sourceGoods" placeholder="请输入货源详细地址" maxlength="20" size="small" />
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="交货所在地区" span="1" prop="placeDelivery">
|
|
|
+ <el-button @click="mapInputClick('deliveryProv')" class="address-btn">
|
|
|
+ {{ newSelectedOptions1 }}
|
|
|
+ </el-button>
|
|
|
</ws-form-item>
|
|
|
-
|
|
|
- <!--签订日期-->
|
|
|
- <ws-form-item label="签订日期" span="1" prop="signingDate">
|
|
|
- <ws-date-picker v-model="deptBudgetList.signingDate" type="date" placeholder="请选择合同签订日期"
|
|
|
- value-format="yyyy-MM-dd" />
|
|
|
- </ws-form-item>
|
|
|
- <!-- 交货地所在地区 -->
|
|
|
- <ws-form-item label="交货地所在地区" span="1" prop="placeDelivery">
|
|
|
- <!-- <el-cascader
|
|
|
- :options="options_"
|
|
|
- v-model="selectedOptions1"
|
|
|
- clearable
|
|
|
- size="large"
|
|
|
- placeholder="请选择交货地所在地区"
|
|
|
- style="width: 200%"
|
|
|
- @change="handleChange1"
|
|
|
- /> -->
|
|
|
- <el-button @click="mapInputClick('deliveryProv')" class="address-btn">
|
|
|
- {{ newSelectedOptions1 }}
|
|
|
- </el-button>
|
|
|
+ <ws-form-item label="交货详细地址" span="1" prop="placeDelivery">
|
|
|
+ <ws-input v-model="deptBudgetList.placeDelivery" placeholder="请输入交货详细地址" maxlength="20" size="small" />
|
|
|
</ws-form-item>
|
|
|
- <!-- 交货地详细地址 -->
|
|
|
- <ws-form-item label="交货地详细地址" span="1" prop="placeDelivery">
|
|
|
- <ws-input v-model="deptBudgetList.placeDelivery" maxlength="100" placeholder="请输入交货地详细地址" size="small" />
|
|
|
+ <ws-form-item label="代储费(元/吨·天)" span="1" prop="storageFee">
|
|
|
+ <ws-input v-model="deptBudgetList.storageFee" placeholder="请输入仓储费" maxlength="20" size="small" />
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item label="代收费(元/吨)" span="1" prop="agencyCharge">
|
|
|
- <ws-input v-model="deptBudgetList.agencyCharge" placeholder="请输入仓储费" maxlength="20" size="small" />
|
|
|
+ <!--合同单价(元/吨)-->
|
|
|
+ <ws-form-item class="readonly" label="合同单价(元/吨)" span="1" prop="unitContractPrice">
|
|
|
+ <ws-input @input="pricechange" v-model="deptBudgetList.unitContractPrice" placeholder="请输入合同单价"
|
|
|
+ maxlength="100" size="small" />
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="代储费起算重量" span="1" prop="storageFeeWeight">
|
|
|
+ <ws-input v-model="deptBudgetList.storageFeeWeight" placeholder="请输入代储费起算重量" maxlength="20" size="small" />
|
|
|
</ws-form-item>
|
|
|
-
|
|
|
- <!-- 最终实际交易量(吨) -->
|
|
|
- <ws-form-item label="最终实际交易量(吨)" span="1" prop="totalContractPrice">
|
|
|
- <ws-input v-model="deptBudgetList.finalTradingVolume" maxlength="100" placeholder="请输入最终实际交易量"
|
|
|
- size="small" />
|
|
|
+ <!--合同总价-->
|
|
|
+ <ws-form-item label="合同总价" span="1" prop="totalContractPrice">
|
|
|
+ <ws-input v-model="deptBudgetList.totalContractPrice" placeholder="请输入合同总价" maxlength="100" size="small" />
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="代储费起算日期" span="1" prop="storageFeeStartdate">
|
|
|
+ <ws-date-picker v-model="deptBudgetList.storageFeeStartdate" type="date" placeholder="请选择代储费起算日期"
|
|
|
+ value-format="yyyy-MM-dd" />
|
|
|
</ws-form-item>
|
|
|
-
|
|
|
- <ws-form-item label="临时仓库负责人" span="1" prop="packingMethod">
|
|
|
- <el-select v-model="deptBudgetList.personPhone" multiple placeholder="请选择临时仓库负责人" filterable clearable
|
|
|
- @change="selectstaff">
|
|
|
- <el-option v-for="item in options" :key="item.value" :label="item.staffName"
|
|
|
- :value="item.staffMobilePhone" />
|
|
|
- </el-select>
|
|
|
+ <!--签订日期-->
|
|
|
+ <ws-form-item label="签订日期" span="1" prop="signingDate">
|
|
|
+ <ws-date-picker v-model="deptBudgetList.signingDate" type="date" placeholder="请选择合同签订日期"
|
|
|
+ value-format="yyyy-MM-dd" />
|
|
|
</ws-form-item>
|
|
|
-
|
|
|
- <!--客户送粮上限(元/吨)-->
|
|
|
- <ws-form-item label="客户送粮上限(吨)" span="1" prop="grainDelivery">
|
|
|
- <ws-input v-model="deptBudgetList.grainDelivery" placeholder="请输入客户送粮上限,如2000" maxlength="100"
|
|
|
+ <ws-form-item label="代储费预计终止日期" span="1" prop="storageFeeEnddate">
|
|
|
+ <ws-date-picker v-model="deptBudgetList.storageFeeEnddate" type="date" placeholder="请选择代储费预计终止日期"
|
|
|
+ value-format="yyyy-MM-dd" />
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="最终实际成交量(吨)" span="1" prop="finalTradingVolume">
|
|
|
+ <ws-input v-model="deptBudgetList.finalTradingVolume" placeholder="请输入最终实际成交量" maxlength="100"
|
|
|
size="small" />
|
|
|
</ws-form-item>
|
|
|
-
|
|
|
</ws-info-table>
|
|
|
</ws-form>
|
|
|
</div>
|
|
@@ -323,7 +342,8 @@
|
|
|
editxiala,
|
|
|
delxiala,
|
|
|
getRelationContractNo,
|
|
|
- getstafffind
|
|
|
+ getstafffind,
|
|
|
+ getcustomerinfo
|
|
|
} from '@/model/contarct/index'
|
|
|
import { getstaff, } from '@/model/warehouse/index'
|
|
|
export default {
|
|
@@ -351,6 +371,7 @@
|
|
|
dialogApproveFormVisible: false,
|
|
|
// 船舶类型
|
|
|
monetaryKey: null,
|
|
|
+ customerinfo: [],
|
|
|
// 表格显示数据
|
|
|
tableDate: [],
|
|
|
// 是否显示
|
|
@@ -368,6 +389,7 @@
|
|
|
name: 'qqqq',
|
|
|
address: 'errrtt'
|
|
|
}],
|
|
|
+ value1: '袋装',
|
|
|
pickerBeginDateBefore: {
|
|
|
disabledDate: (time) => {
|
|
|
return time.getTime() > Date.now()
|
|
@@ -377,7 +399,6 @@
|
|
|
uploadSuccess: {},
|
|
|
selectgrade: {},
|
|
|
goodnameList: {},
|
|
|
- selectpackingMethod: {},
|
|
|
unitList: {},
|
|
|
packtypeList: [],
|
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
@@ -436,6 +457,39 @@
|
|
|
}
|
|
|
}
|
|
|
console.log(this.deptBudgetList)
|
|
|
+ },
|
|
|
+ buyerSelect(item) {
|
|
|
+ // console.log(item)
|
|
|
+ for (let i = 0; i < this.customerinfo.length; i++) {
|
|
|
+ console.log(this.customerinfo[i].customerName, item)
|
|
|
+ if (this.customerinfo[i].customerName == item) {
|
|
|
+ this.deptBudgetList.buyerPhone = this.customerinfo[i].customerPhone
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ weightchange(e) {
|
|
|
+ this.deptBudgetList.finalTradingVolume = e
|
|
|
+ },
|
|
|
+ pricechange(e) {
|
|
|
+ this.deptBudgetList.totalContractPrice = e * this.deptBudgetList.weight
|
|
|
+ },
|
|
|
+ selectpackingMethod(e) {
|
|
|
+ for (var i = 0; i < this.packtypeList.length; i++) {
|
|
|
+ if (this.packtypeList[i].constValue == e) {
|
|
|
+ this.deptBudgetList.acceptanceMethodKey =
|
|
|
+ this.packtypeList[i].constKey
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ selectpacking(e) {
|
|
|
+ for (var i = 0; i < this.packtypeList.length; i++) {
|
|
|
+ if (this.packtypeList[i].constValue == e) {
|
|
|
+ this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleSelect(item) {
|
|
|
+ console.log(item);
|
|
|
},
|
|
|
feedbackLeaderChange(e){
|
|
|
this.deptBudgetList.feedbackLeader = this.feedbackLeaders[e].staffName
|
|
@@ -481,7 +535,7 @@
|
|
|
returnsales() {
|
|
|
this.deptBudgetList = {}
|
|
|
this.$router.push({
|
|
|
- path: 'collectionContract'
|
|
|
+ path: 'storageContract'
|
|
|
})
|
|
|
},
|
|
|
handleChange(value) {
|
|
@@ -536,8 +590,6 @@
|
|
|
|
|
|
this.selectedOptions1 = tmp1
|
|
|
this.deptBudgetList = response
|
|
|
- var name=[]
|
|
|
- this.deptBudgetList.personPhone=this.deptBudgetList.personPhone.split(',')
|
|
|
// var arr=this.deptBudgetList.personCharge.split(',')
|
|
|
// for (let i = 0; i < arr.length; i++) {
|
|
|
// if(arr[i].split(' ')[0]!=''){
|
|
@@ -583,6 +635,26 @@
|
|
|
.then((response) => {
|
|
|
this.gradeList = response
|
|
|
})
|
|
|
+ getcustomerinfo({
|
|
|
+ compId: localStorage.getItem('ws-pf_compId'),
|
|
|
+ }).toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ var arr = []
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
+ if (response[i].customerType == '个人客户') {
|
|
|
+ arr.push({
|
|
|
+ customerName: response[i].customerName,
|
|
|
+ customerPhone: response[i].customerPhone
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ arr.push({
|
|
|
+ customerName: response[i].compName,
|
|
|
+ customerPhone: response[i].customerPhone
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.customerinfo = arr
|
|
|
+ })
|
|
|
// 双章
|
|
|
packList({
|
|
|
constId: 'CON4'
|
|
@@ -653,6 +725,30 @@
|
|
|
this.pleaseChoose = ''
|
|
|
})
|
|
|
},
|
|
|
+ querySearch1(queryString, cb) {
|
|
|
+ var restaurants1 = this.restaurants1;
|
|
|
+ var results = queryString ? restaurants1.filter(this.createFilter(queryString)) : restaurants1;
|
|
|
+ // 调用 callback 返回建议列表的数据
|
|
|
+ cb(results);
|
|
|
+ },
|
|
|
+ querySearch2(queryString, cb) {
|
|
|
+ var restaurants2 = this.restaurants2;
|
|
|
+ var results = queryString ? restaurants2.filter(this.createFilter(queryString)) : restaurants2;
|
|
|
+ // 调用 callback 返回建议列表的数据
|
|
|
+ cb(results);
|
|
|
+ },
|
|
|
+ querySearch3(queryString, cb) {
|
|
|
+ var restaurants3 = this.restaurants3;
|
|
|
+ var results = queryString ? restaurants3.filter(this.createFilter(queryString)) : restaurants3;
|
|
|
+ // 调用 callback 返回建议列表的数据
|
|
|
+ cb(results);
|
|
|
+ },
|
|
|
+ querySearch4(queryString, cb) {
|
|
|
+ var restaurants4 = this.restaurants4;
|
|
|
+ var results = queryString ? restaurants4.filter(this.createFilter(queryString)) : restaurants4;
|
|
|
+ // 调用 callback 返回建议列表的数据
|
|
|
+ cb(results);
|
|
|
+ },
|
|
|
saveClick(item, index) {
|
|
|
// console.log(item)
|
|
|
|
|
@@ -722,7 +818,23 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ if (!this.deptBudgetList.shippingType) {
|
|
|
+ this.$message({
|
|
|
+ message: '运输方式不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.shippingType.length < 1 ||
|
|
|
+ this.deptBudgetList.shippingType.length > 20
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '运输方式长度不符合要求,请输入1到20个字符之内!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
if (!this.deptBudgetList.buyer) {
|
|
|
this.$message({
|
|
|
message: '买方名称不能为空',
|
|
@@ -835,31 +947,46 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.deptBudgetList.agencyCharge) {
|
|
|
+ if (!this.deptBudgetList.storageFee) {
|
|
|
this.$message({
|
|
|
- message: '代收费不能为空!',
|
|
|
+ message: '代储费不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.deptBudgetList.grainDelivery) {
|
|
|
+ if (!this.deptBudgetList.storageFeeWeight) {
|
|
|
this.$message({
|
|
|
- message: '客户送粮上限不能为空!',
|
|
|
+ message: '代储费起算重量不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (
|
|
|
- isNaN(this.deptBudgetList.agencyCharge) ||
|
|
|
- (String(this.deptBudgetList.agencyCharge).indexOf('.') != -1 &&
|
|
|
- String(this.deptBudgetList.agencyCharge).length -
|
|
|
- (String(this.deptBudgetList.agencyCharge).indexOf('.') + 1) >
|
|
|
+ isNaN(this.deptBudgetList.storageFee) ||
|
|
|
+ (String(this.deptBudgetList.storageFee).indexOf('.') != -1 &&
|
|
|
+ String(this.deptBudgetList.storageFee).length -
|
|
|
+ (String(this.deptBudgetList.storageFee).indexOf('.') + 1) >
|
|
|
2) ||
|
|
|
- this.deptBudgetList.agencyCharge < 0 ||
|
|
|
- this.deptBudgetList.agencyCharge > 1000
|
|
|
+ this.deptBudgetList.storageFee < 0 ||
|
|
|
+ this.deptBudgetList.storageFee > 1000
|
|
|
) {
|
|
|
this.$message({
|
|
|
- message: '代收费填写错误!',
|
|
|
+ message: '代储费填写错误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ isNaN(this.deptBudgetList.storageFeeWeight) ||
|
|
|
+ (String(this.deptBudgetList.storageFeeWeight).indexOf('.') != -1 &&
|
|
|
+ String(this.deptBudgetList.storageFeeWeight).length -
|
|
|
+ (String(this.deptBudgetList.storageFeeWeight).indexOf('.') + 1) >
|
|
|
+ 3) ||
|
|
|
+ this.deptBudgetList.storageFeeWeight < 0 ||
|
|
|
+ this.deptBudgetList.storageFeeWeight > 200000
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '代储费起算重量填写错误!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
@@ -900,6 +1027,51 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ if (!this.deptBudgetList.unitContractPrice) {
|
|
|
+ this.$message({
|
|
|
+ message: '请输入合同单价!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ isNaN(this.deptBudgetList.unitContractPrice) ||
|
|
|
+ (String(this.deptBudgetList.unitContractPrice).indexOf('.') != -1 &&
|
|
|
+ String(this.deptBudgetList.unitContractPrice).length -
|
|
|
+ (String(this.deptBudgetList.unitContractPrice).indexOf('.') + 1) >
|
|
|
+ 2) ||
|
|
|
+ this.deptBudgetList.unitContractPrice <= 0 ||
|
|
|
+ this.deptBudgetList.unitContractPrice > 10000
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '合同单价输入有误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.deptBudgetList.totalContractPrice) {
|
|
|
+ this.$message({
|
|
|
+ message: '请输入合同总价!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ isNaN(this.deptBudgetList.totalContractPrice) ||
|
|
|
+ (String(this.deptBudgetList.totalContractPrice).indexOf('.') != -1 &&
|
|
|
+ String(this.deptBudgetList.totalContractPrice).length -
|
|
|
+ (String(this.deptBudgetList.totalContractPrice).indexOf('.') +
|
|
|
+ 1) >
|
|
|
+ 2) ||
|
|
|
+ this.deptBudgetList.totalContractPrice <= 0 ||
|
|
|
+ this.deptBudgetList.totalContractPrice > 1000000000
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '合同总价输入有误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
//时间
|
|
|
if (
|
|
|
new Date(this.deptBudgetList.deliveryDateStart).getTime() >
|
|
@@ -911,6 +1083,20 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ if (!this.newSelectedOptions) {
|
|
|
+ this.$message({
|
|
|
+ message: '请选择货源所在地区!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.deptBudgetList.sourceGoods) {
|
|
|
+ this.$message({
|
|
|
+ message: '请输入货源详细地址!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
if (!this.newSelectedOptions1) {
|
|
|
this.$message({
|
|
|
message: '请选择交货所在地区!',
|
|
@@ -1236,7 +1422,7 @@
|
|
|
this.$message.success('编辑成功')
|
|
|
this.deptBudgetList = {}
|
|
|
this.$router.push({
|
|
|
- path: 'collectionContract'
|
|
|
+ path: 'storageContract'
|
|
|
})
|
|
|
})
|
|
|
} else {
|