|
@@ -24,201 +24,128 @@
|
|
<ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
|
|
<ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
|
|
<div class="basicInformation">
|
|
<div class="basicInformation">
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
- <!--任务编号-->
|
|
|
|
- <ws-form-item label="任务编号" span="1" prop="grossWeight">
|
|
|
|
- <ws-input
|
|
|
|
- @input="grossWeightchange"
|
|
|
|
- v-model="deptBudgetList.grossWeight"
|
|
|
|
- placeholder="请输入任务编号"
|
|
|
|
- maxlength="20"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
|
|
+ <!--任务编号-->
|
|
|
|
+ <ws-form-item label="任务编号" span="1" prop="taskNo">
|
|
|
|
+ {{ deptBudgetList.taskNo }}
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--合同编号(选填)-->
|
|
<!--合同编号(选填)-->
|
|
- <ws-form-item label="合同编号(选填)" span="1" prop="grossWeight">
|
|
|
|
- <ws-input
|
|
|
|
- @input="grossWeightchange"
|
|
|
|
- v-model="deptBudgetList.grossWeight"
|
|
|
|
- placeholder="请输入合同编号"
|
|
|
|
- maxlength="20"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
|
|
+ <ws-form-item label="合同编号(选填)" span="1" prop="contractNo">
|
|
|
|
+ {{ deptBudgetList.contractNo }}
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--货名-->
|
|
<!--货名-->
|
|
- <ws-form-item
|
|
|
|
- label="货名"
|
|
|
|
- span="1"
|
|
|
|
- prop="tare"
|
|
|
|
- class="readonly"
|
|
|
|
- >
|
|
|
|
- <ws-input
|
|
|
|
- @input="tarechange"
|
|
|
|
- v-model="deptBudgetList.tare"
|
|
|
|
- placeholder="请输入货名"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
|
|
+ <ws-form-item label="货名" span="1" prop="goodsName" class="readonly">
|
|
|
|
+ {{ deptBudgetList.goodsName }}
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!-- 重量(吨) -->
|
|
<!-- 重量(吨) -->
|
|
- <ws-form-item label="重量(吨)" span="1" prop="grossWeight">
|
|
|
|
- <ws-input
|
|
|
|
- @input="grossWeightchange"
|
|
|
|
- v-model="deptBudgetList.grossWeight"
|
|
|
|
- placeholder="请输入重量(吨)"
|
|
|
|
- maxlength="20"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
-
|
|
|
|
|
|
+ <ws-form-item label="重量(吨)" span="1" prop="weight">
|
|
|
|
+ {{ deptBudgetList.weight }}
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
-
|
|
|
|
</ws-info-table>
|
|
</ws-info-table>
|
|
<div class="inspector">
|
|
<div class="inspector">
|
|
- <!-- 始发地 -->
|
|
|
|
- <ws-form-item label="始发地" span="1" prop="netWeight">
|
|
|
|
- <ws-input
|
|
|
|
- readonly="readonly"
|
|
|
|
- v-model="deptBudgetList.netWeight"
|
|
|
|
- placeholder="请输入始发地"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
|
|
+ <!-- 始发地 -->
|
|
|
|
+ <ws-form-item
|
|
|
|
+ class="address"
|
|
|
|
+ label="始发地"
|
|
|
|
+ span="1"
|
|
|
|
+ prop="netWeight"
|
|
|
|
+ >
|
|
|
|
+ {{ deptBudgetList.startPrivate }}/{{ deptBudgetList.startCity
|
|
|
|
+ }}{{ deptBudgetList.startArea
|
|
|
|
+ }}{{ deptBudgetList.startDetailedAddress }}
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--终到地-->
|
|
<!--终到地-->
|
|
- <ws-form-item label="终到地" span="1" prop="netWeight">
|
|
|
|
- <ws-input
|
|
|
|
- readonly="readonly"
|
|
|
|
- v-model="deptBudgetList.netWeight"
|
|
|
|
- placeholder="请输入始发地"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <span class="zi">运输方式</span>
|
|
|
|
- <el-checkbox-group v-model="checkList">
|
|
|
|
- <el-checkbox label="汽运"></el-checkbox>
|
|
|
|
- <el-checkbox label="火运"></el-checkbox>
|
|
|
|
- <el-checkbox label="船运"></el-checkbox>
|
|
|
|
- </el-checkbox-group>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="driver">运输阶段-{{index + 1}}</div>
|
|
|
|
- <div class="neifor">
|
|
|
|
- <ws-info-table class="el-table">
|
|
|
|
- <!--运输方式-->
|
|
|
|
- <ws-form-item label="运输方式" span="1" prop="waterContent">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.waterContent"
|
|
|
|
- placeholder="请输入运输方式"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--发货日期-->
|
|
|
|
- <ws-form-item label="发货日期" span="1" prop="impurity">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.impurity"
|
|
|
|
- placeholder="请输入发货日期"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--最晚到货日期-->
|
|
|
|
- <ws-form-item label="最晚到货日期" span="1" prop="bulkDensity">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.bulkDensity"
|
|
|
|
- placeholder="请输入最晚到货日期"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- </ws-info-table>
|
|
|
|
- <!-- </div>
|
|
|
|
- <div class="nei"> -->
|
|
|
|
- <ws-info-table>
|
|
|
|
- <!--发货日期-->
|
|
|
|
- <ws-form-item label="发货地区" span="1" prop="waterContent">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.waterContent"
|
|
|
|
- placeholder="请输入发货地区"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--发货地详细地址-->
|
|
|
|
- <ws-form-item label="发货地详细地址" span="1" prop="impurity">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.impurity"
|
|
|
|
- placeholder="请输入发货地详细地址"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--发货人-->
|
|
|
|
- <ws-form-item label="发货人" span="1" prop="bulkDensity">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.bulkDensity"
|
|
|
|
- placeholder="请输入发货人"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--发货人电话-->
|
|
|
|
- <ws-form-item label="发货人电话" span="1" prop="bulkDensity">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.bulkDensity"
|
|
|
|
- placeholder="请输入发货人电话"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
|
|
+ <ws-form-item
|
|
|
|
+ class="address"
|
|
|
|
+ label="终到地"
|
|
|
|
+ span="1"
|
|
|
|
+ prop="netWeight"
|
|
|
|
+ >
|
|
|
|
+ {{ deptBudgetList.endPrivate }}/{{ deptBudgetList.endCity
|
|
|
|
+ }}{{ deptBudgetList.endArea
|
|
|
|
+ }}{{ deptBudgetList.endDetailedAddress }}
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- </ws-info-table>
|
|
|
|
|
|
+ <span class="zi">运输方式</span>
|
|
|
|
+ <el-checkbox-group v-model="checkList">
|
|
|
|
+ <el-checkbox disabled label="汽运"></el-checkbox>
|
|
|
|
+ <el-checkbox disabled label="火运"></el-checkbox>
|
|
|
|
+ <el-checkbox disabled label="船运"></el-checkbox>
|
|
|
|
+ </el-checkbox-group>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <div class="nei">
|
|
|
|
- <ws-info-table>
|
|
|
|
- <!--发货日期-->
|
|
|
|
- <ws-form-item label="收货地区" span="1" prop="waterContent">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.waterContent"
|
|
|
|
- placeholder="请输入收货地区"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--发货地详细地址-->
|
|
|
|
- <ws-form-item label="收货地详细地址" span="1" prop="impurity">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.impurity"
|
|
|
|
- placeholder="请输入收货地详细地址"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--发货人-->
|
|
|
|
- <ws-form-item label="收货人" span="1" prop="bulkDensity">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.bulkDensity"
|
|
|
|
- placeholder="请输入收货人"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--发货人电话-->
|
|
|
|
- <ws-form-item label="收货人电话" span="1" prop="bulkDensity">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.warehouseInOutDetail.bulkDensity"
|
|
|
|
- placeholder="请输入收货人电话"
|
|
|
|
- maxlength="120"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- </ws-info-table>
|
|
|
|
|
|
+ <div v-for="(item, index) in deptBudgetList.tranProcessInfoList">
|
|
|
|
+ <div class="driver">运输阶段-{{ item.processNo }}{{ index + 1 }}</div>
|
|
|
|
+ <div class="neifor">
|
|
|
|
+ <ws-info-table class="el-table">
|
|
|
|
+ <!--运输方式-->
|
|
|
|
+ <ws-form-item label="运输方式" span="1" prop="tranType">
|
|
|
|
+ {{ item.tranType }}
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--发货日期-->
|
|
|
|
+ <ws-form-item label="发货日期" span="1" prop="deliveryDateStart">
|
|
|
|
+ {{ item.deliveryDateStart }}
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--最晚到货日期-->
|
|
|
|
+ <ws-form-item label="最晚到货日期" span="1" prop="deliveryDateEnd">
|
|
|
|
+ {{ item.deliveryDateEnd }}
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ </ws-info-table>
|
|
|
|
+ <!-- </div>
|
|
|
|
+ <div class="nei"> -->
|
|
|
|
+ <ws-info-table>
|
|
|
|
+ <!--发货日期-->
|
|
|
|
+ <ws-form-item label="发货地区" span="1" prop="waterContent">
|
|
|
|
+ {{ item.sendPrivate }}/{{ item.sendCity }}{{ item.sendArea }}
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--发货地详细地址-->
|
|
|
|
+ <ws-form-item
|
|
|
|
+ label="发货地详细地址"
|
|
|
|
+ span="1"
|
|
|
|
+ prop="sendDetailedAddress"
|
|
|
|
+ >
|
|
|
|
+ {{ item.sendDetailedAddress }}
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--发货人-->
|
|
|
|
+ <ws-form-item label="发货人" span="1" prop="sender">
|
|
|
|
+ {{ item.sender }}
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--发货人电话-->
|
|
|
|
+ <ws-form-item label="发货人电话" span="1" prop="senderPhone">
|
|
|
|
+ {{ item.senderPhone }}
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ </ws-info-table>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="nei">
|
|
|
|
+ <ws-info-table>
|
|
|
|
+ <!--发货日期-->
|
|
|
|
+ <ws-form-item label="收货地区" span="1" prop="waterContent">
|
|
|
|
+ {{ item.receivePrivate }}/{{ item.receiveCity
|
|
|
|
+ }}{{ item.receiveArea }}
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--发货地详细地址-->
|
|
|
|
+ <ws-form-item
|
|
|
|
+ label="收货地详细地址"
|
|
|
|
+ span="1"
|
|
|
|
+ prop="receiveDetailedAddress"
|
|
|
|
+ >
|
|
|
|
+ {{ item.receiveDetailedAddress }}
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--发货人-->
|
|
|
|
+ <ws-form-item label="收货人" span="1" prop="receiver">
|
|
|
|
+ {{ item.receiver }}
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--发货人电话-->
|
|
|
|
+ <ws-form-item label="收货人电话" span="1" prop="receiverPhone">
|
|
|
|
+ {{ item.receiverPhone }}
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ </ws-info-table>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div style="text-align: right; padding: 10px">
|
|
<div style="text-align: right; padding: 10px">
|
|
<el-button
|
|
<el-button
|
|
class="bg-bottom-up"
|
|
class="bg-bottom-up"
|
|
type="primary"
|
|
type="primary"
|
|
size="small"
|
|
size="small"
|
|
- @click="submit()"
|
|
|
|
|
|
+ @click="revert()"
|
|
>关闭</el-button
|
|
>关闭</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -226,7 +153,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { lookTranTask ,gain } from '@/model/transport/index'
|
|
|
|
|
|
+import { examinetran } from '@/model/tasksport/index'
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
import WsUpload from '@/components/WsUpload'
|
|
import WsUpload from '@/components/WsUpload'
|
|
// import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
// import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
@@ -248,7 +175,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
//多选按钮
|
|
//多选按钮
|
|
- checkList:[],
|
|
|
|
|
|
+ checkList: [],
|
|
//弹出框
|
|
//弹出框
|
|
dialogViewSpareMoney: false,
|
|
dialogViewSpareMoney: false,
|
|
dialogApproveFormVisible: false,
|
|
dialogApproveFormVisible: false,
|
|
@@ -296,9 +223,7 @@ export default {
|
|
month: dayjs().format('MM'),
|
|
month: dayjs().format('MM'),
|
|
},
|
|
},
|
|
contractList: [],
|
|
contractList: [],
|
|
- deptBudgetList: {
|
|
|
|
- warehouseInOutDetail: {},
|
|
|
|
- },
|
|
|
|
|
|
+ deptBudgetList: {},
|
|
historyList: [],
|
|
historyList: [],
|
|
|
|
|
|
pickerBeginDateBefore: {
|
|
pickerBeginDateBefore: {
|
|
@@ -309,415 +234,22 @@ export default {
|
|
accessoryTFs: false,
|
|
accessoryTFs: false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- mounted() {
|
|
|
|
- this.deptBudgetList.baseId = this.$route.query.baseId
|
|
|
|
- this.deptBudgetList.positionId = this.$route.query.positionId
|
|
|
|
- this.deptBudgetList.warehouseName = this.$route.query.warehouseName
|
|
|
|
- this.deptBudgetList.binNumber = this.$route.query.binNumber
|
|
|
|
- this.getList()
|
|
|
|
- // this.deptBudgetList.goodsName = '玉米'
|
|
|
|
- // this.deptBudgetList.goodsNameKey = '1'
|
|
|
|
- // this.deptBudgetList.grade = '一等品'
|
|
|
|
- // this.deptBudgetList.gradeKey = '1'
|
|
|
|
- // this.deptBudgetList.inOutType = '采购入库'
|
|
|
|
- // this.deptBudgetList.inOutTypeKey = '1'
|
|
|
|
- },
|
|
|
|
activated() {
|
|
activated() {
|
|
- // //cg.viewBudget
|
|
|
|
- // //cg.viewSpareMoney
|
|
|
|
- // // this.getVesselData();
|
|
|
|
- // console.log(2222)
|
|
|
|
- // this.getList()
|
|
|
|
- // console.log(1111)
|
|
|
|
- // this.showType = this.isShow
|
|
|
|
- // this.getList(this.$route.query.baseId,)
|
|
|
|
|
|
+ this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
//返回按钮
|
|
//返回按钮
|
|
revert() {
|
|
revert() {
|
|
this.$router.push({ path: 'tranManagementTransport' })
|
|
this.$router.push({ path: 'tranManagementTransport' })
|
|
},
|
|
},
|
|
- //提交按钮
|
|
|
|
- submit() {
|
|
|
|
- if (!this.deptBudgetList.goodsName) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '货名不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(!this.deptBudgetList.grossWeight){
|
|
|
|
- this.$message({
|
|
|
|
- message: '毛重不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.grossWeight < 0 ||
|
|
|
|
- this.deptBudgetList.grossWeight > 10000 ||
|
|
|
|
- (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
|
|
|
|
- String(this.deptBudgetList.grossWeight).length -
|
|
|
|
- (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
|
|
|
|
- 3)
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '毛重输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(!this.deptBudgetList.tare){
|
|
|
|
- this.$message({
|
|
|
|
- message: '皮重不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.tare < 0 ||
|
|
|
|
- this.deptBudgetList.tare > 10000 ||
|
|
|
|
- (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
|
|
|
|
- String(this.deptBudgetList.tare).length -
|
|
|
|
- (String(this.deptBudgetList.tare).indexOf('.') + 1) >
|
|
|
|
- 3)
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '皮重输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(!this.deptBudgetList.agent){
|
|
|
|
- this.$message({
|
|
|
|
- message: '经办人不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.agent.length < 2 ||
|
|
|
|
- this.deptBudgetList.agent.length > 10
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '经办人输入有误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(!this.deptBudgetList.carNo){
|
|
|
|
- this.$message({
|
|
|
|
- message: '车牌号不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.deptBudgetList.carNo.length > 7) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '车牌号输入错误,请输入7个字符之内',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(!this.deptBudgetList.contractNo){
|
|
|
|
- this.$message({
|
|
|
|
- message: '合同编号不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.contractNo.length < 6 ||
|
|
|
|
- this.deptBudgetList.contractNo.length > 20
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '合同编号长度不符合要求,请输入6-20个字符之内',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- if(this.deptBudgetList.netWeight > this.$route.query.capacity){
|
|
|
|
- this.$message({
|
|
|
|
- message: '入库量大于该仓库容量!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- this.$confirm(`确定提交入库信息`, {
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- .then(() => {
|
|
|
|
- this.$refs.deptBudgetList.validate((valid) => {
|
|
|
|
- if (valid) {
|
|
|
|
- this.deptBudgetList.compId = sessionStorage.getItem(
|
|
|
|
- 'ws-pf_compId'
|
|
|
|
- )
|
|
|
|
- this.deptBudgetList.inOutFlag = 2
|
|
|
|
- this.deptBudgetList.statusFlag = 3
|
|
|
|
- addstorageputList(this.deptBudgetList)
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.$message.success('添加成功')
|
|
|
|
- this.$router.push({ path: 'warehouseManagementList' })
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
- return false
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- .catch(() => {
|
|
|
|
- return false
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- temporaryStorage() {
|
|
|
|
- if (!this.deptBudgetList.goodsName) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '货名不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(!this.deptBudgetList.grossWeight){
|
|
|
|
- this.$message({
|
|
|
|
- message: '毛重不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.grossWeight < 0 ||
|
|
|
|
- this.deptBudgetList.grossWeight > 10000 ||
|
|
|
|
- (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
|
|
|
|
- String(this.deptBudgetList.grossWeight).length -
|
|
|
|
- (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
|
|
|
|
- 3)
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '毛重输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(!this.deptBudgetList.tare){
|
|
|
|
- this.$message({
|
|
|
|
- message: '皮重不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.tare < 0 ||
|
|
|
|
- this.deptBudgetList.tare > 10000 ||
|
|
|
|
- (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
|
|
|
|
- String(this.deptBudgetList.tare).length -
|
|
|
|
- (String(this.deptBudgetList.tare).indexOf('.') + 1) >
|
|
|
|
- 3)
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '皮重输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(!this.deptBudgetList.agent){
|
|
|
|
- this.$message({
|
|
|
|
- message: '经办人不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.agent.length < 2 ||
|
|
|
|
- this.deptBudgetList.agent.length > 10
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '经办人输入有误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(!this.deptBudgetList.carNo){
|
|
|
|
- this.$message({
|
|
|
|
- message: '车牌号不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.deptBudgetList.carNo.length > 7) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '车牌号输入错误,请输入7个字符之内',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(!this.deptBudgetList.contractNo){
|
|
|
|
- this.$message({
|
|
|
|
- message: '合同编号不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.contractNo.length < 6 ||
|
|
|
|
- this.deptBudgetList.contractNo.length > 20
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '合同编号长度不符合要求,请输入6-20个字符之内',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(this.deptBudgetList.netWeight > this.$route.query.capacity){
|
|
|
|
- this.$message({
|
|
|
|
- message: '入库量大于该仓库容量!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- this.$confirm(`暂存后可在待完成页面查看,确定暂存`, {
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- .then(() => {
|
|
|
|
- this.$refs.deptBudgetList.validate((valid) => {
|
|
|
|
- if (valid) {
|
|
|
|
- this.deptBudgetList.compId = sessionStorage.getItem(
|
|
|
|
- 'ws-pf_compId'
|
|
|
|
- )
|
|
|
|
- this.deptBudgetList.inOutFlag = 2
|
|
|
|
- this.deptBudgetList.statusFlag = 1
|
|
|
|
- addstorageputList(this.deptBudgetList)
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.$message.success('暂存成功')
|
|
|
|
- this.$router.push({ path: 'warehouseManagementList' })
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
- return false
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- .catch(() => {
|
|
|
|
- return false
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- tarechange(e) {
|
|
|
|
- if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
|
|
|
|
- this.deptBudgetList.netWeight = Number(
|
|
|
|
- this.deptBudgetList.grossWeight - this.deptBudgetList.tare
|
|
|
|
- )
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- grossWeightchange(e) {
|
|
|
|
- if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
|
|
|
|
- this.deptBudgetList.netWeight = Number(
|
|
|
|
- this.deptBudgetList.grossWeight - this.deptBudgetList.tare
|
|
|
|
- )
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- selectgoodsName(e) {
|
|
|
|
- for (var i = 0; i < this.goodnameList.length; i++) {
|
|
|
|
- if (this.goodnameList[i].constValue == e) {
|
|
|
|
- this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- selectpackingMethod(e) {
|
|
|
|
- for (var i = 0; i < this.packtypeList.length; i++) {
|
|
|
|
- if (this.packtypeList[i].constValue == e) {
|
|
|
|
- this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- selectstorageType(e) {
|
|
|
|
- for (var i = 0; i < this.storageType.length; i++) {
|
|
|
|
- if (this.storageType[i].constValue == e) {
|
|
|
|
- this.deptBudgetList.inOutTypeKey = this.storageType[i].constKey
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- handleClose() {
|
|
|
|
- this.accessoryTFs = false
|
|
|
|
- },
|
|
|
|
- handleSizeChange(val) {
|
|
|
|
- console.log(`每页 ${val} 条`)
|
|
|
|
- this.pageSize = val
|
|
|
|
- this.getList()
|
|
|
|
- },
|
|
|
|
- handleCurrentChange(val) {
|
|
|
|
- this.currentPage = val
|
|
|
|
- console.log(`当前页: ${val}`)
|
|
|
|
- this.getList()
|
|
|
|
- },
|
|
|
|
getList() {
|
|
getList() {
|
|
- // 货名
|
|
|
|
- pullDown({ constId: 'CON2' })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.goodnameList = response
|
|
|
|
- })
|
|
|
|
- // 品级
|
|
|
|
- pullDown({ constId: 'CON3' })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.gradeList = response
|
|
|
|
- })
|
|
|
|
- // 类型
|
|
|
|
- pullDown({ constId: 'CON5' })
|
|
|
|
|
|
+ examinetran({ id: this.$route.query.id })
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- this.storageType = response
|
|
|
|
|
|
+ this.checkList = response.tranType.split(',')
|
|
|
|
+ this.deptBudgetList = response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- selecttaskType(e) {
|
|
|
|
- for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
|
|
- if (this.taskTypeList[i].value == e) {
|
|
|
|
- this.searchType = this.taskTypeList[i].type
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- fujian(row) {
|
|
|
|
- if (
|
|
|
|
- row.receiveAttachmentPath === null ||
|
|
|
|
- row.receiveAttachmentPath === ''
|
|
|
|
- ) {
|
|
|
|
- EventBus.$emit(
|
|
|
|
- 'warning',
|
|
|
|
- this.$t('system.noticeCircular.NoInformation')
|
|
|
|
- )
|
|
|
|
- } else {
|
|
|
|
- this.accessoryTFs = true
|
|
|
|
- }
|
|
|
|
- this.appendixIdss = row.receiveAttachmentPath
|
|
|
|
- },
|
|
|
|
- handleExamine(row) {
|
|
|
|
- this.$router.push({
|
|
|
|
- name: 'salesContractExamine',
|
|
|
|
- query: { id: row.id },
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- // 关闭 dialog时 处理文件url 初始化upload组件
|
|
|
|
- // handleCloe() {
|
|
|
|
- // this.dialogViewSpareMoney = false
|
|
|
|
- // },
|
|
|
|
- // history(row) {
|
|
|
|
- // billoperatehis({ id: row.id })
|
|
|
|
- // .toPromise()
|
|
|
|
- // .then((response) => {
|
|
|
|
- // this.historyList = response
|
|
|
|
- // })
|
|
|
|
- // },
|
|
|
|
- // deletecontract(){},
|
|
|
|
- //删除
|
|
|
|
approve() {},
|
|
approve() {},
|
|
listQuery() {},
|
|
listQuery() {},
|
|
},
|
|
},
|
|
@@ -774,6 +306,9 @@ export default {
|
|
height: 2000px;
|
|
height: 2000px;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
+/deep/.address.el-form-item {
|
|
|
|
+ width: 100%;
|
|
|
|
+}
|
|
/deep/.el-form-item__label {
|
|
/deep/.el-form-item__label {
|
|
width: 160px;
|
|
width: 160px;
|
|
}
|
|
}
|
|
@@ -798,14 +333,14 @@ export default {
|
|
}
|
|
}
|
|
//仓位
|
|
//仓位
|
|
|
|
|
|
-.position{
|
|
|
|
-background: #AFB5CB;
|
|
|
|
-border-radius: 2px;
|
|
|
|
-font-size: 12px;
|
|
|
|
-color: #FFFFFF;
|
|
|
|
-line-height: 20px;
|
|
|
|
-display: inline-grid;
|
|
|
|
-padding: 2px 4px;
|
|
|
|
|
|
+.position {
|
|
|
|
+ background: #afb5cb;
|
|
|
|
+ border-radius: 2px;
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ color: #ffffff;
|
|
|
|
+ line-height: 20px;
|
|
|
|
+ display: inline-grid;
|
|
|
|
+ padding: 2px 4px;
|
|
}
|
|
}
|
|
// .position {
|
|
// .position {
|
|
// width: 52px;
|
|
// width: 52px;
|
|
@@ -865,22 +400,22 @@ padding: 2px 4px;
|
|
// /deep/.neifor .el-input--small .el-input__inner{
|
|
// /deep/.neifor .el-input--small .el-input__inner{
|
|
// width: 100%;
|
|
// width: 100%;
|
|
// }
|
|
// }
|
|
-.inspector {
|
|
|
|
|
|
+.inspector {
|
|
text-align: left;
|
|
text-align: left;
|
|
margin-left: -350px;
|
|
margin-left: -350px;
|
|
// margin-top: 50px;
|
|
// margin-top: 50px;
|
|
width: 700px;
|
|
width: 700px;
|
|
margin-left: -100px;
|
|
margin-left: -100px;
|
|
}
|
|
}
|
|
-.ws-info-table .el-form-item{
|
|
|
|
|
|
+.ws-info-table .el-form-item {
|
|
width: 300px;
|
|
width: 300px;
|
|
}
|
|
}
|
|
//多选
|
|
//多选
|
|
-.el-checkbox-group{
|
|
|
|
|
|
+.el-checkbox-group {
|
|
margin-left: 160px;
|
|
margin-left: 160px;
|
|
margin-top: -20px;
|
|
margin-top: -20px;
|
|
}
|
|
}
|
|
-.zi{
|
|
|
|
|
|
+.zi {
|
|
margin-left: 100px;
|
|
margin-left: 100px;
|
|
}
|
|
}
|
|
//底部表格
|
|
//底部表格
|