|
@@ -268,6 +268,15 @@
|
|
|
value-format="yyyy-MM-dd"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
+ <!--单价 -->
|
|
|
+ <ws-form-item label="单价(元/吨):" span="1" v-if="deptBudgetList.priceType!=null&&deptBudgetList.priceType=='随行就市'" prop="contractPrice">
|
|
|
+ <ws-input
|
|
|
+ v-model="item.contractPrice"
|
|
|
+ placeholder="请输入单价"
|
|
|
+ maxlength="20"
|
|
|
+ size="small"
|
|
|
+ />
|
|
|
+ </ws-form-item>
|
|
|
<div v-show="item.signStatus == '未签合同'" class="signStatus">
|
|
|
{{ item.signStatus }}
|
|
|
</div>
|
|
@@ -694,38 +703,43 @@ export default {
|
|
|
for(let i = 0 ; i < this.freightspace.length ; i++){
|
|
|
if(this.freightspace[i].shipType == '集装箱'){
|
|
|
if (!this.freightspace[i].unloadNetWeight) {
|
|
|
- this.$message({
|
|
|
- message: '卸船净重不能为空!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- (this.freightspace[i].unloadNetWeight &&
|
|
|
- String(this.freightspace[i].unloadNetWeight).indexOf('.') != -1 &&
|
|
|
- String(this.freightspace[i].unloadNetWeight).length -
|
|
|
- (String(this.freightspace[i].unloadNetWeight).indexOf('.') + 1) >
|
|
|
- 2) ||
|
|
|
- this.freightspace[i].unloadNetWeight > 10000 ||
|
|
|
- this.freightspace[i].unloadNetWeight < 0
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '卸船净重输入错误',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.freightspace[i].unloadingDate) {
|
|
|
- this.$message({
|
|
|
- message: '卸船日期不能为空!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
+ this.$message({
|
|
|
+ message: '卸船净重不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ (this.freightspace[i].unloadNetWeight &&
|
|
|
+ String(this.freightspace[i].unloadNetWeight).indexOf('.') != -1 &&
|
|
|
+ String(this.freightspace[i].unloadNetWeight).length -
|
|
|
+ (String(this.freightspace[i].unloadNetWeight).indexOf('.') + 1) >
|
|
|
+ 2) ||
|
|
|
+ this.freightspace[i].unloadNetWeight > 10000 ||
|
|
|
+ this.freightspace[i].unloadNetWeight < 0
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '卸船净重输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.freightspace[i].unloadingDate) {
|
|
|
+ this.$message({
|
|
|
+ message: '卸船日期不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.deptBudgetList.priceType!=null&&this.deptBudgetList.priceType=='随行就市'&&!this.freightspace[i].contractPrice) {
|
|
|
+ this.$message({
|
|
|
+ message: '单价不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
this.$confirm(`提交成功后装船信息不可修改,是否确定提交?`, {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|