Skip to content

Commit

Permalink
学生:
Browse files Browse the repository at this point in the history
  货运站子系统
    运单管理
  • Loading branch information
[email protected] committed May 6, 2019
1 parent 9b0a2ee commit f3b03c9
Show file tree
Hide file tree
Showing 10 changed files with 228 additions and 135 deletions.
26 changes: 26 additions & 0 deletions src/api/freight.data.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import axios from '@/libs/api.request'

export const getFWayBillList = (params) => {
return axios.request({
url: '/fWayBill/getFWayBillList',
data: params,
method: 'post'
})
}

export const getWayBillList2 = (params) => {
return axios.request({
url: '/fWayBill/getWayBillList2',
data: params,
method: 'post'
})
}

export const setPass = (params) => {
return axios.request({
url: '/stuWayBill/setPass',
data: params,
method: 'post'
})
}

3 changes: 3 additions & 0 deletions src/router/routers.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ export default [
}
]
},
/* 进出货管理 暂时屏蔽 */
/*
{
path: '/business/inout/mnt',
name: '进出货管理',
Expand All @@ -482,6 +484,7 @@ export default [
}
]
},
*/

/* 货运站系统 */
{
Expand Down
1 change: 1 addition & 0 deletions src/view/management/class-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export default {
if (body.Status === 2000) {
this.formCancelEvent()
this.toHandleSearch()
this.multItem = []
this.$Message.success(data.Result)
} else {
this.$Message.error(data.ErrorDes)
Expand Down
1 change: 1 addition & 0 deletions src/view/management/demand-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ export default {
if (body.Status === 2000) {
this.formCancelEvent()
this.toHandleSearch()
this.multItem = []
this.$Message.success(data.Result)
} else {
this.$Message.error(data.ErrorDes)
Expand Down
1 change: 1 addition & 0 deletions src/view/management/student-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ export default {
if (body.Status === 2000) {
this.formCancelEvent()
this.toHandleSearch()
this.multItem = []
this.$Message.success(data.Result)
} else {
this.$Message.error(data.ErrorDes)
Expand Down
1 change: 1 addition & 0 deletions src/view/management/teacher-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ export default {
if (body.Status === 2000) {
this.formCancelEvent()
this.toHandleSearch()
this.multItem = []
this.$Message.success(data.Result)
} else {
this.$Message.error(data.ErrorDes)
Expand Down
1 change: 1 addition & 0 deletions src/view/subsystem/business/day-demand-sub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export default {
const data = body.Data
if (body.Status === 2000) {
this.toHandleSearch()
this.multItem = []
this.$Message.success(data.Result)
} else {
this.$Message.error(data.ErrorDes)
Expand Down
1 change: 1 addition & 0 deletions src/view/subsystem/business/waybill-accept.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export default {
const data = body.Data
if (body.Status === 2000) {
this.toHandleSearch()
this.multItem = []
this.$Message.success(data.Result)
} else {
this.$Message.error(data.ErrorDes)
Expand Down
99 changes: 55 additions & 44 deletions src/view/subsystem/freight/waybill-accept-from.vue
Original file line number Diff line number Diff line change
@@ -1,36 +1,35 @@
<template>
<div>
<Form ref="demand" :model="demand" :rules="rules" :show-message="false" class="qib-form" inline>
<FormItem label="日期" prop="mail" label-width="40">
<DatePicker size="small" type="daterange" placeholder="请选择日期" v-model="demand.date"></DatePicker>
</FormItem>
<FormItem label="运单" prop="city" label-width="40">
<Input size="small" v-model="demand.mail" placeholder="请输入运单"></Input>
</FormItem>
<FormItem prop="interest" label-width="10">
<RadioGroup size="small" v-model="demand.interest" >
<Radio label="未审核"></Radio>
<Radio label="已审核"></Radio>
<Radio label="全部"></Radio>
</RadioGroup>
</FormItem>
<FormItem prop="msg" label-width="0">
<Checkbox v-model="demand.msg">重点货物类型</Checkbox>
</FormItem>
<FormItem prop="mail" label-width="0">
<Select size="small" v-model="demand.city" placeholder="Select your option">
<Option value="">全部</Option>
<Option value="1">超重</Option>
<Option value="1">超限</Option>
</Select>
</FormItem>
<FormItem>
<Button size="small" type="primary" :loading="loading" @click="handleSubmit('demand')" style="margin-left: 8px">查询</Button>
<Button size="small" type="warning" @click="handleAuth()" style="margin-left: 8px">审核</Button>
</FormItem>
</Form>
<!--提交时加载动画-->
<Spin size="large" fix v-if="loading"></Spin>
<Form ref="searchForm" :model="demand" :rules="rules" :show-message="false" class="qib-form" inline>
<FormItem label="日期" prop="loadDate" :label-width="40">
<DatePicker size="small" type="daterange" placeholder="请选择日期" v-model="demand.loadDate" @on-change="handleChangeDate"></DatePicker>
</FormItem>
<FormItem label="运单" prop="waybillNo" :label-width="40">
<Input size="small" v-model="demand.waybillNo" placeholder="请输入运单"></Input>
</FormItem>
<FormItem prop="states" :label-width="10">
<RadioGroup size="small" v-model="demand.states">
<Radio v-for="item in states" :label="item.value">{{item.label}}</Radio>
</RadioGroup>
</FormItem>
<FormItem :label-width="0">
<Checkbox disabled>重点货物类型</Checkbox>
</FormItem>
<FormItem :label-width="0">
<Select disabled>
<Option value="">全部</Option>
<Option value="1">超重</Option>
<Option value="1">超限</Option>
</Select>
</FormItem>
<FormItem>
<Button size="small" type="primary" :loading="loading" @click="handleSubmit('searchForm')" style="margin-left: 8px">查询
</Button>
<Button size="small" type="warning" @click="handleAuth()" style="margin-left: 8px">审核</Button>
</FormItem>
</Form>
<!--提交时加载动画-->
<Spin size="large" fix v-if="loading"></Spin>
</div>
</template>
<script>
Expand All @@ -43,34 +42,46 @@ export default {
},
data () {
return {
states: [{ value: '3', label: '待受理' }, { value: '4', label: '已通过受理' }, { value: '3,4', label: '全部' }],
demand: {
name: '',
mail: '',
city: '',
gender: '',
interest: [],
msg: 1,
date: '',
time: '',
desc: ''
loadDate: '',
loadDate_bg: '',
loadDate_ed: '',
waybillNo: '',
states: '3,4'
},
rules: {
rules: {},
defaultInfo: {
}
}
},
created () {
// 保留初始值
this.defaultInfo = { ...this.demand }
},
methods: {
// 搜索
toHandleSearch () {
this.handleSubmit('searchForm')
},
handleSubmit (name) {
this.$refs[name].validate((valid) => {
if (valid) {
this.$emit('handleFormSubmit', this.demand)
this.$Message.success('Success!')
} else {
this.$Message.error('Fail!')
}
})
},
handleReset (name) {
this.demand = { ...this.defaultInfo }
this.$refs[name].resetFields()
},
handleAuth () {
this.$emit('handleFormAuth')
},
handleChangeDate (dr) {
this.demand.loadDate_bg = dr[0]
this.demand.loadDate_ed = dr[1]
}
}
}
Expand Down
Loading

0 comments on commit f3b03c9

Please sign in to comment.