|
@@ -6,26 +6,18 @@
|
|
<h2 class="bg-left title">创建运输任务</h2>
|
|
<h2 class="bg-left title">创建运输任务</h2>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12" class="bg-right">
|
|
<el-col :span="12" class="bg-right">
|
|
- <el-button
|
|
|
|
- class="bg-bottom"
|
|
|
|
- type="primary"
|
|
|
|
- size="small"
|
|
|
|
- @click="returnsales()"
|
|
|
|
- ><img
|
|
|
|
|
|
+ <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()">
|
|
|
|
+ <img
|
|
width="6"
|
|
width="6"
|
|
height="10"
|
|
height="10"
|
|
style="vertical-align: bottom; margin-right: 3px"
|
|
style="vertical-align: bottom; margin-right: 3px"
|
|
src="../../../public/img/lujing.png"
|
|
src="../../../public/img/lujing.png"
|
|
- alt=""
|
|
|
|
- />返回</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ alt
|
|
|
|
+ />返回
|
|
|
|
+ </el-button>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-form
|
|
|
|
- ref="deptBudgetList"
|
|
|
|
- :rules="mainReportAdd"
|
|
|
|
- :model="deptBudgetList"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-form ref="deptBudgetList" :rules="mainReportAdd" :model="deptBudgetList">
|
|
<ws-info-table class="el-table">
|
|
<ws-info-table class="el-table">
|
|
<el-form-item label="任务编号" span="1" prop="taskNo" class="forlist">
|
|
<el-form-item label="任务编号" span="1" prop="taskNo" class="forlist">
|
|
<el-input
|
|
<el-input
|
|
@@ -51,11 +43,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="contractNo" label="合同编号" span="1">
|
|
<el-form-item prop="contractNo" label="合同编号" span="1">
|
|
- <el-select
|
|
|
|
- v-model="deptBudgetList.contractNo"
|
|
|
|
- placeholder="请输入合同编号"
|
|
|
|
- class="typeselect"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-select v-model="deptBudgetList.contractNo" placeholder="请输入合同编号" class="typeselect">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in contractNoList"
|
|
v-for="item in contractNoList"
|
|
:key="item.constKey"
|
|
:key="item.constKey"
|
|
@@ -80,27 +68,14 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="重量(吨)" span="1" prop="weight">
|
|
<el-form-item label="重量(吨)" span="1" prop="weight">
|
|
- <el-input
|
|
|
|
- v-model="deptBudgetList.weight"
|
|
|
|
- placeholder="请输入重量"
|
|
|
|
- maxlength="20"
|
|
|
|
- size="small"
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <el-input v-model="deptBudgetList.weight" placeholder="请输入重量" maxlength="20" size="small"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</ws-info-table>
|
|
</ws-info-table>
|
|
<ws-info-table class="el-table">
|
|
<ws-info-table class="el-table">
|
|
<div class="start-address" style="width : 36%">
|
|
<div class="start-address" style="width : 36%">
|
|
- <el-radio v-model="deptBudgetList.warehouseType" label="1"
|
|
|
|
- >常用仓库发货</el-radio
|
|
|
|
- >
|
|
|
|
- <el-radio v-model="deptBudgetList.warehouseType" label="2"
|
|
|
|
- >临时仓库发货</el-radio
|
|
|
|
- >
|
|
|
|
- <el-select
|
|
|
|
- v-model="deptBudgetList.sendWarehouse"
|
|
|
|
- placeholder="选择仓库"
|
|
|
|
- class="typeselect"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-radio v-model="deptBudgetList.warehouseType" label="1">常用仓库发货</el-radio>
|
|
|
|
+ <el-radio v-model="deptBudgetList.warehouseType" label="2">临时仓库发货</el-radio>
|
|
|
|
+ <el-select v-model="deptBudgetList.sendWarehouse" placeholder="选择仓库" class="typeselect">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in warehouseList"
|
|
v-for="item in warehouseList"
|
|
:key="item.constKey"
|
|
:key="item.constKey"
|
|
@@ -154,12 +129,7 @@
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item
|
|
|
|
- label="终到地"
|
|
|
|
- span="1"
|
|
|
|
- prop="contractNo"
|
|
|
|
- class="start-address"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-form-item label="终到地" span="1" prop="contractNo" class="start-address">
|
|
<el-cascader
|
|
<el-cascader
|
|
:options="options_"
|
|
:options="options_"
|
|
v-model="selectedOptions1"
|
|
v-model="selectedOptions1"
|
|
@@ -199,14 +169,14 @@
|
|
:key="index"
|
|
:key="index"
|
|
>
|
|
>
|
|
<div class="driver">
|
|
<div class="driver">
|
|
- <span >运输阶段{{ index + 1 }} {{ item.processNo }}</span>
|
|
|
|
|
|
+ <span>运输阶段{{ index + 1 }} {{ item.processNo }}</span>
|
|
<img
|
|
<img
|
|
width="22"
|
|
width="22"
|
|
height="22"
|
|
height="22"
|
|
class="add"
|
|
class="add"
|
|
@click="add"
|
|
@click="add"
|
|
src="../../../public/img/add.png"
|
|
src="../../../public/img/add.png"
|
|
- alt=""
|
|
|
|
|
|
+ alt
|
|
/>
|
|
/>
|
|
<img
|
|
<img
|
|
width="22"
|
|
width="22"
|
|
@@ -214,21 +184,22 @@
|
|
class="del"
|
|
class="del"
|
|
@click="del(index)"
|
|
@click="del(index)"
|
|
src="../../../public/img/del.png"
|
|
src="../../../public/img/del.png"
|
|
- alt=""
|
|
|
|
|
|
+ alt
|
|
/>
|
|
/>
|
|
- <span style="margin-left : 20px;font-size : 14px" v-if="index == deptBudgetList.tranProcessInfoList.length - 1">最终阶段</span>
|
|
|
|
|
|
+ <span
|
|
|
|
+ style="margin-left : 20px;font-size : 14px"
|
|
|
|
+ v-if="index == deptBudgetList.tranProcessInfoList.length - 1"
|
|
|
|
+ >最终阶段</span>
|
|
<el-checkbox
|
|
<el-checkbox
|
|
v-if="index == deptBudgetList.tranProcessInfoList.length - 1"
|
|
v-if="index == deptBudgetList.tranProcessInfoList.length - 1"
|
|
v-model="item.endFlag"
|
|
v-model="item.endFlag"
|
|
:label="1"
|
|
:label="1"
|
|
- ></el-checkbox
|
|
|
|
- >
|
|
|
|
|
|
+ ></el-checkbox>
|
|
<el-checkbox
|
|
<el-checkbox
|
|
v-if="index == deptBudgetList.tranProcessInfoList.length - 1"
|
|
v-if="index == deptBudgetList.tranProcessInfoList.length - 1"
|
|
v-model="item.endFlag"
|
|
v-model="item.endFlag"
|
|
:label="2"
|
|
:label="2"
|
|
- ></el-checkbox
|
|
|
|
- >
|
|
|
|
|
|
+ ></el-checkbox>
|
|
</div>
|
|
</div>
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
<el-form-item label="运输方式" span="1" prop="waterContent">
|
|
<el-form-item label="运输方式" span="1" prop="waterContent">
|
|
@@ -267,16 +238,8 @@
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- 本阶段重量 -->
|
|
<!-- 本阶段重量 -->
|
|
- <el-form-item
|
|
|
|
- label="本阶段运输重量(吨)"
|
|
|
|
- span="1"
|
|
|
|
- prop="bulkDensity"
|
|
|
|
- >
|
|
|
|
- <el-input
|
|
|
|
- v-model="deptBudgetList.weight"
|
|
|
|
- placeholder="请输入本阶段运输重量"
|
|
|
|
- size="small"
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <el-form-item label="本阶段运输重量(吨)" span="1" prop="bulkDensity">
|
|
|
|
+ <el-input v-model="item.weight" placeholder="请输入本阶段运输重量" size="small"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</ws-info-table>
|
|
</ws-info-table>
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
@@ -304,20 +267,10 @@
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="发货人" span="1" prop="bulkDensity">
|
|
<el-form-item label="发货人" span="1" prop="bulkDensity">
|
|
- <el-input
|
|
|
|
- v-model="item.sender"
|
|
|
|
- placeholder="请输入发货人"
|
|
|
|
- maxlength="20"
|
|
|
|
- size="small"
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <el-input v-model="item.sender" placeholder="请输入发货人" maxlength="20" size="small"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="发货人电话" span="1" prop="bulkDensity">
|
|
<el-form-item label="发货人电话" span="1" prop="bulkDensity">
|
|
- <el-input
|
|
|
|
- v-model="item.senderPhone"
|
|
|
|
- placeholder="请输入发货人电话"
|
|
|
|
- maxlength="20"
|
|
|
|
- size="small"
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <el-input v-model="item.senderPhone" placeholder="请输入发货人电话" maxlength="20" size="small"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</ws-info-table>
|
|
</ws-info-table>
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
@@ -345,12 +298,7 @@
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="收货人" span="1" prop="bulkDensity">
|
|
<el-form-item label="收货人" span="1" prop="bulkDensity">
|
|
- <el-input
|
|
|
|
- v-model="item.receiver"
|
|
|
|
- placeholder="请输入收货人"
|
|
|
|
- maxlength="20"
|
|
|
|
- size="small"
|
|
|
|
- ></el-input>
|
|
|
|
|
|
+ <el-input v-model="item.receiver" placeholder="请输入收货人" maxlength="20" size="small"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="收货人电话" span="1" prop="bulkDensity">
|
|
<el-form-item label="收货人电话" span="1" prop="bulkDensity">
|
|
<el-input
|
|
<el-input
|
|
@@ -365,13 +313,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
<!-- 提交 -->
|
|
<!-- 提交 -->
|
|
<div style="text-align: right; padding: 10px" class="center">
|
|
<div style="text-align: right; padding: 10px" class="center">
|
|
- <el-button
|
|
|
|
- class="bg-bottom"
|
|
|
|
- type="primary"
|
|
|
|
- size="small"
|
|
|
|
- @click="submit(deptBudgetList)"
|
|
|
|
- >提交</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button class="bg-bottom" type="primary" size="small" @click="submit(deptBudgetList)">提交</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -385,7 +327,7 @@ export default {
|
|
name: 'viewSpareMoney',
|
|
name: 'viewSpareMoney',
|
|
components: {
|
|
components: {
|
|
WsUpload,
|
|
WsUpload,
|
|
- mapDrag,
|
|
|
|
|
|
+ mapDrag
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
vesselId(val) {
|
|
vesselId(val) {
|
|
@@ -393,7 +335,7 @@ export default {
|
|
},
|
|
},
|
|
isShow(val) {
|
|
isShow(val) {
|
|
this.showType = val
|
|
this.showType = val
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
let self = this
|
|
let self = this
|
|
@@ -427,9 +369,9 @@ export default {
|
|
receiver: '',
|
|
receiver: '',
|
|
senderPhone: '',
|
|
senderPhone: '',
|
|
receiverPhone: '',
|
|
receiverPhone: '',
|
|
- endFlag: '0',
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ endFlag: '0'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
},
|
|
},
|
|
radio: '1',
|
|
radio: '1',
|
|
options_: regionData,
|
|
options_: regionData,
|
|
@@ -453,7 +395,7 @@ export default {
|
|
value1: '',
|
|
value1: '',
|
|
unitList: [],
|
|
unitList: [],
|
|
name: '',
|
|
name: '',
|
|
- age: '',
|
|
|
|
|
|
+ age: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
@@ -461,14 +403,14 @@ export default {
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- weight:function(){
|
|
|
|
- var maxStorage = 0
|
|
|
|
- for(var i =0 ; i<this.deptBudgetList.tranProcessInfoList.length;i++){
|
|
|
|
- maxStorage += Number(this.deptBudgetList.tranProcessInfoList[i].weight)
|
|
|
|
- }
|
|
|
|
- return maxStorage
|
|
|
|
- },
|
|
|
|
- warehouse: function () {
|
|
|
|
|
|
+ // weight:function(){
|
|
|
|
+ // var maxStorage = 0
|
|
|
|
+ // for(var i =0 ; i<this.deptBudgetList.tranProcessInfoList.length;i++){
|
|
|
|
+ // maxStorage += Number(this.deptBudgetList.tranProcessInfoList[i].weight)
|
|
|
|
+ // }
|
|
|
|
+ // return maxStorage
|
|
|
|
+ // },
|
|
|
|
+ warehouse: function() {
|
|
if (
|
|
if (
|
|
this.deptBudgetList.taskType == '销售出库' ||
|
|
this.deptBudgetList.taskType == '销售出库' ||
|
|
this.deptBudgetList.taskType == '贸易服务出库' ||
|
|
this.deptBudgetList.taskType == '贸易服务出库' ||
|
|
@@ -478,7 +420,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 获取当前年月日
|
|
// 获取当前年月日
|
|
@@ -503,7 +445,7 @@ export default {
|
|
if (i > 90 && i < 97) continue
|
|
if (i > 90 && i < 97) continue
|
|
arr.push(String.fromCharCode(i))
|
|
arr.push(String.fromCharCode(i))
|
|
}
|
|
}
|
|
- arr.sort(function () {
|
|
|
|
|
|
+ arr.sort(function() {
|
|
return Math.random() - 0.5
|
|
return Math.random() - 0.5
|
|
})
|
|
})
|
|
arr.length = 4
|
|
arr.length = 4
|
|
@@ -515,35 +457,35 @@ export default {
|
|
// 货名
|
|
// 货名
|
|
packList({ constId: 'CON2' })
|
|
packList({ constId: 'CON2' })
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.goodnameList = response
|
|
this.goodnameList = response
|
|
})
|
|
})
|
|
// 任务类型
|
|
// 任务类型
|
|
packList({ constId: 'TRAN3' })
|
|
packList({ constId: 'TRAN3' })
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.taskType = response
|
|
this.taskType = response
|
|
})
|
|
})
|
|
// 运输方式
|
|
// 运输方式
|
|
packList({ constId: 'TRAN6' })
|
|
packList({ constId: 'TRAN6' })
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.taskwayList = response
|
|
this.taskwayList = response
|
|
})
|
|
})
|
|
|
|
|
|
getwarehousename({
|
|
getwarehousename({
|
|
compId: this.compId,
|
|
compId: this.compId,
|
|
- warehouseType: this.deptBudgetList.warehouseType,
|
|
|
|
|
|
+ warehouseType: this.deptBudgetList.warehouseType
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.warehouseList = response
|
|
this.warehouseList = response
|
|
})
|
|
})
|
|
xialaNo({
|
|
xialaNo({
|
|
- compId: this.compId,
|
|
|
|
|
|
+ compId: this.compId
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.contractNoList = response
|
|
this.contractNoList = response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -576,7 +518,7 @@ export default {
|
|
receiver: '',
|
|
receiver: '',
|
|
senderPhone: '',
|
|
senderPhone: '',
|
|
receiverPhone: '',
|
|
receiverPhone: '',
|
|
- endFlag: '0',
|
|
|
|
|
|
+ endFlag: '0'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
del(index) {
|
|
del(index) {
|
|
@@ -625,8 +567,9 @@ export default {
|
|
selecttaskwayList(e, index) {
|
|
selecttaskwayList(e, index) {
|
|
for (var i = 0; i < this.taskwayList.length; i++) {
|
|
for (var i = 0; i < this.taskwayList.length; i++) {
|
|
if (this.taskwayList[i].constValue == e) {
|
|
if (this.taskwayList[i].constValue == e) {
|
|
- this.deptBudgetList.tranProcessInfoList[index].tranTypeKey =
|
|
|
|
- this.taskwayList[i].constKey
|
|
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[
|
|
|
|
+ index
|
|
|
|
+ ].tranTypeKey = this.taskwayList[i].constKey
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -639,13 +582,13 @@ export default {
|
|
},
|
|
},
|
|
onChange(files) {
|
|
onChange(files) {
|
|
this.fileNum = files
|
|
this.fileNum = files
|
|
- this.$refs.upload.handleSaveBill().then((res) => {
|
|
|
|
|
|
+ this.$refs.upload.handleSaveBill().then(res => {
|
|
console.log(files)
|
|
console.log(files)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
submit() {
|
|
submit() {
|
|
- this.$refs.deptBudgetList.validate((valid) => {
|
|
|
|
|
|
+ this.$refs.deptBudgetList.validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
for (
|
|
for (
|
|
var i = 0;
|
|
var i = 0;
|
|
@@ -654,12 +597,102 @@ export default {
|
|
) {
|
|
) {
|
|
this.deptBudgetList.tranProcessInfoList[i].processNo =
|
|
this.deptBudgetList.tranProcessInfoList[i].processNo =
|
|
this.deptBudgetList.taskNo + (i + 1)
|
|
this.deptBudgetList.taskNo + (i + 1)
|
|
|
|
+ if (
|
|
|
|
+ new Date(
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart
|
|
|
|
+ ).getTime() >
|
|
|
|
+ new Date(
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[i].deliveryDateEnd
|
|
|
|
+ ).getTime()
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '发货日期不能大于最晚到货日期',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'发货日期不能为空',
|
|
|
|
+ type:'warning'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateEnd) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'最晚到货日期不能为空',
|
|
|
|
+ type:'warning'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].weight) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '重量不能为空',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].sender) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '发货人不能为空',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].senderPhone) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '发货人电话不能为空',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].receiver) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '收货人不能为空',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].receiverPhone) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '收货人电话不能为空',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ !this.deptBudgetList.tranProcessInfoList[i].receiveDetailedAddress
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '收获详细地址不能为空',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ !this.deptBudgetList.tranProcessInfoList[i].sendDetailedAddress
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '发货详细地址不能为空',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].contractNo) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'合同编号不能为空',
|
|
|
|
+ type:'warning'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
+
|
|
this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
this.deptBudgetList.tranType = this.checkList.toString()
|
|
this.deptBudgetList.tranType = this.checkList.toString()
|
|
addtrantask(this.deptBudgetList)
|
|
addtrantask(this.deptBudgetList)
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
|
|
+ .then(response => {
|
|
this.$message.success('添加成功')
|
|
this.$message.success('添加成功')
|
|
this.deptBudgetList = {
|
|
this.deptBudgetList = {
|
|
taskNo: '',
|
|
taskNo: '',
|
|
@@ -688,8 +721,11 @@ export default {
|
|
receiver: '',
|
|
receiver: '',
|
|
senderPhone: '',
|
|
senderPhone: '',
|
|
receiverPhone: '',
|
|
receiverPhone: '',
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ contractNo:'',
|
|
|
|
+ receiveWarehouse:''
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
this.$router.push({ path: 'tranManagementTransport' })
|
|
this.$router.push({ path: 'tranManagementTransport' })
|
|
})
|
|
})
|
|
@@ -701,8 +737,8 @@ export default {
|
|
},
|
|
},
|
|
resetForm(deptBudgetList) {
|
|
resetForm(deptBudgetList) {
|
|
this.$refs[deptBudgetList].resetFields()
|
|
this.$refs[deptBudgetList].resetFields()
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -738,15 +774,14 @@ export default {
|
|
font-size: 0;
|
|
font-size: 0;
|
|
float: right;
|
|
float: right;
|
|
margin-left: 25px;
|
|
margin-left: 25px;
|
|
-
|
|
|
|
}
|
|
}
|
|
.check-box {
|
|
.check-box {
|
|
float: left;
|
|
float: left;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
- color: #8890B1;
|
|
|
|
|
|
+ color: #8890b1;
|
|
}
|
|
}
|
|
-.el-checkbox__label{
|
|
|
|
- color: #8890B1;
|
|
|
|
|
|
+.el-checkbox__label {
|
|
|
|
+ color: #8890b1;
|
|
}
|
|
}
|
|
.el-form {
|
|
.el-form {
|
|
padding: 0 10%;
|
|
padding: 0 10%;
|
|
@@ -805,7 +840,7 @@ export default {
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
margin-left: 20px;
|
|
margin-left: 20px;
|
|
- color: #5473E8;
|
|
|
|
|
|
+ color: #5473e8;
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
/deep/.nei {
|
|
/deep/.nei {
|