|
@@ -59,12 +59,11 @@
|
|
|
</Form>
|
|
|
<div class="tabs-warp">
|
|
|
<div
|
|
|
- @click="params.TechnologyType = i.technologyType;changePage(1);"
|
|
|
- :class="params.TechnologyType == i.technologyType ? 'active' : ''"
|
|
|
+ @click="params.type = i.value;changePage(1);"
|
|
|
+ :class="params.type == i.value ? 'active' : ''"
|
|
|
v-for="i in statisticsClassifyData"
|
|
|
- :key="i.technologyType">
|
|
|
- {{(i.technologyType == 99) ? '全部' : technologyTypeList[i.technologyType]}}
|
|
|
- (<span>{{(i.technologyType == 99) ? total : i.categoryCount}}</span>)
|
|
|
+ :key="i.value || 99">
|
|
|
+ {{i.label}}
|
|
|
</div>
|
|
|
</div>
|
|
|
<my-table :calcHeight="110" :data="data" :columns="columns" :table-page="params" @event-handle="eventHandle" @on-change="changePage"></my-table>
|
|
@@ -158,14 +157,14 @@ export default {
|
|
|
{
|
|
|
type: 'input',
|
|
|
label: '登录账户',
|
|
|
- key: 'userAccount',
|
|
|
+ key: 'bindUserAccount',
|
|
|
placeholder: '请输入登录账户',
|
|
|
span: 12
|
|
|
},
|
|
|
{
|
|
|
type: 'selectSearch',
|
|
|
label: '物料类型',
|
|
|
- key: 'categoryCode',
|
|
|
+ key: 'materialClassifyId',
|
|
|
list: [],
|
|
|
placeholder: '请选择物料类型',
|
|
|
span: 12
|
|
@@ -914,12 +913,12 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
title: '供应商代码',
|
|
|
- key: 'code',
|
|
|
+ key: 'supplierCoded',
|
|
|
minWidth: 100
|
|
|
},
|
|
|
{
|
|
|
title: '供应商名称',
|
|
|
- key: 'name',
|
|
|
+ key: 'materialCode',
|
|
|
minWidth: 300,
|
|
|
render(h,p){
|
|
|
return h(renderListimgs,{
|
|
@@ -931,7 +930,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
title: '物料类型',
|
|
|
- key: 'categoryName',
|
|
|
+ key: 'malssifyName',
|
|
|
minWidth: 150
|
|
|
},
|
|
|
{
|
|
@@ -1166,7 +1165,7 @@ export default {
|
|
|
},
|
|
|
cfm (type, formData) {
|
|
|
if (type === 'add') {
|
|
|
- axios.post('/cloudApi/supplier/add',formData).then(res=>{
|
|
|
+ this.$post('/api/storage-restructure/supplier/add',formData).then(res=>{
|
|
|
this.show = false
|
|
|
this.$Message.info(res.data.msg)
|
|
|
this.getList()
|
|
@@ -1250,11 +1249,10 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getList () {
|
|
|
- axios
|
|
|
- .post('/api/storage-restructure/supplier/page', {...this.params})
|
|
|
+ this.$post('/api/storage-restructure/supplier/page', {...this.params})
|
|
|
.then((res) => {
|
|
|
this.data = res.data.records
|
|
|
- this.params.total = res.data.pages
|
|
|
+ this.params.total = res.data.total
|
|
|
})
|
|
|
// GetFactoryPageList(this.params).then(res => {
|
|
|
// if (res.code === 0) {
|
|
@@ -1266,7 +1264,7 @@ export default {
|
|
|
getMaterialSelectPurposeList(){
|
|
|
const v = this
|
|
|
v.loading = true
|
|
|
- v.post('/api/storage-restructure/supplier/getStatistics' + '', {})
|
|
|
+ v.$post('/api/storage-restructure/supplier/getStatistics' + '', {})
|
|
|
.then((res) => {
|
|
|
for (let i = 0; i < res.data.data.length; i++) {
|
|
|
const element = res.data.data[i];
|
|
@@ -1291,22 +1289,15 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getStatisticsClassify(){
|
|
|
- axios
|
|
|
- .post(
|
|
|
- '/cloudApi/supplier/statisticsClassify',this.params)
|
|
|
+ this
|
|
|
+ .$post(
|
|
|
+ '/api/storage-restructure/supplier/getStatistics',this.params)
|
|
|
.then((res) => {
|
|
|
- res.data.data.unshift({
|
|
|
- technologyType: 99,
|
|
|
- categoryCount: 0,
|
|
|
- })
|
|
|
- axios
|
|
|
- .post('/cloudApi/supplier/list/count', {
|
|
|
- ...this.params,
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- this.total = res.data.data
|
|
|
- })
|
|
|
- this.statisticsClassifyData = res.data.data
|
|
|
+ res.data.map(item => {
|
|
|
+ if(!item.value) item.value = null
|
|
|
+ })
|
|
|
+ this.statisticsClassifyData = res.data
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -1315,12 +1306,12 @@ export default {
|
|
|
mounted () {
|
|
|
this.getList()
|
|
|
// this.getUserPageList()
|
|
|
- this.getMaterialCategoryZTree()
|
|
|
+ // this.getMaterialCategoryZTree()
|
|
|
this.getStatisticsClassify()
|
|
|
- this.getSupplierSelectList()
|
|
|
- this.getMaterialSelectPurposeList()
|
|
|
- this.getAccountDateList()
|
|
|
- this.getSafetyWarnDayList()
|
|
|
+ // this.getSupplierSelectList()
|
|
|
+ // this.getMaterialSelectPurposeList()
|
|
|
+ // this.getAccountDateList()
|
|
|
+ // this.getSafetyWarnDayList()
|
|
|
}
|
|
|
}
|
|
|
</script>
|