Browse Source

Merge remote-tracking branch 'origin/master'

java8
qiezi 2 years ago
parent
commit
8f86d584d6
  1. 4
      src/api/inquiry/inquiryApplication.js
  2. 1213
      src/views/modules/auth/authInquiry.vue
  3. 3
      src/views/modules/auth/authRule.vue
  4. 16
      src/views/modules/eam/com_project_proof_record.vue
  5. 1
      src/views/modules/eam/eamProjectInfo.vue
  6. 3
      src/views/modules/eam/eamProjectInfoForConfirm.vue
  7. 3
      src/views/modules/eam/eamProjectInfoForProof.vue
  8. 3
      src/views/modules/eam/eamProjectInfoForUploads.vue
  9. 76
      src/views/modules/eam/eamProjectPartInfo.vue
  10. 132
      src/views/modules/orderIssure/soIssueNotify/searchIssureNotifyForCK.vue
  11. 2
      src/views/modules/sys/user-add-or-update.vue

4
src/api/inquiry/inquiryApplication.js

@ -7,3 +7,7 @@ export const addInquiryApplicationInfo = data => createAPI("/inquiry/inquiryAppl
export const updateInquiryApplicationInfo = data => createAPI("/inquiry/inquiryApplication/updateInquiryApplicationInfo", "post", data);
export const deleteInquiryApplicationInfo = data => createAPI("/inquiry/inquiryApplication/deleteInquiryApplicationInfo", "post", data);
export const searchUserAuthInquiryApplicationInfo = data => createAPI("/inquiry/inquiryApplication/searchUserAuthInquiryApplicationInfo", "post", data);
export const searchInquiryUserAuthInfo = data => createAPI("/inquiry/inquiryApplication/searchInquiryUserAuthInfo", "post", data);

1213
src/views/modules/auth/authInquiry.vue
File diff suppressed because it is too large
View File

3
src/views/modules/auth/authRule.vue

@ -1104,7 +1104,8 @@ export default {
}
if (val === 218 ) {
strVal = this.ruleStepModalData.authGroupNo
this.$refs.baseList.init(val, strVal)
conSql = " and site = '" + this.$store.state.user.site + "'" + " and record_type = '" + this.ruleCurrentRow.recordType + "'"
this.$refs.baseList.init(val, strVal, conSql)
}
})
},

16
src/views/modules/eam/com_project_proof_record.vue

@ -39,9 +39,16 @@
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
<div v-if="scope.row.projectPhase === 'Alpha' || scope.row.projectPhase === 'Beta' || scope.row.allUploaded === 'Y'">
<span v-if="!item.columnHidden" style="color: #0033ff;">{{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</div>
<div v-else>
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</div>
</template>
</el-table-column>
</el-table>
@ -1121,7 +1128,7 @@
proofingInformationSearch(this.searchData).then(({data}) => {
//
if (data && data.code === 0) {
this.dataList = data.page.list
this.dataList = data.page
if (this.dataList.length > 0) {
this.isUpload = true
//
@ -1245,6 +1252,7 @@
}
})
},
getColumnValue(row, column) {
//
if (column.columnProp === 'documentType') {

1
src/views/modules/eam/eamProjectInfo.vue

@ -2730,7 +2730,6 @@ import {searchBusinessInfo7} from "../../../api/factory/site";
//
if (this.totalPage > 0) {
console.log(this.projectPartCurrentRow)
if (this.projectPartCurrentRow === null || this.projectPartCurrentRow === undefined) {
//
this.$refs.mainTable.setCurrentRow(this.dataList[0])

3
src/views/modules/eam/eamProjectInfoForConfirm.vue

@ -1108,6 +1108,9 @@ export default {
},
{
status: '已量产',
},
{
status: '正式量产',
}
],
allPersonnelInfoList: [],

3
src/views/modules/eam/eamProjectInfoForProof.vue

@ -886,6 +886,9 @@ export default {
},
{
status: '已量产',
},
{
status: '正式量产',
}
],
};

3
src/views/modules/eam/eamProjectInfoForUploads.vue

@ -1140,6 +1140,9 @@ export default {
},
{
status: '已量产',
},
{
status: '正式量产',
}
],
};

76
src/views/modules/eam/eamProjectPartInfo.vue

@ -190,6 +190,11 @@
{{ scope.row[item.columnProp] }}
</span>
</div>
<div v-else-if="scope.row.status === '正式量产'">
<span v-if="!item.columnHidden" style="color: #7fa103;">{{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</div>
<div v-else>
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
@ -211,7 +216,7 @@
<a v-if="scope.row.status !== '草稿' && scope.row.status !== '已量产'" style="color: gray; pointer-events: none;">转正式料号</a>
<a v-if="scope.row.status === '进行中' && scope.row.status !== '已量产'" style="color: gray; pointer-events: none;">转量产</a>
</div>
<div v-else-if="scope.row.status !== '已量产'">
<div v-else-if="scope.row.status !== '已量产' && scope.row.status !== '正式量产'">
<a v-if="scope.row.status === '草稿' && scope.row.status !== '已量产'" type="text" size="small" @click="updateModalStatus(scope.row)">下达</a>
<a v-if="scope.row.status !== '草稿'" type="text" size="small" @click="addProofRecord(scope.row)">新增打样</a>
<a v-if="scope.row.status !== '草稿' && scope.row.status !== '已量产'" type="text" size="small" @click="changeFormalPartNo(scope.row)">转正式料号</a>
@ -2761,6 +2766,9 @@ import {EventBus} from "../../../main";
},
{
status: '已量产',
},
{
status: '正式量产',
}
],
userBuList: [],
@ -4476,19 +4484,27 @@ import {EventBus} from "../../../main";
})
},
getConfirmProgressPusherList() {
let inData = {
site: this.proofingCurrentRow.site,
orderRef1: this.proofingCurrentRow.projectId,
orderRef2: this.proofingCurrentRow.projectPartId,
page: 1,
limit: 1000
}
searchConfirmProgressPusherList(inData).then(({data}) => {
if (data && data.code === 0){
this.confirmProgressPusherList = data.page.list;
}
})
},
return new Promise((resolve, reject) => {
let inData = {
site: this.proofingCurrentRow.site,
orderRef1: this.proofingCurrentRow.projectId,
orderRef2: this.proofingCurrentRow.projectPartId,
page: 1,
limit: 1000
};
searchConfirmProgressPusherList(inData).then(({ data }) => {
if (data && data.code === 0) {
this.confirmProgressPusherList = data.page.list;
resolve(); // resolve
} else {
reject(new Error(data.msg)); //
}
}).catch(error => {
reject(error); //
});
});
} ,
confirmDocument(row) {
// this.$store.state.user.id
let userId = this.$store.state.user.id.toString()
@ -4598,7 +4614,37 @@ import {EventBus} from "../../../main";
if (data.code === 0) {
this.confirmVisible = false;
this.getConfirmProgressDocumentList();
this.getConfirmProgressPusherList();
this.getConfirmProgressPusherList().then(() => {
// confirmProgressPusherList confirmFlag Y
let flag = true;
for (let i = 0; i < this.confirmProgressPusherList.length; i++) {
if (this.confirmProgressPusherList[i].confirmFlag !== 'Y') {
flag = false;
break;
}
}
if (flag) {
this.proofingCurrentRow.status = '正式量产';
eamProjectPartInfoEdit(this.proofingCurrentRow).then(({ data }) => {
this.dataList.forEach((item) => {
if (item.projectPartId === this.proofingCurrentRow.projectPartId) {
this.dataListIndex = this.dataList.indexOf(item)
}
})
this.getDataList();
if (data.code !== 0) {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
});
}
});
}
}).catch(error => {
this.$alert('获取确认进度推送列表失败', '错误', {
confirmButtonText: '确定'
});
});
EventBus.$emit('updateAgencyMatterForConfirm')
}else {
this.$alert(data.msg, '错误', {

132
src/views/modules/orderIssure/soIssueNotify/searchIssureNotifyForCK.vue

@ -1,5 +1,10 @@
<template>
<div class="mod-config yzz">
<div>
<span @click="favoriteFunction()">
<icon-svg :name="favorite?'xiangqufill':'xiangqu'" class="sl-svg"></icon-svg>
</span>
</div>
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;">
<el-form :inline="true" label-position="top" style="margin-top: 0px">
<el-form-item :label="'申请单号'">
@ -245,6 +250,11 @@
}from "@/api/orderIssure/soIssueNotify.js"
import Chooselist from '@/views/modules/common/Chooselist'
import {getEamWorkShop} from "@/api/factory/site.js";
import {
getTableDefaultListLanguage,
getTableUserListLanguage,
} from "@/api/table.js"
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
export default {
components: {
Chooselist
@ -280,6 +290,7 @@
dataListLoading: false,
currentRow:'',
headerData:'',
favorite: false,
columnList1:[
{
userId: this.$store.state.user.name,
@ -1213,6 +1224,127 @@
return ''
},
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
//this.columnList1 = []
switch (columnId) {
case 1:
this.columnList1 = data.rows
break;
case 2:
this.columnList2 = data.rows
break;
case 3:
this.columnList3 = data.rows
break;
case 4:
this.columnList4 = data.rows
break;
// case 5:
// this.columnList5 = data.rows
// break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
async getColumnList (tableId, columnId) {
let queryTable= {
functionId: this.$route.meta.menuId,
tableId: tableId,
languageCode: this.$i18n.locale
}
await getTableDefaultListLanguage(queryTable).then(({data}) => {
if (!data.rows.length == 0) {
switch (columnId) {
case 1:
this.columnList1 = data.rows
break;
case 2:
this.columnList2 = data.rows
break;
case 3:
this.columnList3 = data.rows
break;
case 4:
this.columnList4 = data.rows
break;
// case 5:
// this.columnList5 = data.rows
// break;
}
} else {
// this.showDefault = true.
}
})
},
//
favoriteIsOk () {
let userFavorite = {
userId: this.$store.state.user.id,
languageCode: this.$i18n.locale
}
userFavoriteList(userFavorite).then(({data}) => {
for (let i = 0; i < data.list.length; i++) {
if (this.$route.meta.menuId === data.list[i].menuId) {
this.favorite = true
}
}
})
},
// OR
favoriteFunction () {
let userFavorite = {
userId: this.$store.state.user.id,
functionId: this.$route.meta.menuId,
}
if (this.favorite) {
removeUserFavorite(userFavorite).then(({data}) => {
this.$message.success(data.msg)
this.favorite = false
})
} else {
//
saveUserFavorite(userFavorite).then(({data}) => {
this.$message.success(data.msg)
this.favorite = true
})
}
},
},
created () {
//
// this.getButtonAuthData()
// site bu
// this.getSiteAndBuByUserName()
//
this.favoriteIsOk()
//
this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
this.getTableUserColumn(this.$route.meta.menuId+'table2',2)
this.getTableUserColumn(this.$route.meta.menuId+'table3',3)
this.getTableUserColumn(this.$route.meta.menuId+'table4',4)
// if (!this.authSearch) {
// //
// this.getDataList()
// }
},
}
</script>

2
src/views/modules/sys/user-add-or-update.vue

@ -36,7 +36,7 @@
<el-input v-model="dataForm.site" style="width: 150px;" placeholder="工厂"></el-input>
</el-form-item>
<el-form-item label="车间">
<el-select v-model="dataForm.workShopId" placeholder="请选择" >
<el-select v-model="dataForm.workShopId" placeholder="请选择" clearable>
<el-option
v-for = "i in workShopList"
:key = "i.workShopId"

Loading…
Cancel
Save