Compare commits
No commits in common. "d26c8d776d43fbbbbad3e4a8096dbf8bdc005eb3" and "f360fa4d21ec2f9911006cf1bd643dc919ab6ae1" have entirely different histories.
d26c8d776d
...
f360fa4d21
|
|
@ -5,17 +5,6 @@
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="tableAdd" v-auth="'qct.create'"></el-button>
|
<el-button type="primary" icon="el-icon-plus" @click="tableAdd" v-auth="'qct.create'"></el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
<xtSelect
|
|
||||||
:apiObj="$API.mtm.material.list"
|
|
||||||
v-model="query.qctmat__material"
|
|
||||||
v-model:obj="selectMaterialObj"
|
|
||||||
:labelField="'full_name'"
|
|
||||||
style="width: 600px;"
|
|
||||||
:params="materialQuery"
|
|
||||||
@change="selectMaterialChange"
|
|
||||||
>
|
|
||||||
<el-table-column label="物料" prop="full_name"></el-table-column>
|
|
||||||
</xtSelect>
|
|
||||||
<el-input v-model="query.search" placeholder="检验表名称" clearable @keyup.enter="handleQuery"></el-input>
|
<el-input v-model="query.search" placeholder="检验表名称" clearable @keyup.enter="handleQuery"></el-input>
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -102,16 +91,7 @@ import recordDialog from "./qctDetail.vue";
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
apiObj:this.$API.qm.qct.list,
|
apiObj:this.$API.qm.qct.list,
|
||||||
query: {
|
query: {search:''},
|
||||||
search:'',
|
|
||||||
qctmat__material:'',
|
|
||||||
},
|
|
||||||
materialQuery: {
|
|
||||||
page: 0,
|
|
||||||
is_hidden: false,
|
|
||||||
is_assemb: false,
|
|
||||||
},
|
|
||||||
selectMaterialObj: {},
|
|
||||||
isSaving: false,
|
isSaving: false,
|
||||||
showDrawer: false,
|
showDrawer: false,
|
||||||
limitedVisible: false,
|
limitedVisible: false,
|
||||||
|
|
@ -216,10 +196,6 @@ import recordDialog from "./qctDetail.vue";
|
||||||
handleQuery(){
|
handleQuery(){
|
||||||
this.$refs.table.queryData(this.query)
|
this.$refs.table.queryData(this.query)
|
||||||
},
|
},
|
||||||
selectMaterialChange(row){
|
|
||||||
this.query.qctmat__material = row ? row.id : '';
|
|
||||||
this.handleQuery();
|
|
||||||
},
|
|
||||||
dialogClose(){
|
dialogClose(){
|
||||||
this.isSaving = false;
|
this.isSaving = false;
|
||||||
this.limitedVisible = false;
|
this.limitedVisible = false;
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
<span>{{ item.batch }}</span>
|
<span>{{ item.batch }}</span>
|
||||||
<span v-if="item.material_&&item.material_.process_name">({{ item.material_.process_name }})</span>
|
<span v-if="item.material_&&item.material_.process_name">({{ item.material_.process_name }})</span>
|
||||||
<span v-else>(原料棒)</span>
|
<span v-else>(原料棒)</span>
|
||||||
<el-tag v-if="item.defect!==null" type="warning" size="small" effect="plain" style="margin-left: 8px;">{{ item.defect_name }}</el-tag>
|
<span v-if="item.defect!==null" style="color: red;">{{ item.defect_name }}</span>
|
||||||
<div style="float: right">
|
<div style="float: right">
|
||||||
<span>{{ item.count_canhandover }}</span>
|
<span>{{ item.count_canhandover }}</span>
|
||||||
<span v-if="item.notok_sign_name !== null" style="color: #aaaaaa">
|
<span v-if="item.notok_sign_name !== null" style="color: #aaaaaa">
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
>
|
>
|
||||||
<span>{{ item.batch }}</span>
|
<span>{{ item.batch }}</span>
|
||||||
<el-tag v-if="item.defect_name&&item.defect_name!==null" type="warning" size="small" effect="plain" style="margin-left: 8px;">{{ item.defect_name }}</el-tag>
|
<span v-if="item.defect_name&&item.defect_name!==null">({{ item.defect_name }})</span>
|
||||||
<span style="float: right;">{{ item.count_cando }}</span>
|
<span style="float: right;">{{ item.count_cando }}</span>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@
|
||||||
:apiObj="apiObjM"
|
:apiObj="apiObjM"
|
||||||
v-model="selectObjIds"
|
v-model="selectObjIds"
|
||||||
v-model:obj="selectObjs"
|
v-model:obj="selectObjs"
|
||||||
v-model:label="selectMaterialLabel"
|
|
||||||
:labelField="'batch'"
|
:labelField="'batch'"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
:params = "paramsM"
|
:params = "paramsM"
|
||||||
|
|
@ -48,7 +47,7 @@
|
||||||
<span v-if="scope.row.state==20" style="color: red;border: 1px solid red;border-radius: 3px;">不合格</span>
|
<span v-if="scope.row.state==20" style="color: red;border: 1px solid red;border-radius: 3px;">不合格</span>
|
||||||
<span v-if="scope.row.state==30" style="color: orange;border: 1px solid orange;border-radius: 3px;">返工</span>
|
<span v-if="scope.row.state==30" style="color: orange;border: 1px solid orange;border-radius: 3px;">返工</span>
|
||||||
<span>{{ scope.row.batch }}({{ scope.row.material_name }})</span>
|
<span>{{ scope.row.batch }}({{ scope.row.material_name }})</span>
|
||||||
<el-tag v-if="scope.row.defect_name" type="warning" size="small" effect="plain" style="margin-left: 8px;">{{ scope.row.defect_name }}</el-tag>
|
<span v-if="scope.row.defect_name !== null" style="color: orangered">{{ scope.row.defect_name }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="可交接数量" prop="count_canhandover" width="110px"></el-table-column>
|
<el-table-column label="可交接数量" prop="count_canhandover" width="110px"></el-table-column>
|
||||||
|
|
@ -201,7 +200,6 @@
|
||||||
:apiObj="apiObjM"
|
:apiObj="apiObjM"
|
||||||
v-model="selectObjIds"
|
v-model="selectObjIds"
|
||||||
v-model:obj="selectObjs"
|
v-model:obj="selectObjs"
|
||||||
v-model:label="selectMaterialLabel"
|
|
||||||
:labelField="'batch'"
|
:labelField="'batch'"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
:params = "paramsM"
|
:params = "paramsM"
|
||||||
|
|
@ -213,7 +211,7 @@
|
||||||
<span v-if="scope.row.state==20" style="color: red;border: 1px solid red;border-radius: 3px;">不合格</span>
|
<span v-if="scope.row.state==20" style="color: red;border: 1px solid red;border-radius: 3px;">不合格</span>
|
||||||
<span v-if="scope.row.state==30" style="color: orange;border: 1px solid orange;border-radius: 3px;">返工</span>
|
<span v-if="scope.row.state==30" style="color: orange;border: 1px solid orange;border-radius: 3px;">返工</span>
|
||||||
<span>{{ scope.row.batch }}({{ scope.row.material_name }})</span>
|
<span>{{ scope.row.batch }}({{ scope.row.material_name }})</span>
|
||||||
<el-tag v-if="scope.row.defect_name" type="warning" size="small" effect="plain" style="margin-left: 8px;">{{ scope.row.defect_name }}</el-tag>
|
<span v-if="scope.row.defect_name !== null" style="color: orangered">{{ scope.row.defect_name }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="可交接数量" prop="count_canhandover" width="110px"></el-table-column>
|
<el-table-column label="可交接数量" prop="count_canhandover" width="110px"></el-table-column>
|
||||||
|
|
@ -345,7 +343,6 @@ export default {
|
||||||
},
|
},
|
||||||
initForm:{},
|
initForm:{},
|
||||||
selectObjIds:[],
|
selectObjIds:[],
|
||||||
selectMaterialLabel:"",
|
|
||||||
apiObj:this.$API.mtm.material.list,
|
apiObj:this.$API.mtm.material.list,
|
||||||
apiObjM:null,
|
apiObjM:null,
|
||||||
params:{},
|
params:{},
|
||||||
|
|
@ -665,7 +662,6 @@ export default {
|
||||||
//选中物料批次后,放入handoverb
|
//选中物料批次后,放入handoverb
|
||||||
materialChange0(){
|
materialChange0(){
|
||||||
let that = this;
|
let that = this;
|
||||||
that.selectMaterialLabel = that.selectObjs.map(item => that.formatWmaterialLabel(item)).join(";");
|
|
||||||
that.totalCount = 0;
|
that.totalCount = 0;
|
||||||
that.selectObjs.forEach(item=>{
|
that.selectObjs.forEach(item=>{
|
||||||
if(that.handoverbIds.indexOf(item.id)==-1){
|
if(that.handoverbIds.indexOf(item.id)==-1){
|
||||||
|
|
@ -696,12 +692,6 @@ export default {
|
||||||
that.countChange();
|
that.countChange();
|
||||||
},500)
|
},500)
|
||||||
},
|
},
|
||||||
formatWmaterialLabel(row){
|
|
||||||
if(!row || !row.batch){
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
return row.defect_name ? `${row.batch} [${row.defect_name}]` : row.batch;
|
|
||||||
},
|
|
||||||
countChange(){
|
countChange(){
|
||||||
let that = this;
|
let that = this;
|
||||||
let totalCount = 0;
|
let totalCount = 0;
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@
|
||||||
:apiObj="apiObjM"
|
:apiObj="apiObjM"
|
||||||
v-model="form.wm_in"
|
v-model="form.wm_in"
|
||||||
v-model:obj="selectObj"
|
v-model:obj="selectObj"
|
||||||
v-model:label="wmInLabel"
|
|
||||||
:labelField="'batch'"
|
:labelField="'batch'"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
:params = "paramsM"
|
:params = "paramsM"
|
||||||
|
|
@ -56,7 +55,7 @@
|
||||||
<span v-if="scope.row.state==20" style="color: red;border: 1px solid red;border-radius: 3px;">不合格</span>
|
<span v-if="scope.row.state==20" style="color: red;border: 1px solid red;border-radius: 3px;">不合格</span>
|
||||||
<span v-if="scope.row.state==30" style="color: orange;border: 1px solid orange;border-radius: 3px;">返工</span>
|
<span v-if="scope.row.state==30" style="color: orange;border: 1px solid orange;border-radius: 3px;">返工</span>
|
||||||
<span>{{ scope.row.batch }}({{ scope.row.material_name }})</span>
|
<span>{{ scope.row.batch }}({{ scope.row.material_name }})</span>
|
||||||
<el-tag v-if="scope.row.defect_name" type="warning" size="small" effect="plain" style="margin-left: 8px;">{{ scope.row.defect_name }}</el-tag>
|
<span v-if="scope.row.defect_name !== null" style="color: orangered">{{ scope.row.defect_name }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="车间库存" prop="count" width="110px"></el-table-column>
|
<el-table-column label="车间库存" prop="count" width="110px"></el-table-column>
|
||||||
|
|
@ -272,7 +271,6 @@ export default {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
selectObj:{count:0},
|
selectObj:{count:0},
|
||||||
wmInLabel:"",
|
|
||||||
batch_count:null,
|
batch_count:null,
|
||||||
codeBatch:"",
|
codeBatch:"",
|
||||||
materialFix:"",
|
materialFix:"",
|
||||||
|
|
@ -402,7 +400,7 @@ export default {
|
||||||
getdefects(material){
|
getdefects(material){
|
||||||
let that = this;
|
let that = this;
|
||||||
// let material = that.is_fix?that.materialFix:that.materialIn;
|
// let material = that.is_fix?that.materialFix:that.materialIn;
|
||||||
that.$API.qm.qct.getQct.req({material: material,tag:'process',type:'in'}).then((res) => {
|
that.$API.qm.qct.getQct.req({material: material,tag:'process'}).then((res) => {
|
||||||
res.qct_defects.forEach((item) => {
|
res.qct_defects.forEach((item) => {
|
||||||
that.defectform[item.defect_name] = 0;
|
that.defectform[item.defect_name] = 0;
|
||||||
})
|
})
|
||||||
|
|
@ -422,11 +420,6 @@ export default {
|
||||||
},
|
},
|
||||||
materialBatchChange(){
|
materialBatchChange(){
|
||||||
let that = this;
|
let that = this;
|
||||||
if(!that.selectObj || !that.selectObj.id){
|
|
||||||
that.wmInLabel = "";
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
that.wmInLabel = that.formatWmaterialLabel(that.selectObj);
|
|
||||||
that.getRoute(that.selectObj.material);
|
that.getRoute(that.selectObj.material);
|
||||||
that.form.batch = that.selectObj.batch;
|
that.form.batch = that.selectObj.batch;
|
||||||
that.form.count_use = that.selectObj.count_cando;
|
that.form.count_use = that.selectObj.count_cando;
|
||||||
|
|
@ -490,12 +483,6 @@ export default {
|
||||||
})
|
})
|
||||||
that.countCellChanges();
|
that.countCellChanges();
|
||||||
},
|
},
|
||||||
formatWmaterialLabel(row){
|
|
||||||
if(!row || !row.batch){
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
return row.defect_name ? `${row.batch} [${row.defect_name}]` : row.batch;
|
|
||||||
},
|
|
||||||
//表单提交方法
|
//表单提交方法
|
||||||
submit() {
|
submit() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue