提交 6a7abad6 authored 作者: 王天霸's avatar 王天霸

4

上级 90964e5e
...@@ -4,8 +4,8 @@ ENV = 'development' ...@@ -4,8 +4,8 @@ ENV = 'development'
# 正式环境 # 正式环境
#VUE_APP_BASE_API = 'http://sjapi.jxhh.com' #VUE_APP_BASE_API = 'http://sjapi.jxhh.com'
# 开发环境 # 开发环境
#VUE_APP_BASE_API = 'http://192.168.111.36:8200' VUE_APP_BASE_API = 'http://192.168.111.34:8200'
VUE_APP_BASE_API = 'http://192.168.26.179:8200' #VUE_APP_BASE_API = 'http://192.168.26.179:8200'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true
...@@ -3,7 +3,7 @@ import request from '@/utils/request' ...@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询freight列表 // 查询freight列表
export function listFreight(query) { export function listFreight(query) {
return request({ return request({
url: '/system/freight/list', url: '/system/freightNew/list',
method: 'get', method: 'get',
params: query params: query
}) })
...@@ -12,7 +12,7 @@ export function listFreight(query) { ...@@ -12,7 +12,7 @@ export function listFreight(query) {
// 查询freight详细 // 查询freight详细
export function getFreight (id) { export function getFreight (id) {
return request({ return request({
url: '/system/freight/edit?id='+id, url: '/system/freightNew/edit?id='+id,
method: 'get' method: 'get'
}) })
} }
...@@ -21,7 +21,7 @@ export function getFreight (id) { ...@@ -21,7 +21,7 @@ export function getFreight (id) {
// 新增freight // 新增freight
export function addFreight(data) { export function addFreight(data) {
return request({ return request({
url: '/system/freight/add', url: '/system/freightNew/add',
method: 'post', method: 'post',
data: data data: data
}) })
...@@ -30,7 +30,7 @@ export function addFreight(data) { ...@@ -30,7 +30,7 @@ export function addFreight(data) {
// 修改freight // 修改freight
export function updateFreight(data) { export function updateFreight(data) {
return request({ return request({
url: '/system/freight/edit', url: '/system/freightNew/edit',
method: 'post', method: 'post',
data: data data: data
}) })
...@@ -39,9 +39,9 @@ export function updateFreight(data) { ...@@ -39,9 +39,9 @@ export function updateFreight(data) {
// 删除freight // 删除freight
export function delFreight(ids) { export function delFreight(ids) {
return request({ return request({
url: '/system/freight/delete', url: '/system/freightNew/delete',
method: 'delete', method: 'delete',
data:{ids:ids} data:{id:ids}
}) })
} }
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
queryParams: { queryParams: {
page: 1, page: 1,
limit: 10, limit: 10,
shopId: 0, // seller_id: 0,
money: null, money: null,
org_money: null, org_money: null,
freight: null, freight: null,
...@@ -222,21 +222,21 @@ ...@@ -222,21 +222,21 @@
// 表单重置 // 表单重置
reset() { reset() {
this.form = { this.form = {
id: null, // id: null,
shop_id: null, // seller_id: null,
money: null, // money: null,
org_money: null, // org_money: null,
freight: null, // freight: null,
bill_money: null, // bill_money: null,
disc_money: null, // disc_money: null,
refund_money: null, // refund_money: null,
real_bill_money: null, // real_bill_money: null,
integral_cost_money: null, // integral_cost_money: null,
pt_disc_money: null, // pt_disc_money: null,
score_back: null, // score_back: null,
status: 0, // status: 0,
time: null, // time: null,
confirm_time: null // confirm_time: null
}; };
this.resetForm("form"); this.resetForm("form");
}, },
......
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
:page.sync="queryParams.pageNum" :page.sync="queryParams.page"
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.limit"
@pagination="getList" @pagination="getList"
/> />
<!-- 添加或修改freight对话框 --> <!-- 添加或修改freight对话框 -->
...@@ -104,8 +104,8 @@ ...@@ -104,8 +104,8 @@
isOpen: false, isOpen: false,
// 查询参数 // 查询参数
queryParams: { queryParams: {
pageNum: 1, page: 1,
pageSize: 20, limit: 20,
seller_id: null, seller_id: null,
name: null, name: null,
sort: null, sort: null,
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.queryParams.pageNum = 1; this.queryParams.page = 1;
this.getList(); this.getList();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
...@@ -270,10 +270,11 @@ ...@@ -270,10 +270,11 @@
this.reset(); this.reset();
const id = row.Id const id = row.Id
getFreight(id).then(response => { getFreight(id).then(response => {
let formdate = response.data let formdate = response.data.info
response.data.Dispatching = JSON.parse(formdate.Dispatching) debugger
response.data.info.Dispatching = JSON.parse(formdate.Dispatching)
//console.log("点击修改获取的数据:",response.data.Dispatching); //console.log("点击修改获取的数据:",response.data.Dispatching);
this.form = response.data this.form = response.data.info
this.isOpen = true; this.isOpen = true;
this.title = "修改运费模板"; this.title = "修改运费模板";
}); });
...@@ -310,6 +311,7 @@ ...@@ -310,6 +311,7 @@
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.Id || this.ids; const ids = row.Id || this.ids;
debugger
this.$confirm('是否确认删除运费模板编号为“' + ids + '"的数据?','警告',{ this.$confirm('是否确认删除运费模板编号为“' + ids + '"的数据?','警告',{
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论