Browse Source

【nev-pc】需求及bug修改优化

ag_report_nev
安虹睿 10 months ago
parent
commit
bdbb9aaeae
  1. 13
      fe/PC/src/api/wms-api.js
  2. 8
      fe/PC/src/filters/status.js
  3. 4
      fe/PC/src/utils/index.js
  4. 8
      fe/PC/src/utils/tableColumns/index.js
  5. 4
      fe/PC/src/utils/tabsDesTions/index.js
  6. 28
      fe/PC/src/views/basicData/SupplierManage/Supplier.vue
  7. 2
      fe/PC/src/views/basicData/itemGuideBookManage/itemGuideBook.vue
  8. 68
      fe/PC/src/views/kittingManage/Kitting.vue
  9. 4
      fe/PC/src/views/rawMaterialManage/quality/InspectRequest.vue
  10. 4
      fe/PC/src/views/rawMaterialManage/quality/InspectRequest_new.vue
  11. 4
      fe/PC/src/views/rawMaterialManage/quality/InspectRequest_old.vue

13
fe/PC/src/api/wms-api.js

@ -787,6 +787,19 @@ export function getDepartByUserId(id) {
}) })
} }
// kitting箱打包规则特殊导入,不使用blob类型
export function postImportNoteBlob(data, url,isSpecial) {
let _url = isSpecial ? url : url + '/import'
return request({
url: baseURL + _url,
method: 'post',
headers: {
'Content-Type': 'multipart/form-data;'
},
data
})
}
// 客户退拆任务-完成 todo // 客户退拆任务-完成 todo
// export async function productionRecycleJobComplete(id) { // export async function productionRecycleJobComplete(id) {
// return request({ // return request({

8
fe/PC/src/filters/status.js

@ -2139,6 +2139,10 @@ export function SupplierAsnCtypeStaBack(name){
value: 3604, value: 3604,
label: '完工报废' label: '完工报废'
}, },
3605:{
value: 3605,
label: '报废转移'
},
3701: { 3701: {
value: 3701, value: 3701,
label: '线边盘点调整' label: '线边盘点调整'
@ -2546,6 +2550,10 @@ export function issueRequestType(index, prop) {
value: 5, value: 5,
label: "Excel导入" label: "Excel导入"
}, },
6: {
value: 6,
label: "涂装上线计划"
},
} }
return Enum(type, index, prop) return Enum(type, index, prop)
} }

4
fe/PC/src/utils/index.js

@ -616,7 +616,9 @@ export function initInterfaceType(res){
} else if (item.transType == 38 && (item.transSubType == 3301 || item.transSubType == 3302)) { } else if (item.transType == 38 && (item.transSubType == 3301 || item.transSubType == 3302)) {
_item.interfaceType = '【TYRP】-【回收料调整单】' _item.interfaceType = '【TYRP】-【回收料调整单】'
} else if (item.transType == 36) { } else if (item.transType == 36) {
_item.interfaceType = '【TYRP】-【报废单、线边仓报废单】' if(item.transSubType != "3605"){
_item.interfaceType = '【TYRP】-【报废单、线边仓报废单】'
}
} else { } else {
_item.interfaceType = '' _item.interfaceType = ''
} }

8
fe/PC/src/utils/tableColumns/index.js

@ -704,7 +704,7 @@ export const Shift = [
{ label: _Public.lastModificationTime, prop: "lastModificationTime", type: "dateTime" }, { label: _Public.lastModificationTime, prop: "lastModificationTime", type: "dateTime" },
] ]
// 供应商自检报告 // 作业指导书
export const ItemGuideBook = [ export const ItemGuideBook = [
{ {
label: _Names.itemCode, label: _Names.itemCode,
@ -2318,7 +2318,7 @@ export const InventoryTransferLog = [
{ label: "从库位代码", prop: "fromLocationCode" }, { label: "从库位代码", prop: "fromLocationCode" },
{ label: "到库位代码", prop: "toLocationCode" }, { label: "到库位代码", prop: "toLocationCode" },
{ label: "到箱码", prop: "toPackingCode" }, { label: "到箱码", prop: "toPackingCode" },
{ label: "事务类型", prop: "transType", type: "filter", filters: "TransType" }, { label: "事务类型", prop: "transType", type: "filter", filters: "TransTypeBase" },
{ label: "子事务类型", prop: "transSubType", type: "filter", filters: "transSubType" }, { label: "子事务类型", prop: "transSubType", type: "filter", filters: "transSubType" },
{ label: "接口对应类型", prop: "interfaceType", width: '360px', showProp: true }, { label: "接口对应类型", prop: "interfaceType", width: '360px', showProp: true },
{ label: "从事务编号", prop: "fromTransNumber", width: orderWidth }, { label: "从事务编号", prop: "fromTransNumber", width: orderWidth },
@ -3710,6 +3710,10 @@ export const chassisList = [
fixed: "left", fixed: "left",
type: "name" type: "name"
}, },
{ label: _Names.itemCode, prop: "itemCode" },
{ label: _Names.itemName, prop: "itemName" },
{ label: _Names.itemDesc1, prop: "itemDesc1" },
{ label: _Names.itemDesc2, prop: "itemDesc2" },
{ label: "Wms编号", prop: 'number' }, { label: "Wms编号", prop: 'number' },
{ label: "底盘生产时间", prop: 'produceDateTime', type: "dateTime" }, { label: "底盘生产时间", prop: 'produceDateTime', type: "dateTime" },
{ label: "接收接口时间", prop: 'receiveInterfaceDateTime', type: "dateTime" }, { label: "接收接口时间", prop: 'receiveInterfaceDateTime', type: "dateTime" },

4
fe/PC/src/utils/tabsDesTions/index.js

@ -2523,6 +2523,10 @@ export const chassisList = [
fixed: "left", fixed: "left",
type: "name" type: "name"
}, },
{ label: _Names.itemCode, prop: "itemCode" },
{ label: _Names.itemName, prop: "itemName" },
{ label: _Names.itemDesc1, prop: "itemDesc1" },
{ label: _Names.itemDesc2, prop: "itemDesc2" },
{ label: "Wms编号", prop: 'number' }, { label: "Wms编号", prop: 'number' },
{ label: "底盘生产时间", prop: 'produceDateTime', type: "dateTime" }, { label: "底盘生产时间", prop: 'produceDateTime', type: "dateTime" },
{ label: "接收接口时间", prop: 'receiveInterfaceDateTime', type: "dateTime" }, { label: "接收接口时间", prop: 'receiveInterfaceDateTime', type: "dateTime" },

28
fe/PC/src/views/basicData/SupplierManage/Supplier.vue

@ -217,20 +217,20 @@ export default {
tableColumns: 'SupplierTimeWindow', tableColumns: 'SupplierTimeWindow',
functionName: 'bySupplierCode' functionName: 'bySupplierCode'
}, },
{ // {
label: "发货单列表", // label: "",
name: 'fhdlb', // name: 'fhdlb',
url: 'wms/store/arrive-notice', // url: 'wms/store/arrive-notice',
tableColumns: 'PurchaseReceiptRequest', // tableColumns: 'PurchaseReceiptRequest',
functionName: 'bySupplierCode' // functionName: 'bySupplierCode'
}, // },
{ // {
label: "到货单列表", // label: "",
name: 'dhdlb', // name: 'dhdlb',
url: 'wms/store/supplier-asn', // url: 'wms/store/supplier-asn',
tableColumns: 'SupplierAsn', // tableColumns: 'SupplierAsn',
functionName: 'bySupplierCode' // functionName: 'bySupplierCode'
} // }
] ]
}; };
}, },

2
fe/PC/src/views/basicData/itemGuideBookManage/itemGuideBook.vue

@ -256,7 +256,7 @@ export default {
} }
fileStorageCreate(params).then( createRes => { fileStorageCreate(params).then( createRes => {
that.CreateFormData.pictureBlobName = createRes that.CreateFormData.pictureBlobName = createRes
// //
postCreate(that.CreateFormData, that.URL).then(res => { postCreate(that.CreateFormData, that.URL).then(res => {
that.Loading.newAndEdiLoading = false that.Loading.newAndEdiLoading = false
that.FormResult("success") that.FormResult("success")

68
fe/PC/src/views/kittingManage/Kitting.vue

@ -52,7 +52,7 @@
:disabledMethod = {method1:false,method2:false,method3:false} :disabledMethod = {method1:false,method2:false,method3:false}
:disabledIsAllowPartImport = {isAllowPartImport1:false,isAllowPartImport2:false} :disabledIsAllowPartImport = {isAllowPartImport1:false,isAllowPartImport2:false}
isAllowPartImportValue="1" isAllowPartImportValue="1"
@importClick="postImportMergeClick(arguments)" @importClick="postImportAloneClick(arguments)"
@postImportDown="importDown" @postImportDown="importDown"
></importFile> ></importFile>
<!-- 搜索按钮窗体组件 --> <!-- 搜索按钮窗体组件 -->
@ -94,7 +94,7 @@
</div> </div>
</template> </template>
<script> <script>
import { postCreate,postUpdate } from '@/api/wms-api' import { postCreate,postUpdate,postImportNoteBlob } from '@/api/wms-api'
import { tableMixins } from "@/mixins/TableMixins" import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins" import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins" import { drawerMixins } from "@/mixins/drawerMixins"
@ -186,6 +186,70 @@ export default {
this.paging(); this.paging();
}, },
methods: { methods: {
//
FormRemove(val) {
val[1].resetFields();
},
//
postImportAloneClick(val){
if (val[0][0] == 0) {
this.FormRemove(val[0]);
this.displayDialog.importDialog = false;
} else {
val[0][1].validate((valid) => {
if (valid) {
let menuName = this.$route.meta.title
this.Loading.importLoading = true;
let {
formFile
} = val[1]
let fd = new FormData();
fd.append("fileType", 1) // 1
let methodVal = ''
if (val[1].method == '0') {
methodVal = 'Update'
} else if (val[1].method == '1') {
methodVal = 'Append'
} else if (val[1].method == '2') {
methodVal = 'Replace'
}
fd.append("method", methodVal) // 0 1 2
fd.append("isAllowPartImport", val[1].isAllowPartImport=='0'?true:false) //
fd.append("route", this.URL + '/import') //
fd.append("function", menuName) //
fd.append("blobName", menuName)
fd.append("file", formFile[0])
postImportNoteBlob(fd, this.URL).then(res => {
// jsoncode200
if(typeof res == 'object' && res.code && res.code == '200'){
this.$successMsg('导入成功!')
this.Loading.importLoading = false
this.FormRemove(val[0]);
this.displayDialog.importDialog = false;
this.paging()
}else{
this.importErrHandle(res,val[0])
}
}).catch(err => {
this.importErrHandle(err,val[0])
})
} else {
this.$errorMsg('请按照提示继续操作')
this.displayDialog.importDialog = false;
return false;
}
});
}
},
importErrHandle(err,val){
console.log('请联系管理员',err)
this.$errorMsg('导入过程中发生错误!请联系管理员!')
this.Loading.importLoading = false
this.FormRemove(val);
this.displayDialog.importDialog = false;
this.paging()
},
topbuttonHandle(val,item){ topbuttonHandle(val,item){
if (val == 'newly') { if (val == 'newly') {
this.CreateForm[0].disabled = false this.CreateForm[0].disabled = false

4
fe/PC/src/views/rawMaterialManage/quality/InspectRequest.vue

@ -106,7 +106,7 @@
</curren-Form> </curren-Form>
</el-col> </el-col>
<el-col :span="10" > <el-col :span="10" >
<div style="padding-bottom:10px">供应商自检报告:</div> <div style="padding-bottom:10px">作业指导书:</div>
<curren-descriptions <curren-descriptions
border border
:column="1" :column="1"
@ -471,7 +471,7 @@ export default {
// supplierHandle: [ // supplierHandle: [
// { label: "", name: "cancel" }, // { label: "", name: "cancel" },
// ], // ],
// //
tabsDesTionsGuideBook:[ tabsDesTionsGuideBook:[
{ label: "图片", prop: "pictureBlobName", type: "uploadPictureCard", limit: 1, picExt: ".png,.jpg", }, { label: "图片", prop: "pictureBlobName", type: "uploadPictureCard", limit: 1, picExt: ".png,.jpg", },
{ label: "步骤", prop: "step", type:'textarea', rows: 5 }, { label: "步骤", prop: "step", type:'textarea', rows: 5 },

4
fe/PC/src/views/rawMaterialManage/quality/InspectRequest_new.vue

@ -106,7 +106,7 @@
</curren-Form> </curren-Form>
</el-col> </el-col>
<el-col :span="10" > <el-col :span="10" >
<div style="padding-bottom:10px">供应商自检报告</div> <div style="padding-bottom:10px">作业指导书</div>
<curren-descriptions <curren-descriptions
border border
:column="1" :column="1"
@ -471,7 +471,7 @@ export default {
// supplierHandle: [ // supplierHandle: [
// { label: "", name: "cancel" }, // { label: "", name: "cancel" },
// ], // ],
// //
tabsDesTionsGuideBook:[ tabsDesTionsGuideBook:[
{ label: "图片", prop: "pictureBlobName", type: "uploadPictureCard", limit: 1, picExt: ".png,.jpg", }, { label: "图片", prop: "pictureBlobName", type: "uploadPictureCard", limit: 1, picExt: ".png,.jpg", },
{ label: "步骤", prop: "step", type:'textarea', rows: 5 }, { label: "步骤", prop: "step", type:'textarea', rows: 5 },

4
fe/PC/src/views/rawMaterialManage/quality/InspectRequest_old.vue

@ -104,7 +104,7 @@
</curren-Form> </curren-Form>
</el-col> </el-col>
<el-col :span="10" > <el-col :span="10" >
<div style="padding-bottom:10px">供应商自检报告</div> <div style="padding-bottom:10px">作业指导书</div>
<curren-descriptions <curren-descriptions
border border
:column="1" :column="1"
@ -459,7 +459,7 @@ export default {
// supplierHandle: [ // supplierHandle: [
// { label: "", name: "cancel" }, // { label: "", name: "cancel" },
// ], // ],
// //
tabsDesTionsGuideBook:[ tabsDesTionsGuideBook:[
{ label: "图片", prop: "pictureBlobName", type: "uploadPictureCard", limit: 1, picExt: ".png,.jpg", }, { label: "图片", prop: "pictureBlobName", type: "uploadPictureCard", limit: 1, picExt: ".png,.jpg", },
{ label: "步骤", prop: "step", type:'textarea', rows: 5 }, { label: "步骤", prop: "step", type:'textarea', rows: 5 },

Loading…
Cancel
Save