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

erpapp,新增功能

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