|
@@ -24,7 +24,7 @@
|
|
|
@search="onSearch($event,'0')"
|
|
|
v-show='showSelect==1'
|
|
|
/>
|
|
|
- <a-button type="primary" :disabled="edit == '0'" @click="onSearch(planNO,'1')" class="noprint">更新</a-button>
|
|
|
+ <a-button type="primary" :disabled="edit == '0'" @click="onSearch(planNO,'1')" class="noprint" v-if="!isView">更新</a-button>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
@@ -375,7 +375,7 @@
|
|
|
</div> -->
|
|
|
|
|
|
<!-- 页面底部保存 -->
|
|
|
- <a-row :gutter="24" style="marginTop:40px;float:right" class="noprint">
|
|
|
+ <a-row :gutter="24" style="marginTop:40px;float:right" class="noprint" v-if="!isView">
|
|
|
<a-col :md="12" :sm="12" style="display:flex">
|
|
|
<a-button type="primary" @click="daYin" style="margin-right:6px" :disabled ="PrintButton">
|
|
|
打印
|
|
@@ -477,6 +477,7 @@ export default {
|
|
|
},
|
|
|
edit:'0',
|
|
|
planNO:'',//计划单号
|
|
|
+ isView:false,//是否查看状态
|
|
|
// 采购订单 表头
|
|
|
purchaseOrderColumns: [
|
|
|
{ title: '货物名称', width: '21%', dataIndex: 'cinvName', className: 'replacecolor specel-width'},
|
|
@@ -1424,6 +1425,29 @@ export default {
|
|
|
// item.ioriSum = parseFloat(ioriSum.toFixed(4));
|
|
|
// return [item];
|
|
|
// }
|
|
|
+ },
|
|
|
+ created(){
|
|
|
+ var ccode = this.$route.query.ccode;
|
|
|
+ /*
|
|
|
+ console.log("----------------ccode 1:"+ccode);
|
|
|
+
|
|
|
+ var url = window.location.href ; //获取当前url
|
|
|
+ var dz_url = url.split('#')[0]; //获取#/之前的字符串
|
|
|
+ var cs = dz_url.split('?')[1]; //获取?之后的参数字符串
|
|
|
+ var cs_arr = cs.split('&'); //参数字符串分割为数组
|
|
|
+ var cs={};
|
|
|
+ for(var i=0;i<cs_arr.length;i++){ //遍历数组,拿到json对象
|
|
|
+ cs[cs_arr[i].split('=')[0]] = cs_arr[i].split('=')[1]
|
|
|
+ }
|
|
|
+ ccode = cs.ccode;
|
|
|
+ console.log("----------------ccode 2:"+ccode); */
|
|
|
+
|
|
|
+ if (ccode != undefined && ccode != ""){
|
|
|
+ this.planNO = ccode;
|
|
|
+ this.showSelect=1;
|
|
|
+ this.isView = true;
|
|
|
+ this.onSearch(this.planNO,'0');
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|