Commit 67440c41 authored by 李星剑's avatar 李星剑

fix:面料建模

parent f8d4dd3d
export default {
base:{
dictionary:{
url: "/gdep-system/dict/dictionaryList",
method: "post"
},
sizeGroup:{
url: "/gdep-mdm/size/query",
method: "post"
},
getCategoryList:{
url: "/gdep-mdm/category/list",
method: "get"
},
getSupplierList:{
url: "/gdep-enterprise/supplier/getSupplierList",
method: "get"
},
}
}
\ No newline at end of file
/** /**
* 接口列表文件 * 接口列表文件
*/ */
import base from './apiList/base.js'
import user from './apiList/user.js' import user from './apiList/user.js'
import auth from './apiList/auth.js' import auth from './apiList/auth.js'
import color from './apiList/colors.js' import color from './apiList/colors.js'
...@@ -18,6 +19,7 @@ import plm from './apiList/plm' ...@@ -18,6 +19,7 @@ import plm from './apiList/plm'
import mdm from './apiList/mdm' import mdm from './apiList/mdm'
export default { export default {
...base,
...user, ...user,
...auth, ...auth,
...color, ...color,
......
...@@ -166,7 +166,7 @@ const getters = { ...@@ -166,7 +166,7 @@ const getters = {
return filterDictionaryLabelAndKey(fabricWidthUnitArray); return filterDictionaryLabelAndKey(fabricWidthUnitArray);
}, },
// 开发规则 // 开发规则
clothWidthUnitArrayDictionary: ({ developmentRulesArray }) => { developmentRulesArrayDictionary: ({ developmentRulesArray }) => {
return filterDictionaryLabelAndKey(developmentRulesArray); return filterDictionaryLabelAndKey(developmentRulesArray);
}, },
// 生产类别 // 生产类别
......
...@@ -30,9 +30,23 @@ ...@@ -30,9 +30,23 @@
} }
}, },
{ {
"path": "pages/webview/index", "path": "pages/home/index",
"style": { "style": {
"navigationBarTitleText": "租户选择", "navigationBarTitleText": "首页",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"mp-alipay": {
"transparentTitle": "always",
"titlePenetrate": "YES",
"allowsBounceVertical": "NO"
}
}
},
{
"path": "pages/home/components/search",
"style": {
"navigationBarTitleText": "首页",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom", "navigationStyle": "custom",
...@@ -43,7 +57,6 @@ ...@@ -43,7 +57,6 @@
} }
} }
}, },
{ {
"path": "pages/brands/brands", "path": "pages/brands/brands",
"style": { "style": {
...@@ -58,6 +71,22 @@ ...@@ -58,6 +71,22 @@
} }
} }
}, },
{
"path": "pages/webview/index",
"style": {
"navigationBarTitleText": "租户选择",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"mp-alipay": {
"transparentTitle": "always",
"titlePenetrate": "YES",
"allowsBounceVertical": "NO"
}
}
},
{ {
"path": "pages/order/item", "path": "pages/order/item",
...@@ -72,9 +101,9 @@ ...@@ -72,9 +101,9 @@
"path": "pages/user/center/index", "path": "pages/user/center/index",
"style": { "style": {
"navigationBarTitleText": "用户中心", "navigationBarTitleText": "用户中心",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "black",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "default"
} }
}, },
{ {
...@@ -166,6 +195,19 @@ ...@@ -166,6 +195,19 @@
} }
} }
}, },
{
"path": "pages/user/register/completeInformation",
"style": {
"navigationBarTitleText": "完善信息",
// "navigationBarTextStyle": "white",
"enablePullDownRefresh": false,
"mp-alipay": {
"transparentTitle": "always",
"titlePenetrate": "YES",
"allowsBounceVertical": "NO"
}
}
},
{ {
"path": "pages/user/register/success", "path": "pages/user/register/success",
"style": { "style": {
...@@ -313,20 +355,7 @@ ...@@ -313,20 +355,7 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{
"path": "pages/home/index",
"style": {
"navigationBarTitleText": "首页",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"mp-alipay": {
"transparentTitle": "always",
"titlePenetrate": "YES",
"allowsBounceVertical": "NO"
}
}
},
{ {
"path": "pages/home/search", "path": "pages/home/search",
"style": { "style": {
......
...@@ -42,6 +42,7 @@ export default { ...@@ -42,6 +42,7 @@ export default {
}; };
}, },
created() { created() {
uni.clearStorageSync();
this.getTenanList(); this.getTenanList();
}, },
mounted() { mounted() {
...@@ -140,7 +141,8 @@ export default { ...@@ -140,7 +141,8 @@ export default {
}) })
}, },
// 跳转到首页 // 跳转到首页
toIndexPage(){ async toIndexPage(){
await this.$store.dispatch("getCategoryList")
this.$Router.push({ this.$Router.push({
path: "/pages/home/index" path: "/pages/home/index"
}) })
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<script> <script>
import dom from "../designCommissioned/mixins/dom"; import dom from "../designCommissioned/mixins/dom";
import { mapGetters } from 'vuex';
export default { export default {
name: "list", name: "list",
mixins:[dom], mixins:[dom],
...@@ -70,11 +70,16 @@ export default { ...@@ -70,11 +70,16 @@ export default {
} }
}, },
computed:{ computed:{
...mapGetters([
'categoryDictionary', // 版型
]),
computedList(){ computedList(){
return this.list.map((item) => { return this.list.map((item) => {
return { return {
...item, ...item,
materialCategory: item.category, materialCategory: this.categoryDictionary.find(($item) =>{
return item.category == $item.value
})?.label,
materialDoorWidth: item.fabricWidth, materialDoorWidth: item.fabricWidth,
materialElement: item.saoriStandard, materialElement: item.saoriStandard,
} }
......
...@@ -293,9 +293,10 @@ export default { ...@@ -293,9 +293,10 @@ export default {
// reg '^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5]*$', // reg '^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5]*$',
// 自定义验证函数,见上说明 // 自定义验证函数,见上说明
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
// 上面有说,返回true表示校验通过,返回false表示不通过 // 返回true表示校验通过,返回false表示不通过
// this.$u.test.mobile()就是返回true或者false的 // fix 2022-02-07 放开特殊符号英文限制 需求 卓总
let reg = new RegExp('^[\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5]*$') // let reg = new RegExp('^[\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5]*$')
let reg = new RegExp('^[-()%a-zA-Z\u4e00-\u9fa5][-()%a-zA-Z0-9\u4e00-\u9fa5]*$')
return reg.test(value); return reg.test(value);
}, },
message: '请不要输入特殊符号', message: '请不要输入特殊符号',
......
...@@ -375,7 +375,7 @@ ...@@ -375,7 +375,7 @@
</view> </view>
</view> </view>
<view class="custom-style-round-circle custom-style-btn custom-style" <view class="custom-style-round-circle custom-style-btn custom-style"
v-if="detail.status === 3 || detail.status === 2"> v-if="[1,2].indexOf(detail.oddStatus) > -1 || detail.status === 3 || detail.status === 2" >
<!-- <view class="custom-style-left save" @click="cancel(3)">撤回</view>--> <!-- <view class="custom-style-left save" @click="cancel(3)">撤回</view>-->
<view class="custom-style-right submit" @click="cancel"> <view class="custom-style-right submit" @click="cancel">
<view class="title">撤回</view> <view class="title">撤回</view>
...@@ -448,8 +448,9 @@ export default { ...@@ -448,8 +448,9 @@ export default {
// 自定义验证函数,见上说明 // 自定义验证函数,见上说明
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
// 上面有说,返回true表示校验通过,返回false表示不通过 // 上面有说,返回true表示校验通过,返回false表示不通过
// this.$u.test.mobile()就是返回true或者false的 // fix 2022-02-07 放开特殊符号英文限制 需求 卓总
let reg = new RegExp('^[\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5]*$') // let reg = new RegExp('^[\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5]*$')
let reg = new RegExp('^[-()%a-zA-Z\u4e00-\u9fa5][-()%a-zA-Z0-9\u4e00-\u9fa5]*$')
return reg.test(value); return reg.test(value);
}, },
message: '请不要输入特殊符号', message: '请不要输入特殊符号',
...@@ -581,12 +582,15 @@ export default { ...@@ -581,12 +582,15 @@ export default {
}, },
onLoad({id}){ onLoad({id}){
if(id){ if(id){
this.getDetail(id) this.id = id;
} }
}, },
mounted() { mounted() {
this.$refs.uForm.setRules(this.rules); this.$refs.uForm.setRules(this.rules);
}, },
onShow() {
this.getDetail(this.id)
},
methods:{ methods:{
confirm(data){ confirm(data){
let { value, label} = data[0]; let { value, label} = data[0];
...@@ -759,6 +763,7 @@ export default { ...@@ -759,6 +763,7 @@ export default {
id: info.id, id: info.id,
courierText: (this.courierList.find((item) => item.value == info.courier) || { label: ''}).label courierText: (this.courierList.find((item) => item.value == info.courier) || { label: ''}).label
} }
this.getFooterHeight();
} }
}) })
}, },
......
...@@ -156,10 +156,10 @@ export default { ...@@ -156,10 +156,10 @@ export default {
triggerClick(item){ triggerClick(item){
let list = this.detail.modelingTaskLabelList; let list = this.detail.modelingTaskLabelList;
let $Item = list.find(($i) => $i.materialLabelId === item.materialLabelId); let $Item = list.find(($i) => $i.materialLabelId === item.materialLabelId);
// debugger
if($Item){ if($Item){
if($Item.id){ if($Item.id){
this.$set($Item,'isDeleted',true) this.$set($Item,'isDeleted', !$Item.isDeleted)
}else{ }else{
let index = this.detail.modelingTaskLabelList.findIndex(($v) => $v === $Item) let index = this.detail.modelingTaskLabelList.findIndex(($v) => $v === $Item)
if(index > -1){ if(index > -1){
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<view class="u-font-32 u-m-b-8 u-line-1">{{msg.fullName}}</view> <view class="u-font-32 u-m-b-8 u-line-1">{{msg.fullName}}</view>
<view class="u-font-24">{{msg.userName}}</view> <view class="u-font-24">{{msg.userName}}</view>
</view> </view>
<view @click="toBrowse" class="u-l-height-44" v-if="type === 2">浏览记录</view>
<view @click="toRegister" class="u-l-height-44">切换身份</view> <view @click="toRegister" class="u-l-height-44">切换身份</view>
</view> </view>
...@@ -25,7 +26,8 @@ export default { ...@@ -25,7 +26,8 @@ export default {
components: {HsTabBar}, components: {HsTabBar},
data(){ data(){
return{ return{
msg: uni.getStorageSync("userInfo") msg: uni.getStorageSync("userInfo"),
type: uni.getStorageSync("assignType")
} }
}, },
created() { created() {
...@@ -34,20 +36,24 @@ export default { ...@@ -34,20 +36,24 @@ export default {
}, },
methods:{ methods:{
edit(){ edit(){
let type = uni.getStorageSync("assignType");
this.$Router.push({ this.$Router.push({
path: '/pages/user/register/completeInformation', path: '/pages/user/register/completeInformation',
query:{ query:{
type type: this.type
} }
}) })
}, },
toBrowse(){
this.$Router.push({
path: '/pages/brands/browse'
})
},
toRegister(){ toRegister(){
let type = uni.getStorageSync("assignType");
this.$Router.push({ this.$Router.push({
path: '/pages/user/register/stepSelectType', path: '/pages/user/register/stepSelectType',
query:{ query:{
type type: this.type
} }
}) })
} }
...@@ -60,7 +66,7 @@ export default { ...@@ -60,7 +66,7 @@ export default {
.item{ .item{
padding: 36rpx 30px; padding: 36rpx 30px;
height: 160rpx; height: 160rpx;
background: url(~@/static/images/home/exhibition.png) no-repeat; background: url(~@/static/images/myCenter/bg.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
margin-bottom: 20rpx; margin-bottom: 20rpx;
color: #fff; color: #fff;
......
export default { export default {
methods:{ methods:{
// 注册成功 跳转到首页 // 注册成功 跳转到首页
goIndex(){ async goIndex(){
uni.setStorageSync('assignType', this.assignType) uni.setStorageSync('assignType', this.assignType)
await this.$store.dispatch("getCategoryList")
if(this.assignType !== 2){ if(this.assignType !== 2){
this.$Router.replace({ this.$Router.replace({
path: '/pages/home/index' path: '/pages/home/index'
......
...@@ -46,10 +46,10 @@ export default { ...@@ -46,10 +46,10 @@ export default {
title: msg title: msg
}) })
} }
}) }).then(res =>{
.complete(() =>{
this.loading = false; this.loading = false;
}) })
} }
}, },
created() { created() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment