diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue
index 9f0e8f6..068e768 100644
--- a/components/tabBar/tabBar.vue
+++ b/components/tabBar/tabBar.vue
@@ -27,7 +27,7 @@
diff --git a/pages-warehouse/home/home.vue b/pages-warehouse/home/home.vue
index a144a84..ecfb038 100644
--- a/pages-warehouse/home/home.vue
+++ b/pages-warehouse/home/home.vue
@@ -17,9 +17,9 @@
-
- 搜索
+ 搜索
+
- {{ item.repairName+'的配件申请单' }}
+ {{ item.repairName}}{{'配件申请单'}}
{{ item.createTimeStr }}
{{ item.statusStr }}
- 申请人:{{ item.repairName }}
+ 车牌号:{{ item.licenseNumber }}
服务顾问:{{ item.adviserName }}
@@ -52,13 +53,12 @@
@@ -78,14 +78,13 @@ import VNavigationBar from '@/components/VNavigationBar.vue'
import OrderCard from "@/components/orderCard.vue";
import config from '@/config'
import request from '@/utils/request';
-import {builderOrder, formatTimestamp, saveTicketsRecords} from "@/utils/utils";
import {
getToken,
getUserInfo,
getStrData,
getTenantId
} from '@/utils/auth'
-import {getDictTextByCodeAndValue,formatDate} from "@/utils/utils";
+import {getDictTextByCodeAndValue,formatDate,formatTimestamp} from "@/utils/utils";
export default {
components: {
@@ -129,26 +128,6 @@ export default {
shopList: [],
bannerList: [],
richTextHtml: null,
- pageNo: 1,
- pageSize: 10,
-
-
- orderList: [
- {
- orderNo: '1209840149750105501',
- flag: 1, flagStr: '待处理', carNum: '川A 184AO1',
- carModel: '一汽奥迪 2024款 A6L',
- projectList: [
- {name: '清洗内饰', id: 1},
- {name: '内饰精洗除臭', id: 2},
- {name: '烘干底板胶及脚垫', id: 3}
- ],
- userName: '张三',
- userPhone: '157****6879',
- appointDate: '2024-10-20 12:00',
- counselorName: '李相东'
- },
- ],
defaultAvatar: require('@/static/icons/avatar.png')
}
},
@@ -179,9 +158,17 @@ export default {
}
},
methods: {
+
+ /**
+ * 领配件、退配件Tab页
+ */
activeTab(index){
this.active = index
- this.queryParams.type = 1==index?'01':'02'
+ if (index == 1){
+ this.queryParams.isBack = true
+ } else {
+ this.queryParams.isBack = undefined
+ }
this.onRefresherrefresh()
},
@@ -204,7 +191,6 @@ export default {
method: 'get',
params: this.queryParams
}).then((res)=>{
- console.log(res,187)
if (res.code == 200){
res.rows.map((item) => {
getDictTextByCodeAndValue("ticket_wares_status",item.status).then(value => {
@@ -213,10 +199,10 @@ export default {
item.statusStr = "未知"
console.error(error);
});
- item.createTimeStr = formatDate(item.createTime)
+ item.createTimeStr = formatTimestamp(item.createTime)
})
this.total = res.total
- if (this.pageNo != 1) {
+ if (this.queryParams.pageNo != 1) {
this.ticketWares = this.ticketWares.concat(res.rows)
} else {
this.ticketWares = res.rows
@@ -242,7 +228,24 @@ export default {
this.getTicketWares()
},
+ /**
+ * 配件出库
+ */
+ inOutWareHouse(formData,isBack){
+ formData.isBack = isBack
+ uni.navigateTo({
+ url: '/pages-warehouse/inOutWarehouse/inOutWarehouse?formData='+encodeURIComponent(JSON.stringify(formData))
+ })
+ },
+ /**
+ * 配件出库操作
+ */
+ handlePass(row){
+ //组装提交参数
+ const formData = {...row}
+
+ },
gotoPage(menu) {
uni.navigateTo({
diff --git a/pages-warehouse/inOutWarehouse/inOutWarehouse.vue b/pages-warehouse/inOutWarehouse/inOutWarehouse.vue
index 59edcfa..d30aabf 100644
--- a/pages-warehouse/inOutWarehouse/inOutWarehouse.vue
+++ b/pages-warehouse/inOutWarehouse/inOutWarehouse.vue
@@ -1,28 +1,25 @@
-
-
-
-
- 搜索
-
-
-
-
- {{ item.name }}
-
-
+
+
+
+
+
+
-
- {{ item.name }}
+
+ {{ item.waresName }}
单位:
- {{ item.unit }}
+ {{ item.unitStr }}
+
+ 库存:
+ {{ item.wares.stock }}
- {{ item.num }}
+ {{ item.waresCount }}
@@ -30,31 +27,30 @@