Commit a7a0833f authored by 李苏's avatar 李苏 💬

erpapp,新增功能

parent b4ff8d6a
......@@ -26,7 +26,7 @@
<view class="list-ed">
<view class="list-right">
<view class="flex justify-between">
<view class="list-name">采购单号:{{item.poid}}</view>
<view class="list-name" style="font-weight: 600;">采购单号:{{item.poid}}</view>
<view class="list-head" @click="choice(index)">
<view :class="[item.selected?'selde':'noselde']">
{{item.selected?"已选":"未选"}}<text
......@@ -57,7 +57,7 @@
<view>无税价格:<text>{{item.wsjg}}</text></view>
<view>无税金额:<text>{{item.wsje}}</text></view>
</view>
<view class="list-da">
<!-- <view class="list-da">
<view>型号:<text>{{item.sx01}}</text></view>
<view>材质:<text>{{item.sx02}}</text></view>
</view>
......@@ -72,7 +72,7 @@
<view class="list-da">
<view>高:<text>{{item.sx07}}</text></view>
<view>维护日期:<text>{{item.whsj|formatDate}}</text></view>
</view>
</view> -->
<view class="">
<view>备注:<text>{{item.bz||"未备注"}}</text></view>
</view>
......
......@@ -26,7 +26,7 @@
<view class="list-ed">
<view class="list-right">
<view class="flex justify-between">
<view class="list-name">计划单号:{{item.jhid}}</view>
<view class="list-name" style="font-weight: 600;">计划单号:{{item.jhid}}</view>
<view class="list-head" @click="choice(index)">
<view :class="[item.selected?'selde':'noselde']">
{{item.selected?"已选":"未选"}}<text
......@@ -39,7 +39,7 @@
</view>
<view class="list-da">
<view>计划人:<text>{{item.cjr}}</text></view>
<view>生成方式:<text>{{item.duration||"未设"}}</text></view>
<view>生成方式:<text>{{transScfs(item.djly)}}</text></view>
</view>
<view class="flex justify-between" style="padding-top: 10px;margin-bottom: 0px;">
<view >状态:
......@@ -414,6 +414,7 @@
},
onLoad() {
let that = this
this.apigetScfs()
uni.getStorage({
key: 'username',
success: function(res) {
......@@ -525,6 +526,7 @@
{id:"2",text:"审批"},{id:"3",text:"确认"},
{id:"4",text:"完成"},{id:"5",text:"全部"},
],
scfslist:[]
}
},
onShow() {},
......@@ -532,6 +534,27 @@
},
methods: {
transScfs(a){
let name=""
this.scfslist.forEach(e=>{
if(e.id==a){
name= e.name
// return写在内部是无效的
}
})
return name
},
// getscfs
apigetScfs(){
this.$http.post("cggl/cgjh/init/djly",{}).then(res => {
if (res.data.success) {
this.scfslist=res.data.data.records
console.log(this.scfslist)
} else {
that.$tip.toast(res.data.messageArray[0].message||"生成方式类型加载失败失败");
}
});
},
// 重置过滤芯
resetModal(){
this.operatype="W"
......
......@@ -153,13 +153,13 @@
cur:String,
},
onShow(){
this.apigetapp()
// this.apigetapp()
},
watch: {
cur: {
immediate: true,
handler:function(val,oldVal){
this.apigetapp()
// this.apigetapp()
console.log('cur',val,oldVal)
this.initMenu()
},
......@@ -218,44 +218,44 @@
// this.modalName="DialogModal1"
console.log(this.modalName)
},
apigetapp(){
this.$http.post("kzzx/usermenus/query",{}).then(res=>{
this.loveList=[]
console.log(res.data.data.records)
this.loveList=res.data.data.records
this.loveList.push({
mkmc:"新增常用",
icon:icon_prefix+"add.png",
description:"新增常用",
useCount:10000,
page:'addLovedata'
})
this.loveList.forEach(e=>{
if(e.mkid=="1120130000"){
e.mkmc="工作任务"
e.page="gzrwcj"
e.icon=icon_prefix+"jiaban.png"
e.useCount=10000
}else if(e.mkid=="1301020000"){
e.mkmc="费用报销"
e.page="fybx"
e.icon=icon_prefix+"bx.png"
e.useCount=10000
}else if(e.mkid=="1804020100"){
e.mkmc="员工请假"
e.page="ygqj"
e.icon=icon_prefix+"qingjia2.png"
e.useCount=10000
}else if(e.mkmc=="APP研发数据管理"){
e.page=""
e.icon=icon_prefix+"add.png"
e.useCount=10000
}
})
this.$forceUpdate()
console.log("触发缓存")
})
},
// apigetapp(){
// this.$http.post("kzzx/usermenus/query",{}).then(res=>{
// this.loveList=[]
// console.log(res.data.data.records)
// this.loveList=res.data.data.records
// this.loveList.push({
// mkmc:"新增常用",
// icon:icon_prefix+"add.png",
// description:"新增常用",
// useCount:10000,
// page:'addLovedata'
// })
// this.loveList.forEach(e=>{
// if(e.mkid=="1120130000"){
// e.mkmc="工作任务"
// e.page="gzrwcj"
// e.icon=icon_prefix+"jiaban.png"
// e.useCount=10000
// }else if(e.mkid=="1301020000"){
// e.mkmc="费用报销"
// e.page="fybx"
// e.icon=icon_prefix+"bx.png"
// e.useCount=10000
// }else if(e.mkid=="1804020100"){
// e.mkmc="员工请假"
// e.page="ygqj"
// e.icon=icon_prefix+"qingjia2.png"
// e.useCount=10000
// }else if(e.mkmc=="APP研发数据管理"){
// e.page=""
// e.icon=icon_prefix+"add.png"
// e.useCount=10000
// }
// })
// this.$forceUpdate()
// console.log("触发缓存")
// })
// },
/* 动态加载 */
// apigetapp(){
// this.$http.post("frame/init/mobile",{}).then(res=>{
......
......@@ -26,7 +26,7 @@
<view class="list-ed">
<view class="list-right">
<view class="flex justify-between">
<view class="list-name">领料单号:{{item.djid}}</view>
<view class="list-name" style="font-weight: 600;">领料单号:{{item.djid}}</view>
<view class="list-head" @click="choice(index)">
<view :class="[item.selected?'selde':'noselde']">
{{item.selected?"已选":"未选"}}<text
......
......@@ -189,7 +189,7 @@
return;
}
let loginParams = {
username: this.userName.toLowerCase(),//toLowerCasse()转化小写
username: this.userName.toLowerCase(),
password: this.password,
encodePWD:md5(this.userName.toLowerCase() + "USER" + this.password + "PASSWORD")
}
......
......@@ -27,7 +27,7 @@
<view class="list-ed">
<view class="list-right">
<view class="flex justify-between">
<view class="list-name">销售单号:{{item.soid}}</view>
<view class="list-name" style="font-weight: 600;">销售单号:{{item.soid}}</view>
<view class="list-head" @click="choice(index)">
<view :class="[item.selected?'selde':'noselde']">
{{item.selected?"已选":"未选"}}<text
......
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