更新
This commit is contained in:
@@ -41,6 +41,17 @@ export function initDepartmentName() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function yanzheng(num) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: '库存管理_供货商验证_查询数据',
|
||||||
|
param: '供货商=' + num
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
export function initMaterialCategory(check, DepartmentValue) {
|
export function initMaterialCategory(check, DepartmentValue) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFil
|
|||||||
export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx`
|
export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx`
|
||||||
export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx`
|
export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx`
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
baseURL: `http://192.168.0.110:8002/submit/MESCommonBase.ashx`,
|
baseURL: `http://192.168.1.231:8411/submit/MESCommonBase.ashx`,
|
||||||
timeout: 1500000 // 请求超时时间
|
timeout: 1500000 // 请求超时时间
|
||||||
})
|
})
|
||||||
export default service
|
export default service
|
||||||
|
|||||||
@@ -566,7 +566,8 @@ import {
|
|||||||
getMaterial,
|
getMaterial,
|
||||||
searchmateria5,
|
searchmateria5,
|
||||||
Dahui,
|
Dahui,
|
||||||
Tongguo
|
Tongguo,
|
||||||
|
yanzheng
|
||||||
} from '@/api/PurchasingCenter/MaterialManagement'
|
} from '@/api/PurchasingCenter/MaterialManagement'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
|
||||||
@@ -755,14 +756,20 @@ export default {
|
|||||||
AddGonghuoshang(formName) {
|
AddGonghuoshang(formName) {
|
||||||
this.$refs[formName].validate((valid) => {
|
this.$refs[formName].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
AddGonghuoshang(this.form3.供货商名称).then(response => {
|
yanzheng(this.form3.供货商名称).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].Column1 === 0) {
|
||||||
this.$message.success('添加成功')
|
AddGonghuoshang(this.form3.供货商名称).then(response => {
|
||||||
this.dialogFormVisible3 = false
|
if (response.data[0].result === '1') {
|
||||||
this.getGonghuoshang()
|
this.$message.success('添加成功')
|
||||||
|
this.dialogFormVisible3 = false
|
||||||
|
this.getGonghuoshang()
|
||||||
|
} else {
|
||||||
|
this.dialogFormVisible3 = false
|
||||||
|
this.$message.error('添加失败')
|
||||||
|
}
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.dialogFormVisible3 = false
|
this.$message.error('该供货商已存在')
|
||||||
this.$message.error('添加失败')
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -852,7 +859,7 @@ export default {
|
|||||||
this.form.物料型号 = row.物料型号
|
this.form.物料型号 = row.物料型号
|
||||||
this.form.计量单位流水号 = row.计量单位流水号
|
this.form.计量单位流水号 = row.计量单位流水号
|
||||||
this.form.物料来源流水号 = row.物料来源流水号
|
this.form.物料来源流水号 = row.物料来源流水号
|
||||||
this.form.GonghuoshangValue = parseInt(row.供货商流水号)
|
parseInt(row.供货商流水号) === 721 ? this.form.GonghuoshangValue = 1 : this.form.GonghuoshangValue = parseInt(row.供货商流水号)
|
||||||
this.getSelect(initMaterialCategory, ['物料类别', '物料类别流水号'], 'MaterialCategory1')
|
this.getSelect(initMaterialCategory, ['物料类别', '物料类别流水号'], 'MaterialCategory1')
|
||||||
this.getSelect(initMaterialVariety, ['物料品种', '物料品种流水号'], 'MaterialVariety1', row.物料类别流水号)
|
this.getSelect(initMaterialVariety, ['物料品种', '物料品种流水号'], 'MaterialVariety1', row.物料类别流水号)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user