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