Browse Source

出库单列表页添加单据状态字段

详情页根据该值判断确定按钮点击及确认输入框的操作
master
chenxuhui 7 years ago
parent
commit
f3a07be381
4 changed files with 16 additions and 8 deletions
  1. +4
    -4
      pages/saleOutStore/saleOutStore.js
  2. +1
    -1
      pages/saleOutStore/saleOutStore.wxml
  3. +9
    -1
      pages/saleOutStore/saleOutStoreDetail/saleOutStoreDetail.js
  4. +2
    -2
      pages/saleOutStore/saleOutStoreDetail/saleOutStoreDetail.wxml

+ 4
- 4
pages/saleOutStore/saleOutStore.js View File

@ -24,7 +24,7 @@ function getUnCheckOrderList(that, UnCheckPageIndex, UnCheckPageSize, successact
}
for (var i = 0; i < array.length; i++) {
var dmo = {
orderState: true,
OrderState: "已审核",
ID: array[i].ID,
Employee_Name: array[i].Employee_Name,
TotalNumber: array[i].TotalNumber,
@ -58,7 +58,7 @@ function getCheckedOrderList(that, CheckedPageIndex, CheckedPageSize) {
for (var i = 0; i < array.length; i++) {
var dmo = {
//添加单据状态的传递,在详情页面判断此值,进行是否允许提交的操作
orderState: true,
OrderState: "未审核",
ID: array[i].ID,
Employee_Name: array[i].Employee_Name,
TotalNumber: array[i].TotalNumber,
@ -113,7 +113,7 @@ Page({
*/
onShow: function () {
this.setData({
checkedDataArr: [1],
checkedDataArr: [],
unCheckDataArr: [],
})
var that = this;
@ -146,7 +146,7 @@ Page({
// 进入订单详情
transToOrderDetail: function (e) {
wx.navigateTo({
url: 'saleOutStoreDetail/saleOutStoreDetail?id=' + e.currentTarget.dataset.detailitemid,
url: 'saleOutStoreDetail/saleOutStoreDetail?id=' + e.currentTarget.dataset.detailitemid + "&orderState=" + e.currentTarget.dataset.detailitemstate,
})
},


+ 1
- 1
pages/saleOutStore/saleOutStore.wxml View File

@ -30,7 +30,7 @@
<template name="outStoreOrderTemplate">
<view class='listContainer'>
<view class='listItem' catchtap='transToOrderDetail' data-detailitemid='{{item.ID}}'>
<view class='listItem' catchtap='transToOrderDetail' data-detailitemid='{{item.ID}}' data-detailitemstate='{{item.OrderState}}'>
<view class='topView'>
<view class='goodsNum'>
<text class='goodsIDText'>{{item.Customer_Name}}</text>


+ 9
- 1
pages/saleOutStore/saleOutStoreDetail/saleOutStoreDetail.js View File

@ -11,11 +11,19 @@ Page({
currentTab: 0,
winHeight: app.globalData.winHeight,
orderInfo: {},
showConfirmBtn: true,
},
onLoad: function (options) {
onShow: function (options) {
var that = this;
let ID = Number(options.id);
var OrderState = options.orderState;
if (OrderState == "已审核"){
this.setData({
showConfirmBtn:false
})
}
var method = LoadOrder;
var params = [ID];
network.transfer_request(method, params, function (res) {


+ 2
- 2
pages/saleOutStore/saleOutStoreDetail/saleOutStoreDetail.wxml View File

@ -109,7 +109,7 @@
</block>
</view>
<view class='imageView' catchtap='billConfirm'>
<view class='imageView' wx:if="{{showConfirmBtn}}" catchtap='billConfirm'>
<image class='currentImage' src="/imgs/blueBtn.png">
<view class='btnTextView'>
<text class='btnText'>确定</text>
@ -161,7 +161,7 @@
<view class='baseitem'>
<text class='baseitem_key'>确认数量</text>
<view class='baseitem_value'>
<input class='inputItem' bindinput='getConfirmNumber' placeholder='请输入确认收货数量' value="{{item.ConfirmNumber}}" data-index='{{idx}}'></input>
<input class='inputItem' disabled="{{!showConfirmBtn}}" bindinput='getConfirmNumber' placeholder='请输入确认收货数量' value="{{item.ConfirmNumber}}" data-index='{{idx}}'></input>
</view>
</view>
<view class='horizontallineView'></view>


Loading…
Cancel
Save