@@ -17,7 +17,7 @@
v-for="(item, index) in detailsList"
:key="index"
class="table-list-item"
- @tap="onCodingItem(item)"
+
>
@@ -36,30 +36,23 @@
{{ index + 1 }}
- 预领数量:
+ 到货数量:
- {{ item.preNum }}
+ {{ }}
{{ index + 1 }}
- 已领数量:
+ 已入库数量:
- {{ item.alNum }}
+ {{ }}
-
+
{{ index + 1 }}
- 待领数量:
+ 待入库数量:
- {{ item.preNum - item.alNum }}
-
-
-
- {{ index + 1 }}
- 单位:
-
- {{ item.unitName }}
+ {{ }}
@@ -88,13 +81,13 @@
text="未完成"
type="warning"
size="small"
- v-if="item.status == 0 || item.status == 1"
+ v-if="item.status == 4"
/>
@@ -106,86 +99,38 @@
+
+
diff --git a/src/pages/new-purchase/entry/index.vue b/src/pages/new-purchase/entry/index.vue
index 45a0ce2..4888661 100644
--- a/src/pages/new-purchase/entry/index.vue
+++ b/src/pages/new-purchase/entry/index.vue
@@ -59,9 +59,13 @@
采购数量:
{{ item.purchaseMaNumber }}
-
- 物资厂家:
- {{ item.supplier }}
+
+ 已入库数量:
+ {{ }}
+
+
+ 待入库数量:
+ {{ }}
@@ -105,15 +109,21 @@ const onChangeDate = (val) => {
//点击事件
const onClick=(e,item)=> {
if(item.taskStatus==22){
- console.log(e.index)
if(e.index==0){
- uni.navigateTo({ url: `/pages/new-purchase/entry/details?id=${item.id}` })
+ uni.navigateTo({ url: `/pages/new-purchase/entry/details?id=${item.id}&taskId=${item.taskId}` })
}
// console.log(e,'item',item);
// console.log(e.index);
+ }else{
+ if(e.index==0){
+ uni.navigateTo({ url: `/pages/new-purchase/entry/details?id=${item.id}&taskId=${item.taskId}` })
+ }else{
+ uni.navigateTo({ url: `/pages/new-purchase/entry/inEntry?id=${item.id}&taskId=${item.taskId}` })
}
}
+ }
+
//左滑选择项1
const swipeOptions = ref([
{
@@ -121,11 +131,11 @@ const swipeOptions = ref([
style: { backgroundColor: '#34C759' },
onClick: () => { handleAction('查看'); }
},
- {
- text: '驳回',
- style: { backgroundColor: '#dd524d' },
- onClick: () => { handleAction('驳回'); }
- }
+ // {
+ // text: '驳回',
+ // style: { backgroundColor: '#dd524d' },
+ // onClick: () => { handleAction('驳回'); }
+ // }
])
//左滑选择项2
@@ -138,10 +148,10 @@ const swipeOptions = ref([
text: '入库',
style: { backgroundColor: '#007AFF' },
},
- {
- text: '驳回',
- style: { backgroundColor: '#dd524d' },
- }
+ // {
+ // text: '驳回',
+ // style: { backgroundColor: '#dd524d' },
+ // }
])
//左滑改变
@@ -153,10 +163,9 @@ const swipeOptions = ref([
// 获取列表数据
const getTableList = async (isTap = false) => {
- // console.log('queryParams.value查询参数', queryParams.value)
const res = await getPurchaseList(queryParams.value)
console.log('res列表数据', res)
- total.value = res.total
+ total.value = res.data.total
if (isTap) {
tableList.value = res.data.rows
} else {
@@ -182,10 +191,10 @@ const changeTab = (index) => {
}
const maskClick = () => {}
-// 页面加载完毕
-onLoad(() => {
- getTableList()
-})
+// // 页面加载完毕
+// onLoad(() => {
+// getTableList()
+// })
onShow(() => {
tableList.value = []
@@ -198,10 +207,12 @@ const onScrollTolower = debounce(() => {
queryParams.value.pageNum++
getTableList()
}
-})
+},500)
// 判断数据是否加载完毕
const finish = computed(() => {
+ console.log('total.value',total.value)
+ console.log('tableList.value.length',tableList.value.length)
if (total.value === tableList.value.length) return true
})
diff --git a/src/pages/repair/code-operate.vue b/src/pages/repair/code-operate.vue
new file mode 100644
index 0000000..6a54b19
--- /dev/null
+++ b/src/pages/repair/code-operate.vue
@@ -0,0 +1,120 @@
+
+
+
+
+
+ 维修完成
+
+
+
+
+ 物资名称:
+ {{ queryParams.typeName }}
+
+
+
+ 物资类型:
+ {{ queryParams.type }}
+
+
+
+ 待修数量:
+ {{ queryParams.repairNum }}
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/repair/code-view.vue b/src/pages/repair/code-view.vue
new file mode 100644
index 0000000..fe751d6
--- /dev/null
+++ b/src/pages/repair/code-view.vue
@@ -0,0 +1,164 @@
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+ 合格
+
+
+
+
+ 物资名称:
+ {{ queryParams.typeName }}
+
+
+
+ 物资类型:
+ {{ queryParams.type }}
+
+
+
+ 待修数量:
+ {{ queryParams.repairNum }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+ 物资名称:
+
+ 66
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/repair/details.vue b/src/pages/repair/details.vue
new file mode 100644
index 0000000..ec70ce5
--- /dev/null
+++ b/src/pages/repair/details.vue
@@ -0,0 +1,261 @@
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+ 合格
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 物资名称:
+
+ {{ item.typeName }}
+
+
+
+ {{ index + 1 }}
+ 规格型号:
+
+ {{ item.type }}
+
+
+
+ {{ index + 1 }}
+ 已退数量:
+
+ {{ item.repairNum }}
+
+
+
+ {{ index + 1 }}
+ 单位:
+
+ {{ item.unitName }}
+
+
+
+ {{ index + 1 }}
+ 管理模式:
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/repair/index.vue b/src/pages/repair/index.vue
new file mode 100644
index 0000000..9be91c9
--- /dev/null
+++ b/src/pages/repair/index.vue
@@ -0,0 +1,348 @@
+
+
+
+
+
+ 已完成
+
+
+
+ 未完成
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+ 退料人:
+
+ {{ item.createBy }}
+
+
+
+ 任务时间:
+ {{ item.createTime }}
+
+
+
+ 维修单号:
+
+ {{ item.repairCode }}
+
+
+
+ 退料物资:
+
+ {{ item.type }}
+
+
+
+ 退料单位:
+
+ {{ item.backUnit }}
+
+
+
+ 工程名称:
+
+ {{ item.backPro }}
+
+
+
+ 任务创建人:
+
+ {{ item.createBy }}
+
+
+
+
+ 状态:
+
+
+
+
+
+
+
+
+
+
+
+ {{ finish ? '没有更多数据了~' : '正在加载...' }}
+
+
+
+
+
+
+
+
diff --git a/src/pages/repair/num-operate.vue b/src/pages/repair/num-operate.vue
new file mode 100644
index 0000000..368b3cb
--- /dev/null
+++ b/src/pages/repair/num-operate.vue
@@ -0,0 +1,210 @@
+
+
+
+
+
+ 维修完成
+
+
+
+
+ 物资名称:
+ {{ queryParams.typeName }}
+
+
+
+ 物资类型:
+ {{ queryParams.type }}
+
+
+
+ 待修数量:
+ {{ queryParams.repairNum }}
+
+
+
+
+
+
+
+
+ 维修信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 内部维修
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 返厂维修
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 维修报废
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue
index 816bbfa..df62993 100644
--- a/src/pages/work/index.vue
+++ b/src/pages/work/index.vue
@@ -27,6 +27,19 @@
+