Commit 9d63572f by LJM

bug

parent 5c695c74
Showing with 24 additions and 7 deletions
...@@ -144,16 +144,16 @@ ...@@ -144,16 +144,16 @@
</template> </template>
<view class="default row rowCenter verCenter" @click="chooseImageChange()" v-if="image_list.length < maxNum"><text class="iconfont icon-a-juxing3"></text></view> <view class="default row rowCenter verCenter" @click="chooseImageChange()" v-if="image_list.length < maxNum"><text class="iconfont icon-a-juxing3"></text></view>
</view> </view>
<view class="print row verCenter" @click="toggle()"> <view class="print row verCenter" @click="toggle(2)">
<text class="check-box-icon" :class="{ curr: print_flag }"></text> <text class="check-box-icon" :class="{ curr: pic_flag }"></text>
<text class="tt">整单照片</text> <text class="tt">整单照片</text>
</view> </view>
<view class="h2">理货备注:</view> <view class="h2">理货备注:</view>
<view class="textarea-box"><textarea placeholder-style="color:#919399" placeholder="请输入理货备注" v-model="formParams.tally_remark" /></view> <view class="textarea-box"><textarea placeholder-style="color:#919399" placeholder="请输入理货备注" v-model="formParams.tally_remark" /></view>
</view> </view>
<view class="fix-btn row verCenter"> <view class="fix-btn row verCenter">
<view class="btn1 row rowCenter verCenter"> <view class="btn1 row rowCenter verCenter" @click="toggle(1)">
<text class="check-box-icon curr"></text> <text class="check-box-icon" :class="{ curr: print_flag }"></text>
<text class="text">打印入库标签</text> <text class="text">打印入库标签</text>
</view> </view>
<view class="btn2 row rowCenter verCenter" @click="createTallyReceive">理 货</view> <view class="btn2 row rowCenter verCenter" @click="createTallyReceive">理 货</view>
...@@ -173,7 +173,8 @@ export default { ...@@ -173,7 +173,8 @@ export default {
stock_in_id: '', stock_in_id: '',
noexebshowFalg: true, //控制是否会触发生命周期 noexebshowFalg: true, //控制是否会触发生命周期
print_flag: true, //是否打印 print_flag: true, //是否打印
input_flag: false, pic_flag: false, //是否整单照片
input_flag: true,
page: 1, page: 1,
limit: 1, limit: 1,
index: 0, index: 0,
...@@ -196,7 +197,8 @@ export default { ...@@ -196,7 +197,8 @@ export default {
other_batch_attr: '', //其他批次属性 other_batch_attr: '', //其他批次属性
image_ids: [], //图片 image_ids: [], //图片
tally_remark: '', //理货备注 tally_remark: '', //理货备注
is_print: 1 //打印入库标签 is_print: 1, //打印入库标签
is_mobile_default_img: 0 //整单照片
} }
}; };
}, },
...@@ -229,13 +231,22 @@ export default { ...@@ -229,13 +231,22 @@ export default {
/** /**
* 是否打印 * 是否打印
*/ */
toggle() { toggle(type) {
if (type == 1) {
this.print_flag = !this.print_flag; this.print_flag = !this.print_flag;
if (this.print_flag) { if (this.print_flag) {
this.formParams.is_print = 1; this.formParams.is_print = 1;
} else { } else {
this.formParams.is_print = 0; this.formParams.is_print = 0;
} }
} else {
this.pic_flag = !this.pic_flag;
if (this.pic_flag) {
this.formParams.is_mobile_default_img = 1;
} else {
this.formParams.is_mobile_default_img = 0;
}
}
}, },
/** /**
* 清空数据 * 清空数据
...@@ -281,6 +292,12 @@ export default { ...@@ -281,6 +292,12 @@ export default {
this.request(API.waitTallyReceiveList, 'POST', { page: this.page, limit: this.limit, stock_in_item_id: this.stock_in_item_id, ...this.searchParams }, false).then(res => { this.request(API.waitTallyReceiveList, 'POST', { page: this.page, limit: this.limit, stock_in_item_id: this.stock_in_item_id, ...this.searchParams }, false).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.detail = res.data.list[0]; this.detail = res.data.list[0];
this.formParams.tally_qty = res.data.list[0].wait_tally_qty;
this.formParams.date_code = res.data.list[0].expect_date_code;
uni.setNavigationBarTitle({
title: res.data.list[0].stock_in_sn + '-理货'
});
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
......
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