|
@@ -254,7 +254,7 @@
|
|
|
:visible.sync="isShowPrint"
|
|
|
title="粮食质检单"
|
|
|
>
|
|
|
- <inspectInfoPrint :printData="inspect"></inspectInfoPrint>
|
|
|
+ <inspectInfoPrint :printData="inspect"></inspectInfoPrint>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -268,7 +268,7 @@ import {
|
|
|
getinspectLookGoods,
|
|
|
getinspectEdit,
|
|
|
getamount,
|
|
|
- getCount
|
|
|
+ getCount,
|
|
|
} from '@/model/houseSelfCollect/index'
|
|
|
import { packList } from '@/model/contarct/index'
|
|
|
import inspectInfoPrint from './component/inspectInfoPrint.vue'
|
|
@@ -279,7 +279,7 @@ export default {
|
|
|
watch: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- isShowPrint:false,
|
|
|
+ isShowPrint: false,
|
|
|
// warehouseList: {},
|
|
|
inspect: {
|
|
|
tidalGrainPrice: 0,
|
|
@@ -344,7 +344,6 @@ export default {
|
|
|
// + this.verifyinit()
|
|
|
},
|
|
|
print() {
|
|
|
- this.isShowPrint = true
|
|
|
// if (!this.inspect.qualityNo) {
|
|
|
// this.$message({
|
|
|
// message: '编号不能为空',
|
|
@@ -549,55 +548,57 @@ export default {
|
|
|
// }
|
|
|
// }
|
|
|
// })
|
|
|
- // this.inspect.warehouseName = this.warehouseName
|
|
|
- // this.inspect.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
- // this.qualityInspector = sessionStorage.getItem('ws-pf_staffName')
|
|
|
- // if (this.types == null) {
|
|
|
- // this.$confirm('确定保存质检信息?', '提示', {
|
|
|
- // confirmButtonText: '确定',
|
|
|
- // cancelButtonText: '取消',
|
|
|
- // type: 'warning',
|
|
|
- // })
|
|
|
- // .then(() => {
|
|
|
- // inspectAdd(this.inspect)
|
|
|
- // .toPromise()
|
|
|
- // .then((response) => {
|
|
|
- // this.$message.success('保存成功')
|
|
|
- // //打印
|
|
|
- // // this.$router.go(-1)
|
|
|
- // })
|
|
|
- // })
|
|
|
- // .catch(() => {
|
|
|
- // return false
|
|
|
- // })
|
|
|
- // } else if (this.types == 3) {
|
|
|
- // this.$confirm('确定保存质检信息?', '提示', {
|
|
|
- // confirmButtonText: '确定',
|
|
|
- // cancelButtonText: '取消',
|
|
|
- // type: 'warning',
|
|
|
- // })
|
|
|
- // .then(() => {
|
|
|
- // // return
|
|
|
- // getinspectEdit(this.inspect)
|
|
|
- // .toPromise()
|
|
|
- // .then((response) => {
|
|
|
- // this.$message.success('修改成功')
|
|
|
- // // this.xx = true;
|
|
|
- // // let newstr = document.getElementById('print').innerHTML
|
|
|
- // // let oldstr = document.body.innerHTML
|
|
|
- // // document.body.innerHTML = newstr
|
|
|
- // // window.print()
|
|
|
- // // document.body.innerHTML = oldstr
|
|
|
- // // window.location.reload()
|
|
|
- // // this.$router.push({ path: 'paymentManagement' })
|
|
|
- // //打印
|
|
|
- // // this.$router.go(-1)
|
|
|
- // })
|
|
|
- // })
|
|
|
- // .catch(() => {
|
|
|
- // return false
|
|
|
- // })
|
|
|
- // }
|
|
|
+ this.inspect.warehouseName = this.warehouseName
|
|
|
+ this.inspect.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
+ this.inspect.qualityInspector = sessionStorage.getItem('ws-pf_staffName')
|
|
|
+ if (this.types == null) {
|
|
|
+ this.$confirm('确定保存质检信息?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ inspectAdd(this.inspect)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message.success('保存成功')
|
|
|
+ getinspectLook({ id: response })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.inspect = response
|
|
|
+ })
|
|
|
+ this.isShowPrint = true
|
|
|
+ //打印
|
|
|
+ // this.$router.go(-1)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ } else if (this.types == 3) {
|
|
|
+ this.$confirm('确定保存质检信息?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ // return
|
|
|
+ getinspectEdit(this.inspect)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message.success('修改成功')
|
|
|
+ getinspectLook({ id: this.inspect.id })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.inspect = response
|
|
|
+ })
|
|
|
+ this.isShowPrint = true
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
cancel() {
|
|
|
this.$router.push({ path: 'inspectionManagement' })
|
|
@@ -690,15 +691,15 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
- /deep/.el-dialog__header {
|
|
|
- text-align: center !important;
|
|
|
- padding: 10px 0 !important;
|
|
|
- height: auto !important;
|
|
|
- }
|
|
|
+/deep/.el-dialog__header {
|
|
|
+ text-align: center !important;
|
|
|
+ padding: 10px 0 !important;
|
|
|
+ height: auto !important;
|
|
|
+}
|
|
|
|
|
|
- /deep/.el-dialog__title {
|
|
|
- font-size: 24px !important;
|
|
|
- }
|
|
|
+/deep/.el-dialog__title {
|
|
|
+ font-size: 24px !important;
|
|
|
+}
|
|
|
.center {
|
|
|
background: #f6f7fc;
|
|
|
}
|