lijuncheng
11 months ago
32 changed files with 1017 additions and 723 deletions
@ -0,0 +1,41 @@ |
|||||
|
<template> |
||||
|
<view> |
||||
|
<view class="task_card"> |
||||
|
<jobTopAsn :dataContent="dataContent"></jobTopAsn> |
||||
|
<slot></slot> |
||||
|
<u-line color="#909399" /> |
||||
|
<job-bottom :dataContent="dataContent"></job-bottom> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import jobTopAsn from '@/mycomponents/job/jobTopAsn.vue' |
||||
|
import jobBottom from '@/mycomponents/job/jobBottom.vue' |
||||
|
|
||||
|
export default { |
||||
|
components: { |
||||
|
jobTopAsn, |
||||
|
jobBottom, |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
}; |
||||
|
}, |
||||
|
|
||||
|
props: { |
||||
|
dataContent: { |
||||
|
type: Object, |
||||
|
default: {} |
||||
|
}, |
||||
|
}, |
||||
|
|
||||
|
methods: { |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss"> |
||||
|
|
||||
|
</style> |
@ -0,0 +1,41 @@ |
|||||
|
<template> |
||||
|
<view class="task_top"> |
||||
|
<view class="uni-flex space-between u-col-center align-center" > |
||||
|
<job-number :number="dataContent.asnNumber"></job-number> |
||||
|
<job-status :jobStatus="dataContent.status"></job-status> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import jobNumber from '@/mycomponents/job/jobNumber.vue' |
||||
|
import jobStatus from '@/mycomponents/job/jobStatus.vue' |
||||
|
export default { |
||||
|
components: { |
||||
|
jobNumber, |
||||
|
jobStatus |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
|
||||
|
}; |
||||
|
}, |
||||
|
watch: {}, |
||||
|
|
||||
|
props: { |
||||
|
dataContent: { |
||||
|
type: Object, |
||||
|
default: {} |
||||
|
}, |
||||
|
}, |
||||
|
|
||||
|
methods: { |
||||
|
openDetail(item) { |
||||
|
this.$emit("openDetail", this.dataContent); |
||||
|
}, |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss"> |
||||
|
</style> |
@ -0,0 +1,84 @@ |
|||||
|
<template> |
||||
|
<view class="uni-flex u-col-center" style="padding-top: 15rpx; |
||||
|
padding-bottom: 15rpx; |
||||
|
padding-left: 10rpx; |
||||
|
padding-right: 10rpx; |
||||
|
font-size:32rpx;"> |
||||
|
<view class="uni-flex uni-row u-col-center" @click="showLocation"> |
||||
|
<view> |
||||
|
<text style="font-size: 30rpx;">{{title}}</text> |
||||
|
|
||||
|
<text style="font-size: 25rpx;color:#3FBAFF;">  {{recommendLocationCode}}</text> |
||||
|
<text v-if="locationCode" style="font-size: 25rpx;color:#3FBAFF;"> / {{locationCode}}</text> |
||||
|
<!-- <text style="font-size: 35rpx;color:#3FBAFF;" v-if="locationCode==''&&isShowEdit==true">  请扫描</text> --> |
||||
|
</view> |
||||
|
<image v-if="isShowEdit" style="width:45rpx;height: 45rpx;" src="/static/icons/icons_edit.svg"></image> |
||||
|
</view> |
||||
|
<win-scan-location ref="scanLocationCode" :title="title" @getLocation='getLocation' |
||||
|
:locationTypeList="locationTypeList"></win-scan-location> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue" |
||||
|
|
||||
|
export default { |
||||
|
components: { |
||||
|
winScanLocation |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
defaultlocationCode: "" |
||||
|
} |
||||
|
}, |
||||
|
props: { |
||||
|
title: { |
||||
|
type: String, |
||||
|
default: "需求库位" |
||||
|
}, |
||||
|
recommendLocationCode: { |
||||
|
type: String, |
||||
|
default: "" |
||||
|
}, |
||||
|
locationCode: { |
||||
|
type: String, |
||||
|
default: "" |
||||
|
}, |
||||
|
isShowEdit: { |
||||
|
type: Boolean, |
||||
|
default: true |
||||
|
}, |
||||
|
locationTypeList: { |
||||
|
type: Array, |
||||
|
default: [] |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
watch: { |
||||
|
// locationCode: { |
||||
|
// handler(newName, oldName) { |
||||
|
// if (this.locationCode != "") { |
||||
|
// this.defaultlocationCode = this.locationCode; |
||||
|
// } |
||||
|
// }, |
||||
|
// immediate: true, |
||||
|
// deep: true |
||||
|
// } |
||||
|
}, |
||||
|
methods: { |
||||
|
showLocation() { |
||||
|
if (this.isShowEdit) { |
||||
|
this.$refs.scanLocationCode.openScanPopup(); |
||||
|
} |
||||
|
|
||||
|
}, |
||||
|
//扫描源库位 |
||||
|
getLocation(location, code) { |
||||
|
this.$emit("getLocation", location, code) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
</style> |
Loading…
Reference in new issue