commit by yzf

master
Yang 3 years ago
parent e84c566314
commit 00022dc472

@ -0,0 +1,64 @@
import http from '../http';
//获取协同集合
export async function getTeamworkPageList(param) {
param = param || { FPageIndex: 1, FPageSize: 10 };
let result = {};
await http.post('/api/HalfMaterialTeamwork/GetTeamworkPageList', param).then((data) => {
result = data;
});
return result;
}
//获取流程集合
export async function getTeamProcessList(teamId) {
let param = { FPageIndex: 1, FPageSize: 999, FTeamID: teamId };
let result = [];
await http.post('/api/HalfMaterialTeamwork/GetTeamProcessList', param).then((data) => {
result = data.Data.List || [];
});
return result;
}
//获取协同视图信息
export async function getTeamworkView(param) {
let result = {};
await http.post('/api/HalfMaterialTeamwork/GetTeamworkView', param).then((data) => {
result = data.Data;
});
return result;
}
//下载BOM
export async function downloadBOM(teamId) {
let param = { FTeamID: teamId };
let result = [];
await http.post('/api/HalfMaterialTeamwork/DockDownBomData', param).then((data) => {
result = data;
});
return result;
}
export async function EditTypeList(param) {
let result = [];
await http.post('/api/HalfMaterialTeamwork/EditTypeList', param).then((data) => {
result = data;
});
return result;
}
export async function InsertDataModel(param) {
let result = [];
await http.post('/api/HalfMaterialTeamwork/InsertDataModel', param).then((data) => {
result = data;
});
return result;
}
export async function GetMaterialTeamworkPageList(param) {
let result = [];
await http.post('/api/HalfMaterialTeamwork/GetTeamworkPageList', param).then((data) => {
result = data;
});
return result;
}

@ -123,7 +123,7 @@ import {
} from '/src/api/api/formula'; } from '/src/api/api/formula';
import{ import{
InsertDataModel InsertDataModel
} from'/src/api/api/materialteamwork' } from'/src/api/api/halfmaterialteamwork'
export default { export default {
components: { components: {
MaterialSelect MaterialSelect
@ -330,7 +330,28 @@ export default {
//- //-
async submitClick(isCreate) { async submitClick(isCreate) {
let postData = {"FTestCode":this.formula1,"FNewTestCode":this.formula2,"FCreateFactoryID":this.factoryID}; let postData = {"FTestCode":this.formula1,"FNewTestCode":this.formula2,"FCreateFactoryID":this.factoryID};
let result=await InsertDataModel(postData);
let ids = layer.load(0)
try {
let result=await InsertDataModel(postData);
if (result.Code== 200) {
layer.msg('创建成功');
this.cancelClick(true);
} else {
layer.msg('创建失败');
}
} catch (e) { }
layer.close(ids);
// if(result.Code==200){
// setTimeout(() => {
// layer.close(ids);
// }, 3000);
// }
}, },
//- //-
sureTextCode(postData) { sureTextCode(postData) {

File diff suppressed because one or more lines are too long

@ -73,7 +73,7 @@ import {
import ShowData1 from '../half/components/ShowData1.vue'; import ShowData1 from '../half/components/ShowData1.vue';
import EditMateria from '../half/components/EditMateria.vue'; import EditMateria from '../half/components/EditMateria.vue';
import EditView from '../half/components/EditView.vue'; import EditView from '../half/components/EditView.vue';
import {GetMaterialTeamworkPageList} from"/src/api/api/materialteamwork" import {GetMaterialTeamworkPageList} from"/src/api/api/halfmaterialteamwork"
import '@layui/layui-vue/es/checkbox/index.css'; import '@layui/layui-vue/es/checkbox/index.css';
import '@layui/layui-vue/es/radio/index.css'; import '@layui/layui-vue/es/radio/index.css';

@ -246,7 +246,7 @@ export default {
} }
this.postData.FPageIndex = this.pageInfo.current; this.postData.FPageIndex = this.pageInfo.current;
this.postData.FPageSize = this.pageInfo.limit; this.postData.FPageSize = this.pageInfo.limit;
let result = await getPageList(this.postData, "MaterialTask"); let result = await getPageList(this.postData, "HalfMaterialTask");
debugger debugger
let $this=this; let $this=this;
this.dataList = result.Data.List.map(function (item) { this.dataList = result.Data.List.map(function (item) {

Loading…
Cancel
Save