|
@@ -207,27 +207,61 @@
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- onConfimRec () {
|
|
|
|
|
- this.$confirm(this.$t(`确认收货吗?`), this.$t('提示'), {
|
|
|
|
|
- confirmButtonText: this.$t('确定'),
|
|
|
|
|
- cancelButtonText: this.$t('取消'),
|
|
|
|
|
- type: 'warning'
|
|
|
|
|
- }).then(async () => {
|
|
|
|
|
- const res = await this.$api.requested({
|
|
|
|
|
- "id": "20221122133204",
|
|
|
|
|
- "content": {
|
|
|
|
|
- "sa_logisticsid":this.$route.query.id
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- this.tool.showMessage(res,()=>{
|
|
|
|
|
- this.queryMainData()
|
|
|
|
|
- })
|
|
|
|
|
- }).catch(() => {
|
|
|
|
|
- this.$message({
|
|
|
|
|
- type: 'info',
|
|
|
|
|
- message: this.$t('已取消')
|
|
|
|
|
|
|
+ onConfimRec (isContinue) {
|
|
|
|
|
+ if (isContinue == true || this.siteid != 'HY'){
|
|
|
|
|
+ this.$confirm(this.$t(`确认收货吗?`), this.$t('提示'), {
|
|
|
|
|
+ confirmButtonText: this.$t('确定'),
|
|
|
|
|
+ cancelButtonText: this.$t('取消'),
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ }).then(async () => {
|
|
|
|
|
+ const res = await this.$api.requested({
|
|
|
|
|
+ "id": "20221122133204",
|
|
|
|
|
+ "content": {
|
|
|
|
|
+ "sa_logisticsid":this.$route.query.id
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ this.tool.showMessage(res,()=>{
|
|
|
|
|
+ this.queryMainData()
|
|
|
|
|
+ })
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'info',
|
|
|
|
|
+ message: this.$t('已取消')
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
- });
|
|
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.fileList()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ async fileList(){
|
|
|
|
|
+ const res = await this.$api.requested({
|
|
|
|
|
+ "classname": "system.attachment.Attachment",
|
|
|
|
|
+ "method":"queryFileLink",
|
|
|
|
|
+ "content": {
|
|
|
|
|
+ "ownerid":this.$route.query.id,
|
|
|
|
|
+ "ownertable":"sa_logistics",
|
|
|
|
|
+ "usetype":""
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ if (res.code == 0){
|
|
|
|
|
+ this.tool.showMessage(res,()=>{})
|
|
|
|
|
+ }else {
|
|
|
|
|
+ if (res.total > 0){
|
|
|
|
|
+ this.onConfimRec(true)
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.$confirm('当前单据未上传纸质回签单附件,不可确认收货', '提示', {
|
|
|
|
|
+ showClose:false,
|
|
|
|
|
+ showCancelButton:false,
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
rowClick (row) {
|
|
rowClick (row) {
|
|
|
this.$refs['dismx'].listData(row.sa_orderid,row.sa_logistics_itemsid)
|
|
this.$refs['dismx'].listData(row.sa_orderid,row.sa_logistics_itemsid)
|