+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -363,42 +413,86 @@
查询
-
-
-
-
-
- {{scope.row[item.columnProp]}}
-
-
-
-
+
+
+ 可选代理商:
+
+
+
+
+
+
+
+
+
+
+
+ 添加>>
+
+
+ 删除<<
+
+
+
+ 已有代理商:
+
+
+
+
+
+
+
+
+
+
- 确认
关闭
@@ -421,6 +515,10 @@
savePartItemValue, // 编辑属性值
getAgentList, // 获取代理商列表
getPartAgent, // 获取材料代理商
+ getAgentListBy, // 根据条件查询可选代理商
+ addPartAgent, // 新增物料代理商
+ deletePartAgent, // 删除物料代理商
+ deleteAgent // 删除物料代理商(单删)
} from '@/api/part/partInformation.js'
import {
getFileContentList, // 获取材料单附件列表
@@ -445,7 +543,7 @@
modalData: {
deep: true,
handler: function (newV, oldV) {
- this.modalData.partNo = this.modalData.umId.toUpperCase()
+ this.modalData.partNo = this.modalData.partNo.toUpperCase()
this.modalData.erpPartNo = this.modalData.erpPartNo.toUpperCase()
}
}
@@ -544,6 +642,10 @@
availableValueList:[],
agentList: [],
agentSelections: [],
+ agentSelections1: [],
+ agentSelections2: [],
+ agentList1: [],
+ agentList2: [],
// ======== 列表表头 ========
columnList: [
{
@@ -564,24 +666,24 @@
fixed: '',
columnWidth: 120
},
- {
- userId: this.$store.state.user.name,
- functionId: 104001,
- serialNumber: '104001Table1ERPPartNo',
- tableId: '104001Table1',
- tableName: '材料信息表',
- columnProp: 'erpPartNo',
- headerAlign: 'center',
- align: 'left',
- columnLabel: 'ERP物料编码',
- columnHidden: false,
- columnImage: false,
- columnSortable: false,
- sortLv: 0,
- status: true,
- fixed: '',
- columnWidth: 120
- },
+ // {
+ // userId: this.$store.state.user.name,
+ // functionId: 104001,
+ // serialNumber: '104001Table1ERPPartNo',
+ // tableId: '104001Table1',
+ // tableName: '材料信息表',
+ // columnProp: 'erpPartNo',
+ // headerAlign: 'center',
+ // align: 'left',
+ // columnLabel: 'ERP物料编码',
+ // columnHidden: false,
+ // columnImage: false,
+ // columnSortable: false,
+ // sortLv: 0,
+ // status: true,
+ // fixed: '',
+ // columnWidth: 120
+ // },
{
userId: this.$store.state.user.name,
functionId: 104001,
@@ -1218,6 +1320,13 @@
],
// ======== 必填规则 ========
rules: {
+ partNo: [
+ {
+ required: true,
+ message: ' ',
+ trigger: 'change'
+ }
+ ],
partDesc: [
{
required: true,
@@ -1396,7 +1505,7 @@
let tempData = {
site: this.$store.state.user.site,
partNo: this.partCurrentRow.partNo,
- agentId: this.partCurrentRow.agentId
+ //agentId: this.partCurrentRow.agentId
}
getPartAgent(tempData).then(({data}) => {
if (data && data.code === 0) {
@@ -1527,21 +1636,21 @@
* 选择代理商
*/
getAgentList () {
- // 先清空缓存选中
- this.$nextTick(() => this.$refs.agentTable.clearSelection())
- // 拿到选中的代理商id
- let tempDataList = this.modalData.agentId.split(';')
+ // // 先清空缓存选中
+ // this.$nextTick(() => this.$refs.agentTable.clearSelection())
+ // // 拿到选中的代理商id
+ // let tempDataList = this.modalData.agentId.split(';')
// 查询所有代理商
- getAgentList(this.agentData).then(({data}) => {
+ getAgentListBy(this.agentData).then(({data}) => {
if (data && data.code === 0) {
- this.agentList = data.rows
- this.agentList.forEach(val => {
- // 回显选中的代理商
- if (tempDataList.includes(val.agentId)) {
- this.$nextTick(() => this.$refs.agentTable.toggleRowSelection(val, true))
- }
- })
- this.agentModelFlag = true
+ this.agentList1 = data.rows
+ // this.agentList.forEach(val => {
+ // // 回显选中的代理商
+ // if (tempDataList.includes(val.agentId)) {
+ // this.$nextTick(() => this.$refs.agentTable.toggleRowSelection(val, true))
+ // }
+ // })
+ // this.agentModelFlag = true
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
@@ -1570,7 +1679,7 @@
*/
getRowKeys (row) {
// 唯一值,一般都为id
- return row.agentId;
+ return row.agentId
},
/**
* 确认多选代理商
@@ -1588,11 +1697,123 @@
this.agentModelFlag = false
},
+ savePartAgent () {
+ this.agentSelections1 = null
+ this.agentSelections2 = null
+ getAgentList(this.partCurrentRow).then(({data}) => {
+ this.agentList1 = data.row1
+ this.agentList2 = data.row2
+ })
+ this.agentData = {
+ site: this.$store.state.user.site,
+ agentId: '',
+ agentName: '',
+ }
+ this.agentModelFlag = true
+ },
+ // 可选代理商
+ agentClickRow1 (row) {
+ this.$refs.agentTable1.toggleRowSelection(row);
+ },
+ // 已有代理商
+ agentClickRow2 (row) {
+ this.$refs.agentTable2.toggleRowSelection(row);
+ },
+ selectionAgent1 (val) {
+ this.agentSelections1 = val
+ },
+ selectionAgent2 (val) {
+ this.agentSelections2 = val
+ },
+ // 添加代理商
+ addAgent () {
+ if(this.agentSelections1 == null || this.agentSelections1.length === 0){
+ this.$message.warning('请选择可选代理商!')
+ return
+ }
+ let inData = {
+ site: this.$store.state.user.site,
+ partNo: this.partCurrentRow.partNo,
+ agentList: this.agentSelections1
+ }
+ addPartAgent(inData).then(({data}) => {
+ if (data && data.code === 0) {
+ getAgentList(this.partCurrentRow).then(({data}) => {
+ this.agentList1 = data.row1
+ this.agentList2 = data.row2
+ })
+ this.agentSelections1 = []
+ } else {
+ this.$alert(data.msg, '错误', {
+ confirmButtonText: '确定'
+ })
+ }
+ })
+ },
+ // 删除物料代理商
+ deleteAgent () {
+ if(this.agentSelections2 == null || this.agentSelections2.length === 0){
+ this.$message.warning('请选择已有代理商!')
+ return
+ }
+ let inData = {
+ site: this.$store.state.user.site,
+ partNo: this.partCurrentRow.partNo,
+ agentList: this.agentSelections2
+ }
+ deletePartAgent(inData).then(({data}) => {
+ if (data && data.code === 0) {
+ getAgentList(this.partCurrentRow).then(({data}) => {
+ this.agentList1 = data.row1
+ this.agentList2 = data.row2
+ })
+ this.agentSelections2 = []
+ } else {
+ this.$alert(data.msg, '错误', {
+ confirmButtonText: '确定'
+ })
+ }
+ })
+ },
+ // 单删
+ deleteAgent2 (row) {
+ this.$confirm(`是否删除该代理商?`, '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ deleteAgent(row).then(({data}) => {
+ if (data && data.code === 0) {
+ this.getPartAgent()
+ this.$message({
+ message: '操作成功',
+ type: 'success',
+ duration: 1500,
+ onClose: () => {}
+ })
+ } else {
+ this.$alert(data.msg, '错误', {
+ confirmButtonText: '确定'
+ })
+ }
+ })
+ }).catch(() => {
+ })
+ },
+ // 关闭后刷新列表
+ refreshDetailList(){
+ this.getPartAgent()
+ },
+
// ======== 新增/编辑/删除方法 ========
/**
* 材料信息新增/编辑
*/
saveData () {
+ if (this.modalData.partNo === '' || this.modalData.partNo == null) {
+ this.$message.warning('请填写材料编码!')
+ return
+ }
if (this.modalData.partDesc === '' || this.modalData.partDesc == null) {
this.$message.warning('请填写材料描述!')
return
@@ -1625,10 +1846,10 @@
this.$message.warning('请选择是否在用!')
return
}
- if (this.modalData.agentId === '' || this.modalData.agentId == null) {
- this.$message.warning('请选择代理商!')
- return
- }
+ // if (this.modalData.agentId === '' || this.modalData.agentId == null) {
+ // this.$message.warning('请选择代理商!')
+ // return
+ // }
if (this.modalData.flag === '1') {
partInformationSave(this.modalData).then(({data}) => {
if (data && data.code === 0) {
diff --git a/src/views/modules/part/routingManagement.vue b/src/views/modules/part/routingManagement.vue
index ad13d03..ea625be 100644
--- a/src/views/modules/part/routingManagement.vue
+++ b/src/views/modules/part/routingManagement.vue
@@ -97,7 +97,7 @@
-
+
@@ -112,7 +112,7 @@
:editable=false>
-
+
-
+
保存
@@ -136,12 +136,14 @@
-
+
新增
删除
编辑
+ Buildable
+ Obsolete
@@ -159,11 +161,12 @@
-
-
-
-
-
+
+
+
+
+
+
@@ -175,7 +178,7 @@
-
+
新增
@@ -227,7 +230,7 @@
-
+
@@ -236,16 +239,17 @@
-
-
-
-
-
+
+
+
+
+
+
-
+
@@ -358,36 +362,39 @@
-
-
-
+
+
+
-
-
+
+
+
+
+
+
-
- 调机时的人员等级
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
@@ -395,25 +402,22 @@
人员等级
-
-
+
+ 调机时的人员等级
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
+
@@ -438,6 +442,7 @@ import {
queryRoutingDetail, // 查routing明细
routingDetailSave, // routing明细新增
routingDetailUpdate, // routing明细编辑
+ updateAlternativeStatus, // 修改明细状态
routingDetailDelete, // routing明细删除
queryPartList, // 查询物料清单
queryRoutingComponent, // 查询routing子明细
@@ -1092,7 +1097,7 @@ export default {
serialNumber: '104003Table2NoteText',
tableId: '104003Table2',
tableName: 'Routing工序表',
- columnProp: 'componentNoteText',
+ columnProp: 'noteText',
headerAlign: 'center',
align: 'left',
columnLabel: '备注',
@@ -1135,13 +1140,6 @@ export default {
trigger: 'change'
}
],
- phaseOutDate: [
- {
- required: true,
- message: ' ',
- trigger: 'change'
- }
- ],
routingRevision: [
{
required: true,
@@ -1321,7 +1319,7 @@ export default {
partNo: '',
partDesc: '',
routingRevision: '',
- routingType: '',
+ routingType: 'Manufacturing',
noteText: '',
phaseInDate: new Date(+ new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, ''),
phaseOutDate: '',
@@ -1344,7 +1342,7 @@ export default {
forLotByDay: '',
minLotQty: '',
detailNoteText: '',
- status: 'Tentative',
+ status: '',
createBy: this.$store.state.user.name
}
this.subDetailList = []
@@ -1520,7 +1518,7 @@ export default {
runTimeCode: '',
laborRunFactor: 100,
laborSetupTime: '',
- crewSize: '',
+ crewSize: 1,
setupCrewSize: 1,
outsideOpItem: '',
machineNo: '',
@@ -1601,10 +1599,10 @@ export default {
this.$message.warning('请选择开始时间!')
return
}
- if (this.modalData.phaseOutDate === '' || this.modalData.phaseOutDate == null) {
- this.$message.warning('请选择结束时间!')
- return
- }
+ // if (this.modalData.phaseOutDate === '' || this.modalData.phaseOutDate == null) {
+ // this.$message.warning('请选择结束时间!')
+ // return
+ // }
if (this.modalData.routingRevision === '' || this.modalData.routingRevision == null) {
this.$message.warning('请填写Routing版本号!')
return
@@ -2143,14 +2141,73 @@ export default {
}).catch(() => {
})
},
+ /**
+ * 修改替代状态为 Buildable
+ */
+ updateStatusToBuildable () {
+ this.$confirm(`是否修改状态为Buildable?`, '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ updateAlternativeStatus(this.detailData).then(({data}) => {
+ if (data && data.code === 0) {
+ this.detailDataList = data.rows.detailDataList
+ this.detailData = data.rows.detailData
+ this.subDetailList = data.rows.subDetailList
+ this.$message({
+ message: '操作成功',
+ type: 'success',
+ duration: 1500,
+ onClose: () => {}
+ })
+ } else {
+ this.$alert(data.msg, '错误', {confirmButtonText: '确定'})
+ // 刷新替代和子明细
+ this.alternativeChange()
+ }
+ })
+ }).catch(() => {
+ })
+ },
+ /**
+ * 修改替代状态为 Obsolete
+ */
+ updateStatusToObsolete () {
+ this.$confirm(`是否修改状态为Obsolete?`, '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ updateAlternativeStatus(this.detailData).then(({data}) => {
+ if (data && data.code === 0) {
+ this.detailDataList = data.rows.detailDataList
+ this.detailData = data.rows.detailData
+ this.subDetailList = data.rows.subDetailList
+ this.$message({
+ message: '操作成功',
+ type: 'success',
+ duration: 1500,
+ onClose: () => {}
+ })
+ } else {
+ this.$alert(data.msg, '错误', {confirmButtonText: '确定'})
+ // 刷新替代和子明细
+ this.alternativeChange()
+ }
+ })
+ }).catch(() => {
+ })
+ },
/**
* 替代改变事件
*/
alternativeChange () {
queryRoutingComponent(this.detailData).then(({data}) => {
if (data && data.code === 0) {
+ this.detailDataList = data.rows.detailDataList
this.detailData = data.rows.detailData
- this.subDetailList = data.rows.componentList
+ this.subDetailList = data.rows.subDetailList
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
diff --git a/src/views/modules/proofing/requestForProofing.vue b/src/views/modules/proofing/requestForProofing.vue
index 05bd093..3113c85 100644
--- a/src/views/modules/proofing/requestForProofing.vue
+++ b/src/views/modules/proofing/requestForProofing.vue
@@ -148,27 +148,27 @@
客户
-
+
跟单员
-
+
项目
-
+
工程师
-
+
项目物料
-
+
diff --git a/src/views/modules/quotation/requestForQuote.vue b/src/views/modules/quotation/requestForQuote.vue
index e3eef80..df4d424 100644
--- a/src/views/modules/quotation/requestForQuote.vue
+++ b/src/views/modules/quotation/requestForQuote.vue
@@ -148,27 +148,27 @@
客户
-
+
跟单员
-
+
项目
-
+
报价专员
-
+
项目物料
-
+
diff --git a/src/views/modules/test/requestForTest.vue b/src/views/modules/test/requestForTest.vue
new file mode 100644
index 0000000..7ced838
--- /dev/null
+++ b/src/views/modules/test/requestForTest.vue
@@ -0,0 +1,2481 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ➞
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 新增
+ 删除
+
+ {{ "导出" }}
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row[item.columnProp] }}
+
+
+
+
+
+ 编辑
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 客户
+
+
+
+ 跟单员
+
+
+
+
+
+ 项目
+
+
+
+ 工程师
+
+
+
+
+
+ 项目物料
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上传文件
+
+
+
+
+ {{scope.row[item.columnProp]}}
+
+
+
+
+
+ 删除
+
+
+
+
+
+ 保存
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+ {{scope.row[item.columnProp]}}
+
+
+
+
+
+
+ 确认
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 录入测试结果
+ 录入送样信息
+ 客户回复
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row[item.columnProp]}}
+
+
+
+
+
+ 下载
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/test/test_upload_file.vue b/src/views/modules/test/test_upload_file.vue
new file mode 100644
index 0000000..ec4f111
--- /dev/null
+++ b/src/views/modules/test/test_upload_file.vue
@@ -0,0 +1,136 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 将文件拖到此处,或点击上传
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+