Browse Source

Merge branch 'dev_web' of http://dev.ccwin-in.com:3000/BoXu.Zheng/WZC2 into dev_web

dev_web_online
安虹睿 2 years ago
parent
commit
a62287fa8e
  1. 6
      fe/PC/src/api/wms-api.js
  2. 4
      fe/PC/src/api/wms-auth.js
  3. 7
      fe/PC/src/components/currenDescriptions/index.vue
  4. 5
      fe/PC/src/components/currenTable/index.vue
  5. 5
      fe/PC/src/components/newAndEdiDialog/index.vue
  6. 8
      fe/PC/src/components/umyTable/index.vue
  7. 16
      fe/PC/src/mixins/TableHeaderMixins.js
  8. 11
      fe/PC/src/mixins/drawerMixins.js
  9. 321
      fe/PC/src/mixins/mixins.js
  10. 30
      fe/PC/src/utils/formatTime.js
  11. 2
      fe/PC/src/utils/request.js
  12. 2
      fe/PC/src/utils/tabsDesTions/index.js
  13. 33
      fe/PC/src/views/basicData/BomManage/Bom.vue
  14. 6
      fe/PC/src/views/basicData/CustomerManage/CustomerAddress.vue
  15. 14
      fe/PC/src/views/basicData/CustomerManage/CustomerItem.vue
  16. 16
      fe/PC/src/views/basicData/ItemsManage/AQL.vue
  17. 2
      fe/PC/src/views/basicData/SupplierManage/Supplier.vue
  18. 2
      fe/PC/src/views/basicData/WarehouseManage/Dock.vue
  19. 74
      fe/PC/src/views/basicData/WarehouseManage/LocationGroup.vue
  20. 2
      fe/PC/src/views/basicData/WarehouseManage/WorkGroup.vue
  21. 4
      fe/PC/src/views/basicData/WorkshopManage/ProductionLine.vue
  22. 2
      fe/PC/src/views/basicData/WorkshopManage/Shift.vue
  23. 2
      fe/PC/src/views/basicData/WorkshopManage/Team.vue
  24. 16
      fe/PC/src/views/basicData/WorkshopManage/WorkCenter.vue
  25. 4
      fe/PC/src/views/basicData/documentSetting/documentBasic.vue
  26. 2
      fe/PC/src/views/profileuser/index.vue

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

@ -81,6 +81,7 @@ export function postExport(data, url, special) {
url: _url,
method: 'post',
data,
responseType: 'blob'
})
}
//导出(详情内)-获取文件 blobName | 盘点计划
@ -96,6 +97,7 @@ export function postExportForDetail(data, url,params) {
method: 'post',
data,
params: params,
responseType: 'blob'
})
}
//导出-文件
@ -120,6 +122,10 @@ export function postImport(data, url,isSpecial) {
return request({
url: baseURL + _url,
method: 'post',
headers: {
'Content-Type': 'multipart/form-data;'
},
responseType: 'blob',
data
})
}

4
fe/PC/src/api/wms-auth.js

@ -179,9 +179,9 @@ export function SetUserWorkgroupPermissions(data,id) {
})
}
//加载用户登录信息
export function loadLoginUserInfo() {
export function loadLoginUserInfo(id) {
return request({
url: baseURL + '/identity/my-profile',
url: baseURL + '/identity/users/' + id,
method: 'get'
})
}

7
fe/PC/src/components/currenDescriptions/index.vue

@ -66,6 +66,7 @@
</template>
<script>
import { parseTime } from "@/utils/index"
import { formatDateTime } from "@/utils/formatTime"
import { fileStorage } from "@/api/wms-api"
let that
@ -83,11 +84,7 @@ export default {
},
filters: {
formatDate (time) {
if(!time){
return "-"
}
var date = new Date(time);
return parseTime(date)
return formatDateTime(time)
},
formatOnlyDate (time) {
var date = new Date(time);

5
fe/PC/src/components/currenTable/index.vue

@ -307,7 +307,7 @@
</template>
<script>
import Sortable from "sortablejs";
import { parseTime, debounce } from "@/utils/index";
import { formatDateTime } from "@/utils/formatTime";
import { getMatchRegConformValue } from "@/utils/index"
import _ from "lodash";
export default {
@ -317,8 +317,7 @@ export default {
if (time == null) {
return '-'
}
var date = new Date(time)
return parseTime(date)
return formatDateTime(time)
},
},
props: {

5
fe/PC/src/components/newAndEdiDialog/index.vue

@ -24,6 +24,7 @@
@push="DataPush(arguments)"
@submitForm="FormClick(arguments)"
@radioChange="radioChange"
@changeSelect="changeSelect"
>
<template v-if="showmyTable">
<el-form-item class="formTable-box" prop="details">
@ -219,6 +220,10 @@ export default {
//selection
handleSelectionChange(val) {
this.$emit("handleSelectionChange", val);
},
// formchange
changeSelect(prop,val ) {
this.$emit("changeSelect", prop, val)
}
}
}

8
fe/PC/src/components/umyTable/index.vue

@ -320,18 +320,14 @@
</u-table>
</template>
<script>
import { parseTime } from "@/utils/index";
import { formatDateTime } from "@/utils/formatTime";
import _ from "lodash";
import { getMatchRegConformValue } from "@/utils/index"
export default {
name: "currenTable",
filters: {
formatDate(time) {
if (time == null) {
return '-'
}
var date = new Date(time)
return parseTime(date)
return formatDateTime(time)
},
},
props: {

16
fe/PC/src/mixins/TableHeaderMixins.js

@ -76,14 +76,8 @@ export const TableHeaderMixins = {
this.PageListParams.route = item.url ? item.url : this.URL + '/export';
let _exportUrl = item.url ? item.url : this.URL;
let _special = (item.url && item.url.length > 0) ? true : false
postExport(this.PageListParams,_exportUrl,_special).then(res => {
fileStorage({blobName: res.blobName}).then( fileStorageRes => {
// this.downloadFile(fileStorageRes.bytes, name)//使用前端导出名称
this.downloadFile(fileStorageRes.bytes, fileStorageRes.fileName)//使用后端导出名称
}).catch( err => {
console.log(err)
})
postExport(this.PageListParams, _exportUrl, _special).then(res => {
this.blob(res, name)//使用前端导出名称
this.Loading.appMainLoading = false
}).catch(err => {
this.Loading.appMainLoading = false
@ -99,11 +93,7 @@ export const TableHeaderMixins = {
params.route = this.URL + '/export'
params.function = name
postExport(params, this.URL).then(res => {
fileStorage({blobName: res.blobName}).then( fileStorageRes => {
this.downloadFile(fileStorageRes.bytes, fileStorageRes.fileName)
}).catch( err => {
console.log(err)
})
this.blob(res, name)//使用前端导出名称
this.Loading.appMainLoading = false
}).catch(err => {
this.Loading.appMainLoading = false

11
fe/PC/src/mixins/drawerMixins.js

@ -290,11 +290,12 @@ export const drawerMixins = {
PageListParams.function = that.$route.meta.title
PageListParams.route = url;
postExportForDetail(PageListParams,url,params).then(res => {
fileStorage({blobName: res.blobName}).then( fileStorageRes => {
that.downloadFile(fileStorageRes.bytes, fileStorageRes.fileName)
}).catch( err => {
console.log(err)
})
this.blob(res, this.$route.meta.title )//使用前端导出名称
// fileStorage({blobName: res.blobName}).then( fileStorageRes => {
// that.downloadFile(fileStorageRes.bytes, fileStorageRes.fileName)
// }).catch( err => {
// console.log(err)
// })
that.Loading.appMainLoading = false
}).catch(err => {
that.Loading.appMainLoading = false

321
fe/PC/src/mixins/mixins.js

@ -185,49 +185,10 @@ export const mixins = {
})
})
},
//导出存储
// blob(res) {
// // const name = decodeURIComponent (res.disposition.slice(res.disposition.indexOf('=') + 1))
// const name = filters.Roles(this.$route.name)
// // delete res.disposition
// let blob = new Blob([res], {
// type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
// })
// const href = URL.createObjectURL(blob) //创建新的URL表示指定的blob对象
// const a = document.createElement('a') //创建a标签
// a.style.display = 'none'
// a.href = href // 指定下载链接
// a.download = name //指定下载文件名
// a.click() //触发下载
// URL.revokeObjectURL(a.href) //释放URL对象
// },
downloadFile(data, fileName) {
var byteString = atob(data)
var arrayBuffer = new ArrayBuffer(byteString.length) // 创建缓冲数组
var intArray = new Uint8Array(arrayBuffer) // 创建视图
for (var i = 0; i < byteString.length; i++) {
intArray[i] = byteString.charCodeAt(i)
}
const blob = new Blob([intArray], { type: '' })
// 获取heads中的filename文件名
const downloadElement = document.createElement('a')
// 创建下载的链接
const href = window.URL.createObjectURL(blob)
downloadElement.href = href
// 下载后文件名
downloadElement.download = fileName
document.body.appendChild(downloadElement)
// 点击下载
downloadElement.click()
// 下载完成移除元素
document.body.removeChild(downloadElement)
// 释放掉blob对象
window.URL.revokeObjectURL(href)
},
//导出存储-新
blob(res, fileName) {
let blob = new Blob([res], {
type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8',
})
const href = URL.createObjectURL(blob) //创建新的URL表示指定的blob对象
const a = document.createElement('a') //创建a标签
@ -251,94 +212,60 @@ export const mixins = {
let {
formFile
} = val[1]
let fd = new FormData();
let fileName = ''
let rd = new FileReader(); // 创建文件读取对象
// formFile.forEach((item) => {
// fd.append("formFile", item)
// fd.append("method", val[1].method)
// fd.append("isAllowPartImport", val[1].isAllowPartImport=='0'?true:false)
// })
// 目前只有单文件上传,写法只适用于单文件上传
fileName = formFile[0].name
rd.readAsDataURL(formFile[0])
rd.onloadend = function(){
var arrayBuffer = rd.result
let params = {
fileName: fileName,
bytes: arrayBuffer.substring(arrayBuffer.indexOf(',') + 1, arrayBuffer.length)
}
// 特殊导入接口判断
let _uploadURL = that.importUploadURL || that.URL
let _isSpecial = that.importUploadURL ? true : false
fileStorageCreate(params).then( createRes => {
let importParams = {
fileType: 1, //文件类型 固定1
method: val[1].method, //导入方式 0 更新 1 追加 2 覆盖
isAllowPartImport: val[1].isAllowPartImport=='0'?true:false, //是否部分错误导入
route: _isSpecial ? _uploadURL : _uploadURL + '/import', //路由
function: menuName, //菜单名
blobName: createRes,
company: window.SITE_CONFIG['company']
}
postImport(importParams, _uploadURL, _isSpecial).then(res => {
// 判断是否有错误记录
if (res.errorNum > 0) {
that.$alert('发现导入错误数据共:' + res.errorNum + '条', '错误报告', {
confirmButtonText: '下载错误报告',
callback: action => {
if (action == 'confirm') {
fileStorage({blobName: res.fileCode}).then( fileStorageRes => {
that.downloadFile(fileStorageRes.bytes, fileStorageRes.fileName)
}).catch( err => {
console.log(err)
})
}
}
})
} else if (res.exceptionMessage != null) {
that.$alert('错误信息:' + res.exceptionMessage, '错误', {
confirmButtonText: '确定',
callback: action => {
}
})
// that.$alert('导入模板错误,请导入正确的模板文件!', '模板错误', {
// confirmButtonText: '确定',
// callback: action => {
// }
// })
} else {
// that.$successMsg('全部导入成功')
that.$alert('全部导入成功,是否下载导入报告', '导入报告', {
confirmButtonText: '下载导入报告',
cancelButtonText: '取消',
callback: action => {
if (action == 'confirm') {
fileStorage({blobName: res.fileCode}).then( fileStorageRes => {
that.downloadFile(fileStorageRes.bytes, fileStorageRes.fileName)
}).catch( err => {
console.log(err)
})
}
}
})
// 特殊导入接口判断
let _uploadURL = that.importUploadURL || that.URL
let _isSpecial = that.importUploadURL ? true : false
let fd = new FormData();
fd.append("fileType", 1) //文件类型 固定1
fd.append("method", val[1].method) //导入方式 0 更新 1 追加 2 覆盖
fd.append("isAllowPartImport", val[1].isAllowPartImport=='0'?true:false) //是否部分错误导入
fd.append("route", _isSpecial ? _uploadURL : _uploadURL + '/import') //路由
fd.append("function", menuName) //菜单名
fd.append("blobName", menuName)
fd.append("file", formFile[0])
postImport(fd, _uploadURL, _isSpecial).then(res => {
const headers = JSON.parse(res.headers)
// 判断是否有错误记录
if (headers.result.ErrorNum > 0) {
that.$alert('发现导入错误数据共:' + headers.result.ErrorNum + '条', '错误报告', {
confirmButtonText: '下载错误报告',
callback: action => {
if (action == 'confirm') {
that.blob(res, menuName + '错误报告')
}
}
that.Loading.importLoading = false
that.FormRemove(val[0]);
that.displayDialog.importDialog = false;
that.paging()
}).catch(err => {
that.Loading.importLoading = false
that.FormRemove(val[0]);
that.displayDialog.importDialog = false;
that.paging()
})
}).catch(err => {
console.log(err)
})
}
} else if (headers.result.ExceptionMessage != null) {
that.$alert('错误信息:' + headers.result.ExceptionMessage, '错误', {
confirmButtonText: '确定',
callback: action => {
}
})
} else {
that.$alert('全部导入成功,是否下载导入报告', '导入报告', {
confirmButtonText: '下载导入报告',
cancelButtonText: '取消',
callback: action => {
if (action == 'confirm') {
that.blob(res, menuName + '导入报告')
}
}
})
}
that.Loading.importLoading = false
that.FormRemove(val[0]);
that.displayDialog.importDialog = false;
that.paging()
}).catch(err => {
that.$errorMsg('导入过程中发生错误!请联系管理员!')
that.Loading.importLoading = false
that.FormRemove(val[0]);
that.displayDialog.importDialog = false;
that.paging()
})
} else {
that.$errorMsg('请按照提示继续操作')
that.displayDialog.importDialog = false;
@ -347,45 +274,133 @@ export const mixins = {
});
}
},
//导入文件 应该暂无使用
// importClick(val) {
// downloadFile(data, fileName) {
// var byteString = atob(data)
// var arrayBuffer = new ArrayBuffer(byteString.length) // 创建缓冲数组
// var intArray = new Uint8Array(arrayBuffer) // 创建视图
// for (var i = 0; i < byteString.length; i++) {
// intArray[i] = byteString.charCodeAt(i)
// }
// const blob = new Blob([intArray], { type: '' })
// // 获取heads中的filename文件名
// const downloadElement = document.createElement('a')
// // 创建下载的链接
// const href = window.URL.createObjectURL(blob)
// downloadElement.href = href
// // 下载后文件名
// downloadElement.download = fileName
// document.body.appendChild(downloadElement)
// // 点击下载
// downloadElement.click()
// // 下载完成移除元素
// document.body.removeChild(downloadElement)
// // 释放掉blob对象
// window.URL.revokeObjectURL(href)
// },
//导入文件-旧
// postImportMergeClick(val) {
// let that = this
// let menuName = this.$route.meta.title
// if (val[0][0] == 0) {
// this.FormRemove(val[0]);
// this.displayDialog.importDialog = false;
// that.FormRemove(val[0]);
// that.displayDialog.importDialog = false;
// } else {
// val[0][1].validate((valid) => {
// if (valid) {
// this.Loading.importLoading = true;
// that.Loading.importLoading = true;
// let {
// formFile
// } = val[1]
// let fd = new FormData();
// formFile.forEach((item) => {
// fd.append("formFile", item)
// })
// postImport(fd, this.URL).then(res => {
// if (res.failList.length === 0) {
// this.$successMsg('全部导入成功')
// } else {
// let failListCode = ''
// res.failList.forEach(key => {
// failListCode = failListCode.concat(key.code + ';')
// })
// this.$errorMsg('部分导入失败,失败代码为:' + failListCode)
// let fileName = ''
// let rd = new FileReader(); // 创建文件读取对象
// // formFile.forEach((item) => {
// // fd.append("formFile", item)
// // fd.append("method", val[1].method)
// // fd.append("isAllowPartImport", val[1].isAllowPartImport=='0'?true:false)
// // })
// // 目前只有单文件上传,写法只适用于单文件上传
// fileName = formFile[0].name
// rd.readAsDataURL(formFile[0])
// rd.onloadend = function(){
// var arrayBuffer = rd.result
// let params = {
// fileName: fileName,
// bytes: arrayBuffer.substring(arrayBuffer.indexOf(',') + 1, arrayBuffer.length)
// }
// this.Loading.importLoading = false
// this.FormRemove(val[0]);
// this.displayDialog.importDialog = false;
// this.paging()
// }).catch(err => {
// this.Loading.importLoading = false
// this.FormRemove(val[0]);
// this.displayDialog.importDialog = false;
// this.paging()
// })
// // 特殊导入接口判断
// let _uploadURL = that.importUploadURL || that.URL
// let _isSpecial = that.importUploadURL ? true : false
// fileStorageCreate(params).then( createRes => {
// let importParams = {
// fileType: 1, //文件类型 固定1
// method: val[1].method, //导入方式 0 更新 1 追加 2 覆盖
// isAllowPartImport: val[1].isAllowPartImport=='0'?true:false, //是否部分错误导入
// route: _isSpecial ? _uploadURL : _uploadURL + '/import', //路由
// function: menuName, //菜单名
// blobName: createRes,
// company: window.SITE_CONFIG['company']
// }
// postImport(importParams, _uploadURL, _isSpecial).then(res => {
// // 判断是否有错误记录
// if (res.errorNum > 0) {
// that.$alert('发现导入错误数据共:' + res.errorNum + '条', '错误报告', {
// confirmButtonText: '下载错误报告',
// callback: action => {
// if (action == 'confirm') {
// fileStorage({blobName: res.fileCode}).then( fileStorageRes => {
// that.downloadFile(fileStorageRes.bytes, fileStorageRes.fileName)
// }).catch( err => {
// console.log(err)
// })
// }
// }
// })
// } else if (res.exceptionMessage != null) {
// that.$alert('错误信息:' + res.exceptionMessage, '错误', {
// confirmButtonText: '确定',
// callback: action => {
// }
// })
// // that.$alert('导入模板错误,请导入正确的模板文件!', '模板错误', {
// // confirmButtonText: '确定',
// // callback: action => {
// // }
// // })
// } else {
// // that.$successMsg('全部导入成功')
// that.$alert('全部导入成功,是否下载导入报告', '导入报告', {
// confirmButtonText: '下载导入报告',
// cancelButtonText: '取消',
// callback: action => {
// if (action == 'confirm') {
// fileStorage({blobName: res.fileCode}).then( fileStorageRes => {
// that.downloadFile(fileStorageRes.bytes, fileStorageRes.fileName)
// }).catch( err => {
// console.log(err)
// })
// }
// }
// })
// }
// that.Loading.importLoading = false
// that.FormRemove(val[0]);
// that.displayDialog.importDialog = false;
// that.paging()
// }).catch(err => {
// that.Loading.importLoading = false
// that.FormRemove(val[0]);
// that.displayDialog.importDialog = false;
// that.paging()
// })
// }).catch(err => {
// console.log(err)
// })
// }
// } else {
// this.$errorMsg('请按照提示继续操作')
// this.displayDialog.importDialog = false;
// that.$errorMsg('请按照提示继续操作')
// that.displayDialog.importDialog = false;
// return false;
// }
// });

30
fe/PC/src/utils/formatTime.js

@ -1,5 +1,35 @@
/**
* 格林威治的时间差 补8小时
*/
export function formatDateTime(dateTime) {
dateTime = formatTimeStrToStr(dateTime)
if (!dateTime) {
return '-'
}
var nowDate = new Date(dateTime).getTime();
// var timezone = 8; //目标时区时间,东八区
var offset_GMT = new Date().getTimezoneOffset(); // 本地时间和格林威治的时间差,单位为分钟
// var nowDate = new Date().getTime(); // 本地时间距 1970 年 1 月 1 日午夜(GMT 时间)之间的毫秒数
// var targetDate = new Date(nowDate + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000);
var targetDate = new Date(nowDate - offset_GMT * 60 * 1000);
let datae = new Date(targetDate);
var YY = datae.getFullYear() + '-';
var MM =(datae.getMonth() + 1 < 10
? '0' + (datae.getMonth() + 1)
: datae.getMonth() + 1) + '-';
var DD = datae.getDate() < 10 ? '0' + datae.getDate() : datae.getDate();
var hh =(datae.getHours() < 10 ? '0' + datae.getHours() : datae.getHours())+':';
var mm =(datae.getMinutes() < 10 ? '0' + datae.getMinutes() : datae.getMinutes()) +':';
var ss =datae.getSeconds() < 10 ? '0' + datae.getSeconds() : datae.getSeconds();
let mydatavalue = `${YY}${MM}${DD} ${hh}${mm}${ss}`;
return mydatavalue
}
// 2022-08-31T09:45:51.9340433 转 2022-08-31 09:45:51
export function formatTimeStrToStr(timeStr) {
if (!timeStr || !new Date(timeStr)) {
return ''
}
if (timeStr.lastIndexOf('.') == -1) {
return timeStr.replace('T',' ').substring(0,timeStr.length)
}

2
fe/PC/src/utils/request.js

@ -59,6 +59,8 @@ service.interceptors.response.use(
const res = response.data
if(response.headers['content-disposition']){
res.disposition = response.headers['content-disposition']
} else if (response.headers['x-response']) {
res.headers = response.headers['x-response']
}
// if the custom code is not 20000, it is judged as an error.
// if (res.code !== 20000) {

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

@ -616,7 +616,7 @@ export const ProductionLineItem = [
export const WorkCenter = [
{ label: "生产线编号", prop: "productionLineCode" },
{ label: "原料库位", prop: "rawLocation" },
{ label: "成品编号", prop: "productLocation" },
{ label: "成品库位", prop: "productLocation" },
{ label: "工作站编号", prop: "code" },
{ label: "工作站名称", prop: 'name' },
{ type: "filter", label: "类型", prop: "type", filters: "workCenterType" },

33
fe/PC/src/views/basicData/BomManage/Bom.vue

@ -38,6 +38,7 @@
:Options="editOptions"
:Handle="editHandle"
:Rules="formReveal ? editRules.cerateRule : editRules.editRule"
@push="selectDataPush"
@FormSubmit="FormSubmit"
@close="FormClose"
@goBack="goBack"
@ -79,6 +80,7 @@ import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"
import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins"
import { filterSelectMixins } from '@/mixins/filter-Select'
export default {
name: "Bom",
mixins: [
@ -87,6 +89,7 @@ export default {
drawerMixins,
TableHeaderMixins,
mixins,
filterSelectMixins,
newAndEdiDialogMixins
],
computed: {
@ -141,14 +144,19 @@ export default {
distributionType: 1,
truncType: 1,
plannedSplitRule: 1,
concurrencyStamp: null
concurrencyStamp: null,
component: null
},
editOptions: {},
CreateForm: [
{ type: "input", label: "父物料号", prop: "product", colSpan: 12 },
{ type: "input", label: "子物料号", prop: 'component', colSpan: 12 },
{ type: "filterSelect", label: "父物料号", prop: "product", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/Item-Basic")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/Item-Basic', 'ItemBasic', '物料选择', this.CreateFormData) }, colSpan: 12 },
{ type: "filterSelect", label: "子物料号", prop: "component", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/Item-Basic")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/Item-Basic', 'ItemBasic', '物料选择', this.CreateFormData) }, colSpan: 12 },
{ type: "input", label: "子物料用量", prop: 'componentQty', colSpan: 12, validType:'pointNumber' },
{ type: "input", label: "子物料用量单位", prop: 'componentUom', colSpan: 12 },
{ type: "input", label: "子物料用量单位", prop: 'componentUom', disabled:"true", colSpan: 12 },
{ type: "dateTime", label: "开始时间", prop: "beginTime", colSpan: 12 },
{ type: "dateTime", label: "结束时间", prop: "endTime", colSpan: 12 },
{ type: "input", label: "ERP工序", prop: "erpOp", colSpan: 12 },
@ -161,6 +169,7 @@ export default {
],
editForm: [
{ type: "input", label: "父物料号", prop: "product",disabled:"true", colSpan: 12 },
{ type: "input", label: "子物料号", prop: 'component', disabled:"true", colSpan: 12 },
{ type: "input", label: "子物料用量", prop: 'componentQty', colSpan: 12, validType:'pointNumber' },
{ type: "input", label: "子物料用量单位", prop: 'componentUom', colSpan: 12 },
{ type: "dateTime", label: "开始时间", prop: "beginTime", colSpan: 12 },
@ -175,7 +184,7 @@ export default {
],
editRules: {
cerateRule: {
componentQty: [{ required: true, message: '不可为空', type: "number", trigger: 'blur' },],
componentQty: [{ required: true, message: '不可为空', trigger: 'blur' },],
componentUom: [{ required: true, message: '不可为空', trigger: 'blur' },],
beginTime: [{ required: true, message: '不可为空', trigger: 'blur' },],
endTime: [{ required: true, message: '不可为空', trigger: 'blur' },],
@ -183,7 +192,7 @@ export default {
component: [{ required: true, trigger: "blur", message: "不可为空" }],
},
editRule: {
componentQty: [{ required: true, message: '不可为空', type: "number", trigger: 'blur' },],
componentQty: [{ required: true, message: '不可为空', trigger: 'blur' },],
componentUom: [{ required: true, message: '不可为空', trigger: 'blur' },],
beginTime: [{ required: true, message: '不可为空', trigger: 'blur' },],
endTime: [{ required: true, message: '不可为空', trigger: 'blur' },],
@ -223,6 +232,18 @@ export default {
mounted () {
this.paging();
},
methods: {
// input
selectDataPush(val) {
if (val[1].prop == "component") {
if (this.displayDialog.newDialog) {
this.CreateFormData.componentUom = val[0].basicUom
} else {
this.editFormData.componentUom = val[0].basicUom
}
}
},
}
};
</script>
<style lang="scss" scoped>

6
fe/PC/src/views/basicData/CustomerManage/CustomerAddress.vue

@ -150,6 +150,8 @@ export default {
warehouseCode: null,
desc: null,
concurrencyStamp: null,
code: null,
customerCode: null
},
editOptions: {},
CreateForm: [
@ -163,7 +165,7 @@ export default {
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData,[
{logic:"And",column:"type",action:"==",value:"10"}
]) }, colSpan: 12 },
{ type: "input", label: "客户地址编号", prop: "code", colSpan: 12 },
{ type: "input", label: "客户地址编号", prop: "code", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "客户地址名称", prop: 'name', colSpan: 12 },
{ type: "input", label: "城市", prop: "city", colSpan: 12 },
{ type: "input", label: "地址", prop: "address", colSpan: 12 },
@ -172,6 +174,7 @@ export default {
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 },
],
editForm: [
{ type: "input", label: "客户编号", prop: 'customerCode', disabled:"true", colSpan: 12 },
{ type: "filterSelect", label: "库位编号", prop: "locationCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",[
{logic:"And",column:"type",action:"==",value:"10"}
@ -179,6 +182,7 @@ export default {
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData,[
{logic:"And",column:"type",action:"==",value:"10"}
]) }, colSpan: 12 },
{ type: "input", label: "客户地址编号", prop: "code", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "客户地址名称", prop: 'name', colSpan: 12 },
{ type: "input", label: "城市", prop: "city", colSpan: 12 },
{ type: "input", label: "地址", prop: "address", colSpan: 12 },

14
fe/PC/src/views/basicData/CustomerManage/CustomerItem.vue

@ -150,6 +150,7 @@ export default {
beginTime: null,
endTime: null,
concurrencyStamp: null,
itemCode: null
},
editOptions: {
reportGroupId: [],
@ -163,8 +164,8 @@ export default {
focus: (type,val) => { return this.getFilterList(type, val, "basedata/customer")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/customer', 'Customer', '物料选择', this.CreateFormData) }, colSpan: 12 },
{ type: "input", label: "客户物料代码", prop: "customerItemCode", colSpan: 12 },
{ type: "input", label: "包装数量", prop: "customerPackQty", colSpan: 12, validType:'pointNumber' },
{ type: "input", label: "客户物料代码", prop: "customerItemCode", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "包装数量", prop: "customerPackQty", colSpan: 12, validType:'number' },
{ type: "input", label: "包装数量单位", prop: "customerPackUom", colSpan: 12 },
{ type: "input", label: "版本", prop: "version", colSpan: 12 },
// { type: "rangeDateTime", label: "", prop: "timeRange", startDate: "beginTime", endDate: "endTime", colSpan: 24 },
@ -173,9 +174,10 @@ export default {
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 },
],
editForm: [
{ type: "input", label: "物料代码", prop: "itemCode", disabled:"true", colSpan: 12 },
{ type: "input", label: "客户代码", prop: "customerCode", disabled:"true", colSpan: 12 },
{ type: "input", label: "客户物料代码", prop: "customerItemCode", colSpan: 12 },
{ type: "input", label: "包装数量", prop: "customerPackQty", colSpan: 12, validType:'pointNumber' },
{ type: "input", label: "客户物料代码", prop: "customerItemCode", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "包装数量", prop: "customerPackQty", colSpan: 12, validType:'number' },
{ type: "input", label: "包装数量单位", prop: "customerPackUom", colSpan: 12 },
{ type: "input", label: "版本", prop: "version", colSpan: 12 },
// { type: "rangeDateTime", label: "", prop: "timeRange", startDate: "beginTime", endDate: "endTime", colSpan: 24 },
@ -188,7 +190,7 @@ export default {
customerCode: [{ required: true, trigger: "change", message: "不可为空" }],
itemCode: [{ required: true, trigger: "change", message: "不可为空" }],
customerItemCode: [{ required: true, trigger: "change", message: "不可为空" }],
customerPackQty: [{ required: true, trigger: "blur", type: "number", message: "不可为空" }],
customerPackQty: [{ required: true, trigger: "blur", message: "不可为空" }],
customerPackUom: [{ required: true, trigger: "blur", message: "不可为空" }],
beginTime: [{ required: true, trigger: "blur", message: "不可为空" }],
endTime: [{ required: true, trigger: "blur", message: "不可为空" }],
@ -196,7 +198,7 @@ export default {
editRule: {
customerItemCode: [{ required: true, trigger: "blur", message: "不可为空" }],
customerPackUom: [{ required: true, trigger: "blur", message: "不可为空" }],
customerPackQty: [{ required: true, trigger: "blur", type: "number", message: "不可为空" }],
customerPackQty: [{ required: true, trigger: "blur", message: "不可为空" }],
beginTime: [{ required: true, trigger: "blur", message: "不可为空" }],
endTime: [{ required: true, trigger: "blur", message: "不可为空" }],
}

16
fe/PC/src/views/basicData/ItemsManage/AQL.vue

@ -25,7 +25,7 @@
:httpOverallSearchData="httpOverallSearchData"
>
</tablePagination>
<!-- 新增与编辑 -->
<!-- 新增与编辑 @changeSelect="changeSelect"-->
<newAndEdiDialog
:loading="Loading.newAndEdiLoading"
:active="active"
@ -41,6 +41,7 @@
@FormSubmit="FormSubmit"
@close="FormClose"
@goBack="goBack"
></newAndEdiDialog>
<!-- 新导入 disabledMethod 导入方式禁用 disabledIsAllowPartImport 是否局部导入禁用-->
<!-- methodValue 导入方式默认选项 是否局部导入 默认选项 -->
@ -218,6 +219,19 @@ export default {
mounted () {
this.paging();
},
methods: {
// changeSelect(prop, val) {
// if (prop == 'isUsePercent') {
// if (val) {
// this.editRules.cerateRule.samplePercent[1].required = true
// this.editRules.editRule.samplePercent[1].required = true
// } else {
// this.editRules.cerateRule.samplePercent[1].required = false
// this.editRules.editRule.samplePercent[1].required = false
// }
// }
// }
}
};
</script>
<style lang="scss" scoped>

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

@ -153,7 +153,7 @@ export default {
},
editOptions: {},
CreateForm: [
{ type: "input", label: "供应商代码", prop: "code", colSpan: 12 },
{ type: "input", label: "供应商代码", prop: "code", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "供应商名称", prop: "name", colSpan: 12 },
{ type: "select", label: "状态", prop: "isActive", options: "openToCloseBit", colSpan: 12 },
{ type: "select", label: "类型", prop: "type", options: "supplierType", colSpan: 12 },

2
fe/PC/src/views/basicData/WarehouseManage/Dock.vue

@ -150,7 +150,7 @@ export default {
{ type: "filterSelect", label: "默认库位编号", prop: "defaultLocationCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData) }, colSpan: 12 },
{ type: "input", label: "收货口编号", prop: "code", colSpan: 12 },
{ type: "input", label: "收货口编号", prop: "code", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "收货口名称", prop: 'name', colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 },
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 },

74
fe/PC/src/views/basicData/WarehouseManage/LocationGroup.vue

@ -128,7 +128,7 @@ export default {
//
CreateFormData: {
remark: null,
warehouseCode: null,
warehouseCode: localStorage.getItem('warehouseCode'),
name: null,
description: null,
areaCode: null,
@ -174,7 +174,7 @@ export default {
//
editFormData: {
remark: null,
warehouseCode: null,
warehouseCode: localStorage.getItem('warehouseCode'),
name: null,
description: null,
areaCode: null,
@ -206,28 +206,30 @@ export default {
{ type: "filterSelect", label: "区域代码", prop: "areaCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/area")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/area', 'Area', '区域选择', this.CreateFormData) }, colSpan: 12 },
{ type: "input", label: "库位组代码", prop: "code", colSpan: 12 },
{ type: "input", label: "库位组代码", prop: "code", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "库位组名称", prop: 'name', colSpan: 12 },
{ type: "select", label: "类型", prop: "groupType", options: "locationType", colSpan: 12 },
{ type: "select", label: "状态", prop: "defaultInventoryStatus", options: "inventoryStage", colSpan: 12 },
{ type: "input", label: "拣料优先级", prop: "pickPriority", colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 },
{ type: "input", label: "溢流库位组", prop: "overflowLocationGroup", colSpan: 12 },
{ type: "select", label: "是否混物品", prop: "enableMixItem", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否混批次", prop: "enableMixLot", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否混状态", prop: "enableMixStatus", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否负库存", prop: "enableNegative", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否保留零库存", prop: "enableKeepZero", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否盘点", prop: "enableOpportunityCount", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否领料", prop: "enablePick", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否过量领料", prop: "enableOverPick", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否整包存储", prop: "enableWholeStore", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否散件存储", prop: "enableBreakStore", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否发出", prop: "enableShip", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否接收", prop: "enableReceive", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否退货给供应商", prop: "enableReturnToSupplier", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否接收客户退货", prop: "enableReturnFromCustomer", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否拆箱", prop: "enableSplitBox", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以混物品", prop: "enableMixItem", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以混批次", prop: "enableMixLot", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以混状态", prop: "enableMixStatus", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以负库存", prop: "enableNegative", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以保留零库存", prop: "enableKeepZero", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以盘点", prop: "enableOpportunityCount", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以领料", prop: "enablePick", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以过量领料", prop: "enableOverPick", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以整包存储", prop: "enableWholeStore", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以散件存储", prop: "enableBreakStore", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以发出", prop: "enableShip", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以接收", prop: "enableReceive", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以退货给供应商", prop: "enableReturnToSupplier", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以接收客户退货", prop: "enableReturnFromCustomer", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否可以拆箱", prop: "enableSplitBox", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否可以拆托", prop: "enableSplitPallet", options: "whetherOrNot", colSpan: 12 },
{ type: "input", label: "仓库", prop: 'warehouseCode', disabled:"true", colSpan: 12 },
// { type: "objectSelect", label: "", prop: "locSwitch", showProp: "enableMixItem", options: "whetherOrNot", colSpan: 12 },
// { type: "objectSelect", label: "", prop: "locSwitch", showProp: "enableMixLot", options: "whetherOrNot", colSpan: 12 },
// { type: "objectSelect", label: "", prop: "locSwitch", showProp: "enableMixStatus", options: "whetherOrNot", colSpan: 12 },
@ -255,21 +257,23 @@ export default {
{ type: "input", label: "拣料优先级", prop: "pickPriority", colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 },
{ type: "input", label: "溢流库位组", prop: "overflowLocationGroup", colSpan: 12 },
{ type: "select", label: "是否混物品", prop: "enableMixItem", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否混批次", prop: "enableMixLot", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否混状态", prop: "enableMixStatus", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否负库存", prop: "enableNegative", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否保留零库存", prop: "enableKeepZero", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否盘点", prop: "enableOpportunityCount", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否领料", prop: "enablePick", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否过量领料", prop: "enableOverPick", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否整包存储", prop: "enableWholeStore", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否散件存储", prop: "enableBreakStore", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否发出", prop: "enableShip", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否接收", prop: "enableReceive", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否退货给供应商", prop: "enableReturnToSupplier", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否接收客户退货", prop: "enableReturnFromCustomer", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否拆箱", prop: "enableSplitBox", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以混物品", prop: "enableMixItem", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以混批次", prop: "enableMixLot", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以混状态", prop: "enableMixStatus", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以负库存", prop: "enableNegative", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以保留零库存", prop: "enableKeepZero", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以盘点", prop: "enableOpportunityCount", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以领料", prop: "enablePick", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以过量领料", prop: "enableOverPick", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以整包存储", prop: "enableWholeStore", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以散件存储", prop: "enableBreakStore", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以发出", prop: "enableShip", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以接收", prop: "enableReceive", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以退货给供应商", prop: "enableReturnToSupplier", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "可以接收客户退货", prop: "enableReturnFromCustomer", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否可以拆箱", prop: "enableSplitBox", options: "whetherOrNot", colSpan: 12 },
{ type: "select", label: "是否可以拆托", prop: "enableSplitPallet", options: "whetherOrNot", colSpan: 12 },
{ type: "input", label: "仓库", prop: 'warehouseCode', disabled:"true", colSpan: 12 },
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 },
],
editRules: {
@ -278,13 +282,13 @@ export default {
{ required: true, trigger: "blur", message: "不可为空" },
],
areaCode: [{ required: true, trigger: "change", message: "不可为空" }],
// warehouseCode: [{ required: true, trigger: "blur", message: "" }],
pickPriority: [{ required: true, trigger: "blur", message: "不可为空" }],
name: [{ required: true, trigger: "blur", message: "不可为空" }],//
},
editRule: {
name: [{ required: true, trigger: "blur", message: "不可为空" }],//
areaCode: [{ required: true, trigger: "change", message: "不可为空" }],
// warehouseCode: [{ required: true, trigger: "blur", message: "" }],
pickPriority: [{ required: true, trigger: "blur", message: "不可为空" }],
}
},
};

2
fe/PC/src/views/basicData/WarehouseManage/WorkGroup.vue

@ -126,7 +126,7 @@ export default {
},
editOptions: {},
CreateForm: [
{ type: "input", label: "工作组代码", prop: "code", colSpan: 12 },
{ type: "input", label: "工作组代码", prop: "code", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "工作组名称", prop: 'name', colSpan: 12 },
{ type: "input", label: "仓库代码", prop: 'warehouseCode', disabled:"true", colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 },

4
fe/PC/src/views/basicData/WorkshopManage/ProductionLine.vue

@ -155,7 +155,7 @@ export default {
type: []
},
CreateForm: [
{ type: "input", label: "生产线代码", prop: "code", colSpan: 12 },
{ type: "input", label: "生产线代码", prop: "code", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "生产线名称", prop: 'name', colSpan: 12 },
{ type: "select", label: "类型", prop: "type", options: "productionLineType", colSpan: 12 },
{ type: "filterSelect", label: "车间代码", prop: "workshopCode", optionsLabel: "name", optionsValue: "code",
@ -174,7 +174,7 @@ export default {
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 },
],
editForm: [
{ type: "input", label: "生产线代码", disabled:"true", prop: "code", colSpan: 12 },
{ type: "input", label: "生产线代码", disabled:"true", prop: "code", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "生产线名称", prop: 'name', colSpan: 12 },
{ type: "select", label: "类型", prop: "type", options: "productionLineType", colSpan: 12 },
{ type: "filterSelect", label: "车间代码", prop: "workshopCode", optionsLabel: "name", optionsValue: "code",

2
fe/PC/src/views/basicData/WorkshopManage/Shift.vue

@ -130,7 +130,7 @@ export default {
},
editOptions: {},
CreateForm: [
{ type: "input", label: "班次代码", prop: "code", colSpan: 12 },
{ type: "input", label: "班次代码", prop: "code", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "班次名称", prop: "name", colSpan: 12 },
{ type: "select", label: "结束到下一天", prop: "endAtNextDay", options: "whetherOrNot", colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 },

2
fe/PC/src/views/basicData/WorkshopManage/Team.vue

@ -126,7 +126,7 @@ export default {
},
editOptions: {},
CreateForm: [
{ type: "input", label: "班组代码", prop: "code", colSpan: 12 },
{ type: "input", label: "班组代码", prop: "code", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "班组名称", prop: 'name', colSpan: 12 },
{ type: "input", label: "成员", prop: "members", colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 },

16
fe/PC/src/views/basicData/WorkshopManage/WorkCenter.vue

@ -133,7 +133,7 @@ export default {
description: null,
type: 1,
productionLineCode: null,
rawLocation: null,
rawLocationCode: null,
productLocation: null,
remark: null
},
@ -144,7 +144,7 @@ export default {
description: null,
type: 1,
productionLineCode: null,
rawLocation: null,
rawLocationCode: null,
productLocation: null,
concurrencyStamp: null,
remark: null
@ -154,13 +154,13 @@ export default {
{ type: "filterSelect", label: "生产线编号", prop: "productionLineCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/productionLine")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/productionLine', 'ProductionLine', '生产线选择', this.CreateFormData) }, colSpan: 12 },
{ type: "filterSelect", label: "原料库位", prop: "rawLocation", optionsLabel: "name", optionsValue: "code",
{ type: "filterSelect", label: "原料库位", prop: "rawLocationCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData) }, colSpan: 12 },
{ type: "filterSelect", label: "成品编号", prop: "productLocation", optionsLabel: "name", optionsValue: "code",
{ type: "filterSelect", label: "成品库位", prop: "productLocation", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData) }, colSpan: 12 },
{ type: "input", label: "工作站编号", prop: "code", colSpan: 12 },
{ type: "input", label: "工作站编号", prop: "code", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "工作站名称", prop: 'name', colSpan: 12 },
{ type: "select", label: "类型", prop: "type", options: "workCenterType", colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 },
@ -170,13 +170,13 @@ export default {
{ type: "filterSelect", label: "生产线编号", prop: "productionLineCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/productionLine")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/productionLine', 'ProductionLine', '生产线选择', this.editFormData) }, colSpan: 12 },
{ type: "filterSelect", label: "原料库位", prop: "rawLocation", optionsLabel: "name", optionsValue: "code",
{ type: "filterSelect", label: "原料库位", prop: "rawLocationCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData) }, colSpan: 12 },
{ type: "filterSelect", label: "成品编号", prop: "productLocation", optionsLabel: "name", optionsValue: "code",
{ type: "filterSelect", label: "成品库位", prop: "productLocation", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData) }, colSpan: 12 },
{ type: "input", label: "工作站编号", prop: "code", colSpan: 12 },
{ type: "input", label: "工作站编号", prop: "code", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "工作站名称", prop: 'name', colSpan: 12 },
{ type: "select", label: "类型", prop: "type", options: "workCenterType", colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 },

4
fe/PC/src/views/basicData/documentSetting/documentBasic.vue

@ -137,7 +137,7 @@ export default {
},
CreateForm: [
{ type: "input", label: "名称", prop: 'name', colSpan: 12 },
{ type: "input", label: "编码", prop: 'code', colSpan: 12 },
{ type: "input", label: "编码", prop: 'code', validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 },
{ type: "select", label: "事务类型", prop: "transactionType", options: "TransTypeBaseForStr", colSpan: 12 },
{ type: "input", label: "单号前缀", prop: "numberPrefix", colSpan: 12 },
@ -148,7 +148,7 @@ export default {
],
editForm: [
{ type: "input", label: "名称", prop: 'name', colSpan: 12 },
{ type: "input", label: "编码", prop: 'code', colSpan: 12 },
{ type: "input", label: "编码", prop: 'code', validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 },
{ type: "select", label: "事务类型", prop: "transactionType", options: "TransTypeBaseForStr", colSpan: 12 },
{ type: "input", label: "单号前缀", prop: "numberPrefix", colSpan: 12 },

2
fe/PC/src/views/profileuser/index.vue

@ -96,7 +96,7 @@ export default {
},
methods: {
getUser() {
loadLoginUserInfo().then((response) => {
loadLoginUserInfo(this.$store.getters.name.id).then((response) => {
this.user = response;
});
},

Loading…
Cancel
Save