Commit 4ea6b59b authored by chenzj's avatar chenzj

生产报工的扣减寿命

parent 2588ae45
...@@ -170,11 +170,11 @@ ...@@ -170,11 +170,11 @@
:title-style="{'background-color':'#1E3770','color': '#FFFFFF' ,'line-height': '60px','padding-top': '0px'}" :title-style="{'background-color':'#1E3770','color': '#FFFFFF' ,'line-height': '60px','padding-top': '0px'}"
v-model="aopen" width="1300rpx"> v-model="aopen" width="1300rpx">
<u-form label-width="90px" :rules="rules"> <u-form label-width="90px" :rules="rules">
<u-form-item label="异常时间" prop="abnormalTime"> <!-- <u-form-item label="异常时间" prop="abnormalTime">
<u-input disabled="true" :border="true" v-model="ExceptionForms.abnormalTime"></u-input> <u-input :border="true" v-model="ExceptionForms.abnormalTime"></u-input>
<!-- <uni-datetime-picker class="times" type="date" :clear-icon="false" v-model="ExceptionForms.abnormalTime" /> --> <uni-datetime-picker class="times" type="date" :clear-icon="false" v-model="ExceptionForms.abnormalTime" />
</u-form-item> </u-form-item> -->
<u-row> <u-row>
<u-col span="6"> <u-col span="6">
<u-form-item label="异常类型" prop="abnormalType"> <u-form-item label="异常类型" prop="abnormalType">
...@@ -385,7 +385,6 @@ ...@@ -385,7 +385,6 @@
<script> <script>
import SearchInput from "@/components/ScanInput/index.vue"; import SearchInput from "@/components/ScanInput/index.vue";
import dModelList from './components/dModelList.vue' import dModelList from './components/dModelList.vue'
import timeFormat from '@/uview-ui/libs/function/timeFormat.js'
export default { export default {
name: "ProdReport", name: "ProdReport",
components: { components: {
...@@ -606,9 +605,7 @@ export default { ...@@ -606,9 +605,7 @@ export default {
dModelData: [], dModelData: [],
tableSelectData: [], tableSelectData: [],
feedbackForms: [], feedbackForms: [],
ExceptionForms: { ExceptionForms: {},
abnormalTime: timeFormat(new Date(), 'yyyy-mm-dd')
},
reasonList: [], reasonList: [],
materialUsageRecordList: [], materialUsageRecordList: [],
materialusagerecordLoading: false, materialusagerecordLoading: false,
...@@ -661,13 +658,13 @@ export default { ...@@ -661,13 +658,13 @@ export default {
materialReturnList: [], materialReturnList: [],
materialRequestFormData: { materialRequestFormData: {
itemName:null, itemName:null,
applyNum:1 applyNum:null
}, },
materialRequestFormVisible:false, materialRequestFormVisible:false,
materialRequestSelected:{}, materialRequestSelected:{},
materialReturnFormData: { materialReturnFormData: {
itemName:null, itemName:null,
applyNum:1 applyNum:null
}, },
materialReturnFormVisible:false, materialReturnFormVisible:false,
materialReturnSelected:{}, materialReturnSelected:{},
...@@ -1046,7 +1043,7 @@ export default { ...@@ -1046,7 +1043,7 @@ export default {
workstationName: this.vuex_workunit.workunitName, workstationName: this.vuex_workunit.workunitName,
abnormalType: '', abnormalType: '',
abnormalReason: '', abnormalReason: '',
abnormalTime: timeFormat(new Date(), 'yyyy-mm-dd') abnormalTime: ''
}) })
this.aopen = true; this.aopen = true;
}, },
...@@ -1092,7 +1089,11 @@ export default { ...@@ -1092,7 +1089,11 @@ export default {
startTime: item.startTime startTime: item.startTime
}).then(res => { }).then(res => {
if (res.code === 200) { if (res.code === 200) {
this.$u.toast('上报成功'); if(res.msg === ""){
this.$u.toast('上报成功');
}else{
this.$u.toast(res.msg);
}
this.getTaskList() this.getTaskList()
} }
}); });
...@@ -1115,10 +1116,9 @@ export default { ...@@ -1115,10 +1116,9 @@ export default {
}, },
feedingInspectionScan(){ feedingInspectionScan(){
const t = this; const t = this;
const taskInfo = this.tableSelectData[0];
uni.scanCode({ uni.scanCode({
success: function (res) { success: function (res) {
t.$u.api.validateFeedingInspection({"plnr":res.result,"taskId":taskInfo.taskId}).then(res2=>{ t.$u.api.validateFeedingInspection({"plnr":res.result}).then(res2=>{
if (res2.code === 200) { if (res2.code === 200) {
t.feedingInspectionLoadAndScan(); t.feedingInspectionLoadAndScan();
} }
...@@ -1192,7 +1192,7 @@ export default { ...@@ -1192,7 +1192,7 @@ export default {
}, },
materialRequestFormShow(line){ materialRequestFormShow(line){
this.materialRequestFormVisible=true; this.materialRequestFormVisible=true;
this.materialRequestFormData.itemName = line.itemName this.materialRequestFormData = {itemName: line.itemName};
this.materialRequestSelected = line; this.materialRequestSelected = line;
}, },
materialRequestSetting(){ materialRequestSetting(){
...@@ -1232,7 +1232,7 @@ export default { ...@@ -1232,7 +1232,7 @@ export default {
}, },
materialReturnFormShow(line){ materialReturnFormShow(line){
this.materialReturnFormVisible=true; this.materialReturnFormVisible=true;
this.materialReturnFormData.itemName = line.itemName; this.materialReturnFormData = {itemName: line.itemName};
this.materialReturnSelected = line; this.materialReturnSelected = line;
}, },
materialReturnSetting(){ materialReturnSetting(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment