Browse Source

Merge branch 'hella_online_20240803' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into hella_online_20240803

lijuncheng0816
lijuncheng 4 months ago
parent
commit
59f793ebc0
  1. 6
      src/manifest.json
  2. 62
      src/pages/pointPutawayJob/index.vue

6
src/manifest.json

@ -1,10 +1,10 @@
{ {
"name" : "wms", "name" : "wms",
"package" : "uni.UNI43932FE", "package" : "uni.UNI43932FE",
"appid" : "__UNI__C9CF4BF", "appid" : "__UNI__F36DDCF",
"description" : "", "description" : "",
"versionName" : "1.0.60", "versionName" : "1.0.63",
"versionCode" : 60, "versionCode" : 63,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

62
src/pages/pointPutawayJob/index.vue

@ -35,6 +35,9 @@
<td>抽检数量</td> <td>抽检数量</td>
<td>{{item.sampleQty}}</td> <td>{{item.sampleQty}}</td>
</tr> </tr>
<tr v-if="!item.haveInspectionRequest">
<td colspan='4' style="color:#ff0000;font-weight: bold;font-size: 15px;">未生成检验申请</td>
</tr>
</tbody> </tbody>
</table> </table>
</view> </view>
@ -76,6 +79,7 @@
</button> </button>
</view> </view>
<comMessage ref="comMessage"></comMessage>
</view> </view>
</template> </template>
@ -197,6 +201,7 @@
this.readFile(htmlFileUrl1, (htmlContent) => { this.readFile(htmlFileUrl1, (htmlContent) => {
this.newHtmlContent1 = htmlContent this.newHtmlContent1 = htmlContent
this.data1.inspectDTOList.forEach(item => { this.data1.inspectDTOList.forEach(item => {
if(!item.haveInspectionRequest){
str += ` str += `
<div class="box" style="page-break-before:always;"><br /> <div class="box" style="page-break-before:always;"><br />
<div class="relative" > <div class="relative" >
@ -227,11 +232,52 @@
<td>抽检数量</td> <td>抽检数量</td>
<td>${item.sampleQty}</td> <td>${item.sampleQty}</td>
</tr> </tr>
<tr>
<td colspan='4' style="color:#ff0000;font-weight: bold;font-size: 15px;">未生成检验申请</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
` `
}else{
str += `
<div class="box" style="page-break-before:always;"><br />
<div class="relative" >
<div class="q">Q</div>
<table border='1'>
<thead>
<tr class='top1'>
<th>物料代码:</th>
<th colspan='3'>${item.itemCode}</th>
</tr>
</thead>
<tbody>
<tr>
<td>物料名称</td>
<td>${item.itemName}</td>
<td>发货单号</td>
<td>${this.data1.asnNumber}</td>
</tr>
<tr>
<td>供应商</td>
<td>${item.supplierCode}</td>
<td>供应商批次</td>
<td>${item.supplierBatch}</td>
</tr>
<tr>
<td>到货数量</td>
<td>${item.quantityQty}</td>
<td>抽检数量</td>
<td>${item.sampleQty}</td>
</tr>
</tbody>
</table>
</div>
</div>
`
}
}) })
this.newHtmlContent1 = this.newHtmlContent1.replace( this.newHtmlContent1 = this.newHtmlContent1.replace(
"mainBody", str); // "mainBody", str); //
@ -268,7 +314,14 @@
this.showTableInspectDTOList = this.data1.inspectDTOList this.showTableInspectDTOList = this.data1.inspectDTOList
} }
console.log(233, this.showTableInspectDTOList) console.log(233, this.showTableInspectDTOList)
},
showMessage(message) {
this.$refs.comMessage.showMessage(message, res => {
if (res) {
} }
});
},
}, },
watch: { watch: {
isLoadFinish: { isLoadFinish: {
@ -306,14 +359,21 @@
await queryInspectionFreeFlag({ await queryInspectionFreeFlag({
number: this.number number: this.number
}).then(async res1 => { }).then(async res1 => {
console.log(444,res1)
this.data1 = res1.data this.data1 = res1.data
this.data1.inspectDTOList = this.data1.inspectDTOList.filter(item=>item.sampleQty>0) this.data1.inspectDTOList = this.data1.inspectDTOList.filter(item=>item.sampleQty>0)
// this.data1.inspectDTOList=[]
if(this.data1&&this.data1.inspectDTOList&&this.data1.inspectDTOList.length == 0){ if(this.data1&&this.data1.inspectDTOList&&this.data1.inspectDTOList.length == 0){
this.tabIndex =2 this.tabIndex =2
} }
this.getTableInspectDTOList() this.getTableInspectDTOList()
}) })
.catch(error=>{
this.$refs.comMessage.showMessage(error, res => {
if (res) {
}
});
})
} }
this.getPointPutawayJobHtml() this.getPointPutawayJobHtml()

Loading…
Cancel
Save