Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
songguoqiang 6 months ago
parent
commit
2c1141918c
  1. 66
      src/views/home/components/material.vue
  2. 2
      src/views/home/components/produce.vue
  3. 8
      src/views/home/components/product.vue
  4. 2
      src/views/home/components/supplierIndex.vue
  5. 13
      src/views/home/index.vue
  6. 2
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
  7. 3
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts
  8. 4
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
  9. 5
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue

66
src/views/home/components/material.vue

@ -32,7 +32,8 @@
</div> </div>
</div> </div>
<div class="two-row mt-14px"> <div class="two-row mt-14px">
<div class="data1 w-[47.3%]"> <div class="data1 w-[47.3%]" >
<!-- 呆滞库存预警 -->
<div class="title">{{ t('home.slack_stock_warning')}}</div> <div class="title">{{ t('home.slack_stock_warning')}}</div>
<el-table <el-table
:data="materialData?.stagnantBalanceList" :data="materialData?.stagnantBalanceList"
@ -87,8 +88,19 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- <el-pagination style="margin-top:10px"
v-model:current-page="currentPage_stagnantBalance"
v-model:page-size="pageSize_stagnantBalance"
:page-sizes="[10, 20, 30, 50, 100]"
:small="true"
:background="false"
layout="total, sizes, prev, pager, next, jumper"
:total="total_stagnantBalance"
@current-change="handleCurrentChange_stagnantBalance"
/> -->
</div> </div>
<div class="data1 w-[47.3%]"> <div class="data1 w-[47.3%]">
<!-- 超期库存预警 -->
<div class="title">{{ t('home.overstock_warning') }}</div> <div class="title">{{ t('home.overstock_warning') }}</div>
<el-table <el-table
:data="materialData?.overdueBalanceList" :data="materialData?.overdueBalanceList"
@ -143,10 +155,21 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- <el-pagination style="margin-top:10px"
v-model:current-page="currentPage_overdueBalance"
v-model:page-size="pageSize_overdueBalance"
:page-sizes="[10, 20, 30, 50, 100]"
:small="true"
:background="false"
layout="total, sizes, prev, pager, next, jumper"
:total="total_overdueBalance"
@current-change="handleCurrentChange_overdueBalance"
/> -->
</div> </div>
</div> </div>
<div class="two-row mt-14px"> <div class="two-row mt-14px">
<div class="data1 w-[47.3%]"> <div class="data1 w-[47.3%]">
<!-- 高低储预警 -->
<div class="title">{{ t('home.high_and_low_storage_warning') }}</div> <div class="title">{{ t('home.high_and_low_storage_warning') }}</div>
<el-table <el-table
:data="materialData?.warningBalanceList" :data="materialData?.warningBalanceList"
@ -201,8 +224,19 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- <el-pagination style="margin-top:10px"
v-model:current-page="currentPage_warningBalance"
v-model:page-size="pageSize_warningBalance"
:page-sizes="[10, 20, 30, 50, 100]"
:small="true"
:background="false"
layout="total, sizes, prev, pager, next, jumper"
:total="total_warningBalance"
@current-change="handleCurrentChange_warningBalance"
/> -->
</div> </div>
<div class="data1 w-[47.3%]"> <div class="data1 w-[47.3%]">
<!-- 待处理任务 -->
<div class="title">{{ t('home.waiting_tasks') }}</div> <div class="title">{{ t('home.waiting_tasks') }}</div>
<Echart :options="barOptions" :height="280" :key="lineIndex" /> <Echart :options="barOptions" :height="280" :key="lineIndex" />
</div> </div>
@ -222,8 +256,8 @@ const lineIndex = ref(0)
const materialData = ref() const materialData = ref()
// //
const getMaterialData = async () => { const getMaterialData = () => {
await IndexApi.getMaterialData().then((res) => { IndexApi.getMaterialData().then((res) => {
materialData.value = res materialData.value = res
getJobCharts() getJobCharts()
}) })
@ -251,8 +285,32 @@ const getJobCharts = async () => {
lineIndex.value++ lineIndex.value++
} }
onMounted(() => { onMounted(() => {
getMaterialData() // getMaterialData()
}) })
//
const currentPage_stagnantBalance = ref(1)
const pageSize_stagnantBalance = ref(10)
const total_stagnantBalance= ref(100)
const handleCurrentChange_stagnantBalance = (val)=>{
console.log('呆滞库存预警',val)
}
//
const currentPage_overdueBalance = ref(1)
const pageSize_overdueBalance = ref(10)
const total_overdueBalance= ref(100)
const handleCurrentChange_overdueBalance = (val)=>{
console.log('超期库存预警',val)
}
//
const currentPage_warningBalance = ref(1)
const pageSize_warningBalance = ref(10)
const total_warningBalance= ref(100)
const handleCurrentChange_warningBalance = (val)=>{
console.log('高低储预警',val)
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.title { .title {

2
src/views/home/components/produce.vue

@ -202,7 +202,7 @@ const getJobCharts = async () => {
lineIndex.value++ lineIndex.value++
} }
onMounted( () => { onMounted( () => {
getProduceData() // getProduceData()
}) })
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

8
src/views/home/components/product.vue

@ -11,7 +11,8 @@
</div> </div>
</div> </div>
<div class="two-row mt-14px"> <div class="two-row mt-14px">
<div class="data1 w-[47.3%]"> <div class="data1 w-[47.3%]" style="border:1px solid red">
<!-- 呆滞库存预警 -->
<div class="title">{{ t('home.slack_stock_warning') }}</div> <div class="title">{{ t('home.slack_stock_warning') }}</div>
<el-table <el-table
:data="productData?.stagnantBalanceList" :data="productData?.stagnantBalanceList"
@ -68,6 +69,7 @@
</el-table> </el-table>
</div> </div>
<div class="data1 w-[47.3%]"> <div class="data1 w-[47.3%]">
<!-- 超期库存预警 -->
<div class="title">{{ t('home.overstock_warning') }}</div> <div class="title">{{ t('home.overstock_warning') }}</div>
<el-table <el-table
:data="productData?.overdueBalanceList" :data="productData?.overdueBalanceList"
@ -126,6 +128,7 @@
</div> </div>
<div class="two-row mt-14px"> <div class="two-row mt-14px">
<div class="data1 w-[47.3%]"> <div class="data1 w-[47.3%]">
<!-- 高低储预警 -->
<div class="title">{{ t('home.high_and_low_storage_warning') }}</div> <div class="title">{{ t('home.high_and_low_storage_warning') }}</div>
<el-table <el-table
:data="productData?.warningBalanceList" :data="productData?.warningBalanceList"
@ -182,6 +185,7 @@
</el-table> </el-table>
</div> </div>
<div class="data1 w-[47.3%]"> <div class="data1 w-[47.3%]">
<!-- 待处理任务 -->
<div class="title">{{ t('home.waiting_tasks') }}</div> <div class="title">{{ t('home.waiting_tasks') }}</div>
<Echart :options="barOptions" :height="280" :key="lineIndex" /> <Echart :options="barOptions" :height="280" :key="lineIndex" />
</div> </div>
@ -229,7 +233,7 @@ const getJobCharts = async () => {
lineIndex.value++ lineIndex.value++
} }
onMounted( () => { onMounted( () => {
getProductData() // getProductData()
}) })
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

2
src/views/home/components/supplierIndex.vue

@ -355,7 +355,7 @@ const formatter = (type,dict) => {
return str return str
} }
onMounted( () => { onMounted( () => {
getSupplierData() // getSupplierData()
getList() getList()
}) })
</script> </script>

13
src/views/home/index.vue

@ -1,9 +1,14 @@
<template> <template>
<div> <div>
<supplierIndex v-hasRole="['super_admin','supplier']"/> <!-- <supplierIndex v-hasRole="['super_admin','supplier']"/>
<material v-hasRole="['super_admin']"/> <material v-hasRole="['super_admin']"/>
<product v-hasRole="['super_admin']"/> <product v-hasRole="['super_admin']"/>
<produce v-hasRole="['super_admin']"/> <produce v-hasRole="['super_admin']"/> -->
<supplierIndex />
<material/>
<!-- material 中四个table重复了先去掉了 -->
<!-- <product/> -->
<produce/>
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>

2
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue

@ -109,10 +109,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if (type == 'tableForm') { if (type == 'tableForm') {
// //
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
row['uom'] = val[0]['uom']
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
//setV['ppNumber'] = val[0]['ppNumber']
//setV['supplierCode'] = val[0]['supplierCode'] //setV['supplierCode'] = val[0]['supplierCode']
formRef.setValues(setV) formRef.setValues(setV)
} }

3
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts

@ -501,7 +501,8 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
tableForm: { tableForm: {
type: 'Select' type: 'Select',
disabled: true
} }
}, },
{ {

4
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

@ -114,7 +114,7 @@
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/productreceipt-request-main/import" :importTemplateData="importTemplateData" <ImportForm ref="importFormRef" url="/wms/productreceipt-request-main/import" :importTemplateData="importTemplateData"
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" /> @success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" :extend="'scrap'"/>
<!-- 标签打印 --> <!-- 标签打印 -->
<SearchTable style="width:905px" ref="searchTableRef" @searchTableSuccess="searchTableSuccess1" /> <SearchTable style="width:905px" ref="searchTableRef" @searchTableSuccess="searchTableSuccess1" />
</template> </template>
@ -729,4 +729,4 @@ onMounted(async () => {
getList() getList()
importTemplateData.templateUrl = await ProductreceiptRequestMainApi.importTemplate() importTemplateData.templateUrl = await ProductreceiptRequestMainApi.importTemplate()
}) })
</script> </script>

5
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue

@ -257,8 +257,9 @@ const getSearchTableData = async (number,formField,searchField)=>{
}).then((res)=>{ }).then((res)=>{
res.list.forEach((item,index)=>{ res.list.forEach((item,index)=>{
const findItem = tableData.value.find(item1=>item1['itemCode']==item['code']) const findItem = tableData.value.find(item1=>item1['itemCode']==item['code'])
findItem['expireTime'] = findItem['expireTime'] if(findItem){
findItem['expireTime'] = findItem['expireTime']
}
}) })
}) })
} }

Loading…
Cancel
Save