This commit is contained in:
parent
b7e72edff5
commit
aa4fe4dacd
|
|
@ -30,18 +30,19 @@
|
||||||
<toryitem :pddlist="pddlist" @scrolltolower="scrolltolower" :pddType="pddobj?.pddType" :status="status" @tabitem="tabitem" @right="right"></toryitem>
|
<toryitem :pddlist="pddlist" @scrolltolower="scrolltolower" :pddType="pddobj?.pddType" :status="status" @tabitem="tabitem" @right="right"></toryitem>
|
||||||
</view>
|
</view>
|
||||||
<view class="submit" v-if="pddobj.pddType=='1'">
|
<view class="submit" v-if="pddobj.pddType=='1'">
|
||||||
<view>取消盘点</view>
|
<view @click="pddzfshow = true">取消盘点</view>
|
||||||
<view @click="subitshowing">提交盘点单</view>
|
<view @click="subitshowing">提交盘点单</view>
|
||||||
</view>
|
</view>
|
||||||
<errorshow :show="openerror" :font="errmsg" @close="openerror=false" />
|
<errorshow :show="openerror" :font="errmsg" @close="openerror=false" />
|
||||||
<pddsub :show="subitshow" :pddobj="pddobj" @close="subitshow=false"></pddsub>
|
<pddsub :show="subitshow" :pddobj="pddobj" @close="subitshow=false"></pddsub>
|
||||||
|
<tanchuang :show="pddzfshow" font="确定要作废盘点单吗" @back="pddzfshow=false;" @right="pddzf"> </tanchuang>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch, reactive } from 'vue';
|
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch, reactive } from 'vue';
|
||||||
import { onShow, onLoad, onHide, onPageScroll} from "@dcloudio/uni-app"
|
import { onShow, onLoad, onHide, onPageScroll} from "@dcloudio/uni-app"
|
||||||
import { queryPddInfoList,editPddInfo } from './api/lunpan.js'
|
import { queryPddInfoList,editPddInfo,voidedPddMain } from './api/lunpan.js'
|
||||||
import toryitem from './common/toryitem.vue'
|
import toryitem from './common/toryitem.vue'
|
||||||
import pddsub from './common/pddsub.vue'
|
import pddsub from './common/pddsub.vue'
|
||||||
const leftscrolltop = ref(0)
|
const leftscrolltop = ref(0)
|
||||||
|
|
@ -49,7 +50,7 @@
|
||||||
const openerror = ref(false)
|
const openerror = ref(false)
|
||||||
const errmsg = ref('');
|
const errmsg = ref('');
|
||||||
const subitshow = ref(false)
|
const subitshow = ref(false)
|
||||||
// "pddType": "1" 可以操作
|
const pddzfshow = ref(false)
|
||||||
const selectType = ref(0)
|
const selectType = ref(0)
|
||||||
const changetype = (index : number) => {
|
const changetype = (index : number) => {
|
||||||
if ((selectType.value == index) && index) {
|
if ((selectType.value == index) && index) {
|
||||||
|
|
@ -80,7 +81,6 @@
|
||||||
pageSize:10
|
pageSize:10
|
||||||
}
|
}
|
||||||
queryPddInfoList(obj).then(res=>{
|
queryPddInfoList(obj).then(res=>{
|
||||||
console.log(res)
|
|
||||||
pddlist.value.push(...res.result.records);
|
pddlist.value.push(...res.result.records);
|
||||||
status.value = (res.result.total == pddlist.value.length ? 'nomore' : 'loadmore');
|
status.value = (res.result.total == pddlist.value.length ? 'nomore' : 'loadmore');
|
||||||
let s = Math.ceil(res.result.total / 3);
|
let s = Math.ceil(res.result.total / 3);
|
||||||
|
|
@ -154,6 +154,19 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const pddzf = ()=>{
|
||||||
|
voidedPddMain({id:pddobj.value.id}).then(res=>{
|
||||||
|
if(res.success){
|
||||||
|
pddzfshow.value = true;
|
||||||
|
setTimeout(()=>{
|
||||||
|
uni.navigateBack()
|
||||||
|
},800)
|
||||||
|
}else{
|
||||||
|
errmsg.value = res.message;
|
||||||
|
openerror.value = true;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
|
|
|
||||||
|
|
@ -400,3 +400,10 @@ export const submitPddMain = (params) => {
|
||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export const voidedPddMain = (params) => {
|
||||||
|
return request({
|
||||||
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/pdd/voidedPddMain`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -574,7 +574,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
)
|
)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/camera.nvue"]]);
|
const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/camera.nvue"]]);
|
||||||
export {
|
export {
|
||||||
camera as default
|
camera as default
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -577,7 +577,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
)
|
)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/fullcamera.nvue"]]);
|
const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/fullcamera.nvue"]]);
|
||||||
export {
|
export {
|
||||||
fullcamera as default
|
fullcamera as default
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue