|
@@ -29,6 +29,12 @@ Page({
|
|
|
if (!this.data.freshen) {
|
|
|
return;
|
|
|
}
|
|
|
+ $api.getAuthinfo().then(res=>{
|
|
|
+ this.setData({
|
|
|
+ role: res.data.data.role,
|
|
|
+ need_fill: res.data.data.need_fill,
|
|
|
+ })
|
|
|
+ })
|
|
|
$api.getCurrecord().then(res=>{
|
|
|
if (!res.data.data.id){return}
|
|
|
let stock = res.data.data.today_stock
|
|
@@ -52,12 +58,7 @@ Page({
|
|
|
this.setData({
|
|
|
stock_date:y+'-'+m+'-'+d
|
|
|
})
|
|
|
- $api.getAuthinfo().then(res=>{
|
|
|
- this.setData({
|
|
|
- role: res.data.data.role,
|
|
|
- need_fill: res.data.data.need_fill,
|
|
|
- })
|
|
|
- })
|
|
|
+
|
|
|
},
|
|
|
/**添加持股 */
|
|
|
add(){
|