剩余模块:生产退料
This commit is contained in:
@@ -21,15 +21,13 @@
|
||||
</view>
|
||||
<view class="timebox">
|
||||
<view>{{ t('index.kshbsj') }}:</view>
|
||||
<!-- <uni-datetime-picker hasInput :show="state.FProReportTimeShow" v-model="state.FProReportTimes"
|
||||
:visibleItemCount="3" disabled mode="datetime"></uni-datetime-picker> -->
|
||||
<view class="zongjian"></view>
|
||||
<view>{{ state.FProReportTimes }}</view>
|
||||
</view>
|
||||
<view class="timebox">
|
||||
<view>{{ t('index.scsl') }}:</view>
|
||||
<up-input :placeholder="t('index.scsl')" clearable inputmode="numeric" v-model="state.qty"
|
||||
:disabled="state.type !== '2'"></up-input>
|
||||
:disabled="state.type !== '3'"></up-input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="btnList">
|
||||
@@ -74,32 +72,32 @@
|
||||
state.FBillNo = pageData.FBillNo
|
||||
state.type = pageData.type
|
||||
if (state.type === '1') state.qty = pageData.Entry[0].Qty
|
||||
if (state.type === '3') state.qty = pageData.Entry[0].TestQty
|
||||
if (state.type === '2') state.qty = pageData.Entry[0].ReportQty
|
||||
|
||||
if (state.type === '2') state.qty = pageData.Entry[0].TestQty
|
||||
if (state.type === '3') state.qty = pageData.Entry[0].ReportQty
|
||||
|
||||
if (state.type === '1' && state.FStartProTimes == '') {
|
||||
state.FStartProTimes = timeFormat(pageData.time, 'yyyy-mm-dd hh:MM:ss')
|
||||
}
|
||||
if (pageData.FStartProTimes !== '') {
|
||||
state.FStartProTimes = pageData.FStartProTimes.replace("T", " ")
|
||||
}
|
||||
if (state.type === '2' && state.FProReportTimes == '') {
|
||||
if (state.type === '2' && state.FProTestTimes == '') {
|
||||
state.FProTestTimes = timeFormat(pageData.time, 'yyyy-mm-dd hh:MM:ss')
|
||||
}
|
||||
if (state.type === '3' && state.FProReportTimes == '') {
|
||||
state.FProReportTimes = timeFormat(pageData.time, 'yyyy-mm-dd hh:MM:ss')
|
||||
}
|
||||
if (pageData.FProReportTimes !== '') {
|
||||
state.FProReportTimes = pageData.FProReportTimes.replace("T", " ")
|
||||
}
|
||||
if (state.type === '3' && state.FProTestTimes == '') {
|
||||
state.FProTestTimes = timeFormat(pageData.time, 'yyyy-mm-dd hh:MM:ss')
|
||||
}
|
||||
if (pageData.FProTestTimes !== '') {
|
||||
state.FProTestTimes = pageData.FProTestTimes.replace("T", " ")
|
||||
}
|
||||
})
|
||||
const titleText = () => {
|
||||
if (state.type === '1') return t('index.kssc')
|
||||
if (state.type === '3') return t('index.kscs')
|
||||
if (state.type === '2') return t('index.kshb')
|
||||
if (state.type === '2') return t('index.kscs')
|
||||
if (state.type === '3') return t('index.kshb')
|
||||
}
|
||||
const PRD_MORPTSaveFun = () => {
|
||||
PRD_MOViewIntoPro({
|
||||
@@ -123,12 +121,12 @@
|
||||
FEntity: [{ FEntryID: res.data.Entry[0].FRPFENTRYID, FQuaQty: Number(state.qty) }]
|
||||
})
|
||||
}
|
||||
PRD_MORPTSave(state.type === '3' ? obj1 : obj2).then((resItem : any) => {
|
||||
PRD_MORPTSave(state.type === '3' ? obj2 : obj1).then((resItem : any) => {
|
||||
if (resItem.code === 200) {
|
||||
// uni.$u.toast(t('public.cg'))
|
||||
if(state.type === '2'){
|
||||
toPages('/pages/putInProd/print',state.EnterIntoProData)
|
||||
}
|
||||
uni.$u.toast(t('public.cg'))
|
||||
// if(state.type === '3'){
|
||||
// toPages('/pages/putInProd/print',state.EnterIntoProData)
|
||||
// }
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user