| | |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | sortable: true |
| | | // initialWidth: 136 |
| | | }); |
| | | cols.push({ |
| | | label: "规格", |
| | |
| | | fieldName: "prodSFDAStatus", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | initialWidth: 97 |
| | | initialWidth: 84 |
| | | }); |
| | | cols.push({ |
| | | label: "注册证编码号", |
| | | fieldName: "approbation_No", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | initialWidth: 120 |
| | | initialWidth: 104 |
| | | }); |
| | | cols.push({ |
| | | label: "注册证效期", |
| | | fieldName: "expiration_Date", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | initialWidth: 105 |
| | | initialWidth: 95 |
| | | }); |
| | | cols.push({ |
| | | label: "第3分类", |
| | | fieldName: "prodCategory3", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | initialWidth: 78, |
| | | initialWidth: 84, |
| | | sortable: true |
| | | }); |
| | | cols.push({ |
| | |
| | | fieldName: "prodCategory4", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | initialWidth: 107, |
| | | initialWidth: 84, |
| | | sortable: true |
| | | }); |
| | | cols.push({ |
| | |
| | | fieldName: "prodCategory5", |
| | | wrapText: true, |
| | | hideDefaultActions: true, |
| | | initialWidth: 80, |
| | | initialWidth: 84, |
| | | sortable: true |
| | | }); |
| | | if (this.cansee) { |
| | |
| | | typeAttributes: { minimumFractionDigits: 2 }, |
| | | fieldName: "prodIntraTradeList", |
| | | hideDefaultActions: true, |
| | | initialWidth: 80 |
| | | initialWidth: 78 |
| | | }); |
| | | } |
| | | if (this.editAble) { |
| | |
| | | valueType: "Number" |
| | | }, |
| | | hideDefaultActions: true, |
| | | initialWidth: 80 |
| | | initialWidth: 78 |
| | | }); |
| | | } else { |
| | | cols.push({ |
| | | label: "采购数量", |
| | | fieldName: "consumableCount", |
| | | hideDefaultActions: true, |
| | | initialWidth: 80, |
| | | initialWidth: 78, |
| | | cellAttributes: { alignment: "right" } |
| | | }); |
| | | } |
| | |
| | | label: "在库数下限", |
| | | fieldName: "lowerlimit", |
| | | hideDefaultActions: true, |
| | | initialWidth: 100, |
| | | initialWidth: 86, |
| | | cellAttributes: { alignment: "right" } |
| | | }); |
| | | cols.push({ |
| | | label: "在库数上限", |
| | | fieldName: "upperlimit", |
| | | hideDefaultActions: true, |
| | | initialWidth: 100, |
| | | initialWidth: 86, |
| | | cellAttributes: { alignment: "right" } |
| | | }); |
| | | // cols.push({label:'有效期库存(盒)',fieldName:'allnumber',hideDefaultActions: true,initialWidth:105,sortable: true}); |
| | | cols.push({ |
| | | label: "有效期库存(盒)", |
| | | type: "customInventoryColor", |
| | | fieldName: "allnumber", |
| | | typeAttributes: { |
| | | value: { fieldName: "allnumber" }, |
| | | upperlimit: { fieldName: "upperlimit" }, |
| | |
| | | boxPrice: "盒" |
| | | }, |
| | | hideDefaultActions: true, |
| | | initialWidth: 126 |
| | | initialWidth: 122, |
| | | sortable: true |
| | | }); |
| | | cols.push({ |
| | | label: "有效期库存(个)", |
| | | fieldName: "allnumber_piece", |
| | | hideDefaultActions: true, |
| | | initialWidth: 126, |
| | | initialWidth: 112, |
| | | cellAttributes: { alignment: "right" } |
| | | }); |
| | | return cols; |
| | |
| | | label: "标题", |
| | | fieldName: "attUrl", |
| | | type: "url", |
| | | typeAttributes: { label: { fieldName: "fileName" }, target: "_blank" }, |
| | | typeAttributes: { |
| | | label: { fieldName: "fileName" }, |
| | | target: "_blank" |
| | | }, |
| | | hideDefaultActions: true |
| | | }, |
| | | { |
| | | label: "创建人", |
| | | fieldName: "ownerUrl", |
| | | type: "url", |
| | | typeAttributes: { label: { fieldName: "ownerName" }, target: "_blank" }, |
| | | typeAttributes: { |
| | | label: { fieldName: "ownerName" }, |
| | | target: "_blank" |
| | | }, |
| | | hideDefaultActions: true |
| | | }, |
| | | { label: "上传日期", fieldName: "updateDate", hideDefaultActions: true }, |
| | | { |
| | | label: "上传日期", |
| | | fieldName: "updateDate", |
| | | hideDefaultActions: true |
| | | }, |
| | | { |
| | | label: "", |
| | | type: "tableCellIcon", |
| | |
| | | this.showSpinner = true; |
| | | var recordId = event.target.getAttribute("data-fileid"); |
| | | console.log("attid:" + recordId); |
| | | deleteAtt({ contentVersionId: recordId }) |
| | | deleteAtt({ contentVersionId: recordId, cocId: this.esetId }) |
| | | .then((result) => { |
| | | this.showSpinner = false; |
| | | if (result.result == "Success") { |