|
@@ -2,78 +2,80 @@
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
<!-- 筛选条件 -->
|
|
<!-- 筛选条件 -->
|
|
<div>
|
|
<div>
|
|
- <el-form ref="screenForm" :model="screenForm" label-width="70px" size="small" label-position="left">
|
|
|
|
|
|
+ <el-form ref="mainForm" :model="mainForm" :rules="mainFormRules" label-width="80px" size="small" label-position="left">
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
- <el-form-item label="仓库" prop="status">
|
|
|
|
- <el-select v-model="screenForm.status" placeholder="全部">
|
|
|
|
- <el-option label="全部" value=""></el-option>
|
|
|
|
- <el-option :label="item.label" :value="item.value" v-for="(item, index) in select_status" :key="index"></el-option>
|
|
|
|
|
|
+ <el-form-item label="选择仓库" prop="warehouse">
|
|
|
|
+ <el-select v-model="mainForm.warehouse" placeholder="请选择仓库">
|
|
|
|
+ <el-option :label="item.name" :value="item.name" v-for="(item, index) in warehouseList" :key="index"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
- <el-button size="small" type="primary" @click="submitScreenForm">确定</el-button>
|
|
|
|
|
|
+ <el-button size="small" type="primary" @click="getDeliverList">确定</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
|
- <el-form-item label="提货单号" prop="orderNum">
|
|
|
|
- <el-input v-model="screenForm.orderNum" placeholder="请输入提货单号"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
<el-col :xs="24" :sm="12" :lg="6" style="height: 51px;">
|
|
<el-col :xs="24" :sm="12" :lg="6" style="height: 51px;">
|
|
<el-form-item label="预约日期" prop="date">
|
|
<el-form-item label="预约日期" prop="date">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
- v-model="screenForm.date"
|
|
|
|
|
|
+ v-model="mainForm.date"
|
|
type="date"
|
|
type="date"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
placeholder="选择日期">
|
|
placeholder="选择日期">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="12" style="height: 51px;">
|
|
<el-col :xs="24" :sm="12" :lg="12" style="height: 51px;">
|
|
- <el-form-item label="预约时段" prop="date">
|
|
|
|
- <el-date-picker
|
|
|
|
- v-model="screenForm.date"
|
|
|
|
- type="datetimerange"
|
|
|
|
|
|
+ <el-form-item label="预约时段" prop="timeSlot">
|
|
|
|
+ <el-time-picker
|
|
|
|
+ is-range
|
|
|
|
+ v-model="mainForm.timeSlot"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ value-format="HH:mm:ss"
|
|
range-separator="至"
|
|
range-separator="至"
|
|
- style="width: 100%;"
|
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
- start-placeholder="开始日期"
|
|
|
|
- end-placeholder="结束日期">
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
+ start-placeholder="开始时间"
|
|
|
|
+ end-placeholder="结束时间"
|
|
|
|
+ placeholder="选择时间范围">
|
|
|
|
+ </el-time-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row :gutter="20">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
- <el-form-item label="提货方式" prop="status">
|
|
|
|
- <el-select v-model="screenForm.status" placeholder="全部">
|
|
|
|
- <el-option label="全部" value=""></el-option>
|
|
|
|
- <el-option :label="item.label" :value="item.value" v-for="(item, index) in select_status" :key="index"></el-option>
|
|
|
|
|
|
+ <el-form-item label="提货方式" prop="pickupWay">
|
|
|
|
+ <el-select v-model="mainForm.pickupWay" placeholder="全部" style="width: 100%">
|
|
|
|
+ <el-option :label="item.dictValue" :value="item.dictCode" v-for="(item, index) in pickupWayList" :key="index"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
- <el-form-item label="提货人" prop="status">
|
|
|
|
- <el-select v-model="screenForm.status" placeholder="全部">
|
|
|
|
- <el-option label="全部" value=""></el-option>
|
|
|
|
- <el-option :label="item.label" :value="item.value" v-for="(item, index) in select_status" :key="index"></el-option>
|
|
|
|
|
|
+ <el-form-item label="提货人" prop="pickupMan">
|
|
|
|
+ <el-select v-model="mainForm.pickupMan" placeholder="全部" style="width: 100%">
|
|
|
|
+ <el-option :label="item.takerName" :value="item.id" v-for="(item, index) in pickupManList" :key="index"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
|
- <el-form-item label="提货车辆" prop="status">
|
|
|
|
- <el-select v-model="screenForm.status" placeholder="全部">
|
|
|
|
- <el-option label="全部" value=""></el-option>
|
|
|
|
- <el-option :label="item.label" :value="item.value" v-for="(item, index) in select_status" :key="index"></el-option>
|
|
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6" v-if="mainForm.pickupWay == '1'">
|
|
|
|
+ <el-form-item label="提货车辆" prop="pickupCar">
|
|
|
|
+ <el-select v-model="mainForm.pickupCar" placeholder="全部" style="width: 100%">
|
|
|
|
+ <el-option :label="item.carBrand" :value="item.id" v-for="(item, index) in pickupCarList" :key="index"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6" v-if="mainForm.pickupWay == '2'">
|
|
|
|
+ <el-form-item label="物流公司" prop="company">
|
|
|
|
+ <el-select v-model="mainForm.company" placeholder="全部" style="width: 100%">
|
|
|
|
+ <el-option :label="item.logisticsCompany" :value="item.logisticsNumber" v-for="(item, index) in companyList" :key="index"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="12">
|
|
<el-col :xs="24" :sm="12" :lg="12">
|
|
- <el-form-item label="备注" prop="orderNum">
|
|
|
|
- <el-input v-model="screenForm.orderNum" placeholder="请输入备注"></el-input>
|
|
|
|
|
|
+ <el-form-item label="备注内容" prop="remark">
|
|
|
|
+ <el-input v-model="mainForm.remark" placeholder="请输入备注内容"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -82,31 +84,49 @@
|
|
|
|
|
|
<div class="mymain-container">
|
|
<div class="mymain-container">
|
|
<div class="table">
|
|
<div class="table">
|
|
- <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
|
|
|
|
- <el-table-column align="center" label="发货单号" prop="aaa" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="单据日期" prop="aaa" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="工程编号" prop="aaa" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="销售类型" prop="aaa" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="产品编码" prop="aaa" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="产品名称" prop="aaa" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="规格型号" prop="aaa" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="单位" prop="aaa" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="数量" prop="aaa" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="总体积" prop="aaa" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
+ <el-table v-loading="listLoading" :data="deliverList" element-loading-text="Loading" border fit highlight-current-row stripe @selection-change="handleSelectionChange">
|
|
|
|
+ <el-table-column align="center" type="selection" width="55"></el-table-column>
|
|
|
|
+ <el-table-column type="expand">
|
|
|
|
+ <template slot-scope="props">
|
|
|
|
+ <div style="display: flex; margin: 0 -30px 0 -20px;">
|
|
|
|
+ <div style="line-height: 50px; font-weight: 600">产品信息</div>
|
|
|
|
+ <div class="diy-table-2" style="margin: 0 0 0 14px; flex: 1">
|
|
|
|
+ <div class="head">
|
|
|
|
+ <el-row :gutter="20">
|
|
|
|
+ <el-col :span="5">产品编号</el-col>
|
|
|
|
+ <el-col :span="10">产品名称</el-col>
|
|
|
|
+ <el-col :span="3">规格型号</el-col>
|
|
|
|
+ <el-col :span="3">单位</el-col>
|
|
|
|
+ <el-col :span="3">数量</el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="body">
|
|
|
|
+ <el-row v-for="(item, index) in props.row.shipDocumentOrders" :key="index" :gutter="20">
|
|
|
|
+ <el-col :span="5">{{ item.productNumber }}</el-col>
|
|
|
|
+ <el-col :span="10">{{ item.productName }}</el-col>
|
|
|
|
+ <el-col :span="3">{{ item.specification }}</el-col>
|
|
|
|
+ <el-col :span="3">{{ item.unit }}</el-col>
|
|
|
|
+ <el-col :span="3">{{ item.number }}</el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="center" label="发货单号" prop="shipOrderNo" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="单据日期" prop="createTime" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="工程编号" prop="factoryNumber" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="销售类型" prop="salesType" min-width="160" show-overflow-tooltip></el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="pagination clearfix">
|
|
|
|
- <div class="fr">
|
|
|
|
- <el-pagination
|
|
|
|
- @size-change="handleSizeChange"
|
|
|
|
- @current-change="handleCurrentChange"
|
|
|
|
- :current-page="currentPage"
|
|
|
|
- :page-sizes="[10, 20, 30, 50]"
|
|
|
|
- :page-size="10"
|
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
- :total="listTotal">
|
|
|
|
- </el-pagination>
|
|
|
|
|
|
+
|
|
|
|
+ <div class="page-footer">
|
|
|
|
+ <div class="footer" :class="classObj">
|
|
|
|
+ <el-button type="primary" @click="clickSubmitForm" :loading="formLoading">{{ formLoading ? '提交中 ...' : '提 交' }}</el-button>
|
|
|
|
+ <el-popconfirm title="确定重置吗?" @onConfirm="resetForm" style="margin-left: 10px;">
|
|
|
|
+ <el-button slot="reference">重 置</el-button>
|
|
|
|
+ </el-popconfirm>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -114,50 +134,67 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { COMMON_SELECT } from '@/utils/select_data'
|
|
|
|
-import { getList } from "@/api/supply/purchase";
|
|
|
|
|
|
+import { getWarehouseList, getDeliverList, getPickupManList, getPickupCarList, getCompanyList, addPickupBook } from "@/api/supply/pickup";
|
|
|
|
+import { getDictList } from "@/api/common";
|
|
|
|
+import { findElem } from "@/utils/util";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- currentPage: 1, // 当前页码
|
|
|
|
- pageSize: 10, // 每页数量
|
|
|
|
- listTotal: 0, // 列表总数
|
|
|
|
- dataList: null, // 列表数据
|
|
|
|
|
|
+ deliverList: null, // 列表数据
|
|
listLoading: false, // 列表加载loading
|
|
listLoading: false, // 列表加载loading
|
|
- screenForm: { // 筛选表单数据
|
|
|
|
- orderNum: '',
|
|
|
|
- jxsName: '',
|
|
|
|
- chName: '',
|
|
|
|
- model: '',
|
|
|
|
|
|
+ mainForm: { // 筛选表单数据
|
|
|
|
+ warehouse: '',
|
|
date: '',
|
|
date: '',
|
|
- jxsNum: '',
|
|
|
|
- status: '',
|
|
|
|
|
|
+ timeSlot: '',
|
|
|
|
+ pickupWay: '',
|
|
|
|
+ pickupMan: '',
|
|
|
|
+ pickupCar: '',
|
|
|
|
+ company: '',
|
|
|
|
+ remark: '',
|
|
},
|
|
},
|
|
- select_status: [ // 筛选字段 - 状态
|
|
|
|
- { label: '正常', value: true },
|
|
|
|
- { label: '冻结', value: false }
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- jumpType: '',
|
|
|
|
- queryItem: {},
|
|
|
|
|
|
+ mainFormRules: {
|
|
|
|
+ date: [
|
|
|
|
+ { required: true, message: '请选择预约日期', trigger: 'change' }
|
|
|
|
+ ],
|
|
|
|
+ timeSlot: [
|
|
|
|
+ { required: true, message: '请选择预约时段', trigger: 'change' }
|
|
|
|
+ ],
|
|
|
|
+ pickupWay: [
|
|
|
|
+ { required: true, message: '请选择提货方式', trigger: 'change' }
|
|
|
|
+ ],
|
|
|
|
+ pickupMan: [
|
|
|
|
+ { required: true, message: '请选择提货人', trigger: 'change' }
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ formLoading: false,
|
|
|
|
+ tableSelection: [],
|
|
|
|
+ warehouseList: [],
|
|
|
|
+ pickupWayList: [],
|
|
|
|
+ pickupManList: [],
|
|
|
|
+ pickupCarList: [],
|
|
|
|
+ companyList: [],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
computed: {
|
|
computed: {
|
|
- exParams() {
|
|
|
|
|
|
+ sidebar() {
|
|
|
|
+ return this.$store.state.app.sidebar
|
|
|
|
+ },
|
|
|
|
+ classObj() {
|
|
return {
|
|
return {
|
|
- userName: this.screenForm.account,
|
|
|
|
- nickName: this.screenForm.nickName,
|
|
|
|
- linkPhone: this.screenForm.phone,
|
|
|
|
- email: this.screenForm.email,
|
|
|
|
- status: this.screenForm.status,
|
|
|
|
|
|
+ hideSidebar: !this.sidebar.opened,
|
|
|
|
+ openSidebar: this.sidebar.opened
|
|
}
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
|
|
created() {
|
|
created() {
|
|
- this.getList();
|
|
|
|
|
|
+ this.getWarehouseList();
|
|
|
|
+ this.getPickupWayList();
|
|
|
|
+ this.getPickupManList();
|
|
|
|
+ this.getPickupCarList();
|
|
|
|
+ this.getCompanyList();
|
|
},
|
|
},
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
@@ -170,51 +207,120 @@ export default {
|
|
return true
|
|
return true
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ // 获取仓库列表
|
|
|
|
+ getWarehouseList() {
|
|
|
|
+ getWarehouseList({
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: -1
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ this.warehouseList = res.data.records;
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 获取提货方式列表
|
|
|
|
+ getPickupWayList() {
|
|
|
|
+ getDictList({sysDictEnum: 'PICK'}).then(res => {
|
|
|
|
+ this.pickupWayList = res.data;
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 获取提货人列表
|
|
|
|
+ getPickupManList() {
|
|
|
|
+ getPickupManList({
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: -1
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.pickupManList = res.data.records;
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 获取提货车辆列表
|
|
|
|
+ getPickupCarList() {
|
|
|
|
+ getPickupCarList({
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: -1
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.pickupCarList = res.data.records;
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 获取物流公司列表
|
|
|
|
+ getCompanyList() {
|
|
|
|
+ getCompanyList({
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: -1
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.companyList = res.data.records;
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
// 查询列表
|
|
// 查询列表
|
|
- getList() {
|
|
|
|
|
|
+ getDeliverList() {
|
|
|
|
+ if(!this.mainForm.warehouse) {
|
|
|
|
+ return this.$errorMsg('请选择仓库');
|
|
|
|
+ }
|
|
this.listLoading = true;
|
|
this.listLoading = true;
|
|
-
|
|
|
|
- let params = {
|
|
|
|
- pageNum: this.currentPage,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- userName: this.screenForm.account,
|
|
|
|
- nickName: this.screenForm.nickName,
|
|
|
|
- linkPhone: this.screenForm.phone,
|
|
|
|
- email: this.screenForm.email,
|
|
|
|
- status: this.screenForm.status,
|
|
|
|
- };
|
|
|
|
- getList(params).then((res) => {
|
|
|
|
- this.dataList = res.data.records;
|
|
|
|
- this.listTotal = res.data.total;
|
|
|
|
|
|
+ getDeliverList({stockName: this.mainForm.warehouse}).then((res) => {
|
|
|
|
+ this.deliverList = res.data;
|
|
this.listLoading = false;
|
|
this.listLoading = false;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
- // 提交筛选表单
|
|
|
|
- submitScreenForm() {
|
|
|
|
- this.currentPage = 1;
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ handleSelectionChange(val) {
|
|
|
|
+ this.tableSelection = val;
|
|
},
|
|
},
|
|
|
|
|
|
- // 重置筛选表单
|
|
|
|
- resetScreenForm() {
|
|
|
|
- this.$refs.screenForm.resetFields();
|
|
|
|
- this.currentPage = 1;
|
|
|
|
- this.getList();
|
|
|
|
- },
|
|
|
|
|
|
+ clickSubmitForm() {
|
|
|
|
+ this.$refs.mainForm.validate((valid) => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ if(this.tableSelection.length < 1) {
|
|
|
|
+ return this.$errorMsg('请选择发货单');
|
|
|
|
+ }
|
|
|
|
|
|
- // 更改每页数量
|
|
|
|
- handleSizeChange(val) {
|
|
|
|
- this.pageSize = val;
|
|
|
|
- this.currentPage = 1;
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ this.formLoading = true;
|
|
|
|
+ let takerName = '';
|
|
|
|
+ if(this.mainForm.pickupMan) {
|
|
|
|
+ let index = findElem(this.pickupManList, 'id', this.mainForm.pickupMan);
|
|
|
|
+ takerName = this.pickupManList[index].takerName;
|
|
|
|
+ }
|
|
|
|
+ let orderList = [];
|
|
|
|
+ this.tableSelection.forEach(item => {
|
|
|
|
+ orderList.push(item.id);
|
|
|
|
+ });
|
|
|
|
+ let params = {
|
|
|
|
+ stockName: this.mainForm.warehouse,
|
|
|
|
+ pickTime: this.mainForm.date,
|
|
|
|
+ pickStartTime: this.mainForm.timeSlot[0],
|
|
|
|
+ pickEndTime: this.mainForm.timeSlot[1],
|
|
|
|
+ pickType: Number(this.mainForm.pickupWay),
|
|
|
|
+ takerId: this.mainForm.pickupMan,
|
|
|
|
+ takerName,
|
|
|
|
+ remark: this.mainForm.remark,
|
|
|
|
+ shipDocumentBeans: orderList,
|
|
|
|
+ }
|
|
|
|
+ if(this.mainForm.pickupWay == '1') {
|
|
|
|
+ params.takerCarId = this.mainForm.pickupCar;
|
|
|
|
+ }
|
|
|
|
+ if(this.mainForm.pickupWay == '2') {
|
|
|
|
+ params.pickLogistics = this.mainForm.company;
|
|
|
|
+ }
|
|
|
|
+ addPickupBook(params).then(res => {
|
|
|
|
+ this.$successMsg('提交成功');
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.resetForm();
|
|
|
|
+ }, 1500)
|
|
|
|
+ }).finally(res => {
|
|
|
|
+ this.formLoading = false;
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
|
|
|
|
- // 更改当前页
|
|
|
|
- handleCurrentChange(val) {
|
|
|
|
- this.currentPage = val;
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ resetForm() {
|
|
|
|
+ this.$refs.mainForm.resetFields();
|
|
|
|
+ this.deliverList = [];
|
|
},
|
|
},
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|