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 d3f5def1
authored
Jun 08, 2026
by
岑成威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 更新
1 parent
7bd20c9c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
config.js
tabWorkOrder/index.wxs
tabWorkOrder/pages/createOrder/createOrder.wxml
config.js
View file @
d3f5def
...
...
@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 5cdptest
*/
let
index
=
0
;
let
index
=
2
;
const
accountInfo
=
wx
.
getAccountInfoSync
();
const
systemInfo
=
wx
.
getSystemInfoSync
();
const
envName
=
accountInfo
.
miniProgram
.
envVersion
;
...
...
tabWorkOrder/index.wxs
View file @
d3f5def
...
...
@@ -229,6 +229,18 @@ var formatBrandLabel = function (label, brandName) {
var hmReg = getRegExp('鸿蒙', 'g')
return replaced != label ? replaced : label.replace(hmReg, name)
}
// 客户来源:按 type 匹配名称(不能用 salesType 当下标)
var getSalesTypeName = function (columns, salesType) {
if (!columns || columns.length === 0) return ''
for (var i = 0; i < columns.length; i++) {
if (columns[i].type == salesType) {
return columns[i].name
}
}
return ''
}
/*
* 导出
*/
...
...
@@ -248,5 +260,6 @@ module.exports = {
subStatus: subStatus,
subStatusName: subStatusName,
btnPermissions: btnPermissions,
formatBrandLabel: formatBrandLabel
formatBrandLabel: formatBrandLabel,
getSalesTypeName: getSalesTypeName
}
tabWorkOrder/pages/createOrder/createOrder.wxml
View file @
d3f5def
...
...
@@ -154,7 +154,7 @@ value="{{ orderObj.remark }}"
<gl-cell
border
label="客户来源"
value="{{
Sourcecolumns[orderObj.customer.salesType].name
}}"
value="{{
filter.getSalesTypeName(Sourcecolumns, orderObj.customer.salesType)
}}"
bind:click="toSelectCustomerSource"
haveArrow="{{ true }}"
placeholder="点击选择"
...
...
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