|
@@ -26,6 +26,7 @@ define(function (require) {
|
|
|
return _datas;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
// 输入搜索文本后点击回车按钮查询列表
|
|
|
function enterQueryGrid1(e) {
|
|
|
if (e.keyCode === 13) {
|
|
@@ -47,7 +48,7 @@ define(function (require) {
|
|
|
}
|
|
|
|
|
|
// 搜索按钮
|
|
|
- var queryToolbarTitle = '团购信息管理';// 自行替换此参数
|
|
|
+ var queryToolbarTitle = '资源需求管理';// 自行替换此参数
|
|
|
var queryToolbar = {
|
|
|
xtype: 'toolbar', title: queryToolbarTitle, items: [
|
|
|
{
|
|
@@ -112,7 +113,7 @@ define(function (require) {
|
|
|
]]
|
|
|
};
|
|
|
|
|
|
- var gridToolbarTitle = '团购信息列表';// 自行替换此参数
|
|
|
+ var gridToolbarTitle = '资源需求列表';// 自行替换此参数
|
|
|
var gridToolbar = {
|
|
|
xtype: 'toolbar',
|
|
|
title: gridToolbarTitle,
|
|
@@ -130,27 +131,74 @@ define(function (require) {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- text: '取消', iconCls: 'fa fa-pencil-square-o', onClick: function () {
|
|
|
+ text: '取消', iconCls: 'fa fa-times-circle', onClick: function () {
|
|
|
+ debugger;
|
|
|
+ var row = $grid1.rowData();
|
|
|
+ if (!row) {
|
|
|
+ $.yvan.msg('请先选择一行数据');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (row.pubStatus != 1) {
|
|
|
+ $.yvan.msg('草稿状态才能发布');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $.yvan.confirm('是否' + "<span style='color: green; font-weight:bold;'>发布</span>" + '[' + (row.joName) + ']任务?', {
|
|
|
+ yes: function (index) {
|
|
|
+ $.yvan.ajax({
|
|
|
+ method: 'post',
|
|
|
+ url: api('/record/CustInfo/updatePub'),///wms/inv/updateFaBuPC
|
|
|
+ data: {
|
|
|
+ joId: row.joId,
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ $.yvan.msg('发布成功');
|
|
|
+ $grid1.reload();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '完成', iconCls: 'fa fa-circle-o-notch', onClick: function () {
|
|
|
+ debugger;
|
|
|
var row = $grid1.rowData();
|
|
|
if (!row) {
|
|
|
$.yvan.msg('请先选择一行数据');
|
|
|
return;
|
|
|
}
|
|
|
- if (row.tgStatus != 1) {
|
|
|
- $.yvan.msg('在团状态才能取消');
|
|
|
+ if (row.pubStatus != 1) {
|
|
|
+ $.yvan.msg('草稿状态才能发布');
|
|
|
return;
|
|
|
}
|
|
|
+ $.yvan.confirm('是否' + "<span style='color: green; font-weight:bold;'>发布</span>" + '[' + (row.joName) + ']任务?', {
|
|
|
+ yes: function (index) {
|
|
|
+ $.yvan.ajax({
|
|
|
+ method: 'post',
|
|
|
+ url: api('/record/CustInfo/updatePub'),///wms/inv/updateFaBuPC
|
|
|
+ data: {
|
|
|
+ joId: row.joId,
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ $.yvan.msg('发布成功');
|
|
|
+ $grid1.reload();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '查看需求详情', iconCls: 'fa fa-search', onClick: function () {
|
|
|
$.yvan.showDialog(this,
|
|
|
- require('/app/whepi/tugou/dialogTugou.js')({
|
|
|
- isEdit: true,
|
|
|
- jmId: row.jmId,
|
|
|
+ require('/app/whepi/tugou/import.js')({
|
|
|
confirm: function () {
|
|
|
$grid1.reload();
|
|
|
- }
|
|
|
+ },
|
|
|
})
|
|
|
);
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
]
|
|
|
};
|
|
|
|
|
@@ -183,12 +231,13 @@ define(function (require) {
|
|
|
[
|
|
|
{field: 'jmId', title: '信息id', hidden: true},
|
|
|
{field: 'uptown_id', title: '小区id', maxWidth: 200, align: 'left', hidden: true},
|
|
|
- {field: 'uptownName', title: '小区', maxWidth: 200, align: 'left',},
|
|
|
- {field: 'tgTitle', title: '组团标题', maxWidth: 200, align: 'left',},
|
|
|
+ /* {field: 'uptownName', title: '小区', maxWidth: 200, align: 'left',},*/
|
|
|
+ {field: 'tgTitle', title: '标题', maxWidth: 200, align: 'left',},
|
|
|
+ {field: 'tgTitle', title: '需求类型', maxWidth: 200, align: 'left',},
|
|
|
{field: 'tgSupplier', title: '组织者', maxWidth: 200,},
|
|
|
{
|
|
|
field: 'tgGoods',
|
|
|
- title: '团购套餐', maxWidth: 200,
|
|
|
+ title: '套餐描述', maxWidth: 200,
|
|
|
},
|
|
|
{
|
|
|
field: 'tgPrice',
|
|
@@ -196,25 +245,25 @@ define(function (require) {
|
|
|
},
|
|
|
{
|
|
|
field: 'tgMinNum',
|
|
|
- title: '最小起订量',
|
|
|
+ title: '最低配送(份)',
|
|
|
align: 'left',
|
|
|
},
|
|
|
{
|
|
|
field: 'tgMaxNum',
|
|
|
- title: '最大上限',
|
|
|
+ title: '配送上限(份)',
|
|
|
align: 'left',
|
|
|
},
|
|
|
{
|
|
|
field: 'tgEndTime',
|
|
|
- title: '团购截止时间',
|
|
|
+ title: '需求截止时间',
|
|
|
align: 'center',
|
|
|
},
|
|
|
{
|
|
|
- field: 'tgDeliverTime', title: '预计送货时间', align: 'center',
|
|
|
+ field: 'tgDeliverTime', title: '预计配送时间', align: 'center',
|
|
|
},
|
|
|
|
|
|
- {field: 'tgPhoneNumber', title: '联系电话', align: 'center'},
|
|
|
- {field: 'remark', title: '备注', maxWidth: 200, align: 'left'},
|
|
|
+ {field: 'tgPhoneNumber', title: '服务电话', align: 'center'},
|
|
|
+ /*{field: 'remark', title: '备注', maxWidth: 200, align: 'left'},*/
|
|
|
{
|
|
|
field: 'tgStatus', title: '状态',
|
|
|
align: 'center', formatter: function (value) {
|