|
|
@@ -5,17 +5,8 @@
|
|
|
fullscreen
|
|
|
:before-close="()=>{emits('update:modelValue', false )}"
|
|
|
>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- disabled
|
|
|
- style="width:80px; height: 40px;margin-bottom: 20px"
|
|
|
- @click=""
|
|
|
- >更新</el-button>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- style="width:80px; height: 40px;margin-bottom: 20px"
|
|
|
- @click="emits('update:modelValue', false )"
|
|
|
- >退出</el-button>
|
|
|
+ <el-button type="primary" style="width:80px; height: 40px;margin-bottom: 20px" @click="renew">更新</el-button>
|
|
|
+ <el-button type="primary" style="width:80px; height: 40px;margin-bottom: 20px" @click="emits('update:modelValue', false )">退出</el-button>
|
|
|
|
|
|
<el-form
|
|
|
inline
|
|
|
@@ -31,6 +22,15 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
|
|
|
+ <el-form-item label="印件号">
|
|
|
+ <el-input
|
|
|
+ v-model="yjno"
|
|
|
+ autocomplete="off"
|
|
|
+ style="width: 100px"
|
|
|
+ @keyup.enter="handleGetTable"
|
|
|
+ placeholder="Enter回车"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
<el-table
|
|
|
:data="tableData"
|
|
|
border
|
|
|
@@ -114,19 +114,52 @@ export const getOrderYj = (params) => {
|
|
|
params
|
|
|
})
|
|
|
}
|
|
|
+export const updateOrderYj = (params) => {
|
|
|
+ return service({
|
|
|
+ url: '/mes_server/order_super_loss/updateOrderYj',
|
|
|
+ method: 'get',
|
|
|
+ params
|
|
|
+ })
|
|
|
+}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<script setup>
|
|
|
import { watch, ref, reactive, defineProps, defineEmits, onBeforeUnmount, onMounted } from 'vue'
|
|
|
-
|
|
|
-const props = defineProps(['modelValue', 'gdbh'])
|
|
|
+import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
+const props = defineProps(['modelValue', 'gdbh','yjno'])
|
|
|
const emits = defineEmits(['update:modelValue'])
|
|
|
const input = ref(props.gdbh)
|
|
|
+const yjno =ref(props.yjno)
|
|
|
const tableData = ref([])
|
|
|
+// const modelValue =ref(true)
|
|
|
+
|
|
|
+//更新
|
|
|
+const renew = async() => {
|
|
|
+ let params = {};
|
|
|
+ params.order = tableData.value['0']['Yj_gdbh']
|
|
|
+ params.yj_yjno = tableData.value['0']['yj_Yjno']
|
|
|
+ params.examine = tableData.value['0']['新考核设置']
|
|
|
+ console.log(params)
|
|
|
+ const res = await updateOrderYj(params);
|
|
|
+ if (res['code'] === 0) {
|
|
|
+ ElMessage({type: 'success',message: '更新成功'})
|
|
|
+ emits('update:modelValue', false )
|
|
|
+ } else {
|
|
|
+ ElMessage({type: 'error',message: '更新失败'})
|
|
|
+ }
|
|
|
+ console.log(res)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
const handleGetTable = async() => {
|
|
|
if (!input.value) return
|
|
|
- const res = await getOrderYj({ order: input.value })
|
|
|
+ const res = await getOrderYj({ order: input.value ,yjno:yjno.value})
|
|
|
if (res['code'] === 0) {
|
|
|
const { data } = res
|
|
|
data['当前考核设置'] = data['质量考核'] === 0 ? '参与' : '剔除'
|
|
|
@@ -136,6 +169,7 @@ const handleGetTable = async() => {
|
|
|
tableData.value = arr
|
|
|
}
|
|
|
}
|
|
|
+//
|
|
|
|
|
|
// 进入后自动搜索
|
|
|
onMounted(() => {
|