Browse Source

在配置文件中添加是否显示复制

wms3.0_pda
lijuncheng 11 months ago
parent
commit
b504c9633a
  1. 1
      main.js
  2. 18
      mycomponents/balance/balance.vue
  3. 5
      mycomponents/recommend/recommend.vue
  4. 5
      mycomponents/recommend/recommendCount.vue
  5. 5
      pages/inventoryMove/coms/comMovebalance.vue
  6. 2
      pages/productReceipt/job/productReceiptDetail.vue
  7. 10
      static/config.json

1
main.js

@ -72,6 +72,7 @@ export function startApp(app) {
app.config.globalProperties.$recepit_configList = res.data.recepit_configList;
getApp().globalData.recepit_configList = res.data.recepit_configList;
getApp().globalData.feed_configList = res.data.feed_configList;
getApp().globalData.isDevelopment = res.data.baseInfo.isDevelopment.value
}
},
fail: (error) => {

18
mycomponents/balance/balance.vue

@ -14,12 +14,16 @@
<compare-qty v-else :dataContent="dataContent" :recommendQty="Number( dataContent.qty)"
:handleQty="Number (dataContent.handleQty)" :isShowStdPack="isShowStdPack">
</compare-qty>
<view class="" style="font-size: 40rpx;">
<u-button @click="copy" size="mini" type="primary">复制箱码</u-button>
</view>
<view class="" style="font-size: 40rpx;">
<u-button @click="copyPro" size="mini" type="primary">复制制品</u-button>
<view class="" v-if="isDevlement()">
<view class="" style="font-size: 40rpx;">
<u-button @click="copy" size="mini" type="primary">复制箱码</u-button>
</view>
<view class="" style="font-size: 40rpx;">
<u-button @click="copyPro" size="mini" type="primary">复制制品</u-button>
</view>
</view>
</view>
</view>
<!-- <u-line></u-line> -->
@ -102,6 +106,10 @@
})
}
)
},
isDevlement(){
return getApp().globalData.isDevelopment;
}
}
}

5
mycomponents/recommend/recommend.vue

@ -17,7 +17,7 @@
<compare-qty v-else :dataContent="detail" :recommendQty="Number(detail.qty)"
:handleQty="Number(detail.handleQty)" :isShowStdPack="false">
</compare-qty>
<view class="uni-flex uni-row" style="vertical-align:center">
<view class="uni-flex uni-row" style="vertical-align:center" v-if="isDevlement()">
<text style="font-size: 30rpx;color: #2979ff; "
@click="copy">复制采购</text>
<text style="font-size: 30rpx;color: #2979ff;" @click="copyPro">|制品</text>
@ -105,6 +105,9 @@
})
}
)
},
isDevlement(){
return getApp().globalData.isDevelopment;
}
}
}

5
mycomponents/recommend/recommendCount.vue

@ -16,7 +16,7 @@
<compare-qty :dataContent="detail" :recommendQty="Number(detail.qty)" :isShowRecommendQty="isShowRecommendQty"
:handleQty="Number(detail.handleQty)" :isShowStdPack="false">
</compare-qty>
<view class="uni-flex uni-row" style="vertical-align:center">
<view class="uni-flex uni-row" style="vertical-align:center" v-if="isDevlement()">
<text style="font-size: 30rpx;color: #2979ff; "
@click="copy">复制采购</text>
<text style="font-size: 30rpx;color: #2979ff;" @click="copyPro">|制品</text>
@ -108,6 +108,9 @@
})
}
)
},
isDevlement(){
return getApp().globalData.isDevelopment;
}
}
}

5
pages/inventoryMove/coms/comMovebalance.vue

@ -19,7 +19,7 @@
:fromInventoryStatus="fromInventoryStatus" :toInventoryStatus="toInventoryStatus">
</moveStatus>
</view>
<view class="">
<view class="" v-if="isDevlement()">
<view class="" style="font-size: 40rpx;">
<u-button @click="copy" size="mini" type="primary">复制箱码</u-button>
</view>
@ -127,6 +127,9 @@
})
}
)
},
isDevlement(){
return getApp().globalData.isDevelopment;
}
}
}

2
pages/productReceipt/job/productReceiptDetail.vue

@ -14,7 +14,7 @@
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class="">
<comProductDetailCard :dataContent="item" :settingParam="jobContent" :isShowLocation="false"
@remove="updateData" @updateData="updateData" @openDetail="openDetail"
@remove="updateData" @updateData="updateData"
:locationTypeList='tolocationTypeList'>
</comProductDetailCard>
</view>

10
static/config.json

@ -18,9 +18,9 @@
"request_url": {
"name": "request_url",
"value": "http://192.168.0.230:12080/admin-api",
"value": "http://192.168.0.180:12080/admin-api",
"dev2": "http://192.168.0.157:12080/admin-api",
"chefang": "http://192.168.0.178:12080/admin-api",
"chefang": "http://192.168.0.180:12080/admin-api",
"chenxinming": "http://192.168.0.230:12080/admin-api",
"dev": "http://dev.ccwin-in.com:25100/api/admin-api",
"local": "http://localhost:12080",
@ -31,8 +31,14 @@
"name": "tenantId",
"value": "1",
"desc": "租户id"
},
"isDevelopment": {
"name": "isDevelopment",
"value": true,
"desc": "是否是开发模式,true是开模式,false不是开发模式"
}
},
"recepit_configList": [

Loading…
Cancel
Save