diff --git a/components/commonTimeSelect.vue b/components/commonTimeSelect.vue
new file mode 100644
index 0000000..6d3624f
--- /dev/null
+++ b/components/commonTimeSelect.vue
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages-detail/detail/detail.vue b/pages-detail/detail/detail.vue
index 47270f6..078d2f6 100644
--- a/pages-detail/detail/detail.vue
+++ b/pages-detail/detail/detail.vue
@@ -55,11 +55,11 @@
-
+
应收款
+ @click.native.stop="toggleFinance('receivable')" />
-
+
已收款
+ @click.native.stop="toggleFinance('collected')" />
{{ financeVisibility.collected ? formatCurrency(otherInfo.receivedAmount) : '*****' }}
@@ -82,11 +82,11 @@
-
+
待收款
+ @click.native.stop="toggleFinance('pending')" />
{{ financeVisibility.pending ? formatCurrency(otherInfo.pendingAmount) : '*****' }}
@@ -123,16 +123,6 @@
queryParams: {
dateRange: [],
},
- sectionOrder: ['orders', 'repairing', 'completed', 'settled', 'unsettled', 'delivered', 'inFactory'],
- sectionTitle: {
- orders: '订单(进厂)数',
- repairing: '维修中',
- completed: '已竣工',
- settled: '竣工已结算',
- unsettled: '竣工未结算',
- delivered: '已交车',
- inFactory: '在厂数'
- },
tapList: [{
label: "本日",
value: "day",
diff --git a/pages-order/addOrder/addOrder.vue b/pages-order/addOrder/addOrder.vue
index 1a6910c..2fff22b 100644
--- a/pages-order/addOrder/addOrder.vue
+++ b/pages-order/addOrder/addOrder.vue
@@ -877,16 +877,16 @@
getCarList(carId) {
const params = {
- userId: this.userInfo.userId,
+ id: this.userInfo.id,
pageNo: 1,
pageSize: 100000
}
request({
- url: '/admin-api/base/carMain/page',
+ url: '/admin-api/base/custom/get',
method: 'GET',
params: params
}).then(res => {
- this.carList = res.data.records
+ this.carList = res.data.carList
for (let i = 0; i < this.carList.length; i++) {
if (this.carList[i].licenseNumber.toLowerCase() == this.phone.toLowerCase()) {
this.activeCarIndex = i
diff --git a/pages-repair/apply/applyForm.vue b/pages-repair/apply/applyForm.vue
index e2e306d..7d4e0e3 100644
--- a/pages-repair/apply/applyForm.vue
+++ b/pages-repair/apply/applyForm.vue
@@ -19,17 +19,21 @@
-
+
{{ item.name }}
单位:
{{ item.unitText }}
+ 当前库存:
+ {{ item.stock }}
+
-
+
{{ item.num }}
+ @click.native.stop="addNum(item)">
@@ -481,10 +485,16 @@
/**
* 添加新的配件
*/
- addNewWaresFun() {
- uni.navigateTo({
- url: '/pages-repair/apply/newWare'
- })
+ addNewWaresFun(id) {
+ if (id) {
+ uni.navigateTo({
+ url: `/pages-repair/apply/newWare?id=${id}`
+ })
+ } else {
+ uni.navigateTo({
+ url: `/pages-repair/apply/newWare`
+ })
+ }
},
}
}
diff --git a/pages-repair/apply/newWare.vue b/pages-repair/apply/newWare.vue
index 95e1d22..25186aa 100644
--- a/pages-repair/apply/newWare.vue
+++ b/pages-repair/apply/newWare.vue
@@ -1,417 +1,546 @@
-
-
-
-
-
- 配件名称
-
-
-
- 所属分类
-
- {{allTypeNameList[typeIndex]}}
-
-
-
- 计量单位
-
- {{allUnitNameList[unitIndex]}}
-
-
-
- 规格型号
-
-
-
- 来源
-
- {{allFromNameList[fromIndex]}}
-
-
-
- 配件属性
-
- {{allAttributeNameList[attributeIndex]}}
-
-
-
- 状态
-
-
-
-
-
-
-
- 条形码
-
-
-
- 商品编码
-
-
-
- 适用子公司
-
-
-
-
- {{ item.corpName }}
-
-
-
- 适用车型
-
-
-
-
-
-
- 备注
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ 配件名称
+
+
+
+ 进价
+
+
+
+ 销售价格
+
+
+
+ 所属分类
+
+ {{allTypeNameList[typeIndex]}}
+
+
+
+ 计量单位
+
+ {{allUnitNameList[unitIndex]}}
+
+
+
+ 规格型号
+
+
+
+ 来源
+
+ {{allFromNameList[fromIndex]}}
+
+
+
+ 配件属性
+
+ {{allAttributeNameList[attributeIndex]}}
+
+
+
+ 状态
+
+
+
+
+
+
+
+ 条形码
+
+
+
+ 商品编码
+
+
+
+ 适用子公司
+
+
+
+
+ {{ item.corpName }}
+
+
+
+ 适用车型
+
+
+
+
+
+
+ 备注
+
+
+
+
+
+
+
+
+
+ .formValue {
+ flex: 1;
+ width: 0;
+ text-align: right;
+ font-size: 32rpx;
+ color: #999999;
+ }
+
+ .repairBottom {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ }
+
+ .repairDesc {
+ font-size: 28rpx;
+ color: #858BA0;
+ }
+
+ .repairUnit {
+ color: #333333;
+ }
+
+ .footer {
+ padding: 14rpx 32rpx;
+ background-color: #fff;
+ display: flex;
+ align-items: center;
+
+ .repairNum {
+ flex: 1;
+ width: 0;
+ margin-right: 10rpx;
+ }
+
+ .submit {
+ width: 208rpx;
+ height: 72rpx;
+ background: #0174F6;
+ border-radius: 38rpx 38rpx 38rpx 38rpx;
+ text-align: center;
+ line-height: 72rpx;
+ font-size: 32rpx;
+ color: #FFFFFF;
+ }
+ }
+
\ No newline at end of file
diff --git a/pages/myCar/addCarUser.vue b/pages/myCar/addCarUser.vue
index 0bbc955..5bcee09 100644
--- a/pages/myCar/addCarUser.vue
+++ b/pages/myCar/addCarUser.vue
@@ -1,553 +1,513 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ natureList[natureIndex].value}}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ natureList[natureIndex].value}}
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+ line-height: 76rpx;
+ text-align: center;
+ }
+ }
+ }
+
\ No newline at end of file
diff --git a/pages/myCar/carDetail.vue b/pages/myCar/carDetail.vue
index 1a7819e..e26fc9b 100644
--- a/pages/myCar/carDetail.vue
+++ b/pages/myCar/carDetail.vue
@@ -1,534 +1,498 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ natureList[natureIndex].value}}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ natureList[natureIndex].value}}
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+ line-height: 76rpx;
+ text-align: center;
+ }
+ }
+ }
+
\ No newline at end of file