Commit 13806e28 by LJM

打印

parent f92e3ba0
Showing with 40 additions and 5 deletions
......@@ -190,26 +190,35 @@
<view class="form-input" style="width: 48%;">
<view class="input-title">
<text class="input-title-t1">*</text>
<text class="input-title-t2">国家:</text>
</view>
<view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入" v-model="formParams.country" /></view>
</view>
<view class="form-input" style="width: 48%;">
<view class="input-title">
<text class="input-title-t1" v-if="company_id == 1">*</text>
<text class="input-title-t2">省:</text>
</view>
<view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入" v-model="formParams.province" /></view>
</view>
</view>
<view class="row bothSide verCenter">
<view class="form-input" style="width: 48%;">
<view class="input-title">
<text class="input-title-t1">*</text>
<text class="input-title-t1" v-if="company_id == 1">*</text>
<text class="input-title-t2">市:</text>
</view>
<view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入" v-model="formParams.city" /></view>
</view>
</view>
<view class="row bothSide verCenter">
<view class="form-input" style="width: 48%;">
<view class="input-title">
<text class="input-title-t1">*</text>
<text class="input-title-t1" v-if="company_id == 1">*</text>
<text class="input-title-t2">区:</text>
</view>
<view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入" v-model="formParams.district" /></view>
</view>
</view>
<view class="row bothSide verCenter">
<view class="form-input" style="width: 48%;">
<view class="input-title">
<text class="input-title-t1">*</text>
......@@ -256,6 +265,7 @@ export default {
shipping_code: '', //物流单号
is_receipt: '', //是否签回单
consignee: '',
country: '',
mobile: '',
province: '',
city: '',
......@@ -365,7 +375,7 @@ export default {
* 获取列表数据
*/
getData() {
this.request(API.getToPrintList, 'POST', { page: this.page, limit: this.limit, ...this.searchParams }, false).then(res => {
this.request(API.getToPrintList, 'POST', { page: this.page, limit: this.limit, ...this.searchParams }, true).then(res => {
if (res.code === 0) {
this.list = res.data.list;
} else {
......@@ -398,6 +408,7 @@ export default {
this.formParams.shipping_code = res.data.stock_out_address.shipping_code; //物流单号
this.formParams.country = res.data.stock_out_address.country;
this.formParams.consignee = res.data.stock_out_address.consignee;
this.formParams.mobile = res.data.stock_out_address.mobile;
this.formParams.province = res.data.stock_out_address.province;
......@@ -416,6 +427,30 @@ export default {
* 更新交货信息
*/
updateDeliveryInfo(stock_out_id) {
if (this.company_id == 1) {
if (!this.formParams.province) {
uni.showToast({
title: '请填写省',
icon: 'none'
});
return false;
}
if (!this.formParams.city) {
uni.showToast({
title: '请填写市',
icon: 'none'
});
return false;
}
if (!this.formParams.district) {
uni.showToast({
title: '请填写区',
icon: 'none'
});
return false;
}
}
this.request(
API.updateDeliveryInfo,
'POST',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment