Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d582cfb0
authored
Dec 23, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat 12月功能开发
1 parent
8fbcd91d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
162 additions
and
31 deletions
components/Merchant-Seles/Merchant-Seles.js
components/Merchant-Seles/Merchant-Seles.wxml
components/Merchant-Seles/Merchant-Seles.wxss
components/SearchInput/SearchInput.js
components/SearchInput/SearchInput.wxml
config.js
packageEquity/pages/carEquity/components/constant/secondStepData.js
store/index.js
tabWorkOrder/pages/createOrder/createOrder.js
tabWorkOrder/pages/createOrder/createOrder.wxml
tabWorkOrder/pages/defeatOrder/defeatOrder.js
tabWorkOrder/pages/defeatOrder/defeatOrder.wxml
components/Merchant-Seles/Merchant-Seles.js
View file @
d582cfb
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
import
api
from
"../../api/api"
;
import
api
from
"../../api/api"
;
// import util from '../../utils/util.js'
// import util from '../../utils/util.js'
Component
({
Component
({
// options: {
// styleIsolation: 'shared'
// },
/**
/**
* 组件的属性列表
* 组件的属性列表
*/
*/
...
@@ -46,6 +49,7 @@ Component({
...
@@ -46,6 +49,7 @@ Component({
this
.
getMerchantList
();
this
.
getMerchantList
();
this
.
setData
({
this
.
setData
({
sellerUserId
:
id
,
sellerUserId
:
id
,
keyWord
:
''
});
});
}
}
},
},
...
@@ -61,12 +65,25 @@ Component({
...
@@ -61,12 +65,25 @@ Component({
isFirst
:
true
,
isFirst
:
true
,
sellerUserId
:
""
,
sellerUserId
:
""
,
orderSellerInfo
:
""
,
orderSellerInfo
:
""
,
keyWord
:
''
},
},
/**
/**
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
search
(
e
)
{
let
{
detail
:
{
value
}
}
=
e
this
.
setData
({
keyWord
:
value
})
let
{
orderObj
}
=
this
.
data
this
.
getConversionEmployeeList
(
orderObj
.
merchantId
,
true
);
},
changSelectList
(
e
)
{
// let {value:text} = e.currentTarget
// let {selesList} =
},
showMoreMerchant
()
{
showMoreMerchant
()
{
this
.
setData
({
this
.
setData
({
moreMerchant
:
!
this
.
data
.
moreMerchant
,
moreMerchant
:
!
this
.
data
.
moreMerchant
,
...
@@ -84,7 +101,6 @@ Component({
...
@@ -84,7 +101,6 @@ Component({
let
{
orderObj
}
=
thisPage
.
data
;
let
{
orderObj
}
=
thisPage
.
data
;
let
isSellerInfo
,
orderSellerInfo
;
let
isSellerInfo
,
orderSellerInfo
;
// console.log('orderObj', orderObj)
// console.log('orderObj', orderObj)
let
callBackName
=
let
callBackName
=
type
==
1
?
"getSceneMerchantRefStoreList"
:
"getYQList"
;
type
==
1
?
"getSceneMerchantRefStoreList"
:
"getYQList"
;
// debugger
// debugger
...
@@ -198,6 +214,7 @@ Component({
...
@@ -198,6 +214,7 @@ Component({
orderObj
:
comOrderObj
,
orderObj
:
comOrderObj
,
orderSellerInfo
,
orderSellerInfo
,
scene
,
scene
,
keyWord
}
=
this
.
data
;
}
=
this
.
data
;
let
thisPage
=
wx
.
$router
.
getPageInstance
();
let
thisPage
=
wx
.
$router
.
getPageInstance
();
...
@@ -206,6 +223,7 @@ Component({
...
@@ -206,6 +223,7 @@ Component({
.
getConversionEmployeeList
({
.
getConversionEmployeeList
({
merchantId
,
merchantId
,
sceneList
:
type
==
1
?
[
scene
]
:
""
,
sceneList
:
type
==
1
?
[
scene
]
:
""
,
filterStaffName
:
keyWord
})
})
.
then
(
async
(
res
)
=>
{
.
then
(
async
(
res
)
=>
{
wx
.
$util
.
hideLoading
();
wx
.
$util
.
hideLoading
();
...
...
components/Merchant-Seles/Merchant-Seles.wxml
View file @
d582cfb
...
@@ -4,8 +4,7 @@
...
@@ -4,8 +4,7 @@
<view class="sub-title">{{title}}</view>
<view class="sub-title">{{title}}</view>
<view class="merchant-box" style="max-height:{{moreMerchant?merchantList.length * 100 :''}}rpx">
<view class="merchant-box" style="max-height:{{moreMerchant?merchantList.length * 100 :''}}rpx">
<block wx:for="{{merchantList}}" wx:key="index">
<block wx:for="{{merchantList}}" wx:key="index">
<view class="merchantList {{item.active?'active':''}}" bindtap="changeMerchant" data-item="{{item}}"
<view class="merchantList {{item.active?'active':''}}" bindtap="changeMerchant" data-item="{{item}}" data-index="{{index}}">
data-index="{{index}}">
<view class="text-hide">{{item.merchantName}}</view>
<view class="text-hide">{{item.merchantName}}</view>
</view>
</view>
</block>
</block>
...
@@ -15,11 +14,12 @@
...
@@ -15,11 +14,12 @@
<image src="../images/open.png" class="icon {{moreMerchant ? 'hide':''}}"></image>
<image src="../images/open.png" class="icon {{moreMerchant ? 'hide':''}}"></image>
</view>
</view>
</block>
</block>
<view class="sub-title">{{subTitle}}</view>
<view class="sub-title">{{subTitle}}
</view>
<search-input styleValue=" border-bottom:none" wx:if="{{type == 1 }}" value="{{keyWord}}" bindsearch="search" placeholder="请输入" />
<view class="seles-list">
<view class="seles-list">
<block wx:for="{{selesList}}" wx:key="index">
<block wx:for="{{selesList}}" wx:key="index">
<view class="seles text-center {{item.active?'active':''}}" bindtap="changeSelesMan" data-index="{{index}}"
<view class="seles text-center {{item.active?'active':''}}" bindtap="changeSelesMan" data-index="{{index}}" data-item="{{item}}">
data-item="{{item}}">
{{item.staffName}}
{{item.staffName}}
</view>
</view>
</block>
</block>
...
...
components/Merchant-Seles/Merchant-Seles.wxss
View file @
d582cfb
/* components/Merchant-Seles/Merchant-Seles.wxss */
/* components/Merchant-Seles/Merchant-Seles.wxss */
.text-hide {
.text-hide {
white-space:nowrap;
white-space:
nowrap;
overflow:hidden;
overflow:
hidden;
text-overflow:ellipsis;
text-overflow:
ellipsis;
}
}
.text-center{
.text-center {
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: center;
justify-content: center;
}
}
.seles-box{
.seles-box {
height: 100%;
height: 100%;
width: calc(100% + var(--fontSize64));
width: calc(100% + var(--fontSize64));
transform: translateX(calc(-1 * var(--fontSize32)));
transform: translateX(calc(-1 * var(--fontSize32)));
}
}
.box{
.box {
padding: 0 var(--fontSize32);
padding: 0 var(--fontSize32);
}
}
.merchant-box{
.merchant-box {
max-height: var(--fontSize300);
max-height: var(--fontSize300);
overflow: hidden;
overflow: hidden;
transition: all .25s;
transition: all .25s;
}
}
.merchantList {
.merchantList {
width: calc(100% - var(--fontSize50));
width: calc(100% - var(--fontSize50));
height: var(--fontSize98);
height: var(--fontSize98);
...
@@ -55,12 +60,14 @@
...
@@ -55,12 +60,14 @@
text-align: center;
text-align: center;
margin: var(--fontSize28) auto 0;
margin: var(--fontSize28) auto 0;
}
}
.more .icon{
.more .icon {
width: var(--fontSize24);
width: var(--fontSize24);
height: var(--fontSize22);
height: var(--fontSize22);
transition: all .25s;
transition: all .25s;
}
}
.more .icon.hide{
.more .icon.hide {
transform: rotate(-180deg);
transform: rotate(-180deg);
}
}
...
@@ -94,8 +101,13 @@
...
@@ -94,8 +101,13 @@
height: var(--fontSize60);
height: var(--fontSize60);
margin: 0 var(--fontSize40) var(--fontSize20) 0;
margin: 0 var(--fontSize40) var(--fontSize20) 0;
}
}
.seles.active{
background: rgba(53,130,238,0.08);
.seles.active {
background: rgba(53, 130, 238, 0.08);
color: #347BFF;
color: #347BFF;
border-color: #347BFF;
border-color: #347BFF;
}
}
.search-input search-input {
border: none;
}
\ No newline at end of file
\ No newline at end of file
components/SearchInput/SearchInput.js
View file @
d582cfb
// components/SearchInput/SearchInput.js
// components/SearchInput/SearchInput.js
Component
({
Component
({
// options: {
// styleIsolation: 'shared'
// },
/**
/**
* 组件的属性列表
* 组件的属性列表
*/
*/
...
@@ -14,6 +17,10 @@ Component({
...
@@ -14,6 +17,10 @@ Component({
filterEmoji
:
{
filterEmoji
:
{
type
:
Boolean
,
type
:
Boolean
,
value
:
true
value
:
true
},
styleValue
:
{
type
:
String
,
value
:
''
}
}
},
},
...
@@ -60,7 +67,7 @@ Component({
...
@@ -60,7 +67,7 @@ Component({
},
},
emit
(
e
)
{
emit
(
e
)
{
let
{
let
{
detail
:{
detail
:
{
value
value
},
},
type
type
...
...
components/SearchInput/SearchInput.wxml
View file @
d582cfb
<view class="search-box">
<view class="search-box"
style="{{styleValue}}"
>
<view class="search-input">
<view class="search-input">
<block wx:if="{{!edit}}">
<block wx:if="{{!edit}}">
<view class="input {{value?'':'placeholder'}}" bindtap="open">
<view class="input {{value?'':'placeholder'}}" bindtap="open">
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</view>
</view>
</block>
</block>
<block wx:else>
<block wx:else>
<input type="text" maxlength="{{maxlength}}" class="input" value='{{value}}' focus='{{inputFocus}}' confirm-type="search" bindinput='input' bindblur="inputBlur"
bindconfirm="inputConfifm"
/>
<input type="text" maxlength="{{maxlength}}" class="input" value='{{value}}' focus='{{inputFocus}}' confirm-type="search" bindinput='input' bindblur="inputBlur"
bindconfirm="inputConfifm"
/>
</block>
</block>
</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
config.js
View file @
d582cfb
...
@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
...
@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 4预发布
* 5cdptest
* 5cdptest
*/
*/
let
index
=
2
;
let
index
=
1
;
const
accountInfo
=
wx
.
getAccountInfoSync
();
const
accountInfo
=
wx
.
getAccountInfoSync
();
const
systemInfo
=
wx
.
getSystemInfoSync
();
const
systemInfo
=
wx
.
getSystemInfoSync
();
const
envName
=
accountInfo
.
miniProgram
.
envVersion
;
const
envName
=
accountInfo
.
miniProgram
.
envVersion
;
...
...
packageEquity/pages/carEquity/components/constant/secondStepData.js
View file @
d582cfb
...
@@ -650,7 +650,7 @@ const secondObj = {
...
@@ -650,7 +650,7 @@ const secondObj = {
maxlength
:
'100'
maxlength
:
'100'
}
}
],
],
retrofitList
:[{
retrofitList
:
[{
label
:
' '
,
label
:
' '
,
name
:
'upload'
,
name
:
'upload'
,
type
:
'slot'
,
type
:
'slot'
,
...
...
store/index.js
View file @
d582cfb
...
@@ -372,6 +372,17 @@ export const getPositionList = options => {
...
@@ -372,6 +372,17 @@ export const getPositionList = options => {
api
.
getPositionList
({}).
then
(
res
=>
{
api
.
getPositionList
({}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
let
{
code
,
data
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
const
namReplaceobj
=
{
2
:
'前侧窗玻璃'
,
3
:
'后侧窗玻璃'
,
4
:
'后挡'
}
data
=
data
.
map
(
item
=>
{
if
(
namReplaceobj
[
item
.
positionValue
])
{
item
.
positionName
=
namReplaceobj
[
item
.
positionValue
]
}
return
item
;
})
app
.
globalData
.
positionTypeList
=
data
app
.
globalData
.
positionTypeList
=
data
}
}
resolve
(
app
.
globalData
.
positionTypeList
)
resolve
(
app
.
globalData
.
positionTypeList
)
...
...
tabWorkOrder/pages/createOrder/createOrder.js
View file @
d582cfb
...
@@ -97,6 +97,8 @@ Page({
...
@@ -97,6 +97,8 @@ Page({
frontGearArr
:
[],
// 前挡
frontGearArr
:
[],
// 前挡
sideRearGearArr
:
[],
// 侧后挡
sideRearGearArr
:
[],
// 侧后挡
skylightArr
:
[],
// 天窗
skylightArr
:
[],
// 天窗
sideBeforeRearGearArr
:
[],
// 前侧窗玻璃
sideAfterRearGearArr
:
[],
// 后档
baseConfigData
:
{},
baseConfigData
:
{},
showSource
:
false
,
showSource
:
false
,
Sourcecolumns
:
[
Sourcecolumns
:
[
...
@@ -213,7 +215,8 @@ Page({
...
@@ -213,7 +215,8 @@ Page({
orderObj
:
{
selectPayType
},
orderObj
:
{
selectPayType
},
baseConfigData
,
baseConfigData
,
}
=
this
.
data
;
}
=
this
.
data
;
let
{
showName
,
type
}
=
e
.
currentTarget
.
dataset
;
let
{
showName
,
type
,
positionnnum
:
positionNum
}
=
e
.
currentTarget
.
dataset
;
console
.
log
(
positionNum
,
'positionNum'
);
let
arr
=
[];
let
arr
=
[];
if
(
showName
==
"goodsBox"
)
{
if
(
showName
==
"goodsBox"
)
{
// type 产品类型 1前挡 2侧后挡 3天窗 4其它精品 根据类型过滤显示商品弹窗数据
// type 产品类型 1前挡 2侧后挡 3天窗 4其它精品 根据类型过滤显示商品弹窗数据
...
@@ -248,9 +251,10 @@ Page({
...
@@ -248,9 +251,10 @@ Page({
)
)
arr
[
i
].
upgradeGoodsList
=
arr2
;
arr
[
i
].
upgradeGoodsList
=
arr2
;
}
}
console
.
log
([
positionNum
],
[
positionNum
].
includes
(
subVal
.
merchantGoodsPosition
));
if
(
if
(
type
==
2
&&
type
==
2
&&
[
2
,
3
,
4
].
includes
(
subVal
.
merchantGoodsPosition
)
[
Number
(
positionNum
)
].
includes
(
subVal
.
merchantGoodsPosition
)
)
{
)
{
arr2
.
push
(
subVal
);
arr2
.
push
(
subVal
);
if
(
if
(
...
@@ -1020,7 +1024,9 @@ Page({
...
@@ -1020,7 +1024,9 @@ Page({
first
,
first
,
orderObj
,
orderObj
,
frontGearArr
,
// 前挡
frontGearArr
,
// 前挡
sideBeforeRearGearArr
,
// 前侧窗玻璃
sideRearGearArr
,
// 侧后挡
sideRearGearArr
,
// 侧后挡
sideAfterRearGearArr
,
// 后档
skylightArr
,
// 天窗
skylightArr
,
// 天窗
}
=
this
.
data
;
}
=
this
.
data
;
let
{
subOrderList
}
=
orderObj
;
let
{
subOrderList
}
=
orderObj
;
...
@@ -1040,7 +1046,7 @@ Page({
...
@@ -1040,7 +1046,7 @@ Page({
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
let
{
code
,
data
,
message
}
=
res
;
let
{
code
,
data
,
message
}
=
res
;
console
.
log
(
subOrderList
,
'subOrderList'
)
console
.
log
(
subOrderList
,
res
,
'subOrderList'
)
if
(
code
==
0
)
{
if
(
code
==
0
)
{
wx
.
hideLoading
();
wx
.
hideLoading
();
data
?.
forEach
((
val
)
=>
{
data
?.
forEach
((
val
)
=>
{
...
@@ -1049,9 +1055,16 @@ Page({
...
@@ -1049,9 +1055,16 @@ Page({
if
([
1
].
includes
(
subVal
.
merchantGoodsPosition
))
{
if
([
1
].
includes
(
subVal
.
merchantGoodsPosition
))
{
frontGearArr
.
push
(
subVal
);
frontGearArr
.
push
(
subVal
);
}
}
if
([
2
,
3
,
4
].
includes
(
subVal
.
merchantGoodsPosition
))
{
if
([
2
].
includes
(
subVal
.
merchantGoodsPosition
))
{
sideBeforeRearGearArr
.
push
(
subVal
);
}
if
([
3
,].
includes
(
subVal
.
merchantGoodsPosition
))
{
sideRearGearArr
.
push
(
subVal
);
sideRearGearArr
.
push
(
subVal
);
}
}
if
([
4
].
includes
(
subVal
.
merchantGoodsPosition
))
{
sideAfterRearGearArr
.
push
(
subVal
);
}
if
([
5
,
6
,
7
].
includes
(
subVal
.
merchantGoodsPosition
))
{
if
([
5
,
6
,
7
].
includes
(
subVal
.
merchantGoodsPosition
))
{
skylightArr
.
push
(
subVal
);
skylightArr
.
push
(
subVal
);
}
}
...
@@ -1063,8 +1076,10 @@ Page({
...
@@ -1063,8 +1076,10 @@ Page({
subV
.
upgradeGoodsPosition
&&
subV
.
upgradeGoodsPosition
&&
subVal
.
merchantGoodsPosition
!=
subV
.
upgradeGoodsPosition
&&
subVal
.
merchantGoodsPosition
!=
subV
.
upgradeGoodsPosition
&&
subVal
.
upgradeGoodsId
==
subV
.
upgradeGoodsId
subVal
.
upgradeGoodsId
==
subV
.
upgradeGoodsId
)
)
{
debugger
subV
.
upgradeGoodsPosition
=
subVal
.
merchantGoodsPosition
;
subV
.
upgradeGoodsPosition
=
subVal
.
merchantGoodsPosition
;
}
});
});
}
}
});
});
...
@@ -1124,6 +1139,8 @@ Page({
...
@@ -1124,6 +1139,8 @@ Page({
copyGoodsData
:
goodsData
,
copyGoodsData
:
goodsData
,
goodsList
:
subOrderList
,
goodsList
:
subOrderList
,
frontGearArr
,
frontGearArr
,
sideBeforeRearGearArr
,
sideAfterRearGearArr
,
sideRearGearArr
,
sideRearGearArr
,
skylightArr
,
skylightArr
,
// orderObj
// orderObj
...
...
tabWorkOrder/pages/createOrder/createOrder.wxml
View file @
d582cfb
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
<gl-cell border valueAlign="right" label="精品礼券" labelWidth="var(--fontSize140)" haveArrow requiredAfter required value="{{ (orderObj.couponName || '') + (orderObj.customerCouponCode || '') }}" placeholder="点击选择" bindclick="showPopup" data-show-name="couponBox" disabled="{{ orderObj.orderSource == 5 }}" />
<gl-cell border valueAlign="right" label="精品礼券" labelWidth="var(--fontSize140)" haveArrow requiredAfter required value="{{ (orderObj.couponName || '') + (orderObj.customerCouponCode || '') }}" placeholder="点击选择" bindclick="showPopup" data-show-name="couponBox" disabled="{{ orderObj.orderSource == 5 }}" />
<!-- class="{{orderObj.selectPayType ==0?'item-disabled':''}}" -->
<!-- class="{{orderObj.selectPayType ==0?'item-disabled':''}}" -->
<view class="goods_box">
<view class="goods_box">
<view class="label" style="margin-bottom: {{ !frontGearArr.length && !sideRearGearArr.length && !skylightArr.length ? 'var(--fontSize40)' : '' }};">
<view class="label" style="margin-bottom: {{ !frontGearArr.length && !sideRearGearArr.length && !skylightArr.length
&&!sideBeforeRearGearArr.length&&!sideAfterRearGearArr.length
? 'var(--fontSize40)' : '' }};">
请选择产品
请选择产品
<text class="required">*</text>
<text class="required">*</text>
</view>
</view>
...
@@ -148,13 +148,79 @@
...
@@ -148,13 +148,79 @@
</view>
</view>
</block>
</block>
</block>
</block>
<block wx:if="{{ sideBeforeRearGearArr.length }}">
<gl-cell border valueAlign="right" label="前侧窗玻璃" logoSrc="{{ tricorn }}" labelWidth="var(--fontSize180)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="2" />
<block wx:if="{{ goodsList.length > 0 }}">
<view class="goods-box">
<block wx:for="{{ goodsList }}" wx:key="index">
<!-- 前侧窗玻璃 -->
<view class="goods" wx:if="{{ filter.filterIncludes((item.merchantGoodsPosition || item.upgradeGoodsPosition), [2]) }}">
<view class="name_box">
<view class="name text-hide">
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}
</view>
</view>
<view class="bottom_box">
<!-- merchantGoodsPosition商品列表部位字段 upgradeGoodsPosition订单详情部位字段 -->
<view class="position" wx:if="{{ (item.merchantGoodsPosition || item.upgradeGoodsPosition) && (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) }}">{{filter.formatPosition((item.merchantGoodsPosition || item.upgradeGoodsPosition), positionTypeList)}}</view>
<view class="position red_text" wx:if="{{ (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) && !item.merchantGoodsPosition && !item.upgradeGoodsPosition }}">无部位属性</view>
<view class="position" wx:else></view>
<view class="price_count">
<view class="price">
<text>¥</text>
<input type="digit" value="{{ item.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="2">x{{item.count}}</view>
</view>
</view>
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="../../images/del.png" />
</view>
</view>
</block>
</view>
</block>
</block>
<block wx:if="{{ sideRearGearArr.length }}">
<block wx:if="{{ sideRearGearArr.length }}">
<gl-cell border valueAlign="right" label="侧后挡" logoSrc="{{ tricorn }}" labelWidth="var(--fontSize140)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="2" />
<gl-cell border valueAlign="right" label="后侧窗玻璃" logoSrc="{{ sideIcorn }}" labelWidth="var(--fontSize180)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="3" />
<block wx:if="{{ goodsList.length > 0 }}">
<view class="goods-box">
<block wx:for="{{ goodsList }}" wx:key="index">
<!-- 后侧窗玻璃 -->
<view class="goods" wx:if="{{ filter.filterIncludes((item.merchantGoodsPosition || item.upgradeGoodsPosition), [3]) }}">
<view class="name_box">
<view class="name text-hide">
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}
</view>
</view>
<view class="bottom_box">
<!-- merchantGoodsPosition商品列表部位字段 upgradeGoodsPosition订单详情部位字段 -->
<view class="position" wx:if="{{ (item.merchantGoodsPosition || item.upgradeGoodsPosition) && (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) }}">{{filter.formatPosition((item.merchantGoodsPosition || item.upgradeGoodsPosition), positionTypeList)}}</view>
<view class="position red_text" wx:if="{{ (item.goodsInfo.goodsType == 1 || item.upgradeGoodsType == 1 || item.goodsInfo.goodsType == baseConfigData.selfBuildFilmType || item.upgradeGoodsType == baseConfigData.selfBuildFilmType) && !item.merchantGoodsPosition && !item.upgradeGoodsPosition }}">无部位属性</view>
<view class="position" wx:else></view>
<view class="price_count">
<view class="price">
<text>¥</text>
<input type="digit" value="{{ item.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="2">x{{item.count}}</view>
</view>
</view>
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="../../images/del.png" />
</view>
</view>
</block>
</view>
</block>
</block>
<block wx:if="{{ sideAfterRearGearArr.length }}">
<gl-cell border valueAlign="right" label="后档" logoSrc="{{ afterIcorn }}" labelWidth="var(--fontSize140)" haveArrow placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="4" />
<block wx:if="{{ goodsList.length > 0 }}">
<block wx:if="{{ goodsList.length > 0 }}">
<view class="goods-box">
<view class="goods-box">
<block wx:for="{{ goodsList }}" wx:key="index">
<block wx:for="{{ goodsList }}" wx:key="index">
<!--
侧后挡
-->
<!--
后档
-->
<view class="goods" wx:if="{{ filter.filterIncludes((item.merchantGoodsPosition || item.upgradeGoodsPosition), [
2, 3,
4]) }}">
<view class="goods" wx:if="{{ filter.filterIncludes((item.merchantGoodsPosition || item.upgradeGoodsPosition), [4]) }}">
<view class="name_box">
<view class="name_box">
<view class="name text-hide">
<view class="name text-hide">
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}}
...
...
tabWorkOrder/pages/defeatOrder/defeatOrder.js
View file @
d582cfb
This diff is collapsed.
Click to expand it.
tabWorkOrder/pages/defeatOrder/defeatOrder.wxml
View file @
d582cfb
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment