| | |
| | | </div>
|
| | | </div>
|
| | | <!-- v-if="info.status === 2 || info.procedureNeedcheck === 1" -->
|
| | | <template>
|
| | | <template v-if="info.status === 2 || info.procedureNeedcheck === 1">
|
| | | <div class="bh_zw"></div>
|
| | | <div class="bg_footer bg_f7">
|
| | | <div class="bg_footer_submit bg_m" v-if="typeView == 0" @click="submit">确认报工</div>
|
| | |
| | | queryOne,
|
| | | queryList
|
| | | } from '@/util/api/PlanningAPI' |
| | | import { REGULAR } from '@/util/utils'
|
| | | import {
|
| | | REGULAR
|
| | | } from '@/util/utils'
|
| | | export default {
|
| | | components: {
|
| | | workOrderInfo
|
| | |
| | | this.pages.page = 1 |
| | | this.pageDJs() |
| | | } |
| | | })
|
| | | uni.$on('addMaterial', () => {
|
| | | this.getOrocessRecords()
|
| | | })
|
| | | },
|
| | | computed: {
|
| | |
| | | if (res.code === 200) { |
| | | uni.$u.toast('报工成功') |
| | | setTimeout(() => { |
| | | uni.navigateBack({ data: 2}) |
| | | uni.navigateBack({
|
| | | data: 2
|
| | | })
|
| | | }, 2000) |
| | | } |
| | | }) |
| | |
| | | workorderId: this.workorderId
|
| | | }
|
| | | }).then(res => { |
| | | let {data} = res |
| | | let {
|
| | | data
|
| | | } = res
|
| | | if (data.page == 1) { |
| | | this.djData = [] |
| | | } |
| | |
| | | // url: ''
|
| | | url: `/pages_adjust/pages/manualFeed/manualFeed?id=${this.workorderId}`
|
| | | })
|
| | | },
|
| | | deleItem(id, type) {
|
| | | uni.showModal({
|
| | | title: '提示',
|
| | | content: '确定删除此条记录吗?',
|
| | | success: (res) => {
|
| | | if (res.confirm) {
|
| | | console.log('用户点击确定');
|
| | | deleteCT(id)
|
| | | .then(res => { |
| | | this.getOrocessRecords()
|
| | | // if (type === 'C') {
|
| | | // this.getOrocessRecordCC()
|
| | | // } else if (type === 'T') {
|
| | | // this.getOrocessRecords()
|
| | | // }
|
| | | }) |
| | | .catch(err => {})
|
| | | }
|
| | | }
|
| | | })
|
| | | }
|
| | | }
|
| | | }
|