| | |
| | | <!-- 操作按钮区 --> |
| | | <view class="action-buttons"> |
| | | <button v-if="isUpdate && !isShowTable" class="secondary-btn" @click="getItem">创建检验单并生成部分默认值</button> |
| | | |
| | | <!-- <button class="secondary-btn" @click="toYzxSubmitFrom(formData.releaseNo)">一致性核对</button> --> |
| | | |
| | | <button v-if="!isUpdate && !isShowTable" class="secondary-btn" @click="toYzxSubmitFrom(formData.releaseNo)">一致性核对</button> |
| | | <button v-if="!isUpdate && !isShowTable" class="secondary-btn" @click="toImage">上传/查看图片</button> |
| | | <button v-if="!isUpdate && !formData.fsubmit && !isShowTable" class="secondary-btn" @click="removeXJ"> |
| | | 删除单据 |
| | |
| | | }, |
| | | onLoad(options) { |
| | | //options中包含了url附带的参数 |
| | | |
| | | |
| | | let params = options; |
| | | |
| | | if(params["current"]==='A') |
| | | { |
| | | this.current=true; |
| | | }else if(params["current"]==='B'){ |
| | | this.current=false; |
| | | } |
| | | if (params["id"]) { |
| | | this.isUpdate = false; |
| | | this.formData.id = params["id"]; |
| | |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | }, toYzxSubmitFrom(releaseNo){ |
| | | uni.navigateTo({ |
| | | url: 'yzxFrom?id=' +this.formData.id+'¤t='+this.current |
| | | }); |
| | | }, |
| | | init() { |
| | | this.$post({ |
| | | url: "/XJ/getPage", |