Browse Source

供货订单列表增加订单号,申请出库编辑时保存(目前报错,id不对待对接)

master
邓平艺 5 years ago
parent
commit
40111ac19b
  1. 17
      canteen/pages/delivery/apply.vue
  2. 4
      supplier/pages/gonghuo/order.vue

17
canteen/pages/delivery/apply.vue

@ -192,7 +192,6 @@
return this.$msg('您未选择物资') return this.$msg('您未选择物资')
} }
let is_empty = false; let is_empty = false;
console.log("总的", this.contents)
let list = this.contents.map(item => { let list = this.contents.map(item => {
if(!item.delivery_number.value){ if(!item.delivery_number.value){
is_empty = true; is_empty = true;
@ -249,11 +248,6 @@
} }
}); });
if(this.isStock) { if(this.isStock) {
let _api = this.API.API_CANTEEN_WAREHOUSEOUT;
if(this.enter_type == 1){
_api = this.API.API_EDITOUTORDER;
}
let state = ['待确认', '已确认'][_t]; //
if(is_empty){ if(is_empty){
uni.showModal({ uni.showModal({
title: '温馨提示', title: '温馨提示',
@ -263,10 +257,17 @@
}) })
return; return;
} }
this.$http(_api, {
let state = ['待确认', '已确认'][_t]; //
let _api = this.API.API_CANTEEN_WAREHOUSEOUT;
let _data = {
data: list, data: list,
state: state state: state
}).then(res => {
}
if(this.enter_type == 1){
_api = this.API.API_EDITOUTORDER;
_data.o_sn = this.o_sn;
}
this.$http(_api, _data).then(res => {
this.$msg('操作成功').then(() => this.$toBack()); this.$msg('操作成功').then(() => this.$toBack());
}) })
} }

4
supplier/pages/gonghuo/order.vue

@ -17,6 +17,10 @@
<view class="lf-color-gray">采购方</view> <view class="lf-color-gray">采购方</view>
<view class="lf-color-black">{{ item.canteen.canteen_name }}</view> <view class="lf-color-black">{{ item.canteen.canteen_name }}</view>
</view> </view>
<view class="lf-row-between item" v-if="item.p_sn">
<view class="lf-color-gray">订单号</view>
<view class="lf-color-black">{{ item.p_sn }}</view>
</view>
<view class="lf-row-between item" v-if="item.created_at"> <view class="lf-row-between item" v-if="item.created_at">
<view class="lf-color-gray">发单时间</view> <view class="lf-color-gray">发单时间</view>
<view class="lf-color-black">{{ item.created_at }}</view> <view class="lf-color-black">{{ item.created_at }}</view>

Loading…
Cancel
Save