Commit 463ec321 authored by 沈翠玲's avatar 沈翠玲

修改报工增加不合格原因

parent 9d58fa05
...@@ -297,5 +297,10 @@ ...@@ -297,5 +297,10 @@
"进度:": "ความคืบหน้า:", "进度:": "ความคืบหน้า:",
"共": "ทั้งหมด", "共": "ทั้งหมด",
"条": "บทความ", "条": "บทความ",
"车间异常单编号": "หมายเลขคําสั่งซื้อข้อยกเว้นร้านค้า" "车间异常单编号": "หมายเลขคําสั่งซื้อข้อยกเว้นร้านค้า",
"查不到报工人数据": "ไม่สามารถตรวจสอบข้อมูลแรงงานที่รายงานได้",
"请输入报工人工号": "โปรดป้อนหมายเลขแรงงานหนังสือพิมพ์",
"选择原因": "เลือกเหตุผล",
"不合格原因": "สาเหตุที่ไม่ได้รับสิทธิ์",
"不合格原因不能为空": "เหตุผลที่ขาดคุณสมบัติไม่สามารถว่างได้"
} }
\ No newline at end of file
...@@ -117,6 +117,22 @@ ...@@ -117,6 +117,22 @@
<u-number-box :min="0" v-model="form.machineTime" :input-width="190" :placeholder="$t('请输入加工工时')" :long-press="false" /> <u-number-box :min="0" v-model="form.machineTime" :input-width="190" :placeholder="$t('请输入加工工时')" :long-press="false" />
</u-form-item> </u-form-item>
</u-col> </u-col>
<u-col span="6">
<u-form-item :label="$t('不合格原因:')" prop="abnormalReason">
<u-input v-model="form.abnormalReason" disabled></u-input>
<u-button
@tap="choose"
type="success"
size="mini"
>{{ $t('选择原因') }}</u-button
>
</u-form-item>
</u-col>
<u-col :span="6">
<u-form-item :label="$t('审核人')" prop="recordNick">
{{form.recordNick}}
</u-form-item>
</u-col>
</u-row> </u-row>
<u-row> <u-row>
<u-col :span="6"> <u-col :span="6">
...@@ -129,11 +145,7 @@ ...@@ -129,11 +145,7 @@
{{form.feedbackTime}} {{form.feedbackTime}}
</u-form-item> </u-form-item>
</u-col> </u-col>
<u-col :span="6">
<u-form-item :label="$t('审核人')" prop="recordNick">
{{form.recordNick}}
</u-form-item>
</u-col>
</u-row> </u-row>
<u-row> <u-row>
<u-col :span="24"> <u-col :span="24">
...@@ -231,6 +243,10 @@ export default { ...@@ -231,6 +243,10 @@ export default {
} }
}, },
methods: { methods: {
choose() {
console.log('aa', this.$emit)
this.$emit('chooseReason',this.form)
},
handleQuantityChanged(){ handleQuantityChanged(){
this.form.quantityFeedback = this.form.quantityQualify + this.form.quantityUnqualify; this.form.quantityFeedback = this.form.quantityQualify + this.form.quantityUnqualify;
}, },
......
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
</u-form-item> </u-form-item>
</u-col> </u-col>
<u-col span="6"> <u-col span="6">
<u-form-item :label="$t('不合格原因:')" prop="abnormalReason"> <u-form-item :label="$t('不合格原因') + ':'" prop="abnormalReason">
<u-input v-model="feedback.abnormalReason" disabled></u-input> <u-input v-model="feedback.abnormalReason" disabled></u-input>
<u-button <u-button
@tap="chooseReason(feedback)" @tap="chooseReason(feedback)"
...@@ -420,29 +420,7 @@ ...@@ -420,29 +420,7 @@
/> />
</view> </view>
</u-modal> </u-modal>
<!-- //生产报工报工人员 -->
<u-modal
:title="$t('不合格原因')"
:cancelText="$t('取消')"
:confirmText="$t('确认')"
@confirm="abnormalReasonDetermine()"
show-cancel-button
:title-style="{
'background-color': '#1E3770',
color: '#FFFFFF',
'line-height': '37px',
'padding-top': '0px',
}"
v-model="abnormalReasonVisible"
width="1300rpx"
>
<view>
<abnormalReason
ref="abnormalReasonRef"
v-if="abnormalReasonVisible"
/>
</view>
</u-modal>
<u-modal <u-modal
:title="$t('暂停原因')" :title="$t('暂停原因')"
:cancelText="$t('取消')" :cancelText="$t('取消')"
...@@ -682,8 +660,32 @@ ...@@ -682,8 +660,32 @@
<editFeeding <editFeeding
ref="editFeeding" ref="editFeeding"
v-model="editFeedingVisible" v-model="editFeedingVisible"
@chooseReason="chooseReason"
@close="editFeedingVisible = false" @close="editFeedingVisible = false"
/> />
<!-- //生产报工报工人员 -->
<u-modal
:title="$t('不合格原因')"
:cancelText="$t('取消')"
:confirmText="$t('确认')"
@confirm="abnormalReasonDetermine()"
show-cancel-button
:title-style="{
'background-color': '#1E3770',
color: '#FFFFFF',
'line-height': '37px',
'padding-top': '0px',
}"
v-model="abnormalReasonVisible"
width="1300rpx"
>
<view>
<abnormalReason
ref="abnormalReasonRef"
v-if="abnormalReasonVisible"
/>
</view>
</u-modal>
</view> </view>
</template> </template>
<style scoped> <style scoped>
...@@ -728,6 +730,7 @@ export default { ...@@ -728,6 +730,7 @@ export default {
return { return {
getWorkorderDirectiveLoading: false, getWorkorderDirectiveLoading: false,
editFeedingVisible: false, editFeedingVisible: false,
reasonOBJ: {},
tableOrderColumn: [ tableOrderColumn: [
{ {
name: 'quantity', name: 'quantity',
...@@ -1639,24 +1642,21 @@ export default { ...@@ -1639,24 +1642,21 @@ export default {
} }
}) })
}, },
numclik(...arg) {
console.log('99999999', arg)
},
getFeedbackMax(feedback){ getFeedbackMax(feedback){
if (feedback.isSerialReport && Number(feedback.isSerialReport) === 1 && !this.isWaiXie) { if (feedback.isSerialReport && Number(feedback.isSerialReport) === 1 && !this.isWaiXie) {
return 1 return 1
} else if (this.isWaiXie || feedback.surpassState){ } else if (this.isWaiXie || (feedback.surpassState && feedback.ordinal === 1)){
return 9999999999999999999999999999999999999999 return 9999999999999999999999999999999999999999
} else if(!feedback.surpassState) { } else {
return feedback.workorderUnfeedbackSum - feedback.quantityUnqualify return feedback.workorderUnfeedbackSum - feedback.quantityUnqualify
} }
}, },
getquantityQualifyMax(feedback){ getquantityQualifyMax(feedback){
if (feedback.isSerialReport && Number(feedback.isSerialReport) === 1 && !this.isWaiXie) { if (feedback.isSerialReport && Number(feedback.isSerialReport) === 1 && !this.isWaiXie) {
return 1 return 1
} else if (this.isWaiXie || feedback.surpassState){ } else if (this.isWaiXie || (feedback.surpassState && feedback.ordinal === 1)){
return 9999999999999999999999999999999999999999 return 9999999999999999999999999999999999999999
} else if(!feedback.surpassState) { } else {
return feedback.workorderUnfeedbackSum - feedback.quantityQualify return feedback.workorderUnfeedbackSum - feedback.quantityQualify
} }
}, },
...@@ -1938,6 +1938,8 @@ export default { ...@@ -1938,6 +1938,8 @@ export default {
this.userTempVisible = true this.userTempVisible = true
}, },
chooseReason(row) { chooseReason(row) {
console.log('sada', row)
this.reasonOBJ = row
this.abnormalReasonVisible = true this.abnormalReasonVisible = true
}, },
toggleRowSelection(checked, arr) { toggleRowSelection(checked, arr) {
...@@ -1951,10 +1953,10 @@ export default { ...@@ -1951,10 +1953,10 @@ export default {
const tableSelectData = JSON.parse( const tableSelectData = JSON.parse(
JSON.stringify(this.$refs.abnormalReasonRef.tableSelectData) JSON.stringify(this.$refs.abnormalReasonRef.tableSelectData)
) )
this.feedbackForms[0].abnormalId = tableSelectData[0].abnormalId this.reasonOBJ.abnormalId = tableSelectData[0].abnormalId
this.feedbackForms[0].abnormalReason = tableSelectData[0].abnormalReason this.reasonOBJ.abnormalReason = tableSelectData[0].abnormalReason
this.feedbackForms[0].abnormalType = tableSelectData[0].abnormalType this.reasonOBJ.abnormalType = tableSelectData[0].abnormalType
this.feedbackForms[0].abnormalRemark = tableSelectData[0].remark this.reasonOBJ.abnormalRemark = tableSelectData[0].remark
}, },
userDetermine() { userDetermine() {
const tableSelectData = JSON.parse( const tableSelectData = JSON.parse(
......
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