Commit f217b9bb by zhangzhen

细节优化

parent 3cdcd05f
...@@ -172,6 +172,12 @@ export const getUserByCompanyCode = (data) => { ...@@ -172,6 +172,12 @@ export const getUserByCompanyCode = (data) => {
return http.post(url, d) return http.post(url, d)
} }
export const getProcessByCompanyCode = (data) => {
let url = `/service/S_SC_GX_01`;
let d = setParamsData(data)
return http.post(url, d)
}
export const getImgInfoList = (data) => { export const getImgInfoList = (data) => {
let url = `/service/S_XC_IMG`; let url = `/service/S_XC_IMG`;
let d = setParamsData(data) let d = setParamsData(data)
......
...@@ -105,15 +105,33 @@ ...@@ -105,15 +105,33 @@
<text class="text-title">{{item.quantity}}</text> <text class="text-title">{{item.quantity}}</text>
</view> </view>
<view class="flex-row"> <view class="flex-row">
<text class="text-gray part-1">完工数量</text> <text class="text-gray part-1">任务单重</text>
<text class="text-gray part-2">:</text> <text class="text-gray part-2">:</text>
<text class="text-title">{{item.finishQuantity}}</text> <text class="text-title">{{Number(item.singleWeight)}}</text>
</view> </view>
<!-- <view class="flex-row"> <view class="flex-row">
<text class="text-gray part-1">任务总重</text>
<text class="text-gray part-2">:</text>
<text class="text-title">{{Number(item.totalWeight)}}</text>
</view>
<view class="flex-row">
<text class="text-gray part-1">完工重量</text>
<text class="text-gray part-2">:</text>
<text class="text-title">{{Number(item.finishWeight)}}</text>
</view>
<view class="flex-row">
<text class="text-gray part-1">待完工重量</text>
<text class="text-gray part-2">:</text>
<text class="text-title">{{Number(item.unfinishWeight)}}</text>
</view>
<view class="flex-row">
<text class="text-gray part-1">完成状态</text> <text class="text-gray part-1">完成状态</text>
<text class="text-gray part-2">:</text> <text class="text-gray part-2">:</text>
<text class="text-title">{{Number(item.finishQuantity) >= Number(item.quantity)? '已完工':'未完工'}}</text> <text class="text-title">{{Number(item.unfinishWeight) <= 0? '已完工':'未完工'}}</text>
</view> --> </view>
</view> </view>
...@@ -141,6 +159,7 @@ ...@@ -141,6 +159,7 @@
} from "@/utils/tools.js"; } from "@/utils/tools.js";
import moment from "@/common/moment.js"; import moment from "@/common/moment.js";
import { getParamsList,getList,getCount } from "@/api/product-order.js"; import { getParamsList,getList,getCount } from "@/api/product-order.js";
import { getProcessByCompanyCode } from "@/api/index.js";
export default { export default {
data() { data() {
...@@ -267,12 +286,15 @@ ...@@ -267,12 +286,15 @@
}) })
}, },
onLoading() { onLoading() {
getParamsList().then(res=>{ getProcessByCompanyCode({
if(res.data && res.data.length){ companyCode: uni.getStorageSync("")
let list = res.data.map(item=>{ }).then(res=>{
console.log(res,9999)
if(res.data.__sys__.status === 0){
let list = toJsonData(res.data.__blocks__.processCode_block_id.rows,res.data.__blocks__.processCode_block_id.meta.columns).map(item=>{
return { return {
label: item.companyName, label: item.textField,
value: item.companyCode value: item.valueField
} }
}) })
this.factoryList = [...this.factoryList,...list]; this.factoryList = [...this.factoryList,...list];
...@@ -289,7 +311,7 @@ ...@@ -289,7 +311,7 @@
getList({ getList({
...this.queryData, ...this.queryData,
completeStatus:this.tabList[this.current].value, completeStatus:this.tabList[this.current].value,
companyCode: this.factoryList[this.index].value processCode: this.factoryList[this.index].value
},this.pageData).then(res => { },this.pageData).then(res => {
uni.hideLoading(); uni.hideLoading();
let list = toJsonData(res.data.__blocks__.result.rows,res.data.__blocks__.result.meta.columns); let list = toJsonData(res.data.__blocks__.result.rows,res.data.__blocks__.result.meta.columns);
......
...@@ -6,8 +6,8 @@ module.exports = { ...@@ -6,8 +6,8 @@ module.exports = {
proxy: { proxy: {
'/prod-api': { '/prod-api': {
// target: `http://10.24.4.81:8099/hggp`, // target: `http://10.24.4.81:8099/hggp`,
// target: `http://129.211.46.84:8085/hggp`, target: `http://129.211.46.84:8085/hggp`,
target: `https://www.eis-paas.com/hggp`, // target: `https://www.eis-paas.com/hggp`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'/prod-api': '' '/prod-api': ''
......
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