You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
189 lines
7.5 KiB
189 lines
7.5 KiB
|
|
@{
|
|
ViewBag.Title = "";
|
|
Layout = "~/Views/Shared/_Form.cshtml";
|
|
}
|
|
<script src="~/Content/js/datepicker/WdatePicker.js"></script>
|
|
<!--引入 element-ui 的样式,-->
|
|
<link rel="stylesheet" href="~/Content/element-ui/lib/theme-chalk/index.css">
|
|
<script src="~/Content/vue/dist/vue.js"></script>
|
|
<script src="~/Content/element-ui/lib/index.js"></script>
|
|
|
|
<script src="~/Content/axios.min.js"></script>
|
|
<style>
|
|
</style>
|
|
|
|
<form id="form1">
|
|
<div id="app">
|
|
<template>
|
|
<el-form ref="form" :model="form" label-width="80px">
|
|
<el-row :gutter="24">
|
|
<el-col :span="24">
|
|
|
|
</el-col>
|
|
</el-row>
|
|
<el-row :gutter="24">
|
|
<el-col :span="2">
|
|
|
|
</el-col>
|
|
<el-col :span="20">
|
|
<el-table ref="dataSource4CheckLog" highlight-current-row
|
|
:data="dataSource4CheckLog"
|
|
style="width: 100%"
|
|
stripe border
|
|
size="mini"
|
|
height="300">
|
|
<el-table-column type="index" width="50"></el-table-column>
|
|
<el-table-column prop="InvCode" label="料品编码" width="100">
|
|
</el-table-column>
|
|
<el-table-column prop="InvName" label="料品名称" width="100">
|
|
</el-table-column>
|
|
<el-table-column prop="InvBatcgNo" label="批次" width="100">
|
|
</el-table-column>
|
|
<el-table-column prop="InvBatcgQty" label="批次数量" width="100">
|
|
</el-table-column>
|
|
<el-table-column prop="VenName" label="供应商名称" width="150">
|
|
</el-table-column>
|
|
<el-table-column prop="CHUJIANSHIJIAN" label="到货时间" width="150">
|
|
</el-table-column>
|
|
<el-table-column prop="FirstCheckUser" label="初检人员" width="150">
|
|
</el-table-column>
|
|
<el-table-column prop="Result" label="初检结果" width="100">
|
|
</el-table-column>
|
|
<el-table-column prop="BLMX" label="不良明细" width="150">
|
|
</el-table-column>
|
|
<el-table-column prop="IQCGroupHeaderResult" label="IQC组长判定" width="150">
|
|
</el-table-column>
|
|
<el-table-column prop="IQCGroupHeaderRemark" label="IQC组长判定备注" width="150">
|
|
</el-table-column>
|
|
<el-table-column prop="BRGDesc" label="不良现象" width="150">
|
|
</el-table-column>
|
|
<el-table-column prop="BadReasonDesc" label="不良现象明细" width="150">
|
|
</el-table-column>
|
|
<el-table-column prop="BadDesc" label="不良分类" width="150">
|
|
</el-table-column>
|
|
<el-table-column prop="SQEEngineerResult" label="SQE工程师判定" width="150">
|
|
</el-table-column>
|
|
<el-table-column prop="SQEEngineerRemark" label="SQE工程师判定备注" width="150">
|
|
</el-table-column>
|
|
<el-table-column prop="IQCHeaderResult" label="IQC主管判定" width="150">
|
|
</el-table-column>
|
|
<el-table-column prop="IQCHeaderRemark" label="IQC主管判定备注" width="150">
|
|
</el-table-column>
|
|
<el-table-column prop="SQEFA" label="SQE处理方案" width="150">
|
|
</el-table-column>
|
|
<el-table-column prop="FinalResult" label="最终结果" width="100">
|
|
</el-table-column>
|
|
<el-table-column prop="FinalUser" label="最终判定人员" width="100">
|
|
</el-table-column>
|
|
<el-table-column prop="FinalTime" label="最终判定时间" width="100">
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-col>
|
|
<el-col :span="2">
|
|
|
|
</el-col>
|
|
</el-row>
|
|
</el-form>
|
|
</template>
|
|
</div>
|
|
</form>
|
|
|
|
<script type="text/javascript">
|
|
//const { Console } = require("node:console");
|
|
var vm = new Vue({
|
|
el: '#app',
|
|
data: {
|
|
id:'',
|
|
userCode: "",
|
|
ssList: [],
|
|
form: {},
|
|
detail: {
|
|
key:0,
|
|
SetValueMin: 0,
|
|
SetValueMax: 0,
|
|
SampleQuantity: 0,
|
|
EATTRIBUTE1: 0,
|
|
EATTRIBUTE2: 0,
|
|
EATTRIBUTE3: 0,
|
|
},
|
|
currentRow4Right: null,//规则单选
|
|
rules: {
|
|
RulesCode: [{ required: true, message: '请输入', trigger: 'blur' },],
|
|
RulesName: [{ required: true, message: '请输入', trigger: 'blur' },],
|
|
|
|
},
|
|
dataSource4CheckLog: [],
|
|
multipleSelection:[],
|
|
},
|
|
//挂在DOM 触发
|
|
mounted() {
|
|
let reactiveObject = {
|
|
RulesCode: '',
|
|
RulesName: '',
|
|
RulesDesc: '',
|
|
Type: '',
|
|
Enable: true,
|
|
DetailList: [],
|
|
};
|
|
this.form = reactiveObject;
|
|
|
|
// this.loadGrid();
|
|
// this.show();
|
|
this.id = '@ViewData["ids"]';
|
|
this.initControl();
|
|
// console.log(this.id);
|
|
},
|
|
beforeDestroy() {
|
|
// this.autoScrol1(true);
|
|
|
|
},
|
|
methods: {
|
|
|
|
initControl: function () {
|
|
let that = this;
|
|
// let orgName = '';
|
|
// this.disabled4RulesCode = this.id ? true : false;
|
|
let userName = '@NFine.Code.OperatorProvider.Provider.GetCurrent().UserName';
|
|
// console.log(userName);
|
|
this.getData();
|
|
//this.getAllItem();
|
|
//this.getAllAql();
|
|
},
|
|
|
|
getData() {
|
|
if (!this.id) return;
|
|
|
|
axios
|
|
.get('/BBWMS/IQCQuality/GetMaterialCheckLog?keyValue=' + this.id)
|
|
.then(function (res) {
|
|
|
|
if (res.data) {
|
|
res.data.forEach(function (el, i) {
|
|
Vue.set(vm.dataSource4CheckLog, i, el)
|
|
});
|
|
|
|
}
|
|
})
|
|
.catch(function (error) { // 请求失败处理
|
|
alert(error);
|
|
});
|
|
},
|
|
|
|
handleSelectionChange4File(val) {
|
|
this.multipleSelection = val;
|
|
},
|
|
submitCheck() {
|
|
//$.submitForm({});
|
|
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
},
|
|
},
|
|
});
|
|
function submitForm() {
|
|
//debugger;
|
|
vm.submitCheck();
|
|
|
|
|
|
}
|
|
</script>
|