|
@@ -6,7 +6,12 @@
|
|
<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()">
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ class="bg-bottom"
|
|
|
|
+ type="primary"
|
|
|
|
+ size="small"
|
|
|
|
+ @click="returnsales()"
|
|
|
|
+ >
|
|
<img
|
|
<img
|
|
width="6"
|
|
width="6"
|
|
height="10"
|
|
height="10"
|
|
@@ -17,7 +22,11 @@
|
|
</el-button>
|
|
</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
|
|
@@ -70,32 +79,29 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="重量(吨)" span="1" prop="weight">
|
|
<el-form-item label="重量(吨)" span="1" prop="weight">
|
|
<el-input
|
|
<el-input
|
|
- @input='weightchange'
|
|
|
|
|
|
+ @input="weightchange"
|
|
v-model="deptBudgetList.weight"
|
|
v-model="deptBudgetList.weight"
|
|
placeholder="请输入重量"
|
|
placeholder="请输入重量"
|
|
maxlength="20"
|
|
maxlength="20"
|
|
size="small"
|
|
size="small"
|
|
></el-input>
|
|
></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%">
|
|
|
|
- <el-radio-group @change='warehouseTypechange' v-model="deptBudgetList.warehouseType">
|
|
|
|
- <el-radio label="1"
|
|
|
|
- >常用仓库发货</el-radio
|
|
|
|
- >
|
|
|
|
- <el-radio label="2"
|
|
|
|
- >临时仓库发货</el-radio
|
|
|
|
|
|
+ <div class="start-address" style="width: 36%">
|
|
|
|
+ <el-radio-group
|
|
|
|
+ @change="warehouseTypechange"
|
|
|
|
+ v-model="deptBudgetList.warehouseType"
|
|
>
|
|
>
|
|
|
|
+ <el-radio label="1">常用仓库发货</el-radio>
|
|
|
|
+ <el-radio label="2">临时仓库发货</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
<el-select
|
|
<el-select
|
|
- @change='sendWarehousechange'
|
|
|
|
|
|
+ @change="sendWarehousechange"
|
|
v-model="deptBudgetList.sendWarehouse"
|
|
v-model="deptBudgetList.sendWarehouse"
|
|
placeholder="选择仓库"
|
|
placeholder="选择仓库"
|
|
class="typeselect"
|
|
class="typeselect"
|
|
>
|
|
>
|
|
-
|
|
|
|
<el-option
|
|
<el-option
|
|
v-for="item in warehouseList"
|
|
v-for="item in warehouseList"
|
|
:key="item.constKey"
|
|
:key="item.constKey"
|
|
@@ -118,7 +124,7 @@
|
|
label="始发地详细地址"
|
|
label="始发地详细地址"
|
|
span="1"
|
|
span="1"
|
|
prop="startDetailedAddress"
|
|
prop="startDetailedAddress"
|
|
- style="width:31.333%"
|
|
|
|
|
|
+ style="width: 31.333%"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
v-model="deptBudgetList.startDetailedAddress"
|
|
v-model="deptBudgetList.startDetailedAddress"
|
|
@@ -135,7 +141,7 @@
|
|
style="width: 36%"
|
|
style="width: 36%"
|
|
>
|
|
>
|
|
<el-select
|
|
<el-select
|
|
- @change='sendWarehousechange1'
|
|
|
|
|
|
+ @change="sendWarehousechange1"
|
|
v-model="deptBudgetList.receiveWarehouse"
|
|
v-model="deptBudgetList.receiveWarehouse"
|
|
:disabled="warehouse"
|
|
:disabled="warehouse"
|
|
placeholder="请输入收货库点"
|
|
placeholder="请输入收货库点"
|
|
@@ -149,7 +155,12 @@
|
|
></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"
|
|
@@ -191,7 +202,7 @@
|
|
<div class="driver">
|
|
<div class="driver">
|
|
<span>运输阶段{{ index + 1 }} {{ item.processNo }}</span>
|
|
<span>运输阶段{{ index + 1 }} {{ item.processNo }}</span>
|
|
<img
|
|
<img
|
|
- v-if='!endflag'
|
|
|
|
|
|
+ v-if="!endflag "
|
|
width="22"
|
|
width="22"
|
|
height="22"
|
|
height="22"
|
|
class="add"
|
|
class="add"
|
|
@@ -212,12 +223,13 @@
|
|
v-if="index == deptBudgetList.tranProcessInfoList.length - 1"
|
|
v-if="index == deptBudgetList.tranProcessInfoList.length - 1"
|
|
>最终阶段</span> -->
|
|
>最终阶段</span> -->
|
|
<el-checkbox
|
|
<el-checkbox
|
|
- @change='engflagchange'
|
|
|
|
- class='endflag'
|
|
|
|
|
|
+ @change="engflagchange"
|
|
|
|
+ class="endflag"
|
|
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
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
<el-form-item label="运输方式" span="1" prop="waterContent">
|
|
<el-form-item label="运输方式" span="1" prop="waterContent">
|
|
@@ -255,8 +267,16 @@
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- 本阶段重量 -->
|
|
<!-- 本阶段重量 -->
|
|
- <el-form-item label="本阶段运输重量(吨)" span="1" prop="bulkDensity">
|
|
|
|
- <el-input v-model="item.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>
|
|
@@ -284,10 +304,20 @@
|
|
></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>
|
|
@@ -315,7 +345,12 @@
|
|
></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
|
|
@@ -330,7 +365,13 @@
|
|
</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>
|
|
@@ -344,7 +385,7 @@ export default {
|
|
name: 'viewSpareMoney',
|
|
name: 'viewSpareMoney',
|
|
components: {
|
|
components: {
|
|
WsUpload,
|
|
WsUpload,
|
|
- mapDrag
|
|
|
|
|
|
+ mapDrag,
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
vesselId(val) {
|
|
vesselId(val) {
|
|
@@ -352,12 +393,12 @@ export default {
|
|
},
|
|
},
|
|
isShow(val) {
|
|
isShow(val) {
|
|
this.showType = val
|
|
this.showType = val
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
let self = this
|
|
let self = this
|
|
return {
|
|
return {
|
|
- flag:2,
|
|
|
|
|
|
+ flag: 2,
|
|
checkList: [],
|
|
checkList: [],
|
|
deptBudgetList: {
|
|
deptBudgetList: {
|
|
taskNo: '',
|
|
taskNo: '',
|
|
@@ -367,7 +408,7 @@ export default {
|
|
warehouseType: '1',
|
|
warehouseType: '1',
|
|
tranProcessInfoList: [
|
|
tranProcessInfoList: [
|
|
{
|
|
{
|
|
- sort:0,
|
|
|
|
|
|
+ sort: 0,
|
|
processNo: '',
|
|
processNo: '',
|
|
tranType: '汽运',
|
|
tranType: '汽运',
|
|
tranTypeKey: '1',
|
|
tranTypeKey: '1',
|
|
@@ -388,15 +429,15 @@ export default {
|
|
receiver: '',
|
|
receiver: '',
|
|
senderPhone: '',
|
|
senderPhone: '',
|
|
receiverPhone: '',
|
|
receiverPhone: '',
|
|
- endFlag: '0'
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
|
|
+ endFlag: '0',
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
radio: '1',
|
|
radio: '1',
|
|
options_: regionData,
|
|
options_: regionData,
|
|
heightData: '600px',
|
|
heightData: '600px',
|
|
zoom: 7,
|
|
zoom: 7,
|
|
- endflag:false,
|
|
|
|
|
|
+ endflag: false,
|
|
selectedOptions: [],
|
|
selectedOptions: [],
|
|
selectedOptions1: [],
|
|
selectedOptions1: [],
|
|
window: '',
|
|
window: '',
|
|
@@ -417,7 +458,7 @@ export default {
|
|
unitList: [],
|
|
unitList: [],
|
|
name: '',
|
|
name: '',
|
|
age: '',
|
|
age: '',
|
|
- number:2,
|
|
|
|
|
|
+ number: 2,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
@@ -425,7 +466,7 @@ export default {
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- warehouse: function() {
|
|
|
|
|
|
+ warehouse: function () {
|
|
if (
|
|
if (
|
|
this.deptBudgetList.taskType == '销售出库' ||
|
|
this.deptBudgetList.taskType == '销售出库' ||
|
|
this.deptBudgetList.taskType == '贸易服务出库' ||
|
|
this.deptBudgetList.taskType == '贸易服务出库' ||
|
|
@@ -435,37 +476,61 @@ export default {
|
|
} else {
|
|
} else {
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- sendWarehousechange(e){
|
|
|
|
|
|
+ sendWarehousechange(e) {
|
|
for (let i = 0; i < this.warehouseList.length; i++) {
|
|
for (let i = 0; i < this.warehouseList.length; i++) {
|
|
- if(this.warehouseList[i].warehouseName==e){
|
|
|
|
- var tmp=[]
|
|
|
|
- tmp[0]=TextToCode[this.warehouseList[i].warehousePrivate].code
|
|
|
|
- tmp[1]=TextToCode[this.warehouseList[i].warehousePrivate][this.warehouseList[i].warehouseCity].code
|
|
|
|
- tmp[2]=TextToCode[this.warehouseList[i].warehousePrivate][this.warehouseList[i].warehouseCity][this.warehouseList[i].warehouseArea].code
|
|
|
|
- this.selectedOptions=tmp
|
|
|
|
- this.deptBudgetList.tranProcessInfoList[0].selectedOptions=tmp
|
|
|
|
- this.$set(this.deptBudgetList,'startDetailedAddress',this.warehouseList[i].detailedAddress)
|
|
|
|
- this.$set(this.deptBudgetList.tranProcessInfoList[0],'sendDetailedAddress',this.deptBudgetList.startDetailedAddress)
|
|
|
|
|
|
+ if (this.warehouseList[i].warehouseName == e) {
|
|
|
|
+ var tmp = []
|
|
|
|
+ tmp[0] = TextToCode[this.warehouseList[i].warehousePrivate].code
|
|
|
|
+ tmp[1] =
|
|
|
|
+ TextToCode[this.warehouseList[i].warehousePrivate][
|
|
|
|
+ this.warehouseList[i].warehouseCity
|
|
|
|
+ ].code
|
|
|
|
+ tmp[2] =
|
|
|
|
+ TextToCode[this.warehouseList[i].warehousePrivate][
|
|
|
|
+ this.warehouseList[i].warehouseCity
|
|
|
|
+ ][this.warehouseList[i].warehouseArea].code
|
|
|
|
+ this.selectedOptions = tmp
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0].selectedOptions = tmp
|
|
|
|
+ this.$set(
|
|
|
|
+ this.deptBudgetList,
|
|
|
|
+ 'startDetailedAddress',
|
|
|
|
+ this.warehouseList[i].detailedAddress
|
|
|
|
+ )
|
|
|
|
+ this.$set(
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0],
|
|
|
|
+ 'sendDetailedAddress',
|
|
|
|
+ this.deptBudgetList.startDetailedAddress
|
|
|
|
+ )
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- sendWarehousechange1(e){
|
|
|
|
|
|
+ sendWarehousechange1(e) {
|
|
for (let i = 0; i < this.warehouseList1.length; i++) {
|
|
for (let i = 0; i < this.warehouseList1.length; i++) {
|
|
- if(this.warehouseList1[i].warehouseName==e){
|
|
|
|
- var tmp=[]
|
|
|
|
- tmp[0]=TextToCode[this.warehouseList1[i].warehousePrivate].code
|
|
|
|
- tmp[1]=TextToCode[this.warehouseList1[i].warehousePrivate][this.warehouseList1[i].warehouseCity].code
|
|
|
|
- tmp[2]=TextToCode[this.warehouseList1[i].warehousePrivate][this.warehouseList1[i].warehouseCity][this.warehouseList1[i].warehouseArea].code
|
|
|
|
- this.selectedOptions1=tmp
|
|
|
|
- this.$set(this.deptBudgetList,'endDetailedAddress',this.warehouseList1[i].detailedAddress)
|
|
|
|
|
|
+ if (this.warehouseList1[i].warehouseName == e) {
|
|
|
|
+ var tmp = []
|
|
|
|
+ tmp[0] = TextToCode[this.warehouseList1[i].warehousePrivate].code
|
|
|
|
+ tmp[1] =
|
|
|
|
+ TextToCode[this.warehouseList1[i].warehousePrivate][
|
|
|
|
+ this.warehouseList1[i].warehouseCity
|
|
|
|
+ ].code
|
|
|
|
+ tmp[2] =
|
|
|
|
+ TextToCode[this.warehouseList1[i].warehousePrivate][
|
|
|
|
+ this.warehouseList1[i].warehouseCity
|
|
|
|
+ ][this.warehouseList1[i].warehouseArea].code
|
|
|
|
+ this.selectedOptions1 = tmp
|
|
|
|
+ this.$set(
|
|
|
|
+ this.deptBudgetList,
|
|
|
|
+ 'endDetailedAddress',
|
|
|
|
+ this.warehouseList1[i].detailedAddress
|
|
|
|
+ )
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- warehouseTypechange(){
|
|
|
|
- getwarehousename({
|
|
|
|
|
|
+ warehouseTypechange() {
|
|
|
|
+ getwarehousename({
|
|
compId: this.compId,
|
|
compId: this.compId,
|
|
warehouseType: this.deptBudgetList.warehouseType,
|
|
warehouseType: this.deptBudgetList.warehouseType,
|
|
})
|
|
})
|
|
@@ -474,17 +539,25 @@ export default {
|
|
this.warehouseList = response
|
|
this.warehouseList = response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- weightchange(e){
|
|
|
|
- this.deptBudgetList.tranProcessInfoList[0].weight=e
|
|
|
|
|
|
+ weightchange(e) {
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0].weight = e
|
|
},
|
|
},
|
|
- engflagchange(e){
|
|
|
|
- this.endflag=e
|
|
|
|
- if(this.endflag){
|
|
|
|
- this.deptBudgetList.tranProcessInfoList[this.deptBudgetList.tranProcessInfoList.length - 1].selectedOptions1 = this.selectedOptions1
|
|
|
|
- this.deptBudgetList.tranProcessInfoList[this.deptBudgetList.tranProcessInfoList.length - 1].receiveDetailedAddress = this.deptBudgetList.endDetailedAddress
|
|
|
|
- }else{
|
|
|
|
- this.deptBudgetList.tranProcessInfoList[this.deptBudgetList.tranProcessInfoList.length - 1].selectedOptions1 = []
|
|
|
|
- this.deptBudgetList.tranProcessInfoList[this.deptBudgetList.tranProcessInfoList.length - 1].receiveDetailedAddress = ''
|
|
|
|
|
|
+ engflagchange(e) {
|
|
|
|
+ this.endflag = e
|
|
|
|
+ if (this.endflag) {
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList.length - 1
|
|
|
|
+ ].selectedOptions1 = this.selectedOptions1
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList.length - 1
|
|
|
|
+ ].receiveDetailedAddress = this.deptBudgetList.endDetailedAddress
|
|
|
|
+ } else {
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList.length - 1
|
|
|
|
+ ].selectedOptions1 = []
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList.length - 1
|
|
|
|
+ ].receiveDetailedAddress = ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 获取当前年月日
|
|
// 获取当前年月日
|
|
@@ -509,7 +582,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
|
|
@@ -518,47 +591,48 @@ export default {
|
|
},
|
|
},
|
|
loaddata() {
|
|
loaddata() {
|
|
this.deptBudgetList.taskNo = 'YS' + this.getdate() + this.verifyinit()
|
|
this.deptBudgetList.taskNo = 'YS' + this.getdate() + this.verifyinit()
|
|
- this.deptBudgetList.tranProcessInfoList[0].processNo=this.deptBudgetList.taskNo+'-1'
|
|
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0].processNo =
|
|
|
|
+ this.deptBudgetList.taskNo + '-1'
|
|
// 货名
|
|
// 货名
|
|
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
|
|
})
|
|
})
|
|
- getwarehousename({
|
|
|
|
|
|
+ getwarehousename({
|
|
compId: this.compId,
|
|
compId: this.compId,
|
|
- warehouseType: 1
|
|
|
|
|
|
+ warehouseType: 1,
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
this.warehouseList1 = response
|
|
this.warehouseList1 = response
|
|
})
|
|
})
|
|
xialaNo({
|
|
xialaNo({
|
|
- compId: this.compId
|
|
|
|
|
|
+ compId: this.compId,
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
this.contractNoList = response
|
|
this.contractNoList = response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -572,12 +646,15 @@ export default {
|
|
},
|
|
},
|
|
add(index) {
|
|
add(index) {
|
|
this.deptBudgetList.tranProcessInfoList.push({
|
|
this.deptBudgetList.tranProcessInfoList.push({
|
|
- processNo: this.deptBudgetList.taskNo+'-'+(this.number),
|
|
|
|
|
|
+ processNo: this.deptBudgetList.taskNo + '-' + this.number,
|
|
tranType: '汽运',
|
|
tranType: '汽运',
|
|
tranTypeKey: '1',
|
|
tranTypeKey: '1',
|
|
deliveryDateStart: '',
|
|
deliveryDateStart: '',
|
|
deliveryDateEnd: '',
|
|
deliveryDateEnd: '',
|
|
- weight: this.deptBudgetList.tranProcessInfoList[this.deptBudgetList.tranProcessInfoList.length-1].weight,
|
|
|
|
|
|
+ weight:
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList.length - 1
|
|
|
|
+ ].weight,
|
|
selectedOptions: [],
|
|
selectedOptions: [],
|
|
selectedOptions1: [],
|
|
selectedOptions1: [],
|
|
sendPrivate: '',
|
|
sendPrivate: '',
|
|
@@ -592,7 +669,7 @@ export default {
|
|
receiver: '',
|
|
receiver: '',
|
|
senderPhone: '',
|
|
senderPhone: '',
|
|
receiverPhone: '',
|
|
receiverPhone: '',
|
|
- endFlag: '0'
|
|
|
|
|
|
+ endFlag: '0',
|
|
})
|
|
})
|
|
this.number++
|
|
this.number++
|
|
},
|
|
},
|
|
@@ -600,6 +677,7 @@ export default {
|
|
if (this.deptBudgetList.tranProcessInfoList.length > 1) {
|
|
if (this.deptBudgetList.tranProcessInfoList.length > 1) {
|
|
this.deptBudgetList.tranProcessInfoList.splice(index, 1)
|
|
this.deptBudgetList.tranProcessInfoList.splice(index, 1)
|
|
}
|
|
}
|
|
|
|
+ this.number--
|
|
},
|
|
},
|
|
handleChange(value) {
|
|
handleChange(value) {
|
|
this.selectedOptions = value
|
|
this.selectedOptions = value
|
|
@@ -632,35 +710,35 @@ export default {
|
|
returnsales() {
|
|
returnsales() {
|
|
this.$router.push({ path: 'tranManagementTransport' })
|
|
this.$router.push({ path: 'tranManagementTransport' })
|
|
this.deptBudgetList = {
|
|
this.deptBudgetList = {
|
|
- taskNo: '',
|
|
|
|
- totalStorage: 0,
|
|
|
|
- goodsName: '玉米',
|
|
|
|
- goodsNameKey: 1,
|
|
|
|
- warehouseType: '1',
|
|
|
|
- tranProcessInfoList: [
|
|
|
|
- {
|
|
|
|
- processNo: '',
|
|
|
|
- tranType: '汽运',
|
|
|
|
- deliveryDateStart: '',
|
|
|
|
- deliveryDateEnd: '',
|
|
|
|
- weight: '',
|
|
|
|
- selectedOptions: [],
|
|
|
|
- selectedOptions1: [],
|
|
|
|
- sendPrivate: '',
|
|
|
|
- sendCity: '',
|
|
|
|
- sendArea: '',
|
|
|
|
- receivePrivate: '',
|
|
|
|
- receiveCity: '',
|
|
|
|
- receiveArea: '',
|
|
|
|
- sendDetailedAddress: '',
|
|
|
|
- receiveDetailedAddress: '',
|
|
|
|
- sender: '',
|
|
|
|
- receiver: '',
|
|
|
|
- senderPhone: '',
|
|
|
|
- receiverPhone: '',
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- }
|
|
|
|
|
|
+ taskNo: '',
|
|
|
|
+ totalStorage: 0,
|
|
|
|
+ goodsName: '玉米',
|
|
|
|
+ goodsNameKey: 1,
|
|
|
|
+ warehouseType: '1',
|
|
|
|
+ tranProcessInfoList: [
|
|
|
|
+ {
|
|
|
|
+ processNo: '',
|
|
|
|
+ tranType: '汽运',
|
|
|
|
+ deliveryDateStart: '',
|
|
|
|
+ deliveryDateEnd: '',
|
|
|
|
+ weight: '',
|
|
|
|
+ selectedOptions: [],
|
|
|
|
+ selectedOptions1: [],
|
|
|
|
+ sendPrivate: '',
|
|
|
|
+ sendCity: '',
|
|
|
|
+ sendArea: '',
|
|
|
|
+ receivePrivate: '',
|
|
|
|
+ receiveCity: '',
|
|
|
|
+ receiveArea: '',
|
|
|
|
+ sendDetailedAddress: '',
|
|
|
|
+ receiveDetailedAddress: '',
|
|
|
|
+ sender: '',
|
|
|
|
+ receiver: '',
|
|
|
|
+ senderPhone: '',
|
|
|
|
+ receiverPhone: '',
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ }
|
|
},
|
|
},
|
|
selecttaskType(e) {
|
|
selecttaskType(e) {
|
|
for (var i = 0; i < this.taskType.length; i++) {
|
|
for (var i = 0; i < this.taskType.length; i++) {
|
|
@@ -672,9 +750,8 @@ 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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -687,90 +764,89 @@ export default {
|
|
},
|
|
},
|
|
onChange(files) {
|
|
onChange(files) {
|
|
this.fileNum = files
|
|
this.fileNum = files
|
|
- this.$refs.upload.handleSaveBill().then(res => {
|
|
|
|
- })
|
|
|
|
|
|
+ this.$refs.upload.handleSaveBill().then((res) => {})
|
|
},
|
|
},
|
|
|
|
|
|
submit() {
|
|
submit() {
|
|
- this.$refs.deptBudgetList.validate(valid => {
|
|
|
|
|
|
+ this.$refs.deptBudgetList.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
if (!this.deptBudgetList.taskNo) {
|
|
if (!this.deptBudgetList.taskNo) {
|
|
- this.$message({
|
|
|
|
- message: '任务编号不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '任务编号不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (!this.deptBudgetList.taskType) {
|
|
if (!this.deptBudgetList.taskType) {
|
|
- this.$message({
|
|
|
|
- message: '任务类型不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.deptBudgetList.contractNo) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '合同编号/移库任务编号不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.deptBudgetList.goodsName) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '货名不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.deptBudgetList.weight) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '重量(吨)不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.deptBudgetList.sendWarehouse) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '发货仓库不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.selectedOptions.length <= 0) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '始发地不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (!this.deptBudgetList.startDetailedAddress) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '始发地详细地址不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.selectedOptions1.length <= 0) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '终到地不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.deptBudgetList.endDetailedAddress) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '终到地详细地址不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(this.checkList.length <= 0){
|
|
|
|
- this.$message({
|
|
|
|
- message: '运输方式多选框不能为空!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '任务类型不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.contractNo) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '合同编号/移库任务编号不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.goodsName) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '货名不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.weight) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '重量(吨)不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.sendWarehouse) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '发货仓库不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (this.selectedOptions.length <= 0) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '始发地不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (!this.deptBudgetList.startDetailedAddress) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '始发地详细地址不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (this.selectedOptions1.length <= 0) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '终到地不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.endDetailedAddress) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '终到地详细地址不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (this.checkList.length <= 0) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '运输方式多选框不能为空!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
}
|
|
}
|
|
for (
|
|
for (
|
|
var i = 0;
|
|
var i = 0;
|
|
@@ -789,56 +865,56 @@ export default {
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '发货日期不能大于最晚到货日期!',
|
|
message: '发货日期不能大于最晚到货日期!',
|
|
- type: 'warning'
|
|
|
|
|
|
+ type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart) {
|
|
if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart) {
|
|
this.$message({
|
|
this.$message({
|
|
- message:'发货日期不能为空!',
|
|
|
|
- type:'warning'
|
|
|
|
|
|
+ message: '发货日期不能为空!',
|
|
|
|
+ type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateEnd) {
|
|
if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateEnd) {
|
|
this.$message({
|
|
this.$message({
|
|
- message:'最晚到货日期不能为空!',
|
|
|
|
- type:'warning'
|
|
|
|
|
|
+ message: '最晚到货日期不能为空!',
|
|
|
|
+ type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!this.deptBudgetList.tranProcessInfoList[i].weight) {
|
|
if (!this.deptBudgetList.tranProcessInfoList[i].weight) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '重量不能为空!',
|
|
message: '重量不能为空!',
|
|
- type: 'warning'
|
|
|
|
|
|
+ type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!this.deptBudgetList.tranProcessInfoList[i].sender) {
|
|
if (!this.deptBudgetList.tranProcessInfoList[i].sender) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '发货人不能为空!',
|
|
message: '发货人不能为空!',
|
|
- type: 'warning'
|
|
|
|
|
|
+ type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!this.deptBudgetList.tranProcessInfoList[i].senderPhone) {
|
|
if (!this.deptBudgetList.tranProcessInfoList[i].senderPhone) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '发货人电话不能为空!',
|
|
message: '发货人电话不能为空!',
|
|
- type: 'warning'
|
|
|
|
|
|
+ type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!this.deptBudgetList.tranProcessInfoList[i].receiver) {
|
|
if (!this.deptBudgetList.tranProcessInfoList[i].receiver) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '收货人不能为空!',
|
|
message: '收货人不能为空!',
|
|
- type: 'warning'
|
|
|
|
|
|
+ type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (!this.deptBudgetList.tranProcessInfoList[i].receiverPhone) {
|
|
if (!this.deptBudgetList.tranProcessInfoList[i].receiverPhone) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '收货人电话不能为空!',
|
|
message: '收货人电话不能为空!',
|
|
- type: 'warning'
|
|
|
|
|
|
+ type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -847,7 +923,7 @@ export default {
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '收获详细地址不能为空!',
|
|
message: '收获详细地址不能为空!',
|
|
- type: 'warning'
|
|
|
|
|
|
+ type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -856,21 +932,25 @@ export default {
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '发货详细地址不能为空!',
|
|
message: '发货详细地址不能为空!',
|
|
- type: 'warning'
|
|
|
|
|
|
+ type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
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()
|
|
- this.deptBudgetList.startPrivate = CodeToText[this.selectedOptions[0]]
|
|
|
|
- this.deptBudgetList.startCity = CodeToText[this.selectedOptions[1]]
|
|
|
|
- this.deptBudgetList.startArea = CodeToText[this.selectedOptions[2]]
|
|
|
|
-
|
|
|
|
- for(var i = 0 ; i < this.deptBudgetList.tranProcessInfoList.length ; i++){
|
|
|
|
|
|
+ this.deptBudgetList.startPrivate = CodeToText[this.selectedOptions[0]]
|
|
|
|
+ this.deptBudgetList.startCity = CodeToText[this.selectedOptions[1]]
|
|
|
|
+ this.deptBudgetList.startArea = CodeToText[this.selectedOptions[2]]
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0].sendPrivate = CodeToText[this.selectedOptions[0]]
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0].sendCity = CodeToText[this.selectedOptions[1]]
|
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0].sendArea = CodeToText[this.selectedOptions[2]]
|
|
|
|
|
|
|
|
+ for (
|
|
|
|
+ var i = 0;
|
|
|
|
+ i < this.deptBudgetList.tranProcessInfoList.length;
|
|
|
|
+ i++
|
|
|
|
+ ) {
|
|
this.deptBudgetList.tranProcessInfoList[i].sort = i
|
|
this.deptBudgetList.tranProcessInfoList[i].sort = i
|
|
// this.deptBudgetList.tranProcessInfoList[i].sendPrivate = CodeToText[this.selectedOptions[0]]
|
|
// this.deptBudgetList.tranProcessInfoList[i].sendPrivate = CodeToText[this.selectedOptions[0]]
|
|
// this.deptBudgetList.tranProcessInfoList[i].sendCity = CodeToText[this.selectedOptions[1]]
|
|
// this.deptBudgetList.tranProcessInfoList[i].sendCity = CodeToText[this.selectedOptions[1]]
|
|
@@ -878,13 +958,12 @@ export default {
|
|
// this.deptBudgetList.tranProcessInfoList[i].receivePrivate = CodeToText[this.selectedOptions1[0]]
|
|
// this.deptBudgetList.tranProcessInfoList[i].receivePrivate = CodeToText[this.selectedOptions1[0]]
|
|
// this.deptBudgetList.tranProcessInfoList[i].receiveCity = CodeToText[this.selectedOptions1[1]]
|
|
// this.deptBudgetList.tranProcessInfoList[i].receiveCity = CodeToText[this.selectedOptions1[1]]
|
|
// this.deptBudgetList.tranProcessInfoList[i].receiveArea = CodeToText[this.selectedOptions1[2]]
|
|
// this.deptBudgetList.tranProcessInfoList[i].receiveArea = CodeToText[this.selectedOptions1[2]]
|
|
-
|
|
|
|
}
|
|
}
|
|
- console.log(this.deptBudgetList,"添加对象")
|
|
|
|
-
|
|
|
|
|
|
+ console.log(this.deptBudgetList, '添加对象')
|
|
|
|
+
|
|
addtrantask(this.deptBudgetList)
|
|
addtrantask(this.deptBudgetList)
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
this.$message.success('添加成功')
|
|
this.$message.success('添加成功')
|
|
this.deptBudgetList = {
|
|
this.deptBudgetList = {
|
|
taskNo: '',
|
|
taskNo: '',
|
|
@@ -913,11 +992,10 @@ export default {
|
|
receiver: '',
|
|
receiver: '',
|
|
senderPhone: '',
|
|
senderPhone: '',
|
|
receiverPhone: '',
|
|
receiverPhone: '',
|
|
- contractNo:'',
|
|
|
|
- receiveWarehouse:''
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
|
|
+ contractNo: '',
|
|
|
|
+ receiveWarehouse: '',
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
}
|
|
}
|
|
this.$router.push({ path: 'tranManagementTransport' })
|
|
this.$router.push({ path: 'tranManagementTransport' })
|
|
})
|
|
})
|
|
@@ -929,8 +1007,8 @@ export default {
|
|
},
|
|
},
|
|
resetForm(deptBudgetList) {
|
|
resetForm(deptBudgetList) {
|
|
this.$refs[deptBudgetList].resetFields()
|
|
this.$refs[deptBudgetList].resetFields()
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ },
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -948,7 +1026,8 @@ export default {
|
|
|
|
|
|
height: 50px;
|
|
height: 50px;
|
|
}
|
|
}
|
|
-/deep/.position .el-select, /deep/.el-select {
|
|
|
|
|
|
+/deep/.position .el-select,
|
|
|
|
+/deep/.el-select {
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
/deep/.position .ws-info-table .el-form-item .el-form-item__label,
|
|
/deep/.position .ws-info-table .el-form-item .el-form-item__label,
|
|
@@ -957,9 +1036,9 @@ export default {
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
color: #8890b1;
|
|
color: #8890b1;
|
|
}
|
|
}
|
|
-.typeselect{
|
|
|
|
- width:42%;
|
|
|
|
- margin-left:32px;
|
|
|
|
|
|
+.typeselect {
|
|
|
|
+ width: 42%;
|
|
|
|
+ margin-left: 32px;
|
|
}
|
|
}
|
|
.del,
|
|
.del,
|
|
.add {
|
|
.add {
|
|
@@ -1012,7 +1091,7 @@ export default {
|
|
.el-form {
|
|
.el-form {
|
|
margin-top: 50px;
|
|
margin-top: 50px;
|
|
}
|
|
}
|
|
-.endflag{
|
|
|
|
|
|
+.endflag {
|
|
vertical-align: top;
|
|
vertical-align: top;
|
|
}
|
|
}
|
|
.el-col {
|
|
.el-col {
|
|
@@ -1057,8 +1136,10 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-/deep/.el-table--border:after, /deep/.el-table--group:after, /deep/.el-table:before {
|
|
|
|
- background:transparent;
|
|
|
|
|
|
+/deep/.el-table--border:after,
|
|
|
|
+/deep/.el-table--group:after,
|
|
|
|
+/deep/.el-table:before {
|
|
|
|
+ background: transparent;
|
|
}
|
|
}
|
|
//输入框标题
|
|
//输入框标题
|
|
/deep/.ws-info-table .el-form-item .el-form-item__label {
|
|
/deep/.ws-info-table .el-form-item .el-form-item__label {
|
|
@@ -1089,8 +1170,8 @@ export default {
|
|
.el-cascader {
|
|
.el-cascader {
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
-.el-form{
|
|
|
|
- height: 73vh;
|
|
|
|
- overflow: scroll;
|
|
|
|
|
|
+.el-form {
|
|
|
|
+ height: 73vh;
|
|
|
|
+ overflow: scroll;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|