|
@@ -22,231 +22,241 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
- <ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
|
|
|
|
- <div class="basicInformation">
|
|
|
|
- <h2>
|
|
|
|
- 任务编号
|
|
|
|
- </h2>
|
|
|
|
- <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>
|
|
|
|
- <!-- 货名 -->
|
|
|
|
- <ws-form-item label="货名" span="1">
|
|
|
|
- <ws-input
|
|
|
|
- @input="grossWeightchange"
|
|
|
|
- v-model="deptBudgetList.grossWeight"
|
|
|
|
- placeholder="请输入货名"
|
|
|
|
- maxlength="20"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--重量(吨)-->
|
|
|
|
- <ws-form-item
|
|
|
|
- label="重量(吨)"
|
|
|
|
- span="1"
|
|
|
|
- prop="tare"
|
|
|
|
- class="readonly"
|
|
|
|
|
|
+ <ws-form ref="deptBudgetList" :rules="rules" :model="deptBudgetList">
|
|
|
|
+ <div class="small-title">任务详情</div>
|
|
|
|
+ <ws-info-table>
|
|
|
|
+ <!--任务编号-->
|
|
|
|
+ <ws-form-item label="任务编号" span="1" prop="processNo">
|
|
|
|
+ <ws-input
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="deptBudgetList.processNo"
|
|
|
|
+ placeholder="请输入任务编号"
|
|
|
|
+ maxlength="20"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--货名-->
|
|
|
|
+ <ws-form-item label="货名" span="1" prop="goodsName">
|
|
|
|
+ <!-- <el-select
|
|
|
|
+ v-model="deptBudgetList.goodsName"
|
|
|
|
+ placeholder="请选择货名"
|
|
|
|
+ filterable
|
|
|
|
+ :filter-method="dataFilter"
|
|
|
|
+ @change="selectstaff"
|
|
>
|
|
>
|
|
- <ws-input
|
|
|
|
- @input="tarechange"
|
|
|
|
- v-model="deptBudgetList.tare"
|
|
|
|
- placeholder="请输入重重"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </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>
|
|
|
|
- <!--发货人-->
|
|
|
|
- <ws-form-item label="发货人" span="1" prop="agent">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.agent"
|
|
|
|
- placeholder="请输入发货人姓名"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in personCharge"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.staffName"
|
|
|
|
+ :value="item.staffName"
|
|
|
|
+ /> -->
|
|
|
|
+ <ws-input
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="deptBudgetList.goodsName"
|
|
|
|
+ placeholder="请输入货名"
|
|
|
|
+ maxlength="20"
|
|
|
|
+ size="small"
|
|
/>
|
|
/>
|
|
- </ws-form-item>
|
|
|
|
|
|
+ <!-- </el-select> -->
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--重量(吨)-->
|
|
|
|
+ <ws-form-item label="重量(吨)" span="1" prop="weight">
|
|
|
|
+ <ws-input
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="deptBudgetList.weight"
|
|
|
|
+ placeholder="请输入重量(吨)"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
|
|
- <!--发货人电话-->
|
|
|
|
- <ws-form-item label="发货人电话" span="1" prop="agent">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.agent"
|
|
|
|
- placeholder="请输入发货人电话"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </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>
|
|
|
|
- <!--收货人-->
|
|
|
|
- <ws-form-item label="收货人" span="1" prop="agent">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.agent"
|
|
|
|
- placeholder="请输入发货人"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
|
|
+ <!--发货地址-->
|
|
|
|
+ <ws-form-item label="发货地址" span="1" prop="sendDetailedAddress">
|
|
|
|
+ <!-- <ws-input
|
|
|
|
+ v-model="deptBudgetList.sendDetailedAddress"
|
|
|
|
+ placeholder=""
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
|
|
+ /> -->
|
|
|
|
+ {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
|
|
|
|
+ }}{{ deptBudgetList.sendArea }}
|
|
|
|
+ </ws-form-item>
|
|
|
|
+
|
|
|
|
+ <!--发货人-->
|
|
|
|
+ <ws-form-item label="发货人" span="1" prop="sender" class="readonly">
|
|
|
|
+ <ws-input
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="deptBudgetList.sender"
|
|
|
|
+ placeholder="请输入发货人"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
/>
|
|
/>
|
|
- </ws-form-item>
|
|
|
|
|
|
+ </ws-form-item>
|
|
|
|
|
|
- <!--收货人电话-->
|
|
|
|
- <ws-form-item label="收货人电话" span="1" prop="agent">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.agent"
|
|
|
|
- placeholder="请输入收货人电话"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--发货日期-->
|
|
|
|
- <ws-form-item
|
|
|
|
- label="发货日期"
|
|
|
|
- span="1"
|
|
|
|
- prop="inOutDate"
|
|
|
|
- class="deliverydate"
|
|
|
|
- >
|
|
|
|
- <ws-date-picker
|
|
|
|
- v-model="deptBudgetList.inOutDate"
|
|
|
|
- type="date"
|
|
|
|
- placeholder="请选择发货日期"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--最晚发货日期-->
|
|
|
|
- <ws-form-item
|
|
|
|
- label="最晚到货日期"
|
|
|
|
- span="1"
|
|
|
|
- prop="inOutDate"
|
|
|
|
- class="deliverydate"
|
|
|
|
- >
|
|
|
|
- <ws-date-picker
|
|
|
|
- v-model="deptBudgetList.inOutDate"
|
|
|
|
- type="date"
|
|
|
|
- placeholder="请选择最晚发货日期"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!--合同编号-->
|
|
|
|
- <ws-form-item label="合同编号" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractNo"
|
|
|
|
- placeholder="请输入合同编号"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
-
|
|
|
|
- </ws-info-table>
|
|
|
|
- </div>
|
|
|
|
- <div class="small-title"><h2>派车</h2></div>
|
|
|
|
- <div class="neifor">
|
|
|
|
|
|
+ <!--发货人电话-->
|
|
|
|
+ <ws-form-item
|
|
|
|
+ label="发货人电话"
|
|
|
|
+ span="1"
|
|
|
|
+ prop="senderPhone"
|
|
|
|
+ class="readonly"
|
|
|
|
+ >
|
|
|
|
+ <ws-input
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="deptBudgetList.senderPhone"
|
|
|
|
+ placeholder="请输入发货人电话"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--收货地址-->
|
|
|
|
+ <ws-form-item label="收货地址" span="1" prop="receiveDetailedAddress">
|
|
|
|
+ <!-- <ws-input
|
|
|
|
+ v-model="deptBudgetList.receiveDetailedAddress"
|
|
|
|
+ placeholder="请输入仓库名"
|
|
|
|
+ maxlength="20"
|
|
|
|
+ size="small"
|
|
|
|
+ /> -->
|
|
|
|
+ {{ deptBudgetList.receivePrivate }}{{ deptBudgetList.receiveCity
|
|
|
|
+ }}{{ deptBudgetList.receiveArea }}
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--收货人-->
|
|
|
|
+ <ws-form-item label="收货人" span="1" prop="receiver">
|
|
|
|
+ <ws-input
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="deptBudgetList.receiver"
|
|
|
|
+ placeholder="请输入仓库名"
|
|
|
|
+ maxlength="20"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--收货人电话-->
|
|
|
|
+ <ws-form-item label="收货人电话" span="1" prop="receiverPhone">
|
|
|
|
+ <ws-input
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="deptBudgetList.receiverPhone"
|
|
|
|
+ placeholder="请输入仓库名"
|
|
|
|
+ maxlength="20"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--发货日期-->
|
|
|
|
+ <ws-form-item label="发货日期" span="1" prop="deliveryDateStart">
|
|
|
|
+ <ws-input
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="deptBudgetList.deliveryDateStart"
|
|
|
|
+ placeholder="请输入仓库名"
|
|
|
|
+ maxlength="20"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--最晚到货日期-->
|
|
|
|
+ <ws-form-item label="最晚到货日期" span="1" prop="deliveryDateEnd">
|
|
|
|
+ <ws-input
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="deptBudgetList.deliveryDateEnd"
|
|
|
|
+ placeholder="请输入仓库名"
|
|
|
|
+ maxlength="20"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--合同编号-->
|
|
|
|
+ <ws-form-item label="合同编号" span="1" prop="contractNo">
|
|
|
|
+ <ws-input
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="deptBudgetList.contractNo"
|
|
|
|
+ placeholder="请输入合同编号"
|
|
|
|
+ maxlength="20"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ </ws-info-table>
|
|
|
|
+ <div class="small-title">派车</div>
|
|
|
|
+ <div
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ class="driver"
|
|
|
|
+ v-for="(item, index) in deptBudgetList.tranCarInfoList"
|
|
|
|
+ >
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
- <!--司机-->
|
|
|
|
- <ws-form-item label="司机" span="1" prop="waterContent" class="xia">
|
|
|
|
|
|
+ <span class="not" v-if="item.statusFlag == 3">{{ item.status }}</span>
|
|
|
|
+ <span class="already" v-if="item.statusFlag == 1">{{
|
|
|
|
+ item.status
|
|
|
|
+ }}</span>
|
|
|
|
+ <!--姓名-->
|
|
|
|
+ <ws-form-item label="姓名" span="1" prop="driver">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.bulkDensity"
|
|
|
|
- placeholder=""
|
|
|
|
- maxlength="120"
|
|
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="item.driver"
|
|
|
|
+ placeholder="请输入姓名"
|
|
|
|
+ maxlength="20"
|
|
size="small"
|
|
size="small"
|
|
- class="aa"
|
|
|
|
-
|
|
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- <!--司机电话-->
|
|
|
|
- <ws-form-item label="司机电话" span="1" prop="impurity" class="xia">
|
|
|
|
|
|
+ <ws-form-item class="phone" label="电话" span="1" prop="driverPhone">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.bulkDensity"
|
|
|
|
- placeholder=""
|
|
|
|
- maxlength="120"
|
|
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="item.driverPhone"
|
|
|
|
+ placeholder="请输入电话"
|
|
|
|
+ maxlength="20"
|
|
size="small"
|
|
size="small"
|
|
- class="aa"
|
|
|
|
-
|
|
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- <!--车牌号-->
|
|
|
|
- <ws-form-item label="车牌号" span="1" prop="bulkDensity" class="xia">
|
|
|
|
|
|
+ <ws-form-item label="车牌号" span="1" prop="carNo">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.bulkDensity"
|
|
|
|
- placeholder=""
|
|
|
|
- maxlength="120"
|
|
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="item.carNo"
|
|
|
|
+ placeholder="请输入车牌号"
|
|
|
|
+ maxlength="20"
|
|
size="small"
|
|
size="small"
|
|
- class="aa"
|
|
|
|
-
|
|
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- <!--车型-->
|
|
|
|
- <ws-form-item label="车型" span="1" prop="mildewGrain" class="xia">
|
|
|
|
|
|
+ <ws-form-item label="装车(吨)" span="1" prop="loadNetWeight">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.mildewGrain"
|
|
|
|
- placeholder="请输入高栏"
|
|
|
|
- maxlength="120"
|
|
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="deptBudgetList.loadNetWeight"
|
|
|
|
+ placeholder="未装车"
|
|
|
|
+ maxlength="20"
|
|
size="small"
|
|
size="small"
|
|
- class="aa"
|
|
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- <!--车长-->
|
|
|
|
- <ws-form-item label="车长" span="1" prop="jiaorenli" class="xia">
|
|
|
|
|
|
+ <ws-form-item label="卸车(吨)" span="1" prop="unloadNetWeight">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.jiaorenli"
|
|
|
|
- placeholder="请输入车长"
|
|
|
|
- maxlength="120"
|
|
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="item.unloadNetWeight"
|
|
|
|
+ placeholder="未卸车"
|
|
|
|
+ maxlength="20"
|
|
size="small"
|
|
size="small"
|
|
- class="aa"
|
|
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- <!--载重吨-->
|
|
|
|
- <ws-form-item label="载重(吨)" span="1" prop="imperfectGrain" class="xia">
|
|
|
|
|
|
+ <ws-form-item label="损耗(吨)" span="1" prop="loss">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.warehouseInOutDetail.imperfectGrain"
|
|
|
|
- placeholder="请输入载重(吨)"
|
|
|
|
- maxlength="120"
|
|
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-model="item.loss"
|
|
|
|
+ placeholder="未损耗"
|
|
|
|
+ maxlength="20"
|
|
size="small"
|
|
size="small"
|
|
- class="aa"
|
|
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- </ws-info-table>
|
|
|
|
- </div>
|
|
|
|
- <div style="text-align: right; padding: 10px">
|
|
|
|
-
|
|
|
|
- <el-button
|
|
|
|
- class="bg-bottom-up"
|
|
|
|
- type="primary"
|
|
|
|
- size="small"
|
|
|
|
- @click="submit()"
|
|
|
|
- >提交</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <ws-form-item label="合同" span="1" prop="unloadNetWeight">
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ </ws-info-table>
|
|
</div>
|
|
</div>
|
|
</ws-form>
|
|
</ws-form>
|
|
|
|
+ <div style="text-align: right; padding: 10px">
|
|
|
|
+ <el-button
|
|
|
|
+ class="bg-bottom-up"
|
|
|
|
+ type="primary"
|
|
|
|
+ size="small"
|
|
|
|
+ @click="revert()"
|
|
|
|
+ >关闭</el-button
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import { pullDown, addstorageputList } from '@/model/warehouse/index'
|
|
import { pullDown, addstorageputList } from '@/model/warehouse/index'
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
import WsUpload from '@/components/WsUpload'
|
|
import WsUpload from '@/components/WsUpload'
|
|
|
|
+import { seeCat } from '@/model/transport/index'
|
|
// import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
// import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
import { dayjs, EventBus } from 'base-core-lib'
|
|
import { dayjs, EventBus } from 'base-core-lib'
|
|
export default {
|
|
export default {
|
|
@@ -276,6 +286,7 @@ export default {
|
|
showType: true,
|
|
showType: true,
|
|
// 年
|
|
// 年
|
|
year: '',
|
|
year: '',
|
|
|
|
+ disabled: true,
|
|
deptBudgetTotal: 0,
|
|
deptBudgetTotal: 0,
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
@@ -325,28 +336,8 @@ 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: {
|
|
//返回按钮
|
|
//返回按钮
|
|
@@ -358,366 +349,28 @@ export default {
|
|
this.freightspace.splice(index, 1)
|
|
this.freightspace.splice(index, 1)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- //提交按钮
|
|
|
|
- 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' })
|
|
|
|
|
|
+ seeCat({ id: this.$route.query.id })
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- this.goodnameList = response
|
|
|
|
- })
|
|
|
|
- // 品级
|
|
|
|
- pullDown({ constId: 'CON3' })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.gradeList = response
|
|
|
|
- })
|
|
|
|
- // 类型
|
|
|
|
- pullDown({ constId: 'CON5' })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.storageType = response
|
|
|
|
|
|
+ for (var i = 0; i < response.tranCarInfoList.length; i++) {
|
|
|
|
+ if (
|
|
|
|
+ response.tranCarInfoList[i].loadNetWeight &&
|
|
|
|
+ response.tranCarInfoList[i].unloadNetWeight
|
|
|
|
+ ) {
|
|
|
|
+ response.tranCarInfoList[i].loss =
|
|
|
|
+ response.tranCarInfoList[i].loadNetWeight -
|
|
|
|
+ response.tranCarInfoList[i].unloadNetWeight
|
|
|
|
+ } else if (response.tranCarInfoList[i].loadNetWeight) {
|
|
|
|
+ response.tranCarInfoList[i].loss =
|
|
|
|
+ response.tranCarInfoList[i].loadNetWeight
|
|
|
|
+ } else {
|
|
|
|
+ response.tranCarInfoList[i].loss = 0
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ 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) {
|
|
handleExamine(row) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: 'salesContractExamine',
|
|
name: 'salesContractExamine',
|
|
@@ -794,6 +447,9 @@ export default {
|
|
height: 2000px;
|
|
height: 2000px;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
+/deep/.ws-info-table .el-form-item {
|
|
|
|
+ width: 33.33%;
|
|
|
|
+}
|
|
/deep/.el-form-item__label {
|
|
/deep/.el-form-item__label {
|
|
width: 160px;
|
|
width: 160px;
|
|
}
|
|
}
|
|
@@ -818,32 +474,20 @@ export default {
|
|
}
|
|
}
|
|
//仓位
|
|
//仓位
|
|
|
|
|
|
-.position{
|
|
|
|
-background: #AFB5CB;
|
|
|
|
-border-radius: 2px;
|
|
|
|
-font-size: 12px;
|
|
|
|
-color: #FFFFFF;
|
|
|
|
-line-height: 20px;
|
|
|
|
-display: inline-grid;
|
|
|
|
-padding: 2px 4px;
|
|
|
|
-}
|
|
|
|
-// .position {
|
|
|
|
-// width: 52px;
|
|
|
|
-// height: 20px;
|
|
|
|
-// background: #afb5cb;
|
|
|
|
-// border-radius: 2px;
|
|
|
|
-// font-size: 12px;
|
|
|
|
-// font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
-// color: #ffffff;
|
|
|
|
-// line-height: 20px;
|
|
|
|
-// }
|
|
|
|
|
|
+.position {
|
|
|
|
+ border-radius: 2px;
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ line-height: 20px;
|
|
|
|
+ display: inline-grid;
|
|
|
|
+ padding: 2px 4px;
|
|
|
|
+}
|
|
//表格文字
|
|
//表格文字
|
|
/deep/.ws-info-table .el-form-item .el-form-item__label {
|
|
/deep/.ws-info-table .el-form-item .el-form-item__label {
|
|
text-align: left;
|
|
text-align: left;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
- color: #8890b1;
|
|
|
|
|
|
+ color: #000;
|
|
line-height: 16px;
|
|
line-height: 16px;
|
|
}
|
|
}
|
|
.small-title {
|
|
.small-title {
|
|
@@ -871,20 +515,54 @@ padding: 2px 4px;
|
|
width: 35%;
|
|
width: 35%;
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
-/deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
|
|
|
|
- width: 60%;
|
|
|
|
- background-color: #f6f7fc;
|
|
|
|
-}
|
|
|
|
|
|
|
|
-/deep/.neifor .el-input--small .el-input__inner{
|
|
|
|
|
|
+/deep/.neifor .el-input--small .el-input__inner {
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
// .ws-info-table[data-v-850a44a6] .el-form-item {
|
|
// .ws-info-table[data-v-850a44a6] .el-form-item {
|
|
// width: 16.66%;
|
|
// width: 16.66%;
|
|
// }
|
|
// }
|
|
.xia {
|
|
.xia {
|
|
-
|
|
|
|
- width: 16%;
|
|
|
|
|
|
+ width: 16%;
|
|
|
|
+}
|
|
|
|
+//去边框
|
|
|
|
+/deep/.el-form-item {
|
|
|
|
+ border-right: 0px;
|
|
|
|
+ border-bottom: 0px;
|
|
|
|
+}
|
|
|
|
+/deep/.ws-info-table {
|
|
|
|
+ border-left: 0px;
|
|
|
|
+ border-top: 0px;
|
|
|
|
+}
|
|
|
|
+.ws-info-table .el-form-item .el-form-item__content {
|
|
|
|
+ border-right: 0px;
|
|
|
|
+ border-bottom: 0px;
|
|
|
|
+ border-left: 0px;
|
|
|
|
+ border-top: 0px;
|
|
|
|
+}
|
|
|
|
+/deep/.ws-info-table .el-form-item {
|
|
|
|
+ border-right: 0px;
|
|
|
|
+ border-bottom: 0px;
|
|
|
|
+ border-left: 0px;
|
|
|
|
+ border-top: 0px;
|
|
|
|
+}
|
|
|
|
+.driver {
|
|
|
|
+ position: relative;
|
|
|
|
+}
|
|
|
|
+.not,
|
|
|
|
+.already {
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: -45px;
|
|
|
|
+ top: 10px;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/deep/.driver .ws-info-table .el-form-item {
|
|
|
|
+ width: 14%;
|
|
|
|
+}
|
|
|
|
+/deep/.driver .ws-info-table .el-form-item .el-form-item__label {
|
|
|
|
+ width: 86px;
|
|
|
|
+}
|
|
|
|
+/deep/.driver .ws-info-table .el-form-item.phone .el-form-item__label {
|
|
|
|
+ width: 50px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|