|
|
|
|
@ -4,12 +4,22 @@
|
|
|
|
|
<lay-container class="dataInfo">
|
|
|
|
|
|
|
|
|
|
<lay-row space="10">
|
|
|
|
|
<lay-col md="6"><div class="grid-demo" style="text-align: right;">原配方:</div></lay-col>
|
|
|
|
|
<lay-col md="18"><div class="grid-demo" style="text-align: left;">{{dataInfoObj.FTestCode}}+{{dataInfoObj.FVersionCode}}+{{dataInfoObj.FDesc}}</div></lay-col>
|
|
|
|
|
<lay-col md="6">
|
|
|
|
|
<div class="grid-demo" style="text-align: right;">原配方:</div>
|
|
|
|
|
</lay-col>
|
|
|
|
|
<lay-col md="18">
|
|
|
|
|
<div class="grid-demo" style="text-align: left;">
|
|
|
|
|
{{ dataInfoObj.FTestCode }}+{{ dataInfoObj.FVersionCode }}+{{ dataInfoObj.FDesc }}</div>
|
|
|
|
|
</lay-col>
|
|
|
|
|
</lay-row>
|
|
|
|
|
<lay-row space="10">
|
|
|
|
|
<lay-col md="6"><div class="grid-demo" style="text-align: right;">变更后的配方:</div></lay-col>
|
|
|
|
|
<lay-col md="18"><div class="grid-demo" style="text-align: left;">{{dataInfoObj.FNewTestCode}}+{{dataInfoObj.FNewVersionCode}}+{{dataInfoObj.FNewDesc}}</div></lay-col>
|
|
|
|
|
<lay-col md="6">
|
|
|
|
|
<div class="grid-demo" style="text-align: right;">变更后的配方:</div>
|
|
|
|
|
</lay-col>
|
|
|
|
|
<lay-col md="18">
|
|
|
|
|
<div class="grid-demo" style="text-align: left;">
|
|
|
|
|
{{ dataInfoObj.FNewTestCode }}+{{ dataInfoObj.FNewVersionCode }}+{{ dataInfoObj.FNewDesc }}</div>
|
|
|
|
|
</lay-col>
|
|
|
|
|
</lay-row>
|
|
|
|
|
</lay-container>
|
|
|
|
|
<lay-quote v-if="dataList.length > 0">视图信息</lay-quote>
|
|
|
|
|
@ -27,10 +37,7 @@
|
|
|
|
|
</lay-container>
|
|
|
|
|
</lay-scroll>
|
|
|
|
|
<lay-layer area="90%" v-model="showEditBox" title="视图查看">
|
|
|
|
|
<ShowMaterial :viewList="viewList" :viewHeight="viewHeight" :dataInfoObj="objInfoObj" @cancelClick="cancelClick"></ShowMaterial>
|
|
|
|
|
</lay-layer>
|
|
|
|
|
<lay-layer area="90%" v-model="showEditBox1" title="配方视图">
|
|
|
|
|
<FormulaView :viewList="viewList" :viewHeight="viewHeight" :dataInfoObj="objInfoObj" @cancelClick="cancelClick"></FormulaView>
|
|
|
|
|
<ShowView :viewList="viewList" :viewHeight="viewHeight" @cancelClick="cancelClick"></ShowView>
|
|
|
|
|
</lay-layer>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -163,18 +170,17 @@
|
|
|
|
|
import {
|
|
|
|
|
getTeamProcessList,
|
|
|
|
|
getTeamworkView
|
|
|
|
|
} from "/src/api/api/teamwork";
|
|
|
|
|
} from "/src/api/api/halfmaterialteamwork";
|
|
|
|
|
import {
|
|
|
|
|
getBasicRoleList
|
|
|
|
|
} from "/src/api/api/user";
|
|
|
|
|
|
|
|
|
|
import ShowMaterial from './ShowMaterial.vue';
|
|
|
|
|
import ShowView from './ShowView.vue';
|
|
|
|
|
import FormulaView from './FormulaView.vue';
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
ShowMaterial,
|
|
|
|
|
FormulaView
|
|
|
|
|
ShowView
|
|
|
|
|
},
|
|
|
|
|
setup() {
|
|
|
|
|
const dataList = ref([]);
|
|
|
|
|
@ -223,26 +229,40 @@
|
|
|
|
|
|
|
|
|
|
//获取视图
|
|
|
|
|
async _getViewList() {
|
|
|
|
|
debugger
|
|
|
|
|
this.dataList = [{"name":"物料视图","code":"1","outCode":"6"},{"name":"配方视图","code":"2","outCode":"10"}];
|
|
|
|
|
this.dataList = [{ "name": "物料视图", "code": "1", "outCode": "6","seeCode":"1" }, { "name": "配方视图", "code": "2", "outCode": "7","seeCode":"2" }];
|
|
|
|
|
},
|
|
|
|
|
async _getTeamworkView(data, type) {
|
|
|
|
|
debugger
|
|
|
|
|
|
|
|
|
|
let viewType = parseInt(type == 1 ? data.seeCode : data.outCode);
|
|
|
|
|
if (type == 2) viewType = viewType - this.viewTypeCount;
|
|
|
|
|
let postData = {
|
|
|
|
|
FTeamID: this.dataInfoObj.FID,
|
|
|
|
|
FViewType: viewType,
|
|
|
|
|
FType: type,
|
|
|
|
|
HalfId : this.dataInfoObj.FMaterialHalfIDs
|
|
|
|
|
};
|
|
|
|
|
if (this.dataInfoObj.FProgress == "100" || this.dataInfoObj.FProgress == "100%") {
|
|
|
|
|
postData.FFinish = 1;
|
|
|
|
|
}
|
|
|
|
|
let idx = layer.load(2);
|
|
|
|
|
let result = await getTeamworkView(postData);
|
|
|
|
|
layer.close(idx);
|
|
|
|
|
if (type == 1) {
|
|
|
|
|
|
|
|
|
|
if(data.code==1)
|
|
|
|
|
{
|
|
|
|
|
this.objInfoObj=this.dataInfoObj;
|
|
|
|
|
let list = [];
|
|
|
|
|
let count = 0;
|
|
|
|
|
for (let key in result) {
|
|
|
|
|
list.push(result[key]);
|
|
|
|
|
count += result[key].length;
|
|
|
|
|
};
|
|
|
|
|
if (count == 0) {
|
|
|
|
|
layer.msg("请稍等,视图信息还在编辑中", {
|
|
|
|
|
time: 2000,
|
|
|
|
|
icon: 3
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.viewList = list;
|
|
|
|
|
this.viewHeight = Math.ceil(500);
|
|
|
|
|
this.showEditBox = true;
|
|
|
|
|
}
|
|
|
|
|
else if(data.code==2){
|
|
|
|
|
this.objInfoObj=this.dataInfoObj;
|
|
|
|
|
this.showEditBox1 = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
window.open(result);
|
|
|
|
|
}
|
|
|
|
|
|