diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index a2895d6..fe538c3 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -6,10 +6,10 @@ export default {
site: 0,
languageDefault: '',
userDisplay: '',
- padSopUrl:'http://192.168.2.172/upload/',
- tvSopUrl:'http://192.168.2.172/sopFile/',
- // padSopUrl:'http://192.168.1.83:81/upload/',
- // tvSopUrl:'http://192.168.1.83:81/upload/',
+ // padSopUrl:'http://192.168.2.172/upload/',
+ // tvSopUrl:'http://192.168.2.172/sopFile/',
+ padSopUrl:'http://192.168.1.83:81/upload/',
+ tvSopUrl:'http://192.168.1.83:81/upload/',
},
mutations: {
updateId (state, id) {
diff --git a/src/views/modules/Abnormal/AbnormalFeedBack.vue b/src/views/modules/Abnormal/AbnormalFeedBack.vue
index 3dd347f..62a998f 100644
--- a/src/views/modules/Abnormal/AbnormalFeedBack.vue
+++ b/src/views/modules/Abnormal/AbnormalFeedBack.vue
@@ -240,7 +240,10 @@
工装   
-
+
+
+
+
@@ -328,6 +331,7 @@
"材料": "materialTemporary",
"模具": "mouldTemporary",
"工装": "workClothesTemporary",
+ "根本原因分析": "rootCause",
"长久处理方式": "treatment",
"温度 ": "temperature",
"压力 ": "pressure",
@@ -503,6 +507,12 @@
})
return false;
}
+ if( this.disableFlag3==false&&(this.abnormalFeedBackData.rootCause==null||this.abnormalFeedBackData.rootCause=='')){
+ this.$alert("请填写根本原因分析", '错误', {
+ confirmButtonText: '确定'
+ })
+ return false;
+ }
saveAbnormalDetail(this.abnormalFeedBackData).then(({data}) => {
if (data && data.code === 0) {
this.modalFlag=false
diff --git a/src/views/modules/production/bagLabels.vue b/src/views/modules/production/bagLabels.vue
index 3827591..4321355 100644
--- a/src/views/modules/production/bagLabels.vue
+++ b/src/views/modules/production/bagLabels.vue
@@ -4,6 +4,9 @@ import {
getPackagePrintDataList,
getSOScheduleRoutingDataPrint
} from "../../../api/production/generateReport";
+import {
+ getPhotoAddressData
+} from '@/api/pad.js'
import {printPackageLabelNoPreview} from "../print/print_package_label-NOOREVIEW";
export default {
data(){
@@ -16,7 +19,20 @@ export default {
flag:false,
soScheduleRouting:{
- }
+ },
+ picData:{
+ site:'',
+ partNo:'',
+ },
+ fileTitle:"文件名 ("+0+"/"+0+")",
+ fileName:'',
+ num:1,
+ currentData:'',
+ photoDatas:[],
+ uploadImg:[],
+ showviewer: false,
+ url: '',
+ photoUrl:'',
}
},
mounted() {
@@ -71,11 +87,24 @@ export default {
}
}else {
this.$message.warning(data.msg)
+ this.cleanAll()
}
}).catch((error)=>{
+ this.cleanAll()
this.$message.error(error);
})
},
+ cleanAll(){
+ Object.keys( this.soScheduleRouting).forEach(key => {
+ this.soScheduleRouting[key] = '';
+ });
+ Object.keys( this.picData).forEach(key => {
+ this.picData[key] = '';
+ });
+ this.fileName=null;
+ this.fileTitle="文件名 ("+0+"/"+0+")";
+ this.photoUrl=null;
+ },
checkIsPacking(){
let params = {
site:this.soScheduleRouting.site,
@@ -83,8 +112,9 @@ export default {
}
checkIsPacking(params).then(({data})=>{
if (data && data.code === 0){
-
+ this.getData(this.soScheduleRouting.site,this.soScheduleRouting.partNo)
}else {
+ this.getData('','')
this.soScheduleRouting={};
this.$message.warning(data.msg)
this.searchData = {
@@ -146,7 +176,63 @@ export default {
}
params.number = this.number;
this.printPackageLabelNoPreview(params)
- }
+ },
+ getData(site,partNo){
+ this.picData.partNo = partNo;
+ this.picData.site= site;
+ this.getPhoto();
+
+ },
+ getPhoto(){
+ getPhotoAddressData(this.searchData).then(({data}) => {
+ this.photoDatas = data.rows;
+ if(this.photoDatas.length==0){
+ this.fileTitle="文件名 ("+0+"/"+0+")";
+ this.photoUrl=null;
+ return false;
+ }
+ this.fileName=this.photoDatas[this.num-1].attaFileNameDb;
+ this.fileTitle="文件名 ("+this.num+"/"+this.photoDatas.length+")";
+ this.photoUrl=this.$store.state.user.padSopUrl+this.photoDatas[this.num-1].attaFileNameDb;
+ // this.photoUrl='http://192.168.1.83:81/upload/'+this.photoDatas[this.num-1].attaFileNameDb;
+ })
+ },
+ nextPicture(){
+ if(this.photoDatas.length==0){
+ this.fileTitle="文件名 ("+0+"/"+0+")";
+ this.$alert('该物料没有上传图片!', '错误', {
+ confirmButtonText: '确定'
+ })
+ return false;
+ }
+ if(this.num==this.photoDatas.length){
+ this.num=1;
+ }else{
+ this.num=this.num+1;
+ }
+ this.fileName=this.photoDatas[this.num-1].attaFileNameDb;
+ this.fileTitle="文件名 ("+this.num+"/"+this.photoDatas.length+")";
+ this.photoUrl=this.$store.state.user.padSopUrl+this.photoDatas[this.num-1].attaFileNameDb;
+ // this.photoUrl='http://192.168.1.83:81/upload/'+this.photoDatas[this.num-1].attaFileNameDb;
+ },
+ lastPicture(){
+ if(this.photoDatas.length==0){
+ this.fileTitle="文件名 ("+0+"/"+0+")";
+ this.$alert('该物料没有上传图片!', '错误', {
+ confirmButtonText: '确定'
+ })
+ return false;
+ }
+ if(this.num==1){
+ this.num=this.photoDatas.length;
+ }else{
+ this.num=this.num-1;
+ }
+ this.fileName=this.photoDatas[this.num-1].attaFileNameDb;
+ this.fileTitle="文件名 ("+this.num+"/"+this.photoDatas.length+")";
+ this.photoUrl=this.$store.state.user.padSopUrl+this.photoDatas[this.num-1].attaFileNameDb;
+ // this.photoUrl='http://192.168.1.83:81/upload/'+this.photoDatas[this.num-1].attaFileNameDb;
+ },
},
}
@@ -168,7 +254,7 @@ export default {
-
+
@@ -288,6 +374,31 @@ export default {
+
+
+
产品图片
+
+
+
+
+
+
+
+
+
+
+
+
+ 上一张
+
+
+ 下一张
+
+
+
+
+
![]()
+
{
diff --git a/src/views/modules/production/bagLabels_old.vue b/src/views/modules/production/bagLabels_old.vue
new file mode 100644
index 0000000..3827591
--- /dev/null
+++ b/src/views/modules/production/bagLabels_old.vue
@@ -0,0 +1,340 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 打印标签
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
+ this.$refs.dialogInput.focus();
+ }" @close="()=>{
+ this.number = 1
+ }" width="15vw" top="30vh">
+
+
+
+
+
+
+
+ 确定
+
+
+
+
+
+
+