Commit 9d63572f by LJM

bug

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