Browse Source

1、工序报工-后端联调

master
bjang03 7 months ago
parent
commit
5c9fe537b1
  1. 1
      src/pages.json
  2. 35
      src/pages/mes/workScheduling/processReportPeopleCheck.vue

1
src/pages.json

@ -1965,6 +1965,7 @@
"path": "pages/mes/workScheduling/processReportForm", "path": "pages/mes/workScheduling/processReportForm",
"style": { "style": {
"navigationBarTitleText": "工序报工", "navigationBarTitleText": "工序报工",
"navigationStyle": "custom",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
}, },

35
src/pages/mes/workScheduling/processReportPeopleCheck.vue

@ -6,10 +6,10 @@
</view> </view>
<scroll-view scroll-y="true" class="scroll-Y"> <scroll-view scroll-y="true" class="scroll-Y">
<u-checkbox-group class="item" @change="checkChange"> <u-checkbox-group class="item" @change="checkChange">
<u-checkbox class="dec" v-model="item.checked" v-for="(item, index) in list" :key="index" :name="item.personName">{{ item.personName }}</u-checkbox> <u-checkbox class="dec" v-model="item.checked" v-for="(item, index) in list" :key="index" :name="item">{{ item.personName }}</u-checkbox>
</u-checkbox-group> </u-checkbox-group>
</scroll-view> </scroll-view>
<u-button form-type="button" style="color:#ffffff;backgroundColor:#3C9CFF;" @click="onSubmit">确认选择</u-button>
<!-- <view class="item" v-for="(item, index) in list" :key="index" @click="openDetail(item)">--> <!-- <view class="item" v-for="(item, index) in list" :key="index" @click="openDetail(item)">-->
<!-- <view class="dec">--> <!-- <view class="dec">-->
@ -42,7 +42,7 @@ const data = ref({
searchValue: '' searchValue: ''
}) })
let show = false let show = false
let checked = []
/* 是否显示"没有更多了" */ /* 是否显示"没有更多了" */
const status = ref('loadmore') const status = ref('loadmore')
/* 列表数据集 */ /* 列表数据集 */
@ -51,6 +51,7 @@ function checkChange(checkedArray: string | any[]) {
if (checkedArray.length == 0){ if (checkedArray.length == 0){
show = true show = true
} }
checked = checkedArray
} }
/* 列表调用API方法 */ /* 列表调用API方法 */
async function getList() { async function getList() {
@ -58,21 +59,19 @@ async function getList() {
status.value = 'loading' status.value = 'loading'
proxy.$modal.loading('加载中') proxy.$modal.loading('加载中')
await workSchedulingApi.getConfigProcessWorker({ await workSchedulingApi.getConfigProcessWorker({
planDayCode: "PO20240426-0022", planDayCode: "PO20240429-0008",
processCode: "FF-CY-002", processCode: "DLJ_CY_01",
teamCode: "T01" teamCode: "T01"
}).then((res) => { }).then((res) => {
// if(res.data.leader){ uni.setStorageSync("isLeader", res.data.leader)
// list.value = res.data.list if (res.data.leader) {
// }else{ list.value = res.data.list
uni.setNavigationBarTitle({ } else {
title: 'test' uni.setStorageSync("processReportList", res.data.list)
})
uni.setStorageSync('processReportList', res.data.list);
uni.redirectTo({ uni.redirectTo({
url: './processReportForm' url: "./processReportForm"
}); })
// } }
}) })
proxy.$modal.closeLoading() proxy.$modal.closeLoading()
} }
@ -88,6 +87,12 @@ onShow(() => {
list.value = [] list.value = []
getList() getList()
}) })
function onSubmit() {
uni.setStorageSync("processReportList", checked)
uni.redirectTo({
url: "./processReportForm"
})
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

Loading…
Cancel
Save