|
@@ -19,7 +19,7 @@
|
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
|
<div class="list" v-for="(item, index) in list.data" :key="index">
|
|
<div class="list" v-for="(item, index) in list.data" :key="index">
|
|
|
|
|
|
|
|
- <workItem :item="item" @cancel="cancel"></workItem>
|
|
|
|
|
|
|
+ <workItem :item="item" @cancel="cancel" @printWork="printWork"></workItem>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</block>
|
|
</block>
|
|
@@ -39,7 +39,7 @@ import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import ModalModule from "@/components/plugin/modal";
|
|
import ModalModule from "@/components/plugin/modal";
|
|
|
import { list } from "@/mixins";
|
|
import { list } from "@/mixins";
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
-import { getWorkList,cancelWork} from "@/api/work";
|
|
|
|
|
|
|
+import { getWorkList,cancelWork,print} from "@/api/work";
|
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
|
import DropShopSelect from "@/components/module/shopSelect";
|
|
import DropShopSelect from "@/components/module/shopSelect";
|
|
|
import workItem from "./components/workItem";
|
|
import workItem from "./components/workItem";
|
|
@@ -103,7 +103,6 @@ export default {
|
|
|
uni.stopPullDownRefresh()
|
|
uni.stopPullDownRefresh()
|
|
|
},
|
|
},
|
|
|
onReachBottom() {
|
|
onReachBottom() {
|
|
|
- console.log('abcdefghijklmn')
|
|
|
|
|
if (!this.list.finished) {
|
|
if (!this.list.finished) {
|
|
|
this._list().then((res) => {
|
|
this._list().then((res) => {
|
|
|
uni.stopPullDownRefresh();
|
|
uni.stopPullDownRefresh();
|
|
@@ -121,11 +120,15 @@ export default {
|
|
|
this.tabIndex = parseInt(tabIndex.tabIndex);
|
|
this.tabIndex = parseInt(tabIndex.tabIndex);
|
|
|
}
|
|
}
|
|
|
this._list();
|
|
this._list();
|
|
|
- },
|
|
|
|
|
- onShow() {
|
|
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ printWork(item){
|
|
|
|
|
+ print({id:item.id}).then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ this.$msg(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
cancel(item){
|
|
cancel(item){
|
|
|
let that = this
|
|
let that = this
|
|
|
that.$util.confirmModal({content:'确认取消?'},() => {
|
|
that.$util.confirmModal({content:'确认取消?'},() => {
|