This commit is contained in:
mashuai 2024-12-31 15:46:09 +08:00
parent 7eeb6c972f
commit b0324fad0b
1 changed files with 24 additions and 24 deletions

View File

@ -195,7 +195,7 @@
<el-button
size="mini"
type="warning"
@click="handleLld(scope.row)"
@click="handleLld(scope.row)"
>领料单</el-button
>
<el-button
@ -236,7 +236,7 @@
<el-input
v-model="queryOutInfo.keyWord"
placeholder="请输入规格型号"
clearable
clearable
maxlength="20"
/>
</el-form-item>
@ -340,7 +340,7 @@
<el-input
v-model="queryOutView.keyWord"
placeholder="请输入规格型号"
clearable
clearable
maxlength="20"
/>
</el-form-item>
@ -352,7 +352,7 @@
@click="handleQueryOutView"
>查询</el-button
>
<el-button
<el-button
icon="el-icon-refresh"
size="mini"
@click="resetQueryOutView"
@ -802,12 +802,12 @@
controls-position="right" type="number"
style="width: 100%" clearable placeholder="请输入出库数量"
:min="0" @input="checkNum(scope.row)"
></el-input>
></el-input>
</template>
</el-table-column>
</el-table>
</el-dialog>
<!-- 编码管理查看弹窗 -->
<el-dialog
:title="titleView"
@ -908,7 +908,7 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 10,
time: null, //
time: null, //
taskStatus: "",
keyWord: "",
},
@ -987,9 +987,9 @@ export default {
const params = {
keyWord: this.queryParams.keyWord,
startTime: this.queryParams.time && this.queryParams.time[0],
endTime: this.queryParams.time && this.queryParams.time[1],
endTime: this.queryParams.time && this.queryParams.time[1],
pageSize: this.queryParams.pageSize,
pageNum: this.queryParams.pageNum,
pageNum: this.queryParams.pageNum,
};
if(!this.queryParams.taskStatus){
params.statusList=[3, 4, 5]
@ -1049,7 +1049,7 @@ export default {
// this.dialogTotal = response.
// this.loading = false;
});
},
},
//
handleQueryOutInfo() {
this.queryOutInfo.pageNum = 1;
@ -1059,7 +1059,7 @@ export default {
resetQueryOutInfo() {
this.queryOutInfo.keyWord=""
this.getDialogList();
},
},
/** 出库按钮操作 */
handleOut(row) {
@ -1220,9 +1220,9 @@ export default {
//
});
},
//
print() {
print() {
this.$refs.remarksPrintRef.print();
},
@ -1257,20 +1257,20 @@ export default {
},
//
checkNum(row) {
console.log(row)
checkNum(row) {
console.log(row)
let maxNum = row.outNum;
if(row.unitValue==1){
row.inputNum=Number(String(row.inputNum).replace(/[^\d.]/g,''))
}else{
row.inputNum=Number(String(row.inputNum).replace(/[^\d]/g,''))
}
}
if (row.inputNum <= 0) {
row.inputNum = 0;
}
if (row.inputNum > row.outNum) {
row.inputNum = maxNum;
}
}
},
printView() {
@ -1290,7 +1290,7 @@ export default {
// context.clearRect(0, 0, canvas.width, canvas.height);
//let text = "XXX";
//let companyName = "XXX";
//
let width = canvas.width / 2;
let height = canvas.height / 2;
@ -1299,10 +1299,10 @@ export default {
context.beginPath();
context.arc(width, height, 80, 0, Math.PI * 2); //
context.stroke();
//
this.create5star(context, width, height, 20, "#f00", 0);
//
context.font = "18px 宋体";
context.textBaseline = "middle"; //
@ -1310,7 +1310,7 @@ export default {
context.lineWidth = 1;
context.strokeStyle = "#ff2f2f";
context.strokeText(text, width, height + 50);
//
context.translate(width, height); // ,
context.font = "16px 宋体";
@ -1325,7 +1325,7 @@ export default {
} else {
context.rotate(angle);
}
context.save();
context.translate(65, 0); // ,x
context.rotate(Math.PI / 2); // 90,x
@ -1333,8 +1333,8 @@ export default {
context.strokeText(c, 0, 0); //
context.restore();
}
},
},
//
create5star(context, sx, sy, radius, color, rotato) {
context.save();